[2025-03-19 00:00:05] Production.INFO: next invoice date [2025-03-19 00:00:05] Production.INFO: 2025-04-19 [2025-03-19 00:00:05] Production.INFO: getdaysdiff [2025-03-19 00:00:05] Production.INFO: +31 [2025-03-19 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (108,15,1,31,31,'RMScheduler',2025-03-19 00:00:05,1,0,,,0) [2025-03-19 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:00:06 [end_date_ymd] => 2025-03-19 00:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:00:06' and `end` < '2025-03-19 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-03-19 00:00:20] Production.INFO: count ==921 [2025-03-19 00:00:20] Production.ERROR: pbx CDR StartTime 2025-03-18 21:00:06 - End Time 2025-03-19 00:00:06 [2025-03-19 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711685', 'tblTempUsageDetail_20' ) start [2025-03-19 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711685', 'tblTempUsageDetail_20' ) end [2025-03-19 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711685', 'tblTempVendorCDR_20' ) start [2025-03-19 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711685', 'tblTempVendorCDR_20' ) end [2025-03-19 00:00:20] Production.INFO: ProcessCDR(1,14711685,1,1,2) [2025-03-19 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711685', 'tblTempUsageDetail_20' ) start [2025-03-19 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711685', 'tblTempUsageDetail_20' ) end [2025-03-19 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:00:24] Production.INFO: ==23900== Releasing lock... [2025-03-19 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:00:24] Production.INFO: 37 MB #Memory Used# [2025-03-19 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:01:05 [end_date_ymd] => 2025-03-19 00:01:05 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:01:05' and `end` < '2025-03-19 00: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-03-19 00:01:18] Production.INFO: count ==503 [2025-03-19 00:01:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:01:05 - End Time 2025-03-19 00:01:05 [2025-03-19 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711690', 'tblTempUsageDetail_20' ) start [2025-03-19 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711690', 'tblTempUsageDetail_20' ) end [2025-03-19 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711690', 'tblTempVendorCDR_20' ) start [2025-03-19 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711690', 'tblTempVendorCDR_20' ) end [2025-03-19 00:01:19] Production.INFO: ProcessCDR(1,14711690,1,1,2) [2025-03-19 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711690', 'tblTempUsageDetail_20' ) start [2025-03-19 00:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711690', 'tblTempUsageDetail_20' ) end [2025-03-19 00:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:01:24] Production.INFO: ==23998== Releasing lock... [2025-03-19 00:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:01:24] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:02:05 [end_date_ymd] => 2025-03-19 00:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:02:05' and `end` < '2025-03-19 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-03-19 00:02:18] Production.INFO: count ==501 [2025-03-19 00:02:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:02:05 - End Time 2025-03-19 00:02:05 [2025-03-19 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711695', 'tblTempUsageDetail_20' ) start [2025-03-19 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711695', 'tblTempUsageDetail_20' ) end [2025-03-19 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711695', 'tblTempVendorCDR_20' ) start [2025-03-19 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711695', 'tblTempVendorCDR_20' ) end [2025-03-19 00:02:18] Production.INFO: ProcessCDR(1,14711695,1,1,2) [2025-03-19 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711695', 'tblTempUsageDetail_20' ) start [2025-03-19 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711695', 'tblTempUsageDetail_20' ) end [2025-03-19 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:02:22] Production.INFO: ==24076== Releasing lock... [2025-03-19 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:02:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-19 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:03:05 [end_date_ymd] => 2025-03-19 00:03:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:03:05' and `end` < '2025-03-19 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-03-19 00:03:18] Production.INFO: count ==498 [2025-03-19 00:03:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:03:05 - End Time 2025-03-19 00:03:05 [2025-03-19 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711700', 'tblTempUsageDetail_20' ) start [2025-03-19 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711700', 'tblTempUsageDetail_20' ) end [2025-03-19 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711700', 'tblTempVendorCDR_20' ) start [2025-03-19 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711700', 'tblTempVendorCDR_20' ) end [2025-03-19 00:03:18] Production.INFO: ProcessCDR(1,14711700,1,1,2) [2025-03-19 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711700', 'tblTempUsageDetail_20' ) start [2025-03-19 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711700', 'tblTempUsageDetail_20' ) end [2025-03-19 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:03:21] Production.INFO: ==24151== Releasing lock... [2025-03-19 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:03:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:04:05 [end_date_ymd] => 2025-03-19 00:04:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:04:05' and `end` < '2025-03-19 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-03-19 00:04:34] Production.INFO: count ==498 [2025-03-19 00:04:34] Production.ERROR: pbx CDR StartTime 2025-03-18 21:04:05 - End Time 2025-03-19 00:04:05 [2025-03-19 00:04:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711705', 'tblTempUsageDetail_20' ) start [2025-03-19 00:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711705', 'tblTempUsageDetail_20' ) end [2025-03-19 00:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711705', 'tblTempVendorCDR_20' ) start [2025-03-19 00:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711705', 'tblTempVendorCDR_20' ) end [2025-03-19 00:04:34] Production.INFO: ProcessCDR(1,14711705,1,1,2) [2025-03-19 00:04:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:04:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:04:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:04:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:04:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711705', 'tblTempUsageDetail_20' ) start [2025-03-19 00:04:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711705', 'tblTempUsageDetail_20' ) end [2025-03-19 00:04:38] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:04:38] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:04:38] Production.INFO: ==24232== Releasing lock... [2025-03-19 00:04:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:04:38] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:05:05 [end_date_ymd] => 2025-03-19 00:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:05:05' and `end` < '2025-03-19 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-03-19 00:05:27] Production.INFO: count ==501 [2025-03-19 00:05:28] Production.ERROR: pbx CDR StartTime 2025-03-18 21:05:05 - End Time 2025-03-19 00:05:05 [2025-03-19 00:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711710', 'tblTempUsageDetail_20' ) start [2025-03-19 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711710', 'tblTempUsageDetail_20' ) end [2025-03-19 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711710', 'tblTempVendorCDR_20' ) start [2025-03-19 00:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711710', 'tblTempVendorCDR_20' ) end [2025-03-19 00:05:28] Production.INFO: ProcessCDR(1,14711710,1,1,2) [2025-03-19 00:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711710', 'tblTempUsageDetail_20' ) start [2025-03-19 00:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711710', 'tblTempUsageDetail_20' ) end [2025-03-19 00:05:31] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:05:31] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:05:31] Production.INFO: ==24312== Releasing lock... [2025-03-19 00:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:05:31] Production.INFO: 32.75 MB #Memory Used# [2025-03-19 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:06:06 [end_date_ymd] => 2025-03-19 00:06:06 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:06:06' and `end` < '2025-03-19 00: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-03-19 00:06:29] Production.INFO: count ==497 [2025-03-19 00:06:30] Production.ERROR: pbx CDR StartTime 2025-03-18 21:06:06 - End Time 2025-03-19 00:06:06 [2025-03-19 00:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711715', 'tblTempUsageDetail_20' ) start [2025-03-19 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711715', 'tblTempUsageDetail_20' ) end [2025-03-19 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711715', 'tblTempVendorCDR_20' ) start [2025-03-19 00:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711715', 'tblTempVendorCDR_20' ) end [2025-03-19 00:06:30] Production.INFO: ProcessCDR(1,14711715,1,1,2) [2025-03-19 00:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711715', 'tblTempUsageDetail_20' ) start [2025-03-19 00:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711715', 'tblTempUsageDetail_20' ) end [2025-03-19 00:06:33] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:06:33] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:06:33] Production.INFO: ==24399== Releasing lock... [2025-03-19 00:06:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:06:33] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:07:05 [end_date_ymd] => 2025-03-19 00:07:05 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:07:05' and `end` < '2025-03-19 00: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-03-19 00:07:26] Production.INFO: count ==493 [2025-03-19 00:07:27] Production.ERROR: pbx CDR StartTime 2025-03-18 21:07:05 - End Time 2025-03-19 00:07:05 [2025-03-19 00:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711720', 'tblTempUsageDetail_20' ) start [2025-03-19 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711720', 'tblTempUsageDetail_20' ) end [2025-03-19 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711720', 'tblTempVendorCDR_20' ) start [2025-03-19 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711720', 'tblTempVendorCDR_20' ) end [2025-03-19 00:07:27] Production.INFO: ProcessCDR(1,14711720,1,1,2) [2025-03-19 00:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711720', 'tblTempUsageDetail_20' ) start [2025-03-19 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711720', 'tblTempUsageDetail_20' ) end [2025-03-19 00:07:30] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:07:30] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:07:30] Production.INFO: ==24491== Releasing lock... [2025-03-19 00:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:07:30] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:08:05 [end_date_ymd] => 2025-03-19 00:08:05 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:08:05' and `end` < '2025-03-19 00: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-03-19 00:08:23] Production.INFO: count ==487 [2025-03-19 00:08:24] Production.ERROR: pbx CDR StartTime 2025-03-18 21:08:05 - End Time 2025-03-19 00:08:05 [2025-03-19 00:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711725', 'tblTempUsageDetail_20' ) start [2025-03-19 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711725', 'tblTempUsageDetail_20' ) end [2025-03-19 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711725', 'tblTempVendorCDR_20' ) start [2025-03-19 00:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711725', 'tblTempVendorCDR_20' ) end [2025-03-19 00:08:24] Production.INFO: ProcessCDR(1,14711725,1,1,2) [2025-03-19 00:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711725', 'tblTempUsageDetail_20' ) start [2025-03-19 00:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711725', 'tblTempUsageDetail_20' ) end [2025-03-19 00:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:08:27] Production.INFO: ==24596== Releasing lock... [2025-03-19 00:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:08:27] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:09:05 [end_date_ymd] => 2025-03-19 00:09:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:09:05' and `end` < '2025-03-19 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-03-19 00:09:17] Production.INFO: count ==486 [2025-03-19 00:09:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:09:05 - End Time 2025-03-19 00:09:05 [2025-03-19 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711730', 'tblTempUsageDetail_20' ) start [2025-03-19 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711730', 'tblTempUsageDetail_20' ) end [2025-03-19 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711730', 'tblTempVendorCDR_20' ) start [2025-03-19 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711730', 'tblTempVendorCDR_20' ) end [2025-03-19 00:09:17] Production.INFO: ProcessCDR(1,14711730,1,1,2) [2025-03-19 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711730', 'tblTempUsageDetail_20' ) start [2025-03-19 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711730', 'tblTempUsageDetail_20' ) end [2025-03-19 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:09:21] Production.INFO: ==24698== Releasing lock... [2025-03-19 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:09:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:10:06 [end_date_ymd] => 2025-03-19 00:10:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:10:06' and `end` < '2025-03-19 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-03-19 00:10:18] Production.INFO: count ==497 [2025-03-19 00:10:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:10:06 - End Time 2025-03-19 00:10:06 [2025-03-19 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711736', 'tblTempUsageDetail_20' ) start [2025-03-19 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711736', 'tblTempUsageDetail_20' ) end [2025-03-19 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711736', 'tblTempVendorCDR_20' ) start [2025-03-19 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711736', 'tblTempVendorCDR_20' ) end [2025-03-19 00:10:19] Production.INFO: ProcessCDR(1,14711736,1,1,2) [2025-03-19 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711736', 'tblTempUsageDetail_20' ) start [2025-03-19 00:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711736', 'tblTempUsageDetail_20' ) end [2025-03-19 00:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:10:24] Production.INFO: ==24788== Releasing lock... [2025-03-19 00:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:10:24] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:11:05 [end_date_ymd] => 2025-03-19 00:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:11:05' and `end` < '2025-03-19 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-03-19 00:11:18] Production.INFO: count ==498 [2025-03-19 00:11:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:11:05 - End Time 2025-03-19 00:11:05 [2025-03-19 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711741', 'tblTempUsageDetail_20' ) start [2025-03-19 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711741', 'tblTempUsageDetail_20' ) end [2025-03-19 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711741', 'tblTempVendorCDR_20' ) start [2025-03-19 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711741', 'tblTempVendorCDR_20' ) end [2025-03-19 00:11:18] Production.INFO: ProcessCDR(1,14711741,1,1,2) [2025-03-19 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711741', 'tblTempUsageDetail_20' ) start [2025-03-19 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711741', 'tblTempUsageDetail_20' ) end [2025-03-19 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:11:22] Production.INFO: ==24879== Releasing lock... [2025-03-19 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:11:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:12:05 [end_date_ymd] => 2025-03-19 00:12:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:12:05' and `end` < '2025-03-19 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-03-19 00:12:17] Production.INFO: count ==501 [2025-03-19 00:12:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:12:05 - End Time 2025-03-19 00:12:05 [2025-03-19 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711746', 'tblTempUsageDetail_20' ) start [2025-03-19 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711746', 'tblTempUsageDetail_20' ) end [2025-03-19 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711746', 'tblTempVendorCDR_20' ) start [2025-03-19 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711746', 'tblTempVendorCDR_20' ) end [2025-03-19 00:12:17] Production.INFO: ProcessCDR(1,14711746,1,1,2) [2025-03-19 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711746', 'tblTempUsageDetail_20' ) start [2025-03-19 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711746', 'tblTempUsageDetail_20' ) end [2025-03-19 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:12:22] Production.INFO: ==24973== Releasing lock... [2025-03-19 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:12:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:13:06 [end_date_ymd] => 2025-03-19 00:13:06 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:13:06' and `end` < '2025-03-19 00:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 00:13:18] Production.INFO: count ==497 [2025-03-19 00:13:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:13:06 - End Time 2025-03-19 00:13:06 [2025-03-19 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711751', 'tblTempUsageDetail_20' ) start [2025-03-19 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711751', 'tblTempUsageDetail_20' ) end [2025-03-19 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711751', 'tblTempVendorCDR_20' ) start [2025-03-19 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711751', 'tblTempVendorCDR_20' ) end [2025-03-19 00:13:18] Production.INFO: ProcessCDR(1,14711751,1,1,2) [2025-03-19 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711751', 'tblTempUsageDetail_20' ) start [2025-03-19 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711751', 'tblTempUsageDetail_20' ) end [2025-03-19 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:13:22] Production.INFO: ==25104== Releasing lock... [2025-03-19 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:13:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:14:05 [end_date_ymd] => 2025-03-19 00:14:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:14:05' and `end` < '2025-03-19 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-03-19 00:14:17] Production.INFO: count ==500 [2025-03-19 00:14:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:14:05 - End Time 2025-03-19 00:14:05 [2025-03-19 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711756', 'tblTempUsageDetail_20' ) start [2025-03-19 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711756', 'tblTempUsageDetail_20' ) end [2025-03-19 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711756', 'tblTempVendorCDR_20' ) start [2025-03-19 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711756', 'tblTempVendorCDR_20' ) end [2025-03-19 00:14:17] Production.INFO: ProcessCDR(1,14711756,1,1,2) [2025-03-19 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711756', 'tblTempUsageDetail_20' ) start [2025-03-19 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711756', 'tblTempUsageDetail_20' ) end [2025-03-19 00:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:14:21] Production.INFO: ==25189== Releasing lock... [2025-03-19 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:14:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:15:05 [end_date_ymd] => 2025-03-19 00:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:15:05' and `end` < '2025-03-19 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-03-19 00:15:18] Production.INFO: count ==486 [2025-03-19 00:15:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:15:05 - End Time 2025-03-19 00:15:05 [2025-03-19 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711761', 'tblTempUsageDetail_20' ) start [2025-03-19 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711761', 'tblTempUsageDetail_20' ) end [2025-03-19 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711761', 'tblTempVendorCDR_20' ) start [2025-03-19 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711761', 'tblTempVendorCDR_20' ) end [2025-03-19 00:15:18] Production.INFO: ProcessCDR(1,14711761,1,1,2) [2025-03-19 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711761', 'tblTempUsageDetail_20' ) start [2025-03-19 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711761', 'tblTempUsageDetail_20' ) end [2025-03-19 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:15:21] Production.INFO: ==25276== Releasing lock... [2025-03-19 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:16:05 [end_date_ymd] => 2025-03-19 00:16:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:16:05' and `end` < '2025-03-19 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-03-19 00:16:17] Production.INFO: count ==475 [2025-03-19 00:16:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:16:05 - End Time 2025-03-19 00:16:05 [2025-03-19 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711766', 'tblTempUsageDetail_20' ) start [2025-03-19 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711766', 'tblTempUsageDetail_20' ) end [2025-03-19 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711766', 'tblTempVendorCDR_20' ) start [2025-03-19 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711766', 'tblTempVendorCDR_20' ) end [2025-03-19 00:16:17] Production.INFO: ProcessCDR(1,14711766,1,1,2) [2025-03-19 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711766', 'tblTempUsageDetail_20' ) start [2025-03-19 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711766', 'tblTempUsageDetail_20' ) end [2025-03-19 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:16:21] Production.INFO: ==25366== Releasing lock... [2025-03-19 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:16:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:17:05 [end_date_ymd] => 2025-03-19 00:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:17:05' and `end` < '2025-03-19 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-03-19 00:17:18] Production.INFO: count ==470 [2025-03-19 00:17:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:17:05 - End Time 2025-03-19 00:17:05 [2025-03-19 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711771', 'tblTempUsageDetail_20' ) start [2025-03-19 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711771', 'tblTempUsageDetail_20' ) end [2025-03-19 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711771', 'tblTempVendorCDR_20' ) start [2025-03-19 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711771', 'tblTempVendorCDR_20' ) end [2025-03-19 00:17:18] Production.INFO: ProcessCDR(1,14711771,1,1,2) [2025-03-19 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711771', 'tblTempUsageDetail_20' ) start [2025-03-19 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711771', 'tblTempUsageDetail_20' ) end [2025-03-19 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:17:21] Production.INFO: ==25452== Releasing lock... [2025-03-19 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:17:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:18:05 [end_date_ymd] => 2025-03-19 00:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:18:05' and `end` < '2025-03-19 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-03-19 00:18:17] Production.INFO: count ==469 [2025-03-19 00:18:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:18:05 - End Time 2025-03-19 00:18:05 [2025-03-19 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711776', 'tblTempUsageDetail_20' ) start [2025-03-19 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711776', 'tblTempUsageDetail_20' ) end [2025-03-19 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711776', 'tblTempVendorCDR_20' ) start [2025-03-19 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711776', 'tblTempVendorCDR_20' ) end [2025-03-19 00:18:17] Production.INFO: ProcessCDR(1,14711776,1,1,2) [2025-03-19 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711776', 'tblTempUsageDetail_20' ) start [2025-03-19 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711776', 'tblTempUsageDetail_20' ) end [2025-03-19 00:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:18:21] Production.INFO: ==25540== Releasing lock... [2025-03-19 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:18:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:19:05 [end_date_ymd] => 2025-03-19 00:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:19:05' and `end` < '2025-03-19 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-03-19 00:19:17] Production.INFO: count ==468 [2025-03-19 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:19:05 - End Time 2025-03-19 00:19:05 [2025-03-19 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711781', 'tblTempUsageDetail_20' ) start [2025-03-19 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711781', 'tblTempUsageDetail_20' ) end [2025-03-19 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711781', 'tblTempVendorCDR_20' ) start [2025-03-19 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711781', 'tblTempVendorCDR_20' ) end [2025-03-19 00:19:18] Production.INFO: ProcessCDR(1,14711781,1,1,2) [2025-03-19 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711781', 'tblTempUsageDetail_20' ) start [2025-03-19 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711781', 'tblTempUsageDetail_20' ) end [2025-03-19 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:19:21] Production.INFO: ==25628== Releasing lock... [2025-03-19 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:19:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:20:06 [end_date_ymd] => 2025-03-19 00:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:20:06' and `end` < '2025-03-19 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-03-19 00:20:18] Production.INFO: count ==475 [2025-03-19 00:20:19] Production.ERROR: pbx CDR StartTime 2025-03-18 21:20:06 - End Time 2025-03-19 00:20:06 [2025-03-19 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711787', 'tblTempUsageDetail_20' ) start [2025-03-19 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711787', 'tblTempUsageDetail_20' ) end [2025-03-19 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711787', 'tblTempVendorCDR_20' ) start [2025-03-19 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711787', 'tblTempVendorCDR_20' ) end [2025-03-19 00:20:19] Production.INFO: ProcessCDR(1,14711787,1,1,2) [2025-03-19 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711787', 'tblTempUsageDetail_20' ) start [2025-03-19 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711787', 'tblTempUsageDetail_20' ) end [2025-03-19 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:20:22] Production.INFO: ==25715== Releasing lock... [2025-03-19 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:20:22] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:21:05 [end_date_ymd] => 2025-03-19 00:21:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:21:05' and `end` < '2025-03-19 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-03-19 00:21:18] Production.INFO: count ==478 [2025-03-19 00:21:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:21:05 - End Time 2025-03-19 00:21:05 [2025-03-19 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711792', 'tblTempUsageDetail_20' ) start [2025-03-19 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711792', 'tblTempUsageDetail_20' ) end [2025-03-19 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711792', 'tblTempVendorCDR_20' ) start [2025-03-19 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711792', 'tblTempVendorCDR_20' ) end [2025-03-19 00:21:18] Production.INFO: ProcessCDR(1,14711792,1,1,2) [2025-03-19 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711792', 'tblTempUsageDetail_20' ) start [2025-03-19 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711792', 'tblTempUsageDetail_20' ) end [2025-03-19 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:21:21] Production.INFO: ==25802== Releasing lock... [2025-03-19 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:21:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:22:06 [end_date_ymd] => 2025-03-19 00:22:06 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:22:06' and `end` < '2025-03-19 00: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-03-19 00:22:18] Production.INFO: count ==468 [2025-03-19 00:22:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:22:06 - End Time 2025-03-19 00:22:06 [2025-03-19 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711797', 'tblTempUsageDetail_20' ) start [2025-03-19 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711797', 'tblTempUsageDetail_20' ) end [2025-03-19 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711797', 'tblTempVendorCDR_20' ) start [2025-03-19 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711797', 'tblTempVendorCDR_20' ) end [2025-03-19 00:22:18] Production.INFO: ProcessCDR(1,14711797,1,1,2) [2025-03-19 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711797', 'tblTempUsageDetail_20' ) start [2025-03-19 00:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711797', 'tblTempUsageDetail_20' ) end [2025-03-19 00:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:22:22] Production.INFO: ==25889== Releasing lock... [2025-03-19 00:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:22:22] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:23:05 [end_date_ymd] => 2025-03-19 00:23:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:23:05' and `end` < '2025-03-19 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-03-19 00:23:17] Production.INFO: count ==465 [2025-03-19 00:23:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:23:05 - End Time 2025-03-19 00:23:05 [2025-03-19 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711802', 'tblTempUsageDetail_20' ) start [2025-03-19 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711802', 'tblTempUsageDetail_20' ) end [2025-03-19 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711802', 'tblTempVendorCDR_20' ) start [2025-03-19 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711802', 'tblTempVendorCDR_20' ) end [2025-03-19 00:23:17] Production.INFO: ProcessCDR(1,14711802,1,1,2) [2025-03-19 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711802', 'tblTempUsageDetail_20' ) start [2025-03-19 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711802', 'tblTempUsageDetail_20' ) end [2025-03-19 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:23:20] Production.INFO: ==25978== Releasing lock... [2025-03-19 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:23:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:24:06 [end_date_ymd] => 2025-03-19 00:24:06 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:24:06' and `end` < '2025-03-19 00: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-03-19 00:24:18] Production.INFO: count ==472 [2025-03-19 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:24:06 - End Time 2025-03-19 00:24:06 [2025-03-19 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711807', 'tblTempUsageDetail_20' ) start [2025-03-19 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711807', 'tblTempUsageDetail_20' ) end [2025-03-19 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711807', 'tblTempVendorCDR_20' ) start [2025-03-19 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711807', 'tblTempVendorCDR_20' ) end [2025-03-19 00:24:18] Production.INFO: ProcessCDR(1,14711807,1,1,2) [2025-03-19 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711807', 'tblTempUsageDetail_20' ) start [2025-03-19 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711807', 'tblTempUsageDetail_20' ) end [2025-03-19 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:24:21] Production.INFO: ==26064== Releasing lock... [2025-03-19 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:24:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:25:05 [end_date_ymd] => 2025-03-19 00:25:05 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:25:05' and `end` < '2025-03-19 00: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-03-19 00:25:17] Production.INFO: count ==472 [2025-03-19 00:25:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:25:05 - End Time 2025-03-19 00:25:05 [2025-03-19 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711812', 'tblTempUsageDetail_20' ) start [2025-03-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711812', 'tblTempUsageDetail_20' ) end [2025-03-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711812', 'tblTempVendorCDR_20' ) start [2025-03-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711812', 'tblTempVendorCDR_20' ) end [2025-03-19 00:25:18] Production.INFO: ProcessCDR(1,14711812,1,1,2) [2025-03-19 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711812', 'tblTempUsageDetail_20' ) start [2025-03-19 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711812', 'tblTempUsageDetail_20' ) end [2025-03-19 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:25:21] Production.INFO: ==26151== Releasing lock... [2025-03-19 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:25:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:26:06 [end_date_ymd] => 2025-03-19 00:26:06 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:26:06' and `end` < '2025-03-19 00: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-03-19 00:26:18] Production.INFO: count ==471 [2025-03-19 00:26:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:26:06 - End Time 2025-03-19 00:26:06 [2025-03-19 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711817', 'tblTempUsageDetail_20' ) start [2025-03-19 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711817', 'tblTempUsageDetail_20' ) end [2025-03-19 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711817', 'tblTempVendorCDR_20' ) start [2025-03-19 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711817', 'tblTempVendorCDR_20' ) end [2025-03-19 00:26:18] Production.INFO: ProcessCDR(1,14711817,1,1,2) [2025-03-19 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711817', 'tblTempUsageDetail_20' ) start [2025-03-19 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711817', 'tblTempUsageDetail_20' ) end [2025-03-19 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:26:21] Production.INFO: ==26239== Releasing lock... [2025-03-19 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:26:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:27:05 [end_date_ymd] => 2025-03-19 00:27:05 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:27:05' and `end` < '2025-03-19 00: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-03-19 00:27:17] Production.INFO: count ==479 [2025-03-19 00:27:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:27:05 - End Time 2025-03-19 00:27:05 [2025-03-19 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711822', 'tblTempUsageDetail_20' ) start [2025-03-19 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711822', 'tblTempUsageDetail_20' ) end [2025-03-19 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711822', 'tblTempVendorCDR_20' ) start [2025-03-19 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711822', 'tblTempVendorCDR_20' ) end [2025-03-19 00:27:17] Production.INFO: ProcessCDR(1,14711822,1,1,2) [2025-03-19 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711822', 'tblTempUsageDetail_20' ) start [2025-03-19 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711822', 'tblTempUsageDetail_20' ) end [2025-03-19 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:27:21] Production.INFO: ==26329== Releasing lock... [2025-03-19 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:27:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:28:06 [end_date_ymd] => 2025-03-19 00:28:06 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:28:06' and `end` < '2025-03-19 00: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-03-19 00:28:18] Production.INFO: count ==477 [2025-03-19 00:28:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:28:06 - End Time 2025-03-19 00:28:06 [2025-03-19 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711827', 'tblTempUsageDetail_20' ) start [2025-03-19 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711827', 'tblTempUsageDetail_20' ) end [2025-03-19 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711827', 'tblTempVendorCDR_20' ) start [2025-03-19 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711827', 'tblTempVendorCDR_20' ) end [2025-03-19 00:28:18] Production.INFO: ProcessCDR(1,14711827,1,1,2) [2025-03-19 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711827', 'tblTempUsageDetail_20' ) start [2025-03-19 00:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711827', 'tblTempUsageDetail_20' ) end [2025-03-19 00:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:28:23] Production.INFO: ==26451== Releasing lock... [2025-03-19 00:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:28:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:29:05 [end_date_ymd] => 2025-03-19 00:29:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:29:05' and `end` < '2025-03-19 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-03-19 00:29:17] Production.INFO: count ==474 [2025-03-19 00:29:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:29:05 - End Time 2025-03-19 00:29:05 [2025-03-19 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711832', 'tblTempUsageDetail_20' ) start [2025-03-19 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711832', 'tblTempUsageDetail_20' ) end [2025-03-19 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711832', 'tblTempVendorCDR_20' ) start [2025-03-19 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711832', 'tblTempVendorCDR_20' ) end [2025-03-19 00:29:17] Production.INFO: ProcessCDR(1,14711832,1,1,2) [2025-03-19 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711832', 'tblTempUsageDetail_20' ) start [2025-03-19 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711832', 'tblTempUsageDetail_20' ) end [2025-03-19 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:29:21] Production.INFO: ==26537== Releasing lock... [2025-03-19 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:30:06 [end_date_ymd] => 2025-03-19 00:30:06 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:30:06' and `end` < '2025-03-19 00: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-03-19 00:30:18] Production.INFO: count ==483 [2025-03-19 00:30:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:30:06 - End Time 2025-03-19 00:30:06 [2025-03-19 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711837', 'tblTempUsageDetail_20' ) start [2025-03-19 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711837', 'tblTempUsageDetail_20' ) end [2025-03-19 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711837', 'tblTempVendorCDR_20' ) start [2025-03-19 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711837', 'tblTempVendorCDR_20' ) end [2025-03-19 00:30:18] Production.INFO: ProcessCDR(1,14711837,1,1,2) [2025-03-19 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711837', 'tblTempUsageDetail_20' ) start [2025-03-19 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711837', 'tblTempUsageDetail_20' ) end [2025-03-19 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:30:22] Production.INFO: ==26628== Releasing lock... [2025-03-19 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:31:05 [end_date_ymd] => 2025-03-19 00:31:05 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:31:05' and `end` < '2025-03-19 00: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-03-19 00:31:17] Production.INFO: count ==493 [2025-03-19 00:31:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:31:05 - End Time 2025-03-19 00:31:05 [2025-03-19 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711843', 'tblTempUsageDetail_20' ) start [2025-03-19 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711843', 'tblTempUsageDetail_20' ) end [2025-03-19 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711843', 'tblTempVendorCDR_20' ) start [2025-03-19 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711843', 'tblTempVendorCDR_20' ) end [2025-03-19 00:31:17] Production.INFO: ProcessCDR(1,14711843,1,1,2) [2025-03-19 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711843', 'tblTempUsageDetail_20' ) start [2025-03-19 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711843', 'tblTempUsageDetail_20' ) end [2025-03-19 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:31:21] Production.INFO: ==26714== Releasing lock... [2025-03-19 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:31:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:32:05 [end_date_ymd] => 2025-03-19 00:32:05 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:32:05' and `end` < '2025-03-19 00: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-03-19 00:32:18] Production.INFO: count ==495 [2025-03-19 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:32:05 - End Time 2025-03-19 00:32:05 [2025-03-19 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711848', 'tblTempUsageDetail_20' ) start [2025-03-19 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711848', 'tblTempUsageDetail_20' ) end [2025-03-19 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711848', 'tblTempVendorCDR_20' ) start [2025-03-19 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711848', 'tblTempVendorCDR_20' ) end [2025-03-19 00:32:18] Production.INFO: ProcessCDR(1,14711848,1,1,2) [2025-03-19 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711848', 'tblTempUsageDetail_20' ) start [2025-03-19 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711848', 'tblTempUsageDetail_20' ) end [2025-03-19 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:32:21] Production.INFO: ==26805== Releasing lock... [2025-03-19 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:32:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:33:05 [end_date_ymd] => 2025-03-19 00:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:33:05' and `end` < '2025-03-19 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-03-19 00:33:17] Production.INFO: count ==495 [2025-03-19 00:33:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:33:05 - End Time 2025-03-19 00:33:05 [2025-03-19 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711853', 'tblTempUsageDetail_20' ) start [2025-03-19 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711853', 'tblTempUsageDetail_20' ) end [2025-03-19 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711853', 'tblTempVendorCDR_20' ) start [2025-03-19 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711853', 'tblTempVendorCDR_20' ) end [2025-03-19 00:33:17] Production.INFO: ProcessCDR(1,14711853,1,1,2) [2025-03-19 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711853', 'tblTempUsageDetail_20' ) start [2025-03-19 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711853', 'tblTempUsageDetail_20' ) end [2025-03-19 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:33:21] Production.INFO: ==26889== Releasing lock... [2025-03-19 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:33:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:34:04 [end_date_ymd] => 2025-03-19 00:34:04 [RateCDR] => 1 ) [2025-03-19 00:34: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-03-18 21:34:04' and `end` < '2025-03-19 00:34: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-03-19 00:34:17] Production.INFO: count ==494 [2025-03-19 00:34:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:34:04 - End Time 2025-03-19 00:34:04 [2025-03-19 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711854', 'tblTempUsageDetail_20' ) start [2025-03-19 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711854', 'tblTempUsageDetail_20' ) end [2025-03-19 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711854', 'tblTempVendorCDR_20' ) start [2025-03-19 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711854', 'tblTempVendorCDR_20' ) end [2025-03-19 00:34:17] Production.INFO: ProcessCDR(1,14711854,1,1,2) [2025-03-19 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711854', 'tblTempUsageDetail_20' ) start [2025-03-19 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711854', 'tblTempUsageDetail_20' ) end [2025-03-19 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:34:21] Production.INFO: ==26973== Releasing lock... [2025-03-19 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:34:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:35:05 [end_date_ymd] => 2025-03-19 00:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:35:05' and `end` < '2025-03-19 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-03-19 00:35:17] Production.INFO: count ==490 [2025-03-19 00:35:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:35:05 - End Time 2025-03-19 00:35:05 [2025-03-19 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711863', 'tblTempUsageDetail_20' ) start [2025-03-19 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711863', 'tblTempUsageDetail_20' ) end [2025-03-19 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711863', 'tblTempVendorCDR_20' ) start [2025-03-19 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711863', 'tblTempVendorCDR_20' ) end [2025-03-19 00:35:17] Production.INFO: ProcessCDR(1,14711863,1,1,2) [2025-03-19 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711863', 'tblTempUsageDetail_20' ) start [2025-03-19 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711863', 'tblTempUsageDetail_20' ) end [2025-03-19 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:35:21] Production.INFO: ==27058== Releasing lock... [2025-03-19 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:35:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:36:06 [end_date_ymd] => 2025-03-19 00:36:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:36:06' and `end` < '2025-03-19 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-03-19 00:36:18] Production.INFO: count ==489 [2025-03-19 00:36:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:36:06 - End Time 2025-03-19 00:36:06 [2025-03-19 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711868', 'tblTempUsageDetail_20' ) start [2025-03-19 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711868', 'tblTempUsageDetail_20' ) end [2025-03-19 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711868', 'tblTempVendorCDR_20' ) start [2025-03-19 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711868', 'tblTempVendorCDR_20' ) end [2025-03-19 00:36:18] Production.INFO: ProcessCDR(1,14711868,1,1,2) [2025-03-19 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711868', 'tblTempUsageDetail_20' ) start [2025-03-19 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711868', 'tblTempUsageDetail_20' ) end [2025-03-19 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:36:21] Production.INFO: ==27146== Releasing lock... [2025-03-19 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:36:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:37:06 [end_date_ymd] => 2025-03-19 00:37:06 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:37:06' and `end` < '2025-03-19 00: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-03-19 00:37:18] Production.INFO: count ==489 [2025-03-19 00:37:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:37:06 - End Time 2025-03-19 00:37:06 [2025-03-19 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711873', 'tblTempUsageDetail_20' ) start [2025-03-19 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711873', 'tblTempUsageDetail_20' ) end [2025-03-19 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711873', 'tblTempVendorCDR_20' ) start [2025-03-19 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711873', 'tblTempVendorCDR_20' ) end [2025-03-19 00:37:18] Production.INFO: ProcessCDR(1,14711873,1,1,2) [2025-03-19 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711873', 'tblTempUsageDetail_20' ) start [2025-03-19 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711873', 'tblTempUsageDetail_20' ) end [2025-03-19 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:37:21] Production.INFO: ==27233== Releasing lock... [2025-03-19 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:38:05 [end_date_ymd] => 2025-03-19 00:38:05 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:38:05' and `end` < '2025-03-19 00: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-03-19 00:38:17] Production.INFO: count ==485 [2025-03-19 00:38:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:38:05 - End Time 2025-03-19 00:38:05 [2025-03-19 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711878', 'tblTempUsageDetail_20' ) start [2025-03-19 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711878', 'tblTempUsageDetail_20' ) end [2025-03-19 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711878', 'tblTempVendorCDR_20' ) start [2025-03-19 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711878', 'tblTempVendorCDR_20' ) end [2025-03-19 00:38:17] Production.INFO: ProcessCDR(1,14711878,1,1,2) [2025-03-19 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711878', 'tblTempUsageDetail_20' ) start [2025-03-19 00:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711878', 'tblTempUsageDetail_20' ) end [2025-03-19 00:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:38:21] Production.INFO: ==27318== Releasing lock... [2025-03-19 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:38:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:39:05 [end_date_ymd] => 2025-03-19 00:39:05 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:39:05' and `end` < '2025-03-19 00: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-03-19 00:39:18] Production.INFO: count ==485 [2025-03-19 00:39:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:39:05 - End Time 2025-03-19 00:39:05 [2025-03-19 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711883', 'tblTempUsageDetail_20' ) start [2025-03-19 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711883', 'tblTempUsageDetail_20' ) end [2025-03-19 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711883', 'tblTempVendorCDR_20' ) start [2025-03-19 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711883', 'tblTempVendorCDR_20' ) end [2025-03-19 00:39:18] Production.INFO: ProcessCDR(1,14711883,1,1,2) [2025-03-19 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711883', 'tblTempUsageDetail_20' ) start [2025-03-19 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711883', 'tblTempUsageDetail_20' ) end [2025-03-19 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:39:21] Production.INFO: ==27403== Releasing lock... [2025-03-19 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:39:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:40:05 [end_date_ymd] => 2025-03-19 00:40:05 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:40:05' and `end` < '2025-03-19 00: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-03-19 00:40:18] Production.INFO: count ==496 [2025-03-19 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:40:05 - End Time 2025-03-19 00:40:05 [2025-03-19 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711888', 'tblTempUsageDetail_20' ) start [2025-03-19 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711888', 'tblTempUsageDetail_20' ) end [2025-03-19 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711888', 'tblTempVendorCDR_20' ) start [2025-03-19 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711888', 'tblTempVendorCDR_20' ) end [2025-03-19 00:40:18] Production.INFO: ProcessCDR(1,14711888,1,1,2) [2025-03-19 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711888', 'tblTempUsageDetail_20' ) start [2025-03-19 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711888', 'tblTempUsageDetail_20' ) end [2025-03-19 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:40:21] Production.INFO: ==27491== Releasing lock... [2025-03-19 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:40:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:41:05 [end_date_ymd] => 2025-03-19 00:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:41:05' and `end` < '2025-03-19 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-03-19 00:41:17] Production.INFO: count ==492 [2025-03-19 00:41:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:41:05 - End Time 2025-03-19 00:41:05 [2025-03-19 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711894', 'tblTempUsageDetail_20' ) start [2025-03-19 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711894', 'tblTempUsageDetail_20' ) end [2025-03-19 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711894', 'tblTempVendorCDR_20' ) start [2025-03-19 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711894', 'tblTempVendorCDR_20' ) end [2025-03-19 00:41:18] Production.INFO: ProcessCDR(1,14711894,1,1,2) [2025-03-19 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711894', 'tblTempUsageDetail_20' ) start [2025-03-19 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711894', 'tblTempUsageDetail_20' ) end [2025-03-19 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:41:21] Production.INFO: ==27580== Releasing lock... [2025-03-19 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:41:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:42:05 [end_date_ymd] => 2025-03-19 00:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:42:05' and `end` < '2025-03-19 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-03-19 00:42:17] Production.INFO: count ==491 [2025-03-19 00:42:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:42:05 - End Time 2025-03-19 00:42:05 [2025-03-19 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711899', 'tblTempUsageDetail_20' ) start [2025-03-19 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711899', 'tblTempUsageDetail_20' ) end [2025-03-19 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711899', 'tblTempVendorCDR_20' ) start [2025-03-19 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711899', 'tblTempVendorCDR_20' ) end [2025-03-19 00:42:17] Production.INFO: ProcessCDR(1,14711899,1,1,2) [2025-03-19 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711899', 'tblTempUsageDetail_20' ) start [2025-03-19 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711899', 'tblTempUsageDetail_20' ) end [2025-03-19 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:42:21] Production.INFO: ==27663== Releasing lock... [2025-03-19 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:42:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:43:05 [end_date_ymd] => 2025-03-19 00:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:43:05' and `end` < '2025-03-19 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-03-19 00:43:17] Production.INFO: count ==487 [2025-03-19 00:43:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:43:05 - End Time 2025-03-19 00:43:05 [2025-03-19 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711904', 'tblTempUsageDetail_20' ) start [2025-03-19 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711904', 'tblTempUsageDetail_20' ) end [2025-03-19 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711904', 'tblTempVendorCDR_20' ) start [2025-03-19 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711904', 'tblTempVendorCDR_20' ) end [2025-03-19 00:43:17] Production.INFO: ProcessCDR(1,14711904,1,1,2) [2025-03-19 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711904', 'tblTempUsageDetail_20' ) start [2025-03-19 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711904', 'tblTempUsageDetail_20' ) end [2025-03-19 00:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:43:20] Production.INFO: ==27788== Releasing lock... [2025-03-19 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:43:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:44:05 [end_date_ymd] => 2025-03-19 00:44:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:44:05' and `end` < '2025-03-19 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-03-19 00:44:17] Production.INFO: count ==487 [2025-03-19 00:44:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:44:05 - End Time 2025-03-19 00:44:05 [2025-03-19 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711909', 'tblTempUsageDetail_20' ) start [2025-03-19 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711909', 'tblTempUsageDetail_20' ) end [2025-03-19 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711909', 'tblTempVendorCDR_20' ) start [2025-03-19 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711909', 'tblTempVendorCDR_20' ) end [2025-03-19 00:44:17] Production.INFO: ProcessCDR(1,14711909,1,1,2) [2025-03-19 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711909', 'tblTempUsageDetail_20' ) start [2025-03-19 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711909', 'tblTempUsageDetail_20' ) end [2025-03-19 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:44:21] Production.INFO: ==27875== Releasing lock... [2025-03-19 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:45:05 [end_date_ymd] => 2025-03-19 00:45:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:45:05' and `end` < '2025-03-19 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-03-19 00:45:17] Production.INFO: count ==485 [2025-03-19 00:45:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:45:05 - End Time 2025-03-19 00:45:05 [2025-03-19 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711914', 'tblTempUsageDetail_20' ) start [2025-03-19 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711914', 'tblTempUsageDetail_20' ) end [2025-03-19 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711914', 'tblTempVendorCDR_20' ) start [2025-03-19 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711914', 'tblTempVendorCDR_20' ) end [2025-03-19 00:45:18] Production.INFO: ProcessCDR(1,14711914,1,1,2) [2025-03-19 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711914', 'tblTempUsageDetail_20' ) start [2025-03-19 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711914', 'tblTempUsageDetail_20' ) end [2025-03-19 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:45:21] Production.INFO: ==27960== Releasing lock... [2025-03-19 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:46:05 [end_date_ymd] => 2025-03-19 00:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:46:05' and `end` < '2025-03-19 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-03-19 00:46:17] Production.INFO: count ==469 [2025-03-19 00:46:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:46:05 - End Time 2025-03-19 00:46:05 [2025-03-19 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711919', 'tblTempUsageDetail_20' ) start [2025-03-19 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711919', 'tblTempUsageDetail_20' ) end [2025-03-19 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711919', 'tblTempVendorCDR_20' ) start [2025-03-19 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711919', 'tblTempVendorCDR_20' ) end [2025-03-19 00:46:17] Production.INFO: ProcessCDR(1,14711919,1,1,2) [2025-03-19 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711919', 'tblTempUsageDetail_20' ) start [2025-03-19 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711919', 'tblTempUsageDetail_20' ) end [2025-03-19 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:46:21] Production.INFO: ==28046== Releasing lock... [2025-03-19 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:46:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:47:05 [end_date_ymd] => 2025-03-19 00:47:05 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:47:05' and `end` < '2025-03-19 00: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-03-19 00:47:17] Production.INFO: count ==467 [2025-03-19 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:47:05 - End Time 2025-03-19 00:47:05 [2025-03-19 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711924', 'tblTempUsageDetail_20' ) start [2025-03-19 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711924', 'tblTempUsageDetail_20' ) end [2025-03-19 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711924', 'tblTempVendorCDR_20' ) start [2025-03-19 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711924', 'tblTempVendorCDR_20' ) end [2025-03-19 00:47:18] Production.INFO: ProcessCDR(1,14711924,1,1,2) [2025-03-19 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711924', 'tblTempUsageDetail_20' ) start [2025-03-19 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711924', 'tblTempUsageDetail_20' ) end [2025-03-19 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:47:21] Production.INFO: ==28131== Releasing lock... [2025-03-19 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:47:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 00:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:48:04 [end_date_ymd] => 2025-03-19 00:48:04 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:48:04' and `end` < '2025-03-19 00: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-03-19 00:48:17] Production.INFO: count ==467 [2025-03-19 00:48:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:48:04 - End Time 2025-03-19 00:48:04 [2025-03-19 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711929', 'tblTempUsageDetail_20' ) start [2025-03-19 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711929', 'tblTempUsageDetail_20' ) end [2025-03-19 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711929', 'tblTempVendorCDR_20' ) start [2025-03-19 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711929', 'tblTempVendorCDR_20' ) end [2025-03-19 00:48:17] Production.INFO: ProcessCDR(1,14711929,1,1,2) [2025-03-19 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711929', 'tblTempUsageDetail_20' ) start [2025-03-19 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711929', 'tblTempUsageDetail_20' ) end [2025-03-19 00:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:48:20] Production.INFO: ==28208== Releasing lock... [2025-03-19 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:48:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:49:05 [end_date_ymd] => 2025-03-19 00:49:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:49:05' and `end` < '2025-03-19 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-03-19 00:49:17] Production.INFO: count ==464 [2025-03-19 00:49:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:49:05 - End Time 2025-03-19 00:49:05 [2025-03-19 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711934', 'tblTempUsageDetail_20' ) start [2025-03-19 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711934', 'tblTempUsageDetail_20' ) end [2025-03-19 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711934', 'tblTempVendorCDR_20' ) start [2025-03-19 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711934', 'tblTempVendorCDR_20' ) end [2025-03-19 00:49:17] Production.INFO: ProcessCDR(1,14711934,1,1,2) [2025-03-19 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711934', 'tblTempUsageDetail_20' ) start [2025-03-19 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711934', 'tblTempUsageDetail_20' ) end [2025-03-19 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:49:21] Production.INFO: ==28284== Releasing lock... [2025-03-19 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:49:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:50:06 [end_date_ymd] => 2025-03-19 00:50:06 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:50:06' and `end` < '2025-03-19 00: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-03-19 00:50:18] Production.INFO: count ==470 [2025-03-19 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:50:06 - End Time 2025-03-19 00:50:06 [2025-03-19 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711940', 'tblTempUsageDetail_20' ) start [2025-03-19 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711940', 'tblTempUsageDetail_20' ) end [2025-03-19 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711940', 'tblTempVendorCDR_20' ) start [2025-03-19 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711940', 'tblTempVendorCDR_20' ) end [2025-03-19 00:50:18] Production.INFO: ProcessCDR(1,14711940,1,1,2) [2025-03-19 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711940', 'tblTempUsageDetail_20' ) start [2025-03-19 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711940', 'tblTempUsageDetail_20' ) end [2025-03-19 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:50:22] Production.INFO: ==28364== Releasing lock... [2025-03-19 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:50:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:51:05 [end_date_ymd] => 2025-03-19 00:51:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:51:05' and `end` < '2025-03-19 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-03-19 00:51:17] Production.INFO: count ==475 [2025-03-19 00:51:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:51:05 - End Time 2025-03-19 00:51:05 [2025-03-19 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711945', 'tblTempUsageDetail_20' ) start [2025-03-19 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711945', 'tblTempUsageDetail_20' ) end [2025-03-19 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711945', 'tblTempVendorCDR_20' ) start [2025-03-19 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711945', 'tblTempVendorCDR_20' ) end [2025-03-19 00:51:18] Production.INFO: ProcessCDR(1,14711945,1,1,2) [2025-03-19 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711945', 'tblTempUsageDetail_20' ) start [2025-03-19 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711945', 'tblTempUsageDetail_20' ) end [2025-03-19 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:51:21] Production.INFO: ==28438== Releasing lock... [2025-03-19 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:51:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:52:05 [end_date_ymd] => 2025-03-19 00:52:05 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:52:05' and `end` < '2025-03-19 00: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-03-19 00:52:18] Production.INFO: count ==477 [2025-03-19 00:52:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:52:05 - End Time 2025-03-19 00:52:05 [2025-03-19 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711950', 'tblTempUsageDetail_20' ) start [2025-03-19 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711950', 'tblTempUsageDetail_20' ) end [2025-03-19 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711950', 'tblTempVendorCDR_20' ) start [2025-03-19 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711950', 'tblTempVendorCDR_20' ) end [2025-03-19 00:52:18] Production.INFO: ProcessCDR(1,14711950,1,1,2) [2025-03-19 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711950', 'tblTempUsageDetail_20' ) start [2025-03-19 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711950', 'tblTempUsageDetail_20' ) end [2025-03-19 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:52:21] Production.INFO: ==28517== Releasing lock... [2025-03-19 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:52:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:53:05 [end_date_ymd] => 2025-03-19 00:53:05 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:53:05' and `end` < '2025-03-19 00: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-03-19 00:53:17] Production.INFO: count ==481 [2025-03-19 00:53:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:53:05 - End Time 2025-03-19 00:53:05 [2025-03-19 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711955', 'tblTempUsageDetail_20' ) start [2025-03-19 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711955', 'tblTempUsageDetail_20' ) end [2025-03-19 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711955', 'tblTempVendorCDR_20' ) start [2025-03-19 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711955', 'tblTempVendorCDR_20' ) end [2025-03-19 00:53:17] Production.INFO: ProcessCDR(1,14711955,1,1,2) [2025-03-19 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711955', 'tblTempUsageDetail_20' ) start [2025-03-19 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711955', 'tblTempUsageDetail_20' ) end [2025-03-19 00:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:53:20] Production.INFO: ==28589== Releasing lock... [2025-03-19 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:53:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:54:05 [end_date_ymd] => 2025-03-19 00:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:54:05' and `end` < '2025-03-19 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-03-19 00:54:18] Production.INFO: count ==480 [2025-03-19 00:54:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:54:05 - End Time 2025-03-19 00:54:05 [2025-03-19 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711960', 'tblTempUsageDetail_20' ) start [2025-03-19 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711960', 'tblTempUsageDetail_20' ) end [2025-03-19 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711960', 'tblTempVendorCDR_20' ) start [2025-03-19 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711960', 'tblTempVendorCDR_20' ) end [2025-03-19 00:54:18] Production.INFO: ProcessCDR(1,14711960,1,1,2) [2025-03-19 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711960', 'tblTempUsageDetail_20' ) start [2025-03-19 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711960', 'tblTempUsageDetail_20' ) end [2025-03-19 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:54:21] Production.INFO: ==28660== Releasing lock... [2025-03-19 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:54:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:55:05 [end_date_ymd] => 2025-03-19 00:55:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:55:05' and `end` < '2025-03-19 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-03-19 00:55:17] Production.INFO: count ==479 [2025-03-19 00:55:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:55:05 - End Time 2025-03-19 00:55:05 [2025-03-19 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711965', 'tblTempUsageDetail_20' ) start [2025-03-19 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711965', 'tblTempUsageDetail_20' ) end [2025-03-19 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711965', 'tblTempVendorCDR_20' ) start [2025-03-19 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711965', 'tblTempVendorCDR_20' ) end [2025-03-19 00:55:17] Production.INFO: ProcessCDR(1,14711965,1,1,2) [2025-03-19 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711965', 'tblTempUsageDetail_20' ) start [2025-03-19 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711965', 'tblTempUsageDetail_20' ) end [2025-03-19 00:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:55:20] Production.INFO: ==28733== Releasing lock... [2025-03-19 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:55:20] Production.INFO: 32 MB #Memory Used# [2025-03-19 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:56:06 [end_date_ymd] => 2025-03-19 00:56:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:56:06' and `end` < '2025-03-19 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-03-19 00:56:18] Production.INFO: count ==485 [2025-03-19 00:56:18] Production.ERROR: pbx CDR StartTime 2025-03-18 21:56:06 - End Time 2025-03-19 00:56:06 [2025-03-19 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711970', 'tblTempUsageDetail_20' ) start [2025-03-19 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711970', 'tblTempUsageDetail_20' ) end [2025-03-19 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711970', 'tblTempVendorCDR_20' ) start [2025-03-19 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711970', 'tblTempVendorCDR_20' ) end [2025-03-19 00:56:18] Production.INFO: ProcessCDR(1,14711970,1,1,2) [2025-03-19 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711970', 'tblTempUsageDetail_20' ) start [2025-03-19 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711970', 'tblTempUsageDetail_20' ) end [2025-03-19 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:56:22] Production.INFO: ==28807== Releasing lock... [2025-03-19 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:56:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:57:05 [end_date_ymd] => 2025-03-19 00:57:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:57:05' and `end` < '2025-03-19 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-03-19 00:57:17] Production.INFO: count ==488 [2025-03-19 00:57:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:57:05 - End Time 2025-03-19 00:57:05 [2025-03-19 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711975', 'tblTempUsageDetail_20' ) start [2025-03-19 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711975', 'tblTempUsageDetail_20' ) end [2025-03-19 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711975', 'tblTempVendorCDR_20' ) start [2025-03-19 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711975', 'tblTempVendorCDR_20' ) end [2025-03-19 00:57:18] Production.INFO: ProcessCDR(1,14711975,1,1,2) [2025-03-19 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711975', 'tblTempUsageDetail_20' ) start [2025-03-19 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711975', 'tblTempUsageDetail_20' ) end [2025-03-19 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:57:21] Production.INFO: ==28877== Releasing lock... [2025-03-19 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:57:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:58:05 [end_date_ymd] => 2025-03-19 00:58:05 [RateCDR] => 1 ) [2025-03-19 00: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-03-18 21:58:05' and `end` < '2025-03-19 00: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-03-19 00:58:17] Production.INFO: count ==488 [2025-03-19 00:58:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:58:05 - End Time 2025-03-19 00:58:05 [2025-03-19 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711980', 'tblTempUsageDetail_20' ) start [2025-03-19 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711980', 'tblTempUsageDetail_20' ) end [2025-03-19 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711980', 'tblTempVendorCDR_20' ) start [2025-03-19 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711980', 'tblTempVendorCDR_20' ) end [2025-03-19 00:58:17] Production.INFO: ProcessCDR(1,14711980,1,1,2) [2025-03-19 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711980', 'tblTempUsageDetail_20' ) start [2025-03-19 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711980', 'tblTempUsageDetail_20' ) end [2025-03-19 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:58:21] Production.INFO: ==28950== Releasing lock... [2025-03-19 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:58:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 21:59:05 [end_date_ymd] => 2025-03-19 00:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 21:59:05' and `end` < '2025-03-19 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-03-19 00:59:17] Production.INFO: count ==486 [2025-03-19 00:59:17] Production.ERROR: pbx CDR StartTime 2025-03-18 21:59:05 - End Time 2025-03-19 00:59:05 [2025-03-19 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711985', 'tblTempUsageDetail_20' ) start [2025-03-19 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711985', 'tblTempUsageDetail_20' ) end [2025-03-19 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711985', 'tblTempVendorCDR_20' ) start [2025-03-19 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711985', 'tblTempVendorCDR_20' ) end [2025-03-19 00:59:17] Production.INFO: ProcessCDR(1,14711985,1,1,2) [2025-03-19 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711985', 'tblTempUsageDetail_20' ) start [2025-03-19 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711985', 'tblTempUsageDetail_20' ) end [2025-03-19 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 00:59:21] Production.INFO: ==29062== Releasing lock... [2025-03-19 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 00:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:00:05 [end_date_ymd] => 2025-03-19 01:00:05 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:00:05' and `end` < '2025-03-19 01: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-03-19 01:00:18] Production.INFO: count ==489 [2025-03-19 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:00:05 - End Time 2025-03-19 01:00:05 [2025-03-19 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711990', 'tblTempUsageDetail_20' ) start [2025-03-19 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711990', 'tblTempUsageDetail_20' ) end [2025-03-19 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711990', 'tblTempVendorCDR_20' ) start [2025-03-19 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711990', 'tblTempVendorCDR_20' ) end [2025-03-19 01:00:18] Production.INFO: ProcessCDR(1,14711990,1,1,2) [2025-03-19 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711990', 'tblTempUsageDetail_20' ) start [2025-03-19 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711990', 'tblTempUsageDetail_20' ) end [2025-03-19 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:00:21] Production.INFO: ==29142== Releasing lock... [2025-03-19 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:00:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:01:05 [end_date_ymd] => 2025-03-19 01:01:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:01:05' and `end` < '2025-03-19 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-03-19 01:01:17] Production.INFO: count ==486 [2025-03-19 01:01:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:01:05 - End Time 2025-03-19 01:01:05 [2025-03-19 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711996', 'tblTempUsageDetail_20' ) start [2025-03-19 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14711996', 'tblTempUsageDetail_20' ) end [2025-03-19 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711996', 'tblTempVendorCDR_20' ) start [2025-03-19 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14711996', 'tblTempVendorCDR_20' ) end [2025-03-19 01:01:17] Production.INFO: ProcessCDR(1,14711996,1,1,2) [2025-03-19 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14711996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14711996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14711996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14711996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711996', 'tblTempUsageDetail_20' ) start [2025-03-19 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14711996', 'tblTempUsageDetail_20' ) end [2025-03-19 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:01:21] Production.INFO: ==29228== Releasing lock... [2025-03-19 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:01:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:02:05 [end_date_ymd] => 2025-03-19 01:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:02:05' and `end` < '2025-03-19 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-03-19 01:02:17] Production.INFO: count ==481 [2025-03-19 01:02:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:02:05 - End Time 2025-03-19 01:02:05 [2025-03-19 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712001', 'tblTempUsageDetail_20' ) start [2025-03-19 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712001', 'tblTempUsageDetail_20' ) end [2025-03-19 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712001', 'tblTempVendorCDR_20' ) start [2025-03-19 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712001', 'tblTempVendorCDR_20' ) end [2025-03-19 01:02:17] Production.INFO: ProcessCDR(1,14712001,1,1,2) [2025-03-19 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712001', 'tblTempUsageDetail_20' ) start [2025-03-19 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712001', 'tblTempUsageDetail_20' ) end [2025-03-19 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:02:21] Production.INFO: ==29303== Releasing lock... [2025-03-19 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:02:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:03:05 [end_date_ymd] => 2025-03-19 01:03:05 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:03:05' and `end` < '2025-03-19 01: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-03-19 01:03:18] Production.INFO: count ==481 [2025-03-19 01:03:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:03:05 - End Time 2025-03-19 01:03:05 [2025-03-19 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712006', 'tblTempUsageDetail_20' ) start [2025-03-19 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712006', 'tblTempUsageDetail_20' ) end [2025-03-19 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712006', 'tblTempVendorCDR_20' ) start [2025-03-19 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712006', 'tblTempVendorCDR_20' ) end [2025-03-19 01:03:18] Production.INFO: ProcessCDR(1,14712006,1,1,2) [2025-03-19 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712006', 'tblTempUsageDetail_20' ) start [2025-03-19 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712006', 'tblTempUsageDetail_20' ) end [2025-03-19 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:03:21] Production.INFO: ==29383== Releasing lock... [2025-03-19 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:03:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:04:05 [end_date_ymd] => 2025-03-19 01:04:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:04:05' and `end` < '2025-03-19 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-03-19 01:04:17] Production.INFO: count ==482 [2025-03-19 01:04:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:04:05 - End Time 2025-03-19 01:04:05 [2025-03-19 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712011', 'tblTempUsageDetail_20' ) start [2025-03-19 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712011', 'tblTempUsageDetail_20' ) end [2025-03-19 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712011', 'tblTempVendorCDR_20' ) start [2025-03-19 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712011', 'tblTempVendorCDR_20' ) end [2025-03-19 01:04:17] Production.INFO: ProcessCDR(1,14712011,1,1,2) [2025-03-19 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712011', 'tblTempUsageDetail_20' ) start [2025-03-19 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712011', 'tblTempUsageDetail_20' ) end [2025-03-19 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:04:21] Production.INFO: ==29455== Releasing lock... [2025-03-19 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:04:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:05:05 [end_date_ymd] => 2025-03-19 01:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:05:05' and `end` < '2025-03-19 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-03-19 01:05:17] Production.INFO: count ==478 [2025-03-19 01:05:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:05:05 - End Time 2025-03-19 01:05:05 [2025-03-19 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712016', 'tblTempUsageDetail_20' ) start [2025-03-19 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712016', 'tblTempUsageDetail_20' ) end [2025-03-19 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712016', 'tblTempVendorCDR_20' ) start [2025-03-19 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712016', 'tblTempVendorCDR_20' ) end [2025-03-19 01:05:17] Production.INFO: ProcessCDR(1,14712016,1,1,2) [2025-03-19 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712016', 'tblTempUsageDetail_20' ) start [2025-03-19 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712016', 'tblTempUsageDetail_20' ) end [2025-03-19 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:05:21] Production.INFO: ==29527== Releasing lock... [2025-03-19 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:05:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:06:05 [end_date_ymd] => 2025-03-19 01:06:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:06:05' and `end` < '2025-03-19 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-03-19 01:06:17] Production.INFO: count ==478 [2025-03-19 01:06:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:06:05 - End Time 2025-03-19 01:06:05 [2025-03-19 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712021', 'tblTempUsageDetail_20' ) start [2025-03-19 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712021', 'tblTempUsageDetail_20' ) end [2025-03-19 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712021', 'tblTempVendorCDR_20' ) start [2025-03-19 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712021', 'tblTempVendorCDR_20' ) end [2025-03-19 01:06:17] Production.INFO: ProcessCDR(1,14712021,1,1,2) [2025-03-19 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712021', 'tblTempUsageDetail_20' ) start [2025-03-19 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712021', 'tblTempUsageDetail_20' ) end [2025-03-19 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:06:21] Production.INFO: ==29599== Releasing lock... [2025-03-19 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:06:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:07:05 [end_date_ymd] => 2025-03-19 01:07:05 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:07:05' and `end` < '2025-03-19 01: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-03-19 01:07:18] Production.INFO: count ==462 [2025-03-19 01:07:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:07:05 - End Time 2025-03-19 01:07:05 [2025-03-19 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712026', 'tblTempUsageDetail_20' ) start [2025-03-19 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712026', 'tblTempUsageDetail_20' ) end [2025-03-19 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712026', 'tblTempVendorCDR_20' ) start [2025-03-19 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712026', 'tblTempVendorCDR_20' ) end [2025-03-19 01:07:18] Production.INFO: ProcessCDR(1,14712026,1,1,2) [2025-03-19 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712026', 'tblTempUsageDetail_20' ) start [2025-03-19 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712026', 'tblTempUsageDetail_20' ) end [2025-03-19 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:07:21] Production.INFO: ==29669== Releasing lock... [2025-03-19 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:07:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:08:04 [end_date_ymd] => 2025-03-19 01:08:04 [RateCDR] => 1 ) [2025-03-19 01:08: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-03-18 22:08:04' and `end` < '2025-03-19 01:08: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-03-19 01:08:17] Production.INFO: count ==460 [2025-03-19 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:08:04 - End Time 2025-03-19 01:08:04 [2025-03-19 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712031', 'tblTempUsageDetail_20' ) start [2025-03-19 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712031', 'tblTempUsageDetail_20' ) end [2025-03-19 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712031', 'tblTempVendorCDR_20' ) start [2025-03-19 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712031', 'tblTempVendorCDR_20' ) end [2025-03-19 01:08:17] Production.INFO: ProcessCDR(1,14712031,1,1,2) [2025-03-19 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712031', 'tblTempUsageDetail_20' ) start [2025-03-19 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712031', 'tblTempUsageDetail_20' ) end [2025-03-19 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:08:20] Production.INFO: ==29741== Releasing lock... [2025-03-19 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:08:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:09:06 [end_date_ymd] => 2025-03-19 01:09:06 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:09:06' and `end` < '2025-03-19 01: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-03-19 01:09:18] Production.INFO: count ==462 [2025-03-19 01:09:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:09:06 - End Time 2025-03-19 01:09:06 [2025-03-19 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712036', 'tblTempUsageDetail_20' ) start [2025-03-19 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712036', 'tblTempUsageDetail_20' ) end [2025-03-19 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712036', 'tblTempVendorCDR_20' ) start [2025-03-19 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712036', 'tblTempVendorCDR_20' ) end [2025-03-19 01:09:18] Production.INFO: ProcessCDR(1,14712036,1,1,2) [2025-03-19 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712036', 'tblTempUsageDetail_20' ) start [2025-03-19 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712036', 'tblTempUsageDetail_20' ) end [2025-03-19 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:09:21] Production.INFO: ==29816== Releasing lock... [2025-03-19 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:09:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:10:06 [end_date_ymd] => 2025-03-19 01:10:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:10:06' and `end` < '2025-03-19 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-03-19 01:10:19] Production.INFO: count ==482 [2025-03-19 01:10:19] Production.ERROR: pbx CDR StartTime 2025-03-18 22:10:06 - End Time 2025-03-19 01:10:06 [2025-03-19 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712042', 'tblTempUsageDetail_20' ) start [2025-03-19 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712042', 'tblTempUsageDetail_20' ) end [2025-03-19 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712042', 'tblTempVendorCDR_20' ) start [2025-03-19 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712042', 'tblTempVendorCDR_20' ) end [2025-03-19 01:10:19] Production.INFO: ProcessCDR(1,14712042,1,1,2) [2025-03-19 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712042', 'tblTempUsageDetail_20' ) start [2025-03-19 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712042', 'tblTempUsageDetail_20' ) end [2025-03-19 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:10:22] Production.INFO: ==29889== Releasing lock... [2025-03-19 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:11:06 [end_date_ymd] => 2025-03-19 01:11:06 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:11:06' and `end` < '2025-03-19 01: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-03-19 01:11:18] Production.INFO: count ==489 [2025-03-19 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:11:06 - End Time 2025-03-19 01:11:06 [2025-03-19 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712047', 'tblTempUsageDetail_20' ) start [2025-03-19 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712047', 'tblTempUsageDetail_20' ) end [2025-03-19 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712047', 'tblTempVendorCDR_20' ) start [2025-03-19 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712047', 'tblTempVendorCDR_20' ) end [2025-03-19 01:11:18] Production.INFO: ProcessCDR(1,14712047,1,1,2) [2025-03-19 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712047', 'tblTempUsageDetail_20' ) start [2025-03-19 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712047', 'tblTempUsageDetail_20' ) end [2025-03-19 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:11:22] Production.INFO: ==29969== Releasing lock... [2025-03-19 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:11:22] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:12:05 [end_date_ymd] => 2025-03-19 01:12:05 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:12:05' and `end` < '2025-03-19 01: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-03-19 01:12:18] Production.INFO: count ==489 [2025-03-19 01:12:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:12:05 - End Time 2025-03-19 01:12:05 [2025-03-19 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712052', 'tblTempUsageDetail_20' ) start [2025-03-19 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712052', 'tblTempUsageDetail_20' ) end [2025-03-19 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712052', 'tblTempVendorCDR_20' ) start [2025-03-19 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712052', 'tblTempVendorCDR_20' ) end [2025-03-19 01:12:18] Production.INFO: ProcessCDR(1,14712052,1,1,2) [2025-03-19 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712052', 'tblTempUsageDetail_20' ) start [2025-03-19 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712052', 'tblTempUsageDetail_20' ) end [2025-03-19 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:12:21] Production.INFO: ==30041== Releasing lock... [2025-03-19 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:12:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:13:05 [end_date_ymd] => 2025-03-19 01:13:05 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:13:05' and `end` < '2025-03-19 01: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-03-19 01:13:17] Production.INFO: count ==499 [2025-03-19 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:13:05 - End Time 2025-03-19 01:13:05 [2025-03-19 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712057', 'tblTempUsageDetail_20' ) start [2025-03-19 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712057', 'tblTempUsageDetail_20' ) end [2025-03-19 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712057', 'tblTempVendorCDR_20' ) start [2025-03-19 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712057', 'tblTempVendorCDR_20' ) end [2025-03-19 01:13:18] Production.INFO: ProcessCDR(1,14712057,1,1,2) [2025-03-19 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712057', 'tblTempUsageDetail_20' ) start [2025-03-19 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712057', 'tblTempUsageDetail_20' ) end [2025-03-19 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:13:21] Production.INFO: ==30116== Releasing lock... [2025-03-19 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:13:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:14:06 [end_date_ymd] => 2025-03-19 01:14:06 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:14:06' and `end` < '2025-03-19 01: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-03-19 01:14:18] Production.INFO: count ==493 [2025-03-19 01:14:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:14:06 - End Time 2025-03-19 01:14:06 [2025-03-19 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712062', 'tblTempUsageDetail_20' ) start [2025-03-19 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712062', 'tblTempUsageDetail_20' ) end [2025-03-19 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712062', 'tblTempVendorCDR_20' ) start [2025-03-19 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712062', 'tblTempVendorCDR_20' ) end [2025-03-19 01:14:18] Production.INFO: ProcessCDR(1,14712062,1,1,2) [2025-03-19 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712062', 'tblTempUsageDetail_20' ) start [2025-03-19 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712062', 'tblTempUsageDetail_20' ) end [2025-03-19 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:14:21] Production.INFO: ==30225== Releasing lock... [2025-03-19 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:14:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:15:05 [end_date_ymd] => 2025-03-19 01:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:15:05' and `end` < '2025-03-19 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-03-19 01:15:18] Production.INFO: count ==492 [2025-03-19 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:15:05 - End Time 2025-03-19 01:15:05 [2025-03-19 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712067', 'tblTempUsageDetail_20' ) start [2025-03-19 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712067', 'tblTempUsageDetail_20' ) end [2025-03-19 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712067', 'tblTempVendorCDR_20' ) start [2025-03-19 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712067', 'tblTempVendorCDR_20' ) end [2025-03-19 01:15:18] Production.INFO: ProcessCDR(1,14712067,1,1,2) [2025-03-19 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712067', 'tblTempUsageDetail_20' ) start [2025-03-19 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712067', 'tblTempUsageDetail_20' ) end [2025-03-19 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:15:21] Production.INFO: ==30300== Releasing lock... [2025-03-19 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:15:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:16:06 [end_date_ymd] => 2025-03-19 01:16:06 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:16:06' and `end` < '2025-03-19 01: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-03-19 01:16:18] Production.INFO: count ==495 [2025-03-19 01:16:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:16:06 - End Time 2025-03-19 01:16:06 [2025-03-19 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712072', 'tblTempUsageDetail_20' ) start [2025-03-19 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712072', 'tblTempUsageDetail_20' ) end [2025-03-19 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712072', 'tblTempVendorCDR_20' ) start [2025-03-19 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712072', 'tblTempVendorCDR_20' ) end [2025-03-19 01:16:18] Production.INFO: ProcessCDR(1,14712072,1,1,2) [2025-03-19 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712072', 'tblTempUsageDetail_20' ) start [2025-03-19 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712072', 'tblTempUsageDetail_20' ) end [2025-03-19 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:16:21] Production.INFO: ==30373== Releasing lock... [2025-03-19 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:16:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:17:05 [end_date_ymd] => 2025-03-19 01:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:17:05' and `end` < '2025-03-19 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-03-19 01:17:17] Production.INFO: count ==497 [2025-03-19 01:17:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:17:05 - End Time 2025-03-19 01:17:05 [2025-03-19 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712077', 'tblTempUsageDetail_20' ) start [2025-03-19 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712077', 'tblTempUsageDetail_20' ) end [2025-03-19 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712077', 'tblTempVendorCDR_20' ) start [2025-03-19 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712077', 'tblTempVendorCDR_20' ) end [2025-03-19 01:17:17] Production.INFO: ProcessCDR(1,14712077,1,1,2) [2025-03-19 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712077', 'tblTempUsageDetail_20' ) start [2025-03-19 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712077', 'tblTempUsageDetail_20' ) end [2025-03-19 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:17:23] Production.INFO: ==30446== Releasing lock... [2025-03-19 01:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:17:23] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:18:06 [end_date_ymd] => 2025-03-19 01:18:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:18:06' and `end` < '2025-03-19 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-03-19 01:18:18] Production.INFO: count ==506 [2025-03-19 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:18:06 - End Time 2025-03-19 01:18:06 [2025-03-19 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712082', 'tblTempUsageDetail_20' ) start [2025-03-19 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712082', 'tblTempUsageDetail_20' ) end [2025-03-19 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712082', 'tblTempVendorCDR_20' ) start [2025-03-19 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712082', 'tblTempVendorCDR_20' ) end [2025-03-19 01:18:18] Production.INFO: ProcessCDR(1,14712082,1,1,2) [2025-03-19 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712082', 'tblTempUsageDetail_20' ) start [2025-03-19 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712082', 'tblTempUsageDetail_20' ) end [2025-03-19 01:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:18:23] Production.INFO: ==30534== Releasing lock... [2025-03-19 01:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:18:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:19:05 [end_date_ymd] => 2025-03-19 01:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:19:05' and `end` < '2025-03-19 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-03-19 01:19:17] Production.INFO: count ==509 [2025-03-19 01:19:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:19:05 - End Time 2025-03-19 01:19:05 [2025-03-19 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712087', 'tblTempUsageDetail_20' ) start [2025-03-19 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712087', 'tblTempUsageDetail_20' ) end [2025-03-19 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712087', 'tblTempVendorCDR_20' ) start [2025-03-19 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712087', 'tblTempVendorCDR_20' ) end [2025-03-19 01:19:18] Production.INFO: ProcessCDR(1,14712087,1,1,2) [2025-03-19 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712087', 'tblTempUsageDetail_20' ) start [2025-03-19 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712087', 'tblTempUsageDetail_20' ) end [2025-03-19 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:19:21] Production.INFO: ==30609== Releasing lock... [2025-03-19 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:19:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:20:06 [end_date_ymd] => 2025-03-19 01:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:20:06' and `end` < '2025-03-19 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-03-19 01:20:19] Production.INFO: count ==526 [2025-03-19 01:20:19] Production.ERROR: pbx CDR StartTime 2025-03-18 22:20:06 - End Time 2025-03-19 01:20:06 [2025-03-19 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712093', 'tblTempUsageDetail_20' ) start [2025-03-19 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712093', 'tblTempUsageDetail_20' ) end [2025-03-19 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712093', 'tblTempVendorCDR_20' ) start [2025-03-19 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712093', 'tblTempVendorCDR_20' ) end [2025-03-19 01:20:19] Production.INFO: ProcessCDR(1,14712093,1,1,2) [2025-03-19 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712093', 'tblTempUsageDetail_20' ) start [2025-03-19 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712093', 'tblTempUsageDetail_20' ) end [2025-03-19 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:20:22] Production.INFO: ==30682== Releasing lock... [2025-03-19 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:20:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:21:06 [end_date_ymd] => 2025-03-19 01:21:06 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:21:06' and `end` < '2025-03-19 01: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-03-19 01:21:18] Production.INFO: count ==522 [2025-03-19 01:21:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:21:06 - End Time 2025-03-19 01:21:06 [2025-03-19 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712098', 'tblTempUsageDetail_20' ) start [2025-03-19 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712098', 'tblTempUsageDetail_20' ) end [2025-03-19 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712098', 'tblTempVendorCDR_20' ) start [2025-03-19 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712098', 'tblTempVendorCDR_20' ) end [2025-03-19 01:21:18] Production.INFO: ProcessCDR(1,14712098,1,1,2) [2025-03-19 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712098', 'tblTempUsageDetail_20' ) start [2025-03-19 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712098', 'tblTempUsageDetail_20' ) end [2025-03-19 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:21:21] Production.INFO: ==30757== Releasing lock... [2025-03-19 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:21:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 01:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:22:06 [end_date_ymd] => 2025-03-19 01:22:06 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:22:06' and `end` < '2025-03-19 01: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-03-19 01:22:18] Production.INFO: count ==519 [2025-03-19 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:22:06 - End Time 2025-03-19 01:22:06 [2025-03-19 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712103', 'tblTempUsageDetail_20' ) start [2025-03-19 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712103', 'tblTempUsageDetail_20' ) end [2025-03-19 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712103', 'tblTempVendorCDR_20' ) start [2025-03-19 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712103', 'tblTempVendorCDR_20' ) end [2025-03-19 01:22:18] Production.INFO: ProcessCDR(1,14712103,1,1,2) [2025-03-19 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712103', 'tblTempUsageDetail_20' ) start [2025-03-19 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712103', 'tblTempUsageDetail_20' ) end [2025-03-19 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:22:21] Production.INFO: ==30830== Releasing lock... [2025-03-19 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:23:05 [end_date_ymd] => 2025-03-19 01:23:05 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:23:05' and `end` < '2025-03-19 01: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-03-19 01:23:18] Production.INFO: count ==518 [2025-03-19 01:23:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:23:05 - End Time 2025-03-19 01:23:05 [2025-03-19 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712108', 'tblTempUsageDetail_20' ) start [2025-03-19 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712108', 'tblTempUsageDetail_20' ) end [2025-03-19 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712108', 'tblTempVendorCDR_20' ) start [2025-03-19 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712108', 'tblTempVendorCDR_20' ) end [2025-03-19 01:23:18] Production.INFO: ProcessCDR(1,14712108,1,1,2) [2025-03-19 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712108', 'tblTempUsageDetail_20' ) start [2025-03-19 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712108', 'tblTempUsageDetail_20' ) end [2025-03-19 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:23:21] Production.INFO: ==30904== Releasing lock... [2025-03-19 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:23:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-19 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:24:06 [end_date_ymd] => 2025-03-19 01:24:06 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:24:06' and `end` < '2025-03-19 01: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-03-19 01:24:18] Production.INFO: count ==515 [2025-03-19 01:24:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:24:06 - End Time 2025-03-19 01:24:06 [2025-03-19 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712113', 'tblTempUsageDetail_20' ) start [2025-03-19 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712113', 'tblTempUsageDetail_20' ) end [2025-03-19 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712113', 'tblTempVendorCDR_20' ) start [2025-03-19 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712113', 'tblTempVendorCDR_20' ) end [2025-03-19 01:24:18] Production.INFO: ProcessCDR(1,14712113,1,1,2) [2025-03-19 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712113', 'tblTempUsageDetail_20' ) start [2025-03-19 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712113', 'tblTempUsageDetail_20' ) end [2025-03-19 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:24:21] Production.INFO: ==30977== Releasing lock... [2025-03-19 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-19 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:25:05 [end_date_ymd] => 2025-03-19 01:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:25:05' and `end` < '2025-03-19 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-03-19 01:25:17] Production.INFO: count ==519 [2025-03-19 01:25:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:25:05 - End Time 2025-03-19 01:25:05 [2025-03-19 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712118', 'tblTempUsageDetail_20' ) start [2025-03-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712118', 'tblTempUsageDetail_20' ) end [2025-03-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712118', 'tblTempVendorCDR_20' ) start [2025-03-19 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712118', 'tblTempVendorCDR_20' ) end [2025-03-19 01:25:17] Production.INFO: ProcessCDR(1,14712118,1,1,2) [2025-03-19 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712118', 'tblTempUsageDetail_20' ) start [2025-03-19 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712118', 'tblTempUsageDetail_20' ) end [2025-03-19 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:25:21] Production.INFO: ==31048== Releasing lock... [2025-03-19 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:25:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:26:05 [end_date_ymd] => 2025-03-19 01:26:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:26:05' and `end` < '2025-03-19 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-03-19 01:26:17] Production.INFO: count ==518 [2025-03-19 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:26:05 - End Time 2025-03-19 01:26:05 [2025-03-19 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712123', 'tblTempUsageDetail_20' ) start [2025-03-19 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712123', 'tblTempUsageDetail_20' ) end [2025-03-19 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712123', 'tblTempVendorCDR_20' ) start [2025-03-19 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712123', 'tblTempVendorCDR_20' ) end [2025-03-19 01:26:18] Production.INFO: ProcessCDR(1,14712123,1,1,2) [2025-03-19 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712123', 'tblTempUsageDetail_20' ) start [2025-03-19 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712123', 'tblTempUsageDetail_20' ) end [2025-03-19 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:26:21] Production.INFO: ==31124== Releasing lock... [2025-03-19 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:26:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:27:05 [end_date_ymd] => 2025-03-19 01:27:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:27:05' and `end` < '2025-03-19 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-03-19 01:27:17] Production.INFO: count ==515 [2025-03-19 01:27:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:27:05 - End Time 2025-03-19 01:27:05 [2025-03-19 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712128', 'tblTempUsageDetail_20' ) start [2025-03-19 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712128', 'tblTempUsageDetail_20' ) end [2025-03-19 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712128', 'tblTempVendorCDR_20' ) start [2025-03-19 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712128', 'tblTempVendorCDR_20' ) end [2025-03-19 01:27:17] Production.INFO: ProcessCDR(1,14712128,1,1,2) [2025-03-19 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712128', 'tblTempUsageDetail_20' ) start [2025-03-19 01:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712128', 'tblTempUsageDetail_20' ) end [2025-03-19 01:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:27:20] Production.INFO: ==31195== Releasing lock... [2025-03-19 01:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:27:20] Production.INFO: 32.75 MB #Memory Used# [2025-03-19 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:28:06 [end_date_ymd] => 2025-03-19 01:28:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:28:06' and `end` < '2025-03-19 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-03-19 01:28:18] Production.INFO: count ==504 [2025-03-19 01:28:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:28:06 - End Time 2025-03-19 01:28:06 [2025-03-19 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712133', 'tblTempUsageDetail_20' ) start [2025-03-19 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712133', 'tblTempUsageDetail_20' ) end [2025-03-19 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712133', 'tblTempVendorCDR_20' ) start [2025-03-19 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712133', 'tblTempVendorCDR_20' ) end [2025-03-19 01:28:18] Production.INFO: ProcessCDR(1,14712133,1,1,2) [2025-03-19 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712133', 'tblTempUsageDetail_20' ) start [2025-03-19 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712133', 'tblTempUsageDetail_20' ) end [2025-03-19 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:28:22] Production.INFO: ==31268== Releasing lock... [2025-03-19 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:28:22] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:29:05 [end_date_ymd] => 2025-03-19 01:29:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:29:05' and `end` < '2025-03-19 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-03-19 01:29:17] Production.INFO: count ==500 [2025-03-19 01:29:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:29:05 - End Time 2025-03-19 01:29:05 [2025-03-19 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712138', 'tblTempUsageDetail_20' ) start [2025-03-19 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712138', 'tblTempUsageDetail_20' ) end [2025-03-19 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712138', 'tblTempVendorCDR_20' ) start [2025-03-19 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712138', 'tblTempVendorCDR_20' ) end [2025-03-19 01:29:17] Production.INFO: ProcessCDR(1,14712138,1,1,2) [2025-03-19 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712138', 'tblTempUsageDetail_20' ) start [2025-03-19 01:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712138', 'tblTempUsageDetail_20' ) end [2025-03-19 01:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:29:20] Production.INFO: ==31343== Releasing lock... [2025-03-19 01:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:29:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:30:06 [end_date_ymd] => 2025-03-19 01:30:06 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:30:06' and `end` < '2025-03-19 01: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-03-19 01:30:19] Production.INFO: count ==498 [2025-03-19 01:30:19] Production.ERROR: pbx CDR StartTime 2025-03-18 22:30:06 - End Time 2025-03-19 01:30:06 [2025-03-19 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712144', 'tblTempUsageDetail_20' ) start [2025-03-19 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712144', 'tblTempUsageDetail_20' ) end [2025-03-19 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712144', 'tblTempVendorCDR_20' ) start [2025-03-19 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712144', 'tblTempVendorCDR_20' ) end [2025-03-19 01:30:19] Production.INFO: ProcessCDR(1,14712144,1,1,2) [2025-03-19 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712144', 'tblTempUsageDetail_20' ) start [2025-03-19 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712144', 'tblTempUsageDetail_20' ) end [2025-03-19 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:30:22] Production.INFO: ==31463== Releasing lock... [2025-03-19 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 01:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:31:06 [end_date_ymd] => 2025-03-19 01:31:06 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:31:06' and `end` < '2025-03-19 01: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-03-19 01:31:18] Production.INFO: count ==489 [2025-03-19 01:31:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:31:06 - End Time 2025-03-19 01:31:06 [2025-03-19 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712149', 'tblTempUsageDetail_20' ) start [2025-03-19 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712149', 'tblTempUsageDetail_20' ) end [2025-03-19 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712149', 'tblTempVendorCDR_20' ) start [2025-03-19 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712149', 'tblTempVendorCDR_20' ) end [2025-03-19 01:31:18] Production.INFO: ProcessCDR(1,14712149,1,1,2) [2025-03-19 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712149', 'tblTempUsageDetail_20' ) start [2025-03-19 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712149', 'tblTempUsageDetail_20' ) end [2025-03-19 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:31:22] Production.INFO: ==31543== Releasing lock... [2025-03-19 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:31:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:32:05 [end_date_ymd] => 2025-03-19 01:32:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:32:05' and `end` < '2025-03-19 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-03-19 01:32:18] Production.INFO: count ==487 [2025-03-19 01:32:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:32:05 - End Time 2025-03-19 01:32:05 [2025-03-19 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712154', 'tblTempUsageDetail_20' ) start [2025-03-19 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712154', 'tblTempUsageDetail_20' ) end [2025-03-19 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712154', 'tblTempVendorCDR_20' ) start [2025-03-19 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712154', 'tblTempVendorCDR_20' ) end [2025-03-19 01:32:18] Production.INFO: ProcessCDR(1,14712154,1,1,2) [2025-03-19 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712154', 'tblTempUsageDetail_20' ) start [2025-03-19 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712154', 'tblTempUsageDetail_20' ) end [2025-03-19 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:32:21] Production.INFO: ==31614== Releasing lock... [2025-03-19 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:32:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:33:05 [end_date_ymd] => 2025-03-19 01:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:33:05' and `end` < '2025-03-19 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-03-19 01:33:18] Production.INFO: count ==486 [2025-03-19 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:33:05 - End Time 2025-03-19 01:33:05 [2025-03-19 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712159', 'tblTempUsageDetail_20' ) start [2025-03-19 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712159', 'tblTempUsageDetail_20' ) end [2025-03-19 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712159', 'tblTempVendorCDR_20' ) start [2025-03-19 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712159', 'tblTempVendorCDR_20' ) end [2025-03-19 01:33:18] Production.INFO: ProcessCDR(1,14712159,1,1,2) [2025-03-19 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712159', 'tblTempUsageDetail_20' ) start [2025-03-19 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712159', 'tblTempUsageDetail_20' ) end [2025-03-19 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:33:21] Production.INFO: ==31684== Releasing lock... [2025-03-19 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:34:06 [end_date_ymd] => 2025-03-19 01:34:06 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:34:06' and `end` < '2025-03-19 01: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-03-19 01:34:18] Production.INFO: count ==486 [2025-03-19 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:34:06 - End Time 2025-03-19 01:34:06 [2025-03-19 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712164', 'tblTempUsageDetail_20' ) start [2025-03-19 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712164', 'tblTempUsageDetail_20' ) end [2025-03-19 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712164', 'tblTempVendorCDR_20' ) start [2025-03-19 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712164', 'tblTempVendorCDR_20' ) end [2025-03-19 01:34:18] Production.INFO: ProcessCDR(1,14712164,1,1,2) [2025-03-19 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712164', 'tblTempUsageDetail_20' ) start [2025-03-19 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712164', 'tblTempUsageDetail_20' ) end [2025-03-19 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:34:21] Production.INFO: ==31757== Releasing lock... [2025-03-19 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:35:05 [end_date_ymd] => 2025-03-19 01:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:35:05' and `end` < '2025-03-19 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-03-19 01:35:17] Production.INFO: count ==482 [2025-03-19 01:35:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:35:05 - End Time 2025-03-19 01:35:05 [2025-03-19 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712169', 'tblTempUsageDetail_20' ) start [2025-03-19 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712169', 'tblTempUsageDetail_20' ) end [2025-03-19 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712169', 'tblTempVendorCDR_20' ) start [2025-03-19 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712169', 'tblTempVendorCDR_20' ) end [2025-03-19 01:35:17] Production.INFO: ProcessCDR(1,14712169,1,1,2) [2025-03-19 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712169', 'tblTempUsageDetail_20' ) start [2025-03-19 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712169', 'tblTempUsageDetail_20' ) end [2025-03-19 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:35:21] Production.INFO: ==31829== Releasing lock... [2025-03-19 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:36:05 [end_date_ymd] => 2025-03-19 01:36:05 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:36:05' and `end` < '2025-03-19 01: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-03-19 01:36:17] Production.INFO: count ==476 [2025-03-19 01:36:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:36:05 - End Time 2025-03-19 01:36:05 [2025-03-19 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712174', 'tblTempUsageDetail_20' ) start [2025-03-19 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712174', 'tblTempUsageDetail_20' ) end [2025-03-19 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712174', 'tblTempVendorCDR_20' ) start [2025-03-19 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712174', 'tblTempVendorCDR_20' ) end [2025-03-19 01:36:17] Production.INFO: ProcessCDR(1,14712174,1,1,2) [2025-03-19 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712174', 'tblTempUsageDetail_20' ) start [2025-03-19 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712174', 'tblTempUsageDetail_20' ) end [2025-03-19 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:36:21] Production.INFO: ==31899== Releasing lock... [2025-03-19 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:36:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-19 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:37:05 [end_date_ymd] => 2025-03-19 01:37:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:37:05' and `end` < '2025-03-19 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-03-19 01:37:18] Production.INFO: count ==473 [2025-03-19 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:37:05 - End Time 2025-03-19 01:37:05 [2025-03-19 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712179', 'tblTempUsageDetail_20' ) start [2025-03-19 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712179', 'tblTempUsageDetail_20' ) end [2025-03-19 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712179', 'tblTempVendorCDR_20' ) start [2025-03-19 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712179', 'tblTempVendorCDR_20' ) end [2025-03-19 01:37:18] Production.INFO: ProcessCDR(1,14712179,1,1,2) [2025-03-19 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712179', 'tblTempUsageDetail_20' ) start [2025-03-19 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712179', 'tblTempUsageDetail_20' ) end [2025-03-19 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:37:21] Production.INFO: ==31974== Releasing lock... [2025-03-19 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:38:05 [end_date_ymd] => 2025-03-19 01:38:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:38:05' and `end` < '2025-03-19 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-03-19 01:38:17] Production.INFO: count ==469 [2025-03-19 01:38:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:38:05 - End Time 2025-03-19 01:38:05 [2025-03-19 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712184', 'tblTempUsageDetail_20' ) start [2025-03-19 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712184', 'tblTempUsageDetail_20' ) end [2025-03-19 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712184', 'tblTempVendorCDR_20' ) start [2025-03-19 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712184', 'tblTempVendorCDR_20' ) end [2025-03-19 01:38:18] Production.INFO: ProcessCDR(1,14712184,1,1,2) [2025-03-19 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712184', 'tblTempUsageDetail_20' ) start [2025-03-19 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712184', 'tblTempUsageDetail_20' ) end [2025-03-19 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:38:21] Production.INFO: ==32049== Releasing lock... [2025-03-19 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:38:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:39:05 [end_date_ymd] => 2025-03-19 01:39:05 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:39:05' and `end` < '2025-03-19 01: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-03-19 01:39:17] Production.INFO: count ==466 [2025-03-19 01:39:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:39:05 - End Time 2025-03-19 01:39:05 [2025-03-19 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712189', 'tblTempUsageDetail_20' ) start [2025-03-19 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712189', 'tblTempUsageDetail_20' ) end [2025-03-19 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712189', 'tblTempVendorCDR_20' ) start [2025-03-19 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712189', 'tblTempVendorCDR_20' ) end [2025-03-19 01:39:17] Production.INFO: ProcessCDR(1,14712189,1,1,2) [2025-03-19 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712189', 'tblTempUsageDetail_20' ) start [2025-03-19 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712189', 'tblTempUsageDetail_20' ) end [2025-03-19 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:39:21] Production.INFO: ==32120== Releasing lock... [2025-03-19 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:39:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:40:06 [end_date_ymd] => 2025-03-19 01:40:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:40:06' and `end` < '2025-03-19 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-03-19 01:40:18] Production.INFO: count ==465 [2025-03-19 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:40:06 - End Time 2025-03-19 01:40:06 [2025-03-19 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712195', 'tblTempUsageDetail_20' ) start [2025-03-19 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712195', 'tblTempUsageDetail_20' ) end [2025-03-19 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712195', 'tblTempVendorCDR_20' ) start [2025-03-19 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712195', 'tblTempVendorCDR_20' ) end [2025-03-19 01:40:19] Production.INFO: ProcessCDR(1,14712195,1,1,2) [2025-03-19 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712195', 'tblTempUsageDetail_20' ) start [2025-03-19 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712195', 'tblTempUsageDetail_20' ) end [2025-03-19 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:40:22] Production.INFO: ==32194== Releasing lock... [2025-03-19 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:40:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:41:05 [end_date_ymd] => 2025-03-19 01:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:41:05' and `end` < '2025-03-19 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-03-19 01:41:17] Production.INFO: count ==465 [2025-03-19 01:41:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:41:05 - End Time 2025-03-19 01:41:05 [2025-03-19 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712200', 'tblTempUsageDetail_20' ) start [2025-03-19 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712200', 'tblTempUsageDetail_20' ) end [2025-03-19 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712200', 'tblTempVendorCDR_20' ) start [2025-03-19 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712200', 'tblTempVendorCDR_20' ) end [2025-03-19 01:41:17] Production.INFO: ProcessCDR(1,14712200,1,1,2) [2025-03-19 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712200', 'tblTempUsageDetail_20' ) start [2025-03-19 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712200', 'tblTempUsageDetail_20' ) end [2025-03-19 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:41:21] Production.INFO: ==32270== Releasing lock... [2025-03-19 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:41:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:42:05 [end_date_ymd] => 2025-03-19 01:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:42:05' and `end` < '2025-03-19 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-03-19 01:42:17] Production.INFO: count ==464 [2025-03-19 01:42:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:42:05 - End Time 2025-03-19 01:42:05 [2025-03-19 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712205', 'tblTempUsageDetail_20' ) start [2025-03-19 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712205', 'tblTempUsageDetail_20' ) end [2025-03-19 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712205', 'tblTempVendorCDR_20' ) start [2025-03-19 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712205', 'tblTempVendorCDR_20' ) end [2025-03-19 01:42:18] Production.INFO: ProcessCDR(1,14712205,1,1,2) [2025-03-19 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712205', 'tblTempUsageDetail_20' ) start [2025-03-19 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712205', 'tblTempUsageDetail_20' ) end [2025-03-19 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:42:21] Production.INFO: ==32343== Releasing lock... [2025-03-19 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:42:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:43:05 [end_date_ymd] => 2025-03-19 01:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:43:05' and `end` < '2025-03-19 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-03-19 01:43:17] Production.INFO: count ==463 [2025-03-19 01:43:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:43:05 - End Time 2025-03-19 01:43:05 [2025-03-19 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712210', 'tblTempUsageDetail_20' ) start [2025-03-19 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712210', 'tblTempUsageDetail_20' ) end [2025-03-19 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712210', 'tblTempVendorCDR_20' ) start [2025-03-19 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712210', 'tblTempVendorCDR_20' ) end [2025-03-19 01:43:17] Production.INFO: ProcessCDR(1,14712210,1,1,2) [2025-03-19 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712210', 'tblTempUsageDetail_20' ) start [2025-03-19 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712210', 'tblTempUsageDetail_20' ) end [2025-03-19 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:43:21] Production.INFO: ==32414== Releasing lock... [2025-03-19 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:43:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 01:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:44:04 [end_date_ymd] => 2025-03-19 01:44:04 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:44:04' and `end` < '2025-03-19 01: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-03-19 01:44:17] Production.INFO: count ==457 [2025-03-19 01:44:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:44:04 - End Time 2025-03-19 01:44:04 [2025-03-19 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712215', 'tblTempUsageDetail_20' ) start [2025-03-19 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712215', 'tblTempUsageDetail_20' ) end [2025-03-19 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712215', 'tblTempVendorCDR_20' ) start [2025-03-19 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712215', 'tblTempVendorCDR_20' ) end [2025-03-19 01:44:17] Production.INFO: ProcessCDR(1,14712215,1,1,2) [2025-03-19 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712215', 'tblTempUsageDetail_20' ) start [2025-03-19 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712215', 'tblTempUsageDetail_20' ) end [2025-03-19 01:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:44:20] Production.INFO: ==32487== Releasing lock... [2025-03-19 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:44:20] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:45:06 [end_date_ymd] => 2025-03-19 01:45:06 [RateCDR] => 1 ) [2025-03-19 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-18 22:45:06' and `end` < '2025-03-19 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 01:45:18] Production.INFO: count ==457 [2025-03-19 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:45:06 - End Time 2025-03-19 01:45:06 [2025-03-19 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712220', 'tblTempUsageDetail_20' ) start [2025-03-19 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712220', 'tblTempUsageDetail_20' ) end [2025-03-19 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712220', 'tblTempVendorCDR_20' ) start [2025-03-19 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712220', 'tblTempVendorCDR_20' ) end [2025-03-19 01:45:18] Production.INFO: ProcessCDR(1,14712220,1,1,2) [2025-03-19 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712220', 'tblTempUsageDetail_20' ) start [2025-03-19 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712220', 'tblTempUsageDetail_20' ) end [2025-03-19 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:45:21] Production.INFO: ==32604== Releasing lock... [2025-03-19 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:45:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:46:05 [end_date_ymd] => 2025-03-19 01:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:46:05' and `end` < '2025-03-19 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-03-19 01:46:17] Production.INFO: count ==457 [2025-03-19 01:46:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:46:05 - End Time 2025-03-19 01:46:05 [2025-03-19 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712225', 'tblTempUsageDetail_20' ) start [2025-03-19 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712225', 'tblTempUsageDetail_20' ) end [2025-03-19 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712225', 'tblTempVendorCDR_20' ) start [2025-03-19 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712225', 'tblTempVendorCDR_20' ) end [2025-03-19 01:46:17] Production.INFO: ProcessCDR(1,14712225,1,1,2) [2025-03-19 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712225', 'tblTempUsageDetail_20' ) start [2025-03-19 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712225', 'tblTempUsageDetail_20' ) end [2025-03-19 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:46:21] Production.INFO: ==32676== Releasing lock... [2025-03-19 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:46:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:47:05 [end_date_ymd] => 2025-03-19 01:47:05 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:47:05' and `end` < '2025-03-19 01: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-03-19 01:47:17] Production.INFO: count ==451 [2025-03-19 01:47:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:47:05 - End Time 2025-03-19 01:47:05 [2025-03-19 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712230', 'tblTempUsageDetail_20' ) start [2025-03-19 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712230', 'tblTempUsageDetail_20' ) end [2025-03-19 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712230', 'tblTempVendorCDR_20' ) start [2025-03-19 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712230', 'tblTempVendorCDR_20' ) end [2025-03-19 01:47:17] Production.INFO: ProcessCDR(1,14712230,1,1,2) [2025-03-19 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712230', 'tblTempUsageDetail_20' ) start [2025-03-19 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712230', 'tblTempUsageDetail_20' ) end [2025-03-19 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:47:21] Production.INFO: ==32754== Releasing lock... [2025-03-19 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:47:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:48:05 [end_date_ymd] => 2025-03-19 01:48:05 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:48:05' and `end` < '2025-03-19 01: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-03-19 01:48:17] Production.INFO: count ==458 [2025-03-19 01:48:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:48:05 - End Time 2025-03-19 01:48:05 [2025-03-19 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712235', 'tblTempUsageDetail_20' ) start [2025-03-19 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712235', 'tblTempUsageDetail_20' ) end [2025-03-19 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712235', 'tblTempVendorCDR_20' ) start [2025-03-19 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712235', 'tblTempVendorCDR_20' ) end [2025-03-19 01:48:17] Production.INFO: ProcessCDR(1,14712235,1,1,2) [2025-03-19 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712235', 'tblTempUsageDetail_20' ) start [2025-03-19 01:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712235', 'tblTempUsageDetail_20' ) end [2025-03-19 01:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:48:20] Production.INFO: ==378== Releasing lock... [2025-03-19 01:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:48:20] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:49:06 [end_date_ymd] => 2025-03-19 01:49:06 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:49:06' and `end` < '2025-03-19 01: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-03-19 01:49:18] Production.INFO: count ==458 [2025-03-19 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:49:06 - End Time 2025-03-19 01:49:06 [2025-03-19 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712240', 'tblTempUsageDetail_20' ) start [2025-03-19 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712240', 'tblTempUsageDetail_20' ) end [2025-03-19 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712240', 'tblTempVendorCDR_20' ) start [2025-03-19 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712240', 'tblTempVendorCDR_20' ) end [2025-03-19 01:49:18] Production.INFO: ProcessCDR(1,14712240,1,1,2) [2025-03-19 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712240', 'tblTempUsageDetail_20' ) start [2025-03-19 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712240', 'tblTempUsageDetail_20' ) end [2025-03-19 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:49:21] Production.INFO: ==456== Releasing lock... [2025-03-19 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:49:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:50:06 [end_date_ymd] => 2025-03-19 01:50:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:50:06' and `end` < '2025-03-19 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-03-19 01:50:18] Production.INFO: count ==453 [2025-03-19 01:50:19] Production.ERROR: pbx CDR StartTime 2025-03-18 22:50:06 - End Time 2025-03-19 01:50:06 [2025-03-19 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712246', 'tblTempUsageDetail_20' ) start [2025-03-19 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712246', 'tblTempUsageDetail_20' ) end [2025-03-19 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712246', 'tblTempVendorCDR_20' ) start [2025-03-19 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712246', 'tblTempVendorCDR_20' ) end [2025-03-19 01:50:19] Production.INFO: ProcessCDR(1,14712246,1,1,2) [2025-03-19 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712246', 'tblTempUsageDetail_20' ) start [2025-03-19 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712246', 'tblTempUsageDetail_20' ) end [2025-03-19 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:50:22] Production.INFO: ==538== Releasing lock... [2025-03-19 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:51:06 [end_date_ymd] => 2025-03-19 01:51:06 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:51:06' and `end` < '2025-03-19 01: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-03-19 01:51:18] Production.INFO: count ==441 [2025-03-19 01:51:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:51:06 - End Time 2025-03-19 01:51:06 [2025-03-19 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712251', 'tblTempUsageDetail_20' ) start [2025-03-19 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712251', 'tblTempUsageDetail_20' ) end [2025-03-19 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712251', 'tblTempVendorCDR_20' ) start [2025-03-19 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712251', 'tblTempVendorCDR_20' ) end [2025-03-19 01:51:18] Production.INFO: ProcessCDR(1,14712251,1,1,2) [2025-03-19 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712251', 'tblTempUsageDetail_20' ) start [2025-03-19 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712251', 'tblTempUsageDetail_20' ) end [2025-03-19 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:51:21] Production.INFO: ==624== Releasing lock... [2025-03-19 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:51:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:52:05 [end_date_ymd] => 2025-03-19 01:52:05 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:52:05' and `end` < '2025-03-19 01: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-03-19 01:52:17] Production.INFO: count ==440 [2025-03-19 01:52:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:52:05 - End Time 2025-03-19 01:52:05 [2025-03-19 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712256', 'tblTempUsageDetail_20' ) start [2025-03-19 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712256', 'tblTempUsageDetail_20' ) end [2025-03-19 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712256', 'tblTempVendorCDR_20' ) start [2025-03-19 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712256', 'tblTempVendorCDR_20' ) end [2025-03-19 01:52:17] Production.INFO: ProcessCDR(1,14712256,1,1,2) [2025-03-19 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712256', 'tblTempUsageDetail_20' ) start [2025-03-19 01:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712256', 'tblTempUsageDetail_20' ) end [2025-03-19 01:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:52:20] Production.INFO: ==720== Releasing lock... [2025-03-19 01:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:52:20] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:53:05 [end_date_ymd] => 2025-03-19 01:53:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:53:05' and `end` < '2025-03-19 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-03-19 01:53:17] Production.INFO: count ==427 [2025-03-19 01:53:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:53:05 - End Time 2025-03-19 01:53:05 [2025-03-19 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712261', 'tblTempUsageDetail_20' ) start [2025-03-19 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712261', 'tblTempUsageDetail_20' ) end [2025-03-19 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712261', 'tblTempVendorCDR_20' ) start [2025-03-19 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712261', 'tblTempVendorCDR_20' ) end [2025-03-19 01:53:18] Production.INFO: ProcessCDR(1,14712261,1,1,2) [2025-03-19 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712261', 'tblTempUsageDetail_20' ) start [2025-03-19 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712261', 'tblTempUsageDetail_20' ) end [2025-03-19 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:53:21] Production.INFO: ==803== Releasing lock... [2025-03-19 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:53:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:54:05 [end_date_ymd] => 2025-03-19 01:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:54:05' and `end` < '2025-03-19 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-03-19 01:54:17] Production.INFO: count ==412 [2025-03-19 01:54:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:54:05 - End Time 2025-03-19 01:54:05 [2025-03-19 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712266', 'tblTempUsageDetail_20' ) start [2025-03-19 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712266', 'tblTempUsageDetail_20' ) end [2025-03-19 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712266', 'tblTempVendorCDR_20' ) start [2025-03-19 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712266', 'tblTempVendorCDR_20' ) end [2025-03-19 01:54:17] Production.INFO: ProcessCDR(1,14712266,1,1,2) [2025-03-19 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712266', 'tblTempUsageDetail_20' ) start [2025-03-19 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712266', 'tblTempUsageDetail_20' ) end [2025-03-19 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:54:21] Production.INFO: ==879== Releasing lock... [2025-03-19 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:54:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:55:05 [end_date_ymd] => 2025-03-19 01:55:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 22:55:05' and `end` < '2025-03-19 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-03-19 01:55:18] Production.INFO: count ==411 [2025-03-19 01:55:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:55:05 - End Time 2025-03-19 01:55:05 [2025-03-19 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712271', 'tblTempUsageDetail_20' ) start [2025-03-19 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712271', 'tblTempUsageDetail_20' ) end [2025-03-19 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712271', 'tblTempVendorCDR_20' ) start [2025-03-19 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712271', 'tblTempVendorCDR_20' ) end [2025-03-19 01:55:18] Production.INFO: ProcessCDR(1,14712271,1,1,2) [2025-03-19 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712271', 'tblTempUsageDetail_20' ) start [2025-03-19 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712271', 'tblTempUsageDetail_20' ) end [2025-03-19 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:55:21] Production.INFO: ==961== Releasing lock... [2025-03-19 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:55:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:56:06 [end_date_ymd] => 2025-03-19 01:56:06 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:56:06' and `end` < '2025-03-19 01: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-03-19 01:56:18] Production.INFO: count ==411 [2025-03-19 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:56:06 - End Time 2025-03-19 01:56:06 [2025-03-19 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712276', 'tblTempUsageDetail_20' ) start [2025-03-19 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712276', 'tblTempUsageDetail_20' ) end [2025-03-19 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712276', 'tblTempVendorCDR_20' ) start [2025-03-19 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712276', 'tblTempVendorCDR_20' ) end [2025-03-19 01:56:18] Production.INFO: ProcessCDR(1,14712276,1,1,2) [2025-03-19 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712276', 'tblTempUsageDetail_20' ) start [2025-03-19 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712276', 'tblTempUsageDetail_20' ) end [2025-03-19 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:56:21] Production.INFO: ==1034== Releasing lock... [2025-03-19 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:56:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:57:05 [end_date_ymd] => 2025-03-19 01:57:05 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:57:05' and `end` < '2025-03-19 01: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-03-19 01:57:17] Production.INFO: count ==411 [2025-03-19 01:57:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:57:05 - End Time 2025-03-19 01:57:05 [2025-03-19 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712281', 'tblTempUsageDetail_20' ) start [2025-03-19 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712281', 'tblTempUsageDetail_20' ) end [2025-03-19 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712281', 'tblTempVendorCDR_20' ) start [2025-03-19 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712281', 'tblTempVendorCDR_20' ) end [2025-03-19 01:57:18] Production.INFO: ProcessCDR(1,14712281,1,1,2) [2025-03-19 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712281', 'tblTempUsageDetail_20' ) start [2025-03-19 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712281', 'tblTempUsageDetail_20' ) end [2025-03-19 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:57:21] Production.INFO: ==1112== Releasing lock... [2025-03-19 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:57:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:58:06 [end_date_ymd] => 2025-03-19 01:58:06 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:58:06' and `end` < '2025-03-19 01: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-03-19 01:58:18] Production.INFO: count ==407 [2025-03-19 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-18 22:58:06 - End Time 2025-03-19 01:58:06 [2025-03-19 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712286', 'tblTempUsageDetail_20' ) start [2025-03-19 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712286', 'tblTempUsageDetail_20' ) end [2025-03-19 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712286', 'tblTempVendorCDR_20' ) start [2025-03-19 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712286', 'tblTempVendorCDR_20' ) end [2025-03-19 01:58:18] Production.INFO: ProcessCDR(1,14712286,1,1,2) [2025-03-19 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712286', 'tblTempUsageDetail_20' ) start [2025-03-19 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712286', 'tblTempUsageDetail_20' ) end [2025-03-19 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:58:21] Production.INFO: ==1200== Releasing lock... [2025-03-19 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:58:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 01:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 22:59:04 [end_date_ymd] => 2025-03-19 01:59:04 [RateCDR] => 1 ) [2025-03-19 01: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-03-18 22:59:04' and `end` < '2025-03-19 01: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-03-19 01:59:17] Production.INFO: count ==411 [2025-03-19 01:59:17] Production.ERROR: pbx CDR StartTime 2025-03-18 22:59:04 - End Time 2025-03-19 01:59:04 [2025-03-19 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712291', 'tblTempUsageDetail_20' ) start [2025-03-19 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712291', 'tblTempUsageDetail_20' ) end [2025-03-19 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712291', 'tblTempVendorCDR_20' ) start [2025-03-19 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712291', 'tblTempVendorCDR_20' ) end [2025-03-19 01:59:17] Production.INFO: ProcessCDR(1,14712291,1,1,2) [2025-03-19 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712291', 'tblTempUsageDetail_20' ) start [2025-03-19 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712291', 'tblTempUsageDetail_20' ) end [2025-03-19 01:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 01:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 01:59:20] Production.INFO: ==1286== Releasing lock... [2025-03-19 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 01:59:20] Production.INFO: 32 MB #Memory Used# [2025-03-19 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:00:07 [end_date_ymd] => 2025-03-19 02:00:07 [RateCDR] => 1 ) [2025-03-19 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-18 23:00:07' and `end` < '2025-03-19 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 02:00:19] Production.INFO: count ==417 [2025-03-19 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-18 23:00:07 - End Time 2025-03-19 02:00:07 [2025-03-19 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712297', 'tblTempUsageDetail_20' ) start [2025-03-19 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712297', 'tblTempUsageDetail_20' ) end [2025-03-19 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712297', 'tblTempVendorCDR_20' ) start [2025-03-19 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712297', 'tblTempVendorCDR_20' ) end [2025-03-19 02:00:19] Production.INFO: ProcessCDR(1,14712297,1,1,2) [2025-03-19 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712297', 'tblTempUsageDetail_20' ) start [2025-03-19 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712297', 'tblTempUsageDetail_20' ) end [2025-03-19 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:00:23] Production.INFO: ==1364== Releasing lock... [2025-03-19 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:00:23] Production.INFO: 32 MB #Memory Used# [2025-03-19 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:01:05 [end_date_ymd] => 2025-03-19 02:01:05 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:01:05' and `end` < '2025-03-19 02: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-03-19 02:01:18] Production.INFO: count ==420 [2025-03-19 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:01:05 - End Time 2025-03-19 02:01:05 [2025-03-19 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712302', 'tblTempUsageDetail_20' ) start [2025-03-19 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712302', 'tblTempUsageDetail_20' ) end [2025-03-19 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712302', 'tblTempVendorCDR_20' ) start [2025-03-19 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712302', 'tblTempVendorCDR_20' ) end [2025-03-19 02:01:18] Production.INFO: ProcessCDR(1,14712302,1,1,2) [2025-03-19 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712302', 'tblTempUsageDetail_20' ) start [2025-03-19 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712302', 'tblTempUsageDetail_20' ) end [2025-03-19 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:01:22] Production.INFO: ==1499== Releasing lock... [2025-03-19 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:01:22] Production.INFO: 32 MB #Memory Used# [2025-03-19 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:02:05 [end_date_ymd] => 2025-03-19 02:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:02:05' and `end` < '2025-03-19 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-03-19 02:02:18] Production.INFO: count ==420 [2025-03-19 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:02:05 - End Time 2025-03-19 02:02:05 [2025-03-19 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712307', 'tblTempUsageDetail_20' ) start [2025-03-19 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712307', 'tblTempUsageDetail_20' ) end [2025-03-19 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712307', 'tblTempVendorCDR_20' ) start [2025-03-19 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712307', 'tblTempVendorCDR_20' ) end [2025-03-19 02:02:18] Production.INFO: ProcessCDR(1,14712307,1,1,2) [2025-03-19 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712307', 'tblTempUsageDetail_20' ) start [2025-03-19 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712307', 'tblTempUsageDetail_20' ) end [2025-03-19 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:02:21] Production.INFO: ==1695== Releasing lock... [2025-03-19 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:02:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:03:05 [end_date_ymd] => 2025-03-19 02:03:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:03:05' and `end` < '2025-03-19 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-03-19 02:03:17] Production.INFO: count ==418 [2025-03-19 02:03:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:03:05 - End Time 2025-03-19 02:03:05 [2025-03-19 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712312', 'tblTempUsageDetail_20' ) start [2025-03-19 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712312', 'tblTempUsageDetail_20' ) end [2025-03-19 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712312', 'tblTempVendorCDR_20' ) start [2025-03-19 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712312', 'tblTempVendorCDR_20' ) end [2025-03-19 02:03:17] Production.INFO: ProcessCDR(1,14712312,1,1,2) [2025-03-19 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712312', 'tblTempUsageDetail_20' ) start [2025-03-19 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712312', 'tblTempUsageDetail_20' ) end [2025-03-19 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:03:21] Production.INFO: ==1774== Releasing lock... [2025-03-19 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:03:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:04:06 [end_date_ymd] => 2025-03-19 02:04:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:04:06' and `end` < '2025-03-19 02: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-03-19 02:04:18] Production.INFO: count ==418 [2025-03-19 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:04:06 - End Time 2025-03-19 02:04:06 [2025-03-19 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712317', 'tblTempUsageDetail_20' ) start [2025-03-19 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712317', 'tblTempUsageDetail_20' ) end [2025-03-19 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712317', 'tblTempVendorCDR_20' ) start [2025-03-19 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712317', 'tblTempVendorCDR_20' ) end [2025-03-19 02:04:18] Production.INFO: ProcessCDR(1,14712317,1,1,2) [2025-03-19 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712317', 'tblTempUsageDetail_20' ) start [2025-03-19 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712317', 'tblTempUsageDetail_20' ) end [2025-03-19 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:04:22] Production.INFO: ==1859== Releasing lock... [2025-03-19 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:04:22] Production.INFO: 32 MB #Memory Used# [2025-03-19 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:05:05 [end_date_ymd] => 2025-03-19 02:05:05 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:05:05' and `end` < '2025-03-19 02: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-03-19 02:05:17] Production.INFO: count ==413 [2025-03-19 02:05:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:05:05 - End Time 2025-03-19 02:05:05 [2025-03-19 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712322', 'tblTempUsageDetail_20' ) start [2025-03-19 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712322', 'tblTempUsageDetail_20' ) end [2025-03-19 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712322', 'tblTempVendorCDR_20' ) start [2025-03-19 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712322', 'tblTempVendorCDR_20' ) end [2025-03-19 02:05:17] Production.INFO: ProcessCDR(1,14712322,1,1,2) [2025-03-19 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712322', 'tblTempUsageDetail_20' ) start [2025-03-19 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712322', 'tblTempUsageDetail_20' ) end [2025-03-19 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:05:21] Production.INFO: ==1931== Releasing lock... [2025-03-19 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:05:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:06:06 [end_date_ymd] => 2025-03-19 02:06:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:06:06' and `end` < '2025-03-19 02: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-03-19 02:06:18] Production.INFO: count ==413 [2025-03-19 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:06:06 - End Time 2025-03-19 02:06:06 [2025-03-19 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712327', 'tblTempUsageDetail_20' ) start [2025-03-19 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712327', 'tblTempUsageDetail_20' ) end [2025-03-19 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712327', 'tblTempVendorCDR_20' ) start [2025-03-19 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712327', 'tblTempVendorCDR_20' ) end [2025-03-19 02:06:18] Production.INFO: ProcessCDR(1,14712327,1,1,2) [2025-03-19 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712327', 'tblTempUsageDetail_20' ) start [2025-03-19 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712327', 'tblTempUsageDetail_20' ) end [2025-03-19 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:06:22] Production.INFO: ==2006== Releasing lock... [2025-03-19 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:06:22] Production.INFO: 32 MB #Memory Used# [2025-03-19 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:07:05 [end_date_ymd] => 2025-03-19 02:07:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:07:05' and `end` < '2025-03-19 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-03-19 02:07:17] Production.INFO: count ==411 [2025-03-19 02:07:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:07:05 - End Time 2025-03-19 02:07:05 [2025-03-19 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712332', 'tblTempUsageDetail_20' ) start [2025-03-19 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712332', 'tblTempUsageDetail_20' ) end [2025-03-19 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712332', 'tblTempVendorCDR_20' ) start [2025-03-19 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712332', 'tblTempVendorCDR_20' ) end [2025-03-19 02:07:17] Production.INFO: ProcessCDR(1,14712332,1,1,2) [2025-03-19 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712332', 'tblTempUsageDetail_20' ) start [2025-03-19 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712332', 'tblTempUsageDetail_20' ) end [2025-03-19 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:07:21] Production.INFO: ==2086== Releasing lock... [2025-03-19 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:07:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:08:05 [end_date_ymd] => 2025-03-19 02:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:08:05' and `end` < '2025-03-19 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-03-19 02:08:18] Production.INFO: count ==411 [2025-03-19 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:08:05 - End Time 2025-03-19 02:08:05 [2025-03-19 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712337', 'tblTempUsageDetail_20' ) start [2025-03-19 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712337', 'tblTempUsageDetail_20' ) end [2025-03-19 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712337', 'tblTempVendorCDR_20' ) start [2025-03-19 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712337', 'tblTempVendorCDR_20' ) end [2025-03-19 02:08:18] Production.INFO: ProcessCDR(1,14712337,1,1,2) [2025-03-19 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712337', 'tblTempUsageDetail_20' ) start [2025-03-19 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712337', 'tblTempUsageDetail_20' ) end [2025-03-19 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:08:21] Production.INFO: ==2164== Releasing lock... [2025-03-19 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:08:21] Production.INFO: 32 MB #Memory Used# [2025-03-19 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:09:05 [end_date_ymd] => 2025-03-19 02:09:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:09:05' and `end` < '2025-03-19 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-03-19 02:09:17] Production.INFO: count ==409 [2025-03-19 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:09:05 - End Time 2025-03-19 02:09:05 [2025-03-19 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712342', 'tblTempUsageDetail_20' ) start [2025-03-19 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712342', 'tblTempUsageDetail_20' ) end [2025-03-19 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712342', 'tblTempVendorCDR_20' ) start [2025-03-19 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712342', 'tblTempVendorCDR_20' ) end [2025-03-19 02:09:17] Production.INFO: ProcessCDR(1,14712342,1,1,2) [2025-03-19 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712342', 'tblTempUsageDetail_20' ) start [2025-03-19 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712342', 'tblTempUsageDetail_20' ) end [2025-03-19 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:09:21] Production.INFO: ==2243== Releasing lock... [2025-03-19 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:09:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:10:06 [end_date_ymd] => 2025-03-19 02:10:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:10:06' and `end` < '2025-03-19 02: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-03-19 02:10:18] Production.INFO: count ==409 [2025-03-19 02:10:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:10:06 - End Time 2025-03-19 02:10:06 [2025-03-19 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712348', 'tblTempUsageDetail_20' ) start [2025-03-19 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712348', 'tblTempUsageDetail_20' ) end [2025-03-19 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712348', 'tblTempVendorCDR_20' ) start [2025-03-19 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712348', 'tblTempVendorCDR_20' ) end [2025-03-19 02:10:18] Production.INFO: ProcessCDR(1,14712348,1,1,2) [2025-03-19 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712348', 'tblTempUsageDetail_20' ) start [2025-03-19 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712348', 'tblTempUsageDetail_20' ) end [2025-03-19 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:10:22] Production.INFO: ==2323== Releasing lock... [2025-03-19 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:10:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:11:05 [end_date_ymd] => 2025-03-19 02:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:11:05' and `end` < '2025-03-19 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-03-19 02:11:17] Production.INFO: count ==408 [2025-03-19 02:11:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:11:05 - End Time 2025-03-19 02:11:05 [2025-03-19 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712353', 'tblTempUsageDetail_20' ) start [2025-03-19 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712353', 'tblTempUsageDetail_20' ) end [2025-03-19 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712353', 'tblTempVendorCDR_20' ) start [2025-03-19 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712353', 'tblTempVendorCDR_20' ) end [2025-03-19 02:11:17] Production.INFO: ProcessCDR(1,14712353,1,1,2) [2025-03-19 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712353', 'tblTempUsageDetail_20' ) start [2025-03-19 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712353', 'tblTempUsageDetail_20' ) end [2025-03-19 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:11:21] Production.INFO: ==2401== Releasing lock... [2025-03-19 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:11:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:12:06 [end_date_ymd] => 2025-03-19 02:12:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:12:06' and `end` < '2025-03-19 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-03-19 02:12:18] Production.INFO: count ==404 [2025-03-19 02:12:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:12:06 - End Time 2025-03-19 02:12:06 [2025-03-19 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712358', 'tblTempUsageDetail_20' ) start [2025-03-19 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712358', 'tblTempUsageDetail_20' ) end [2025-03-19 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712358', 'tblTempVendorCDR_20' ) start [2025-03-19 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712358', 'tblTempVendorCDR_20' ) end [2025-03-19 02:12:18] Production.INFO: ProcessCDR(1,14712358,1,1,2) [2025-03-19 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712358', 'tblTempUsageDetail_20' ) start [2025-03-19 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712358', 'tblTempUsageDetail_20' ) end [2025-03-19 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:12:21] Production.INFO: ==2477== Releasing lock... [2025-03-19 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:12:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:13:05 [end_date_ymd] => 2025-03-19 02:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:13:05' and `end` < '2025-03-19 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-03-19 02:13:17] Production.INFO: count ==404 [2025-03-19 02:13:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:13:05 - End Time 2025-03-19 02:13:05 [2025-03-19 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712363', 'tblTempUsageDetail_20' ) start [2025-03-19 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712363', 'tblTempUsageDetail_20' ) end [2025-03-19 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712363', 'tblTempVendorCDR_20' ) start [2025-03-19 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712363', 'tblTempVendorCDR_20' ) end [2025-03-19 02:13:17] Production.INFO: ProcessCDR(1,14712363,1,1,2) [2025-03-19 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712363', 'tblTempUsageDetail_20' ) start [2025-03-19 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712363', 'tblTempUsageDetail_20' ) end [2025-03-19 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:13:21] Production.INFO: ==2553== Releasing lock... [2025-03-19 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:13:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:14:05 [end_date_ymd] => 2025-03-19 02:14:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:14:05' and `end` < '2025-03-19 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-03-19 02:14:17] Production.INFO: count ==400 [2025-03-19 02:14:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:14:05 - End Time 2025-03-19 02:14:05 [2025-03-19 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712368', 'tblTempUsageDetail_20' ) start [2025-03-19 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712368', 'tblTempUsageDetail_20' ) end [2025-03-19 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712368', 'tblTempVendorCDR_20' ) start [2025-03-19 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712368', 'tblTempVendorCDR_20' ) end [2025-03-19 02:14:17] Production.INFO: ProcessCDR(1,14712368,1,1,2) [2025-03-19 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712368', 'tblTempUsageDetail_20' ) start [2025-03-19 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712368', 'tblTempUsageDetail_20' ) end [2025-03-19 02:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:14:21] Production.INFO: ==2633== Releasing lock... [2025-03-19 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:15:05 [end_date_ymd] => 2025-03-19 02:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:15:05' and `end` < '2025-03-19 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-03-19 02:15:17] Production.INFO: count ==400 [2025-03-19 02:15:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:15:05 - End Time 2025-03-19 02:15:05 [2025-03-19 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712373', 'tblTempUsageDetail_20' ) start [2025-03-19 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712373', 'tblTempUsageDetail_20' ) end [2025-03-19 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712373', 'tblTempVendorCDR_20' ) start [2025-03-19 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712373', 'tblTempVendorCDR_20' ) end [2025-03-19 02:15:17] Production.INFO: ProcessCDR(1,14712373,1,1,2) [2025-03-19 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712373', 'tblTempUsageDetail_20' ) start [2025-03-19 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712373', 'tblTempUsageDetail_20' ) end [2025-03-19 02:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:15:20] Production.INFO: ==2709== Releasing lock... [2025-03-19 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:15:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:16:05 [end_date_ymd] => 2025-03-19 02:16:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:16:05' and `end` < '2025-03-19 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-03-19 02:16:17] Production.INFO: count ==398 [2025-03-19 02:16:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:16:05 - End Time 2025-03-19 02:16:05 [2025-03-19 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712378', 'tblTempUsageDetail_20' ) start [2025-03-19 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712378', 'tblTempUsageDetail_20' ) end [2025-03-19 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712378', 'tblTempVendorCDR_20' ) start [2025-03-19 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712378', 'tblTempVendorCDR_20' ) end [2025-03-19 02:16:17] Production.INFO: ProcessCDR(1,14712378,1,1,2) [2025-03-19 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712378', 'tblTempUsageDetail_20' ) start [2025-03-19 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712378', 'tblTempUsageDetail_20' ) end [2025-03-19 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:16:21] Production.INFO: ==2828== Releasing lock... [2025-03-19 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:17:05 [end_date_ymd] => 2025-03-19 02:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:17:05' and `end` < '2025-03-19 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-03-19 02:17:18] Production.INFO: count ==396 [2025-03-19 02:17:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:17:05 - End Time 2025-03-19 02:17:05 [2025-03-19 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712383', 'tblTempUsageDetail_20' ) start [2025-03-19 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712383', 'tblTempUsageDetail_20' ) end [2025-03-19 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712383', 'tblTempVendorCDR_20' ) start [2025-03-19 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712383', 'tblTempVendorCDR_20' ) end [2025-03-19 02:17:18] Production.INFO: ProcessCDR(1,14712383,1,1,2) [2025-03-19 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712383', 'tblTempUsageDetail_20' ) start [2025-03-19 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712383', 'tblTempUsageDetail_20' ) end [2025-03-19 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:17:21] Production.INFO: ==2903== Releasing lock... [2025-03-19 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:17:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:18:05 [end_date_ymd] => 2025-03-19 02:18:05 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:18:05' and `end` < '2025-03-19 02: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-03-19 02:18:17] Production.INFO: count ==396 [2025-03-19 02:18:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:18:05 - End Time 2025-03-19 02:18:05 [2025-03-19 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712388', 'tblTempUsageDetail_20' ) start [2025-03-19 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712388', 'tblTempUsageDetail_20' ) end [2025-03-19 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712388', 'tblTempVendorCDR_20' ) start [2025-03-19 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712388', 'tblTempVendorCDR_20' ) end [2025-03-19 02:18:17] Production.INFO: ProcessCDR(1,14712388,1,1,2) [2025-03-19 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712388', 'tblTempUsageDetail_20' ) start [2025-03-19 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712388', 'tblTempUsageDetail_20' ) end [2025-03-19 02:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:18:20] Production.INFO: ==2976== Releasing lock... [2025-03-19 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:18:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:19:06 [end_date_ymd] => 2025-03-19 02:19:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:19:06' and `end` < '2025-03-19 02: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-03-19 02:19:18] Production.INFO: count ==395 [2025-03-19 02:19:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:19:06 - End Time 2025-03-19 02:19:06 [2025-03-19 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712393', 'tblTempUsageDetail_20' ) start [2025-03-19 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712393', 'tblTempUsageDetail_20' ) end [2025-03-19 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712393', 'tblTempVendorCDR_20' ) start [2025-03-19 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712393', 'tblTempVendorCDR_20' ) end [2025-03-19 02:19:18] Production.INFO: ProcessCDR(1,14712393,1,1,2) [2025-03-19 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712393', 'tblTempUsageDetail_20' ) start [2025-03-19 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712393', 'tblTempUsageDetail_20' ) end [2025-03-19 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:19:21] Production.INFO: ==3060== Releasing lock... [2025-03-19 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:20:06 [end_date_ymd] => 2025-03-19 02:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:20:06' and `end` < '2025-03-19 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-03-19 02:20:18] Production.INFO: count ==402 [2025-03-19 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:20:06 - End Time 2025-03-19 02:20:06 [2025-03-19 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712399', 'tblTempUsageDetail_20' ) start [2025-03-19 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712399', 'tblTempUsageDetail_20' ) end [2025-03-19 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712399', 'tblTempVendorCDR_20' ) start [2025-03-19 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712399', 'tblTempVendorCDR_20' ) end [2025-03-19 02:20:18] Production.INFO: ProcessCDR(1,14712399,1,1,2) [2025-03-19 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712399', 'tblTempUsageDetail_20' ) start [2025-03-19 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712399', 'tblTempUsageDetail_20' ) end [2025-03-19 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:20:21] Production.INFO: ==3139== Releasing lock... [2025-03-19 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:20:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:21:05 [end_date_ymd] => 2025-03-19 02:21:05 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:21:05' and `end` < '2025-03-19 02: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-03-19 02:21:18] Production.INFO: count ==402 [2025-03-19 02:21:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:21:05 - End Time 2025-03-19 02:21:05 [2025-03-19 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712404', 'tblTempUsageDetail_20' ) start [2025-03-19 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712404', 'tblTempUsageDetail_20' ) end [2025-03-19 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712404', 'tblTempVendorCDR_20' ) start [2025-03-19 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712404', 'tblTempVendorCDR_20' ) end [2025-03-19 02:21:18] Production.INFO: ProcessCDR(1,14712404,1,1,2) [2025-03-19 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712404', 'tblTempUsageDetail_20' ) start [2025-03-19 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712404', 'tblTempUsageDetail_20' ) end [2025-03-19 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:21:21] Production.INFO: ==3223== Releasing lock... [2025-03-19 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:22:05 [end_date_ymd] => 2025-03-19 02:22:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:22:05' and `end` < '2025-03-19 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-03-19 02:22:17] Production.INFO: count ==400 [2025-03-19 02:22:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:22:05 - End Time 2025-03-19 02:22:05 [2025-03-19 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712409', 'tblTempUsageDetail_20' ) start [2025-03-19 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712409', 'tblTempUsageDetail_20' ) end [2025-03-19 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712409', 'tblTempVendorCDR_20' ) start [2025-03-19 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712409', 'tblTempVendorCDR_20' ) end [2025-03-19 02:22:17] Production.INFO: ProcessCDR(1,14712409,1,1,2) [2025-03-19 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712409', 'tblTempUsageDetail_20' ) start [2025-03-19 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712409', 'tblTempUsageDetail_20' ) end [2025-03-19 02:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:22:20] Production.INFO: ==3296== Releasing lock... [2025-03-19 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:22:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:23:06 [end_date_ymd] => 2025-03-19 02:23:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:23:06' and `end` < '2025-03-19 02: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-03-19 02:23:18] Production.INFO: count ==400 [2025-03-19 02:23:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:23:06 - End Time 2025-03-19 02:23:06 [2025-03-19 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712414', 'tblTempUsageDetail_20' ) start [2025-03-19 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712414', 'tblTempUsageDetail_20' ) end [2025-03-19 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712414', 'tblTempVendorCDR_20' ) start [2025-03-19 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712414', 'tblTempVendorCDR_20' ) end [2025-03-19 02:23:18] Production.INFO: ProcessCDR(1,14712414,1,1,2) [2025-03-19 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712414', 'tblTempUsageDetail_20' ) start [2025-03-19 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712414', 'tblTempUsageDetail_20' ) end [2025-03-19 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:23:22] Production.INFO: ==3373== Releasing lock... [2025-03-19 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:23:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:24:05 [end_date_ymd] => 2025-03-19 02:24:05 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:24:05' and `end` < '2025-03-19 02: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-03-19 02:24:17] Production.INFO: count ==400 [2025-03-19 02:24:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:24:05 - End Time 2025-03-19 02:24:05 [2025-03-19 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712419', 'tblTempUsageDetail_20' ) start [2025-03-19 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712419', 'tblTempUsageDetail_20' ) end [2025-03-19 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712419', 'tblTempVendorCDR_20' ) start [2025-03-19 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712419', 'tblTempVendorCDR_20' ) end [2025-03-19 02:24:17] Production.INFO: ProcessCDR(1,14712419,1,1,2) [2025-03-19 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712419', 'tblTempUsageDetail_20' ) start [2025-03-19 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712419', 'tblTempUsageDetail_20' ) end [2025-03-19 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:24:21] Production.INFO: ==3451== Releasing lock... [2025-03-19 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:24:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:25:05 [end_date_ymd] => 2025-03-19 02:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:25:05' and `end` < '2025-03-19 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-03-19 02:25:17] Production.INFO: count ==400 [2025-03-19 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:25:05 - End Time 2025-03-19 02:25:05 [2025-03-19 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712424', 'tblTempUsageDetail_20' ) start [2025-03-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712424', 'tblTempUsageDetail_20' ) end [2025-03-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712424', 'tblTempVendorCDR_20' ) start [2025-03-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712424', 'tblTempVendorCDR_20' ) end [2025-03-19 02:25:18] Production.INFO: ProcessCDR(1,14712424,1,1,2) [2025-03-19 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712424', 'tblTempUsageDetail_20' ) start [2025-03-19 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712424', 'tblTempUsageDetail_20' ) end [2025-03-19 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:25:21] Production.INFO: ==3528== Releasing lock... [2025-03-19 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:26:05 [end_date_ymd] => 2025-03-19 02:26:05 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:26:05' and `end` < '2025-03-19 02: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-03-19 02:26:17] Production.INFO: count ==400 [2025-03-19 02:26:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:26:05 - End Time 2025-03-19 02:26:05 [2025-03-19 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712429', 'tblTempUsageDetail_20' ) start [2025-03-19 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712429', 'tblTempUsageDetail_20' ) end [2025-03-19 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712429', 'tblTempVendorCDR_20' ) start [2025-03-19 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712429', 'tblTempVendorCDR_20' ) end [2025-03-19 02:26:17] Production.INFO: ProcessCDR(1,14712429,1,1,2) [2025-03-19 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712429', 'tblTempUsageDetail_20' ) start [2025-03-19 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712429', 'tblTempUsageDetail_20' ) end [2025-03-19 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:26:21] Production.INFO: ==3606== Releasing lock... [2025-03-19 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:27:05 [end_date_ymd] => 2025-03-19 02:27:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:27:05' and `end` < '2025-03-19 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-03-19 02:27:17] Production.INFO: count ==391 [2025-03-19 02:27:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:27:05 - End Time 2025-03-19 02:27:05 [2025-03-19 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712434', 'tblTempUsageDetail_20' ) start [2025-03-19 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712434', 'tblTempUsageDetail_20' ) end [2025-03-19 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712434', 'tblTempVendorCDR_20' ) start [2025-03-19 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712434', 'tblTempVendorCDR_20' ) end [2025-03-19 02:27:17] Production.INFO: ProcessCDR(1,14712434,1,1,2) [2025-03-19 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712434', 'tblTempUsageDetail_20' ) start [2025-03-19 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712434', 'tblTempUsageDetail_20' ) end [2025-03-19 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:27:21] Production.INFO: ==3684== Releasing lock... [2025-03-19 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:27:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:28:04 [end_date_ymd] => 2025-03-19 02:28:04 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:28:04' and `end` < '2025-03-19 02: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-03-19 02:28:17] Production.INFO: count ==384 [2025-03-19 02:28:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:28:04 - End Time 2025-03-19 02:28:04 [2025-03-19 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712439', 'tblTempUsageDetail_20' ) start [2025-03-19 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712439', 'tblTempUsageDetail_20' ) end [2025-03-19 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712439', 'tblTempVendorCDR_20' ) start [2025-03-19 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712439', 'tblTempVendorCDR_20' ) end [2025-03-19 02:28:17] Production.INFO: ProcessCDR(1,14712439,1,1,2) [2025-03-19 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712439', 'tblTempUsageDetail_20' ) start [2025-03-19 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712439', 'tblTempUsageDetail_20' ) end [2025-03-19 02:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:28:20] Production.INFO: ==3764== Releasing lock... [2025-03-19 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:28:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:29:05 [end_date_ymd] => 2025-03-19 02:29:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:29:05' and `end` < '2025-03-19 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-03-19 02:29:17] Production.INFO: count ==381 [2025-03-19 02:29:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:29:05 - End Time 2025-03-19 02:29:05 [2025-03-19 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712444', 'tblTempUsageDetail_20' ) start [2025-03-19 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712444', 'tblTempUsageDetail_20' ) end [2025-03-19 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712444', 'tblTempVendorCDR_20' ) start [2025-03-19 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712444', 'tblTempVendorCDR_20' ) end [2025-03-19 02:29:17] Production.INFO: ProcessCDR(1,14712444,1,1,2) [2025-03-19 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712444', 'tblTempUsageDetail_20' ) start [2025-03-19 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712444', 'tblTempUsageDetail_20' ) end [2025-03-19 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:29:20] Production.INFO: ==3839== Releasing lock... [2025-03-19 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:29:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:30:06 [end_date_ymd] => 2025-03-19 02:30:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:30:06' and `end` < '2025-03-19 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-03-19 02:30:18] Production.INFO: count ==375 [2025-03-19 02:30:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:30:06 - End Time 2025-03-19 02:30:06 [2025-03-19 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712450', 'tblTempUsageDetail_20' ) start [2025-03-19 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712450', 'tblTempUsageDetail_20' ) end [2025-03-19 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712450', 'tblTempVendorCDR_20' ) start [2025-03-19 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712450', 'tblTempVendorCDR_20' ) end [2025-03-19 02:30:18] Production.INFO: ProcessCDR(1,14712450,1,1,2) [2025-03-19 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712450', 'tblTempUsageDetail_20' ) start [2025-03-19 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712450', 'tblTempUsageDetail_20' ) end [2025-03-19 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:30:21] Production.INFO: ==3918== Releasing lock... [2025-03-19 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:30:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:31:05 [end_date_ymd] => 2025-03-19 02:31:05 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:31:05' and `end` < '2025-03-19 02: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-03-19 02:31:17] Production.INFO: count ==366 [2025-03-19 02:31:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:31:05 - End Time 2025-03-19 02:31:05 [2025-03-19 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712455', 'tblTempUsageDetail_20' ) start [2025-03-19 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712455', 'tblTempUsageDetail_20' ) end [2025-03-19 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712455', 'tblTempVendorCDR_20' ) start [2025-03-19 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712455', 'tblTempVendorCDR_20' ) end [2025-03-19 02:31:17] Production.INFO: ProcessCDR(1,14712455,1,1,2) [2025-03-19 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712455', 'tblTempUsageDetail_20' ) start [2025-03-19 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712455', 'tblTempUsageDetail_20' ) end [2025-03-19 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:31:21] Production.INFO: ==3992== Releasing lock... [2025-03-19 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:31:21] Production.INFO: 31 MB #Memory Used# [2025-03-19 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:32:05 [end_date_ymd] => 2025-03-19 02:32:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:32:05' and `end` < '2025-03-19 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-03-19 02:32:17] Production.INFO: count ==365 [2025-03-19 02:32:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:32:05 - End Time 2025-03-19 02:32:05 [2025-03-19 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712460', 'tblTempUsageDetail_20' ) start [2025-03-19 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712460', 'tblTempUsageDetail_20' ) end [2025-03-19 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712460', 'tblTempVendorCDR_20' ) start [2025-03-19 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712460', 'tblTempVendorCDR_20' ) end [2025-03-19 02:32:17] Production.INFO: ProcessCDR(1,14712460,1,1,2) [2025-03-19 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712460', 'tblTempUsageDetail_20' ) start [2025-03-19 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712460', 'tblTempUsageDetail_20' ) end [2025-03-19 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:32:21] Production.INFO: ==4104== Releasing lock... [2025-03-19 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:32:21] Production.INFO: 31 MB #Memory Used# [2025-03-19 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:33:05 [end_date_ymd] => 2025-03-19 02:33:05 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:33:05' and `end` < '2025-03-19 02: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-03-19 02:33:17] Production.INFO: count ==363 [2025-03-19 02:33:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:33:05 - End Time 2025-03-19 02:33:05 [2025-03-19 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712465', 'tblTempUsageDetail_20' ) start [2025-03-19 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712465', 'tblTempUsageDetail_20' ) end [2025-03-19 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712465', 'tblTempVendorCDR_20' ) start [2025-03-19 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712465', 'tblTempVendorCDR_20' ) end [2025-03-19 02:33:17] Production.INFO: ProcessCDR(1,14712465,1,1,2) [2025-03-19 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712465', 'tblTempUsageDetail_20' ) start [2025-03-19 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712465', 'tblTempUsageDetail_20' ) end [2025-03-19 02:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:33:20] Production.INFO: ==4179== Releasing lock... [2025-03-19 02:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:33:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:34:06 [end_date_ymd] => 2025-03-19 02:34:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:34:06' and `end` < '2025-03-19 02: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-03-19 02:34:18] Production.INFO: count ==363 [2025-03-19 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:34:06 - End Time 2025-03-19 02:34:06 [2025-03-19 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712470', 'tblTempUsageDetail_20' ) start [2025-03-19 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712470', 'tblTempUsageDetail_20' ) end [2025-03-19 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712470', 'tblTempVendorCDR_20' ) start [2025-03-19 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712470', 'tblTempVendorCDR_20' ) end [2025-03-19 02:34:18] Production.INFO: ProcessCDR(1,14712470,1,1,2) [2025-03-19 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712470', 'tblTempUsageDetail_20' ) start [2025-03-19 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712470', 'tblTempUsageDetail_20' ) end [2025-03-19 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:34:22] Production.INFO: ==4252== Releasing lock... [2025-03-19 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:35:05 [end_date_ymd] => 2025-03-19 02:35:05 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:35:05' and `end` < '2025-03-19 02: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-03-19 02:35:18] Production.INFO: count ==363 [2025-03-19 02:35:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:35:05 - End Time 2025-03-19 02:35:05 [2025-03-19 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712475', 'tblTempUsageDetail_20' ) start [2025-03-19 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712475', 'tblTempUsageDetail_20' ) end [2025-03-19 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712475', 'tblTempVendorCDR_20' ) start [2025-03-19 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712475', 'tblTempVendorCDR_20' ) end [2025-03-19 02:35:18] Production.INFO: ProcessCDR(1,14712475,1,1,2) [2025-03-19 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712475', 'tblTempUsageDetail_20' ) start [2025-03-19 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712475', 'tblTempUsageDetail_20' ) end [2025-03-19 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:35:22] Production.INFO: ==4323== Releasing lock... [2025-03-19 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:35:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:36:06 [end_date_ymd] => 2025-03-19 02:36:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:36:06' and `end` < '2025-03-19 02: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-03-19 02:36:18] Production.INFO: count ==363 [2025-03-19 02:36:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:36:06 - End Time 2025-03-19 02:36:06 [2025-03-19 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712480', 'tblTempUsageDetail_20' ) start [2025-03-19 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712480', 'tblTempUsageDetail_20' ) end [2025-03-19 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712480', 'tblTempVendorCDR_20' ) start [2025-03-19 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712480', 'tblTempVendorCDR_20' ) end [2025-03-19 02:36:18] Production.INFO: ProcessCDR(1,14712480,1,1,2) [2025-03-19 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712480', 'tblTempUsageDetail_20' ) start [2025-03-19 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712480', 'tblTempUsageDetail_20' ) end [2025-03-19 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:36:22] Production.INFO: ==4402== Releasing lock... [2025-03-19 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:36:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:37:06 [end_date_ymd] => 2025-03-19 02:37:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:37:06' and `end` < '2025-03-19 02: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-03-19 02:37:18] Production.INFO: count ==362 [2025-03-19 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:37:06 - End Time 2025-03-19 02:37:06 [2025-03-19 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712485', 'tblTempUsageDetail_20' ) start [2025-03-19 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712485', 'tblTempUsageDetail_20' ) end [2025-03-19 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712485', 'tblTempVendorCDR_20' ) start [2025-03-19 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712485', 'tblTempVendorCDR_20' ) end [2025-03-19 02:37:18] Production.INFO: ProcessCDR(1,14712485,1,1,2) [2025-03-19 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712485', 'tblTempUsageDetail_20' ) start [2025-03-19 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712485', 'tblTempUsageDetail_20' ) end [2025-03-19 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:37:22] Production.INFO: ==4475== Releasing lock... [2025-03-19 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:37:22] Production.INFO: 31 MB #Memory Used# [2025-03-19 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:38:05 [end_date_ymd] => 2025-03-19 02:38:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:38:05' and `end` < '2025-03-19 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-03-19 02:38:17] Production.INFO: count ==361 [2025-03-19 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:38:05 - End Time 2025-03-19 02:38:05 [2025-03-19 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712490', 'tblTempUsageDetail_20' ) start [2025-03-19 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712490', 'tblTempUsageDetail_20' ) end [2025-03-19 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712490', 'tblTempVendorCDR_20' ) start [2025-03-19 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712490', 'tblTempVendorCDR_20' ) end [2025-03-19 02:38:18] Production.INFO: ProcessCDR(1,14712490,1,1,2) [2025-03-19 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712490', 'tblTempUsageDetail_20' ) start [2025-03-19 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712490', 'tblTempUsageDetail_20' ) end [2025-03-19 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:38:21] Production.INFO: ==4547== Releasing lock... [2025-03-19 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:38:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:39:06 [end_date_ymd] => 2025-03-19 02:39:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:39:06' and `end` < '2025-03-19 02: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-03-19 02:39:18] Production.INFO: count ==361 [2025-03-19 02:39:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:39:06 - End Time 2025-03-19 02:39:06 [2025-03-19 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712495', 'tblTempUsageDetail_20' ) start [2025-03-19 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712495', 'tblTempUsageDetail_20' ) end [2025-03-19 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712495', 'tblTempVendorCDR_20' ) start [2025-03-19 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712495', 'tblTempVendorCDR_20' ) end [2025-03-19 02:39:18] Production.INFO: ProcessCDR(1,14712495,1,1,2) [2025-03-19 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712495', 'tblTempUsageDetail_20' ) start [2025-03-19 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712495', 'tblTempUsageDetail_20' ) end [2025-03-19 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:39:22] Production.INFO: ==4629== Releasing lock... [2025-03-19 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:39:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:40:06 [end_date_ymd] => 2025-03-19 02:40:06 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:40:06' and `end` < '2025-03-19 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-03-19 02:40:18] Production.INFO: count ==367 [2025-03-19 02:40:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:40:06 - End Time 2025-03-19 02:40:06 [2025-03-19 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712501', 'tblTempUsageDetail_20' ) start [2025-03-19 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712501', 'tblTempUsageDetail_20' ) end [2025-03-19 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712501', 'tblTempVendorCDR_20' ) start [2025-03-19 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712501', 'tblTempVendorCDR_20' ) end [2025-03-19 02:40:18] Production.INFO: ProcessCDR(1,14712501,1,1,2) [2025-03-19 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712501', 'tblTempUsageDetail_20' ) start [2025-03-19 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712501', 'tblTempUsageDetail_20' ) end [2025-03-19 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:40:22] Production.INFO: ==4710== Releasing lock... [2025-03-19 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:41:06 [end_date_ymd] => 2025-03-19 02:41:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:41:06' and `end` < '2025-03-19 02: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-03-19 02:41:18] Production.INFO: count ==367 [2025-03-19 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:41:06 - End Time 2025-03-19 02:41:06 [2025-03-19 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712506', 'tblTempUsageDetail_20' ) start [2025-03-19 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712506', 'tblTempUsageDetail_20' ) end [2025-03-19 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712506', 'tblTempVendorCDR_20' ) start [2025-03-19 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712506', 'tblTempVendorCDR_20' ) end [2025-03-19 02:41:18] Production.INFO: ProcessCDR(1,14712506,1,1,2) [2025-03-19 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712506', 'tblTempUsageDetail_20' ) start [2025-03-19 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712506', 'tblTempUsageDetail_20' ) end [2025-03-19 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:41:22] Production.INFO: ==4785== Releasing lock... [2025-03-19 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:41:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:42:05 [end_date_ymd] => 2025-03-19 02:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:42:05' and `end` < '2025-03-19 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-03-19 02:42:17] Production.INFO: count ==367 [2025-03-19 02:42:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:42:05 - End Time 2025-03-19 02:42:05 [2025-03-19 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712511', 'tblTempUsageDetail_20' ) start [2025-03-19 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712511', 'tblTempUsageDetail_20' ) end [2025-03-19 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712511', 'tblTempVendorCDR_20' ) start [2025-03-19 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712511', 'tblTempVendorCDR_20' ) end [2025-03-19 02:42:17] Production.INFO: ProcessCDR(1,14712511,1,1,2) [2025-03-19 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712511', 'tblTempUsageDetail_20' ) start [2025-03-19 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712511', 'tblTempUsageDetail_20' ) end [2025-03-19 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:42:21] Production.INFO: ==4860== Releasing lock... [2025-03-19 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:42:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:43:05 [end_date_ymd] => 2025-03-19 02:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:43:05' and `end` < '2025-03-19 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-03-19 02:43:17] Production.INFO: count ==367 [2025-03-19 02:43:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:43:05 - End Time 2025-03-19 02:43:05 [2025-03-19 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712516', 'tblTempUsageDetail_20' ) start [2025-03-19 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712516', 'tblTempUsageDetail_20' ) end [2025-03-19 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712516', 'tblTempVendorCDR_20' ) start [2025-03-19 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712516', 'tblTempVendorCDR_20' ) end [2025-03-19 02:43:18] Production.INFO: ProcessCDR(1,14712516,1,1,2) [2025-03-19 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712516', 'tblTempUsageDetail_20' ) start [2025-03-19 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712516', 'tblTempUsageDetail_20' ) end [2025-03-19 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:43:21] Production.INFO: ==4935== Releasing lock... [2025-03-19 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:43:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:44:05 [end_date_ymd] => 2025-03-19 02:44:05 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:44:05' and `end` < '2025-03-19 02: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-03-19 02:44:17] Production.INFO: count ==359 [2025-03-19 02:44:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:44:05 - End Time 2025-03-19 02:44:05 [2025-03-19 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712521', 'tblTempUsageDetail_20' ) start [2025-03-19 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712521', 'tblTempUsageDetail_20' ) end [2025-03-19 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712521', 'tblTempVendorCDR_20' ) start [2025-03-19 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712521', 'tblTempVendorCDR_20' ) end [2025-03-19 02:44:17] Production.INFO: ProcessCDR(1,14712521,1,1,2) [2025-03-19 02:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712521', 'tblTempUsageDetail_20' ) start [2025-03-19 02:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712521', 'tblTempUsageDetail_20' ) end [2025-03-19 02:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:44:21] Production.INFO: ==5004== Releasing lock... [2025-03-19 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:44:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:45:06 [end_date_ymd] => 2025-03-19 02:45:06 [RateCDR] => 1 ) [2025-03-19 02:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-18 23:45:06' and `end` < '2025-03-19 02:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 02:45:18] Production.INFO: count ==357 [2025-03-19 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:45:06 - End Time 2025-03-19 02:45:06 [2025-03-19 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712526', 'tblTempUsageDetail_20' ) start [2025-03-19 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712526', 'tblTempUsageDetail_20' ) end [2025-03-19 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712526', 'tblTempVendorCDR_20' ) start [2025-03-19 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712526', 'tblTempVendorCDR_20' ) end [2025-03-19 02:45:18] Production.INFO: ProcessCDR(1,14712526,1,1,2) [2025-03-19 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712526', 'tblTempUsageDetail_20' ) start [2025-03-19 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712526', 'tblTempUsageDetail_20' ) end [2025-03-19 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:45:22] Production.INFO: ==5079== Releasing lock... [2025-03-19 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:45:22] Production.INFO: 31 MB #Memory Used# [2025-03-19 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:46:05 [end_date_ymd] => 2025-03-19 02:46:05 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:46:05' and `end` < '2025-03-19 02: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-03-19 02:46:18] Production.INFO: count ==356 [2025-03-19 02:46:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:46:05 - End Time 2025-03-19 02:46:05 [2025-03-19 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712531', 'tblTempUsageDetail_20' ) start [2025-03-19 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712531', 'tblTempUsageDetail_20' ) end [2025-03-19 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712531', 'tblTempVendorCDR_20' ) start [2025-03-19 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712531', 'tblTempVendorCDR_20' ) end [2025-03-19 02:46:18] Production.INFO: ProcessCDR(1,14712531,1,1,2) [2025-03-19 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712531', 'tblTempUsageDetail_20' ) start [2025-03-19 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712531', 'tblTempUsageDetail_20' ) end [2025-03-19 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:46:21] Production.INFO: ==5153== Releasing lock... [2025-03-19 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:46:21] Production.INFO: 31 MB #Memory Used# [2025-03-19 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:47:06 [end_date_ymd] => 2025-03-19 02:47:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:47:06' and `end` < '2025-03-19 02: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-03-19 02:47:18] Production.INFO: count ==353 [2025-03-19 02:47:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:47:06 - End Time 2025-03-19 02:47:06 [2025-03-19 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712536', 'tblTempUsageDetail_20' ) start [2025-03-19 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712536', 'tblTempUsageDetail_20' ) end [2025-03-19 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712536', 'tblTempVendorCDR_20' ) start [2025-03-19 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712536', 'tblTempVendorCDR_20' ) end [2025-03-19 02:47:18] Production.INFO: ProcessCDR(1,14712536,1,1,2) [2025-03-19 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712536', 'tblTempUsageDetail_20' ) start [2025-03-19 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712536', 'tblTempUsageDetail_20' ) end [2025-03-19 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:47:22] Production.INFO: ==5262== Releasing lock... [2025-03-19 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:47:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:48:05 [end_date_ymd] => 2025-03-19 02:48:05 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:48:05' and `end` < '2025-03-19 02: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-03-19 02:48:17] Production.INFO: count ==353 [2025-03-19 02:48:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:48:05 - End Time 2025-03-19 02:48:05 [2025-03-19 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712541', 'tblTempUsageDetail_20' ) start [2025-03-19 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712541', 'tblTempUsageDetail_20' ) end [2025-03-19 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712541', 'tblTempVendorCDR_20' ) start [2025-03-19 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712541', 'tblTempVendorCDR_20' ) end [2025-03-19 02:48:17] Production.INFO: ProcessCDR(1,14712541,1,1,2) [2025-03-19 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712541', 'tblTempUsageDetail_20' ) start [2025-03-19 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712541', 'tblTempUsageDetail_20' ) end [2025-03-19 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:48:21] Production.INFO: ==5341== Releasing lock... [2025-03-19 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:49:06 [end_date_ymd] => 2025-03-19 02:49:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:49:06' and `end` < '2025-03-19 02: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-03-19 02:49:18] Production.INFO: count ==356 [2025-03-19 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:49:06 - End Time 2025-03-19 02:49:06 [2025-03-19 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712546', 'tblTempUsageDetail_20' ) start [2025-03-19 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712546', 'tblTempUsageDetail_20' ) end [2025-03-19 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712546', 'tblTempVendorCDR_20' ) start [2025-03-19 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712546', 'tblTempVendorCDR_20' ) end [2025-03-19 02:49:18] Production.INFO: ProcessCDR(1,14712546,1,1,2) [2025-03-19 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712546', 'tblTempUsageDetail_20' ) start [2025-03-19 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712546', 'tblTempUsageDetail_20' ) end [2025-03-19 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:49:22] Production.INFO: ==5415== Releasing lock... [2025-03-19 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:49:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:50:06 [end_date_ymd] => 2025-03-19 02:50:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:50:06' and `end` < '2025-03-19 02: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-03-19 02:50:18] Production.INFO: count ==363 [2025-03-19 02:50:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:50:06 - End Time 2025-03-19 02:50:06 [2025-03-19 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712551', 'tblTempUsageDetail_20' ) start [2025-03-19 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712551', 'tblTempUsageDetail_20' ) end [2025-03-19 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712551', 'tblTempVendorCDR_20' ) start [2025-03-19 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712551', 'tblTempVendorCDR_20' ) end [2025-03-19 02:50:18] Production.INFO: ProcessCDR(1,14712551,1,1,2) [2025-03-19 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712551', 'tblTempUsageDetail_20' ) start [2025-03-19 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712551', 'tblTempUsageDetail_20' ) end [2025-03-19 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:50:22] Production.INFO: ==5489== Releasing lock... [2025-03-19 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:50:22] Production.INFO: 31 MB #Memory Used# [2025-03-19 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:51:06 [end_date_ymd] => 2025-03-19 02:51:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:51:06' and `end` < '2025-03-19 02: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-03-19 02:51:18] Production.INFO: count ==363 [2025-03-19 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:51:06 - End Time 2025-03-19 02:51:06 [2025-03-19 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712557', 'tblTempUsageDetail_20' ) start [2025-03-19 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712557', 'tblTempUsageDetail_20' ) end [2025-03-19 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712557', 'tblTempVendorCDR_20' ) start [2025-03-19 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712557', 'tblTempVendorCDR_20' ) end [2025-03-19 02:51:18] Production.INFO: ProcessCDR(1,14712557,1,1,2) [2025-03-19 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712557', 'tblTempUsageDetail_20' ) start [2025-03-19 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712557', 'tblTempUsageDetail_20' ) end [2025-03-19 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:51:22] Production.INFO: ==5567== Releasing lock... [2025-03-19 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:51:22] Production.INFO: 31 MB #Memory Used# [2025-03-19 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:52:05 [end_date_ymd] => 2025-03-19 02:52:05 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:52:05' and `end` < '2025-03-19 02: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-03-19 02:52:18] Production.INFO: count ==363 [2025-03-19 02:52:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:52:05 - End Time 2025-03-19 02:52:05 [2025-03-19 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712562', 'tblTempUsageDetail_20' ) start [2025-03-19 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712562', 'tblTempUsageDetail_20' ) end [2025-03-19 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712562', 'tblTempVendorCDR_20' ) start [2025-03-19 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712562', 'tblTempVendorCDR_20' ) end [2025-03-19 02:52:18] Production.INFO: ProcessCDR(1,14712562,1,1,2) [2025-03-19 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712562', 'tblTempUsageDetail_20' ) start [2025-03-19 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712562', 'tblTempUsageDetail_20' ) end [2025-03-19 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:52:21] Production.INFO: ==5639== Releasing lock... [2025-03-19 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:52:21] Production.INFO: 31 MB #Memory Used# [2025-03-19 02:53:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:53:07 [end_date_ymd] => 2025-03-19 02:53:07 [RateCDR] => 1 ) [2025-03-19 02:53: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-03-18 23:53:07' and `end` < '2025-03-19 02:53: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-03-19 02:53:19] Production.INFO: count ==364 [2025-03-19 02:53:19] Production.ERROR: pbx CDR StartTime 2025-03-18 23:53:07 - End Time 2025-03-19 02:53:07 [2025-03-19 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712567', 'tblTempUsageDetail_20' ) start [2025-03-19 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712567', 'tblTempUsageDetail_20' ) end [2025-03-19 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712567', 'tblTempVendorCDR_20' ) start [2025-03-19 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712567', 'tblTempVendorCDR_20' ) end [2025-03-19 02:53:19] Production.INFO: ProcessCDR(1,14712567,1,1,2) [2025-03-19 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712567', 'tblTempUsageDetail_20' ) start [2025-03-19 02:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712567', 'tblTempUsageDetail_20' ) end [2025-03-19 02:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:53:24] Production.INFO: ==5715== Releasing lock... [2025-03-19 02:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:53:24] Production.INFO: 31 MB #Memory Used# [2025-03-19 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:54:06 [end_date_ymd] => 2025-03-19 02:54:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:54:06' and `end` < '2025-03-19 02: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-03-19 02:54:18] Production.INFO: count ==363 [2025-03-19 02:54:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:54:06 - End Time 2025-03-19 02:54:06 [2025-03-19 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712572', 'tblTempUsageDetail_20' ) start [2025-03-19 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712572', 'tblTempUsageDetail_20' ) end [2025-03-19 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712572', 'tblTempVendorCDR_20' ) start [2025-03-19 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712572', 'tblTempVendorCDR_20' ) end [2025-03-19 02:54:18] Production.INFO: ProcessCDR(1,14712572,1,1,2) [2025-03-19 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712572', 'tblTempUsageDetail_20' ) start [2025-03-19 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712572', 'tblTempUsageDetail_20' ) end [2025-03-19 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:54:22] Production.INFO: ==5786== Releasing lock... [2025-03-19 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:54:22] Production.INFO: 31 MB #Memory Used# [2025-03-19 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:55:06 [end_date_ymd] => 2025-03-19 02:55:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:55:06' and `end` < '2025-03-19 02: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-03-19 02:55:18] Production.INFO: count ==362 [2025-03-19 02:55:19] Production.ERROR: pbx CDR StartTime 2025-03-18 23:55:06 - End Time 2025-03-19 02:55:06 [2025-03-19 02:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712577', 'tblTempUsageDetail_20' ) start [2025-03-19 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712577', 'tblTempUsageDetail_20' ) end [2025-03-19 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712577', 'tblTempVendorCDR_20' ) start [2025-03-19 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712577', 'tblTempVendorCDR_20' ) end [2025-03-19 02:55:19] Production.INFO: ProcessCDR(1,14712577,1,1,2) [2025-03-19 02:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712577', 'tblTempUsageDetail_20' ) start [2025-03-19 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712577', 'tblTempUsageDetail_20' ) end [2025-03-19 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:55:22] Production.INFO: ==5863== Releasing lock... [2025-03-19 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:55:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:56:06 [end_date_ymd] => 2025-03-19 02:56:06 [RateCDR] => 1 ) [2025-03-19 02: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-03-18 23:56:06' and `end` < '2025-03-19 02: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-03-19 02:56:18] Production.INFO: count ==362 [2025-03-19 02:56:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:56:06 - End Time 2025-03-19 02:56:06 [2025-03-19 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712582', 'tblTempUsageDetail_20' ) start [2025-03-19 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712582', 'tblTempUsageDetail_20' ) end [2025-03-19 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712582', 'tblTempVendorCDR_20' ) start [2025-03-19 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712582', 'tblTempVendorCDR_20' ) end [2025-03-19 02:56:18] Production.INFO: ProcessCDR(1,14712582,1,1,2) [2025-03-19 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712582', 'tblTempUsageDetail_20' ) start [2025-03-19 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712582', 'tblTempUsageDetail_20' ) end [2025-03-19 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:56:22] Production.INFO: ==5939== Releasing lock... [2025-03-19 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:56:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:57:05 [end_date_ymd] => 2025-03-19 02:57:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:57:05' and `end` < '2025-03-19 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-03-19 02:57:17] Production.INFO: count ==366 [2025-03-19 02:57:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:57:05 - End Time 2025-03-19 02:57:05 [2025-03-19 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712587', 'tblTempUsageDetail_20' ) start [2025-03-19 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712587', 'tblTempUsageDetail_20' ) end [2025-03-19 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712587', 'tblTempVendorCDR_20' ) start [2025-03-19 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712587', 'tblTempVendorCDR_20' ) end [2025-03-19 02:57:17] Production.INFO: ProcessCDR(1,14712587,1,1,2) [2025-03-19 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712587', 'tblTempUsageDetail_20' ) start [2025-03-19 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712587', 'tblTempUsageDetail_20' ) end [2025-03-19 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:57:21] Production.INFO: ==6009== Releasing lock... [2025-03-19 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:57:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:58:05 [end_date_ymd] => 2025-03-19 02:58:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:58:05' and `end` < '2025-03-19 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-03-19 02:58:17] Production.INFO: count ==365 [2025-03-19 02:58:18] Production.ERROR: pbx CDR StartTime 2025-03-18 23:58:05 - End Time 2025-03-19 02:58:05 [2025-03-19 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712592', 'tblTempUsageDetail_20' ) start [2025-03-19 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712592', 'tblTempUsageDetail_20' ) end [2025-03-19 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712592', 'tblTempVendorCDR_20' ) start [2025-03-19 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712592', 'tblTempVendorCDR_20' ) end [2025-03-19 02:58:18] Production.INFO: ProcessCDR(1,14712592,1,1,2) [2025-03-19 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712592', 'tblTempUsageDetail_20' ) start [2025-03-19 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712592', 'tblTempUsageDetail_20' ) end [2025-03-19 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:58:21] Production.INFO: ==6083== Releasing lock... [2025-03-19 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:58:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-18 23:59:05 [end_date_ymd] => 2025-03-19 02:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-18 23:59:05' and `end` < '2025-03-19 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-03-19 02:59:17] Production.INFO: count ==362 [2025-03-19 02:59:17] Production.ERROR: pbx CDR StartTime 2025-03-18 23:59:05 - End Time 2025-03-19 02:59:05 [2025-03-19 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712597', 'tblTempUsageDetail_20' ) start [2025-03-19 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712597', 'tblTempUsageDetail_20' ) end [2025-03-19 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712597', 'tblTempVendorCDR_20' ) start [2025-03-19 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712597', 'tblTempVendorCDR_20' ) end [2025-03-19 02:59:17] Production.INFO: ProcessCDR(1,14712597,1,1,2) [2025-03-19 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 02:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712597', 'tblTempUsageDetail_20' ) start [2025-03-19 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712597', 'tblTempUsageDetail_20' ) end [2025-03-19 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 02:59:21] Production.INFO: ==6156== Releasing lock... [2025-03-19 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 02:59:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:00:06 [end_date_ymd] => 2025-03-19 03:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:00:06' and `end` < '2025-03-19 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-03-19 03:00:19] Production.INFO: count ==372 [2025-03-19 03:00:19] Production.ERROR: pbx CDR StartTime 2025-03-19 00:00:06 - End Time 2025-03-19 03:00:06 [2025-03-19 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712603', 'tblTempUsageDetail_20' ) start [2025-03-19 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712603', 'tblTempUsageDetail_20' ) end [2025-03-19 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712603', 'tblTempVendorCDR_20' ) start [2025-03-19 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712603', 'tblTempVendorCDR_20' ) end [2025-03-19 03:00:19] Production.INFO: ProcessCDR(1,14712603,1,1,2) [2025-03-19 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712603', 'tblTempUsageDetail_20' ) start [2025-03-19 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712603', 'tblTempUsageDetail_20' ) end [2025-03-19 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:00:22] Production.INFO: ==6232== Releasing lock... [2025-03-19 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:00:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:01:05 [end_date_ymd] => 2025-03-19 03:01:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:01:05' and `end` < '2025-03-19 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-03-19 03:01:18] Production.INFO: count ==373 [2025-03-19 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:01:05 - End Time 2025-03-19 03:01:05 [2025-03-19 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712608', 'tblTempUsageDetail_20' ) start [2025-03-19 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712608', 'tblTempUsageDetail_20' ) end [2025-03-19 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712608', 'tblTempVendorCDR_20' ) start [2025-03-19 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712608', 'tblTempVendorCDR_20' ) end [2025-03-19 03:01:18] Production.INFO: ProcessCDR(1,14712608,1,1,2) [2025-03-19 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712608', 'tblTempUsageDetail_20' ) start [2025-03-19 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712608', 'tblTempUsageDetail_20' ) end [2025-03-19 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:01:21] Production.INFO: ==6320== Releasing lock... [2025-03-19 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:01:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:02:06 [end_date_ymd] => 2025-03-19 03:02:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:02:06' and `end` < '2025-03-19 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-03-19 03:02:18] Production.INFO: count ==373 [2025-03-19 03:02:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:02:06 - End Time 2025-03-19 03:02:06 [2025-03-19 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712613', 'tblTempUsageDetail_20' ) start [2025-03-19 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712613', 'tblTempUsageDetail_20' ) end [2025-03-19 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712613', 'tblTempVendorCDR_20' ) start [2025-03-19 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712613', 'tblTempVendorCDR_20' ) end [2025-03-19 03:02:18] Production.INFO: ProcessCDR(1,14712613,1,1,2) [2025-03-19 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712613', 'tblTempUsageDetail_20' ) start [2025-03-19 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712613', 'tblTempUsageDetail_20' ) end [2025-03-19 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:02:22] Production.INFO: ==6479== Releasing lock... [2025-03-19 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:02:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:03:05 [end_date_ymd] => 2025-03-19 03:03:05 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:03:05' and `end` < '2025-03-19 03: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-03-19 03:03:17] Production.INFO: count ==373 [2025-03-19 03:03:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:03:05 - End Time 2025-03-19 03:03:05 [2025-03-19 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712618', 'tblTempUsageDetail_20' ) start [2025-03-19 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712618', 'tblTempUsageDetail_20' ) end [2025-03-19 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712618', 'tblTempVendorCDR_20' ) start [2025-03-19 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712618', 'tblTempVendorCDR_20' ) end [2025-03-19 03:03:18] Production.INFO: ProcessCDR(1,14712618,1,1,2) [2025-03-19 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712618', 'tblTempUsageDetail_20' ) start [2025-03-19 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712618', 'tblTempUsageDetail_20' ) end [2025-03-19 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:03:22] Production.INFO: ==6580== Releasing lock... [2025-03-19 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:03:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:04:06 [end_date_ymd] => 2025-03-19 03:04:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:04:06' and `end` < '2025-03-19 03: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-03-19 03:04:18] Production.INFO: count ==373 [2025-03-19 03:04:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:04:06 - End Time 2025-03-19 03:04:06 [2025-03-19 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712623', 'tblTempUsageDetail_20' ) start [2025-03-19 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712623', 'tblTempUsageDetail_20' ) end [2025-03-19 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712623', 'tblTempVendorCDR_20' ) start [2025-03-19 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712623', 'tblTempVendorCDR_20' ) end [2025-03-19 03:04:18] Production.INFO: ProcessCDR(1,14712623,1,1,2) [2025-03-19 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712623', 'tblTempUsageDetail_20' ) start [2025-03-19 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712623', 'tblTempUsageDetail_20' ) end [2025-03-19 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:04:22] Production.INFO: ==6652== Releasing lock... [2025-03-19 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:04:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:05:06 [end_date_ymd] => 2025-03-19 03:05:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:05:06' and `end` < '2025-03-19 03: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-03-19 03:05:18] Production.INFO: count ==370 [2025-03-19 03:05:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:05:06 - End Time 2025-03-19 03:05:06 [2025-03-19 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712628', 'tblTempUsageDetail_20' ) start [2025-03-19 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712628', 'tblTempUsageDetail_20' ) end [2025-03-19 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712628', 'tblTempVendorCDR_20' ) start [2025-03-19 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712628', 'tblTempVendorCDR_20' ) end [2025-03-19 03:05:18] Production.INFO: ProcessCDR(1,14712628,1,1,2) [2025-03-19 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712628', 'tblTempUsageDetail_20' ) start [2025-03-19 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712628', 'tblTempUsageDetail_20' ) end [2025-03-19 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:05:22] Production.INFO: ==6724== Releasing lock... [2025-03-19 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:05:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:06:05 [end_date_ymd] => 2025-03-19 03:06:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:06:05' and `end` < '2025-03-19 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-03-19 03:06:17] Production.INFO: count ==370 [2025-03-19 03:06:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:06:05 - End Time 2025-03-19 03:06:05 [2025-03-19 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712633', 'tblTempUsageDetail_20' ) start [2025-03-19 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712633', 'tblTempUsageDetail_20' ) end [2025-03-19 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712633', 'tblTempVendorCDR_20' ) start [2025-03-19 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712633', 'tblTempVendorCDR_20' ) end [2025-03-19 03:06:17] Production.INFO: ProcessCDR(1,14712633,1,1,2) [2025-03-19 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712633', 'tblTempUsageDetail_20' ) start [2025-03-19 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712633', 'tblTempUsageDetail_20' ) end [2025-03-19 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:06:21] Production.INFO: ==6874== Releasing lock... [2025-03-19 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:06:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:07:05 [end_date_ymd] => 2025-03-19 03:07:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:07:05' and `end` < '2025-03-19 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-03-19 03:07:17] Production.INFO: count ==370 [2025-03-19 03:07:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:07:05 - End Time 2025-03-19 03:07:05 [2025-03-19 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712638', 'tblTempUsageDetail_20' ) start [2025-03-19 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712638', 'tblTempUsageDetail_20' ) end [2025-03-19 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712638', 'tblTempVendorCDR_20' ) start [2025-03-19 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712638', 'tblTempVendorCDR_20' ) end [2025-03-19 03:07:17] Production.INFO: ProcessCDR(1,14712638,1,1,2) [2025-03-19 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712638', 'tblTempUsageDetail_20' ) start [2025-03-19 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712638', 'tblTempUsageDetail_20' ) end [2025-03-19 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:07:21] Production.INFO: ==6950== Releasing lock... [2025-03-19 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:07:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:08:06 [end_date_ymd] => 2025-03-19 03:08:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:08:06' and `end` < '2025-03-19 03: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-03-19 03:08:18] Production.INFO: count ==370 [2025-03-19 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:08:06 - End Time 2025-03-19 03:08:06 [2025-03-19 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712643', 'tblTempUsageDetail_20' ) start [2025-03-19 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712643', 'tblTempUsageDetail_20' ) end [2025-03-19 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712643', 'tblTempVendorCDR_20' ) start [2025-03-19 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712643', 'tblTempVendorCDR_20' ) end [2025-03-19 03:08:18] Production.INFO: ProcessCDR(1,14712643,1,1,2) [2025-03-19 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712643', 'tblTempUsageDetail_20' ) start [2025-03-19 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712643', 'tblTempUsageDetail_20' ) end [2025-03-19 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:08:22] Production.INFO: ==7024== Releasing lock... [2025-03-19 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:08:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 03:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:09:06 [end_date_ymd] => 2025-03-19 03:09:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:09:06' and `end` < '2025-03-19 03: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-03-19 03:09:18] Production.INFO: count ==370 [2025-03-19 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:09:06 - End Time 2025-03-19 03:09:06 [2025-03-19 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712648', 'tblTempUsageDetail_20' ) start [2025-03-19 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712648', 'tblTempUsageDetail_20' ) end [2025-03-19 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712648', 'tblTempVendorCDR_20' ) start [2025-03-19 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712648', 'tblTempVendorCDR_20' ) end [2025-03-19 03:09:18] Production.INFO: ProcessCDR(1,14712648,1,1,2) [2025-03-19 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712648', 'tblTempUsageDetail_20' ) start [2025-03-19 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712648', 'tblTempUsageDetail_20' ) end [2025-03-19 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:09:22] Production.INFO: ==7172== Releasing lock... [2025-03-19 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:09:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:10:06 [end_date_ymd] => 2025-03-19 03:10:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:10:06' and `end` < '2025-03-19 03: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-03-19 03:10:18] Production.INFO: count ==358 [2025-03-19 03:10:19] Production.ERROR: pbx CDR StartTime 2025-03-19 00:10:06 - End Time 2025-03-19 03:10:06 [2025-03-19 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712654', 'tblTempUsageDetail_20' ) start [2025-03-19 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712654', 'tblTempUsageDetail_20' ) end [2025-03-19 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712654', 'tblTempVendorCDR_20' ) start [2025-03-19 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712654', 'tblTempVendorCDR_20' ) end [2025-03-19 03:10:19] Production.INFO: ProcessCDR(1,14712654,1,1,2) [2025-03-19 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712654', 'tblTempUsageDetail_20' ) start [2025-03-19 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712654', 'tblTempUsageDetail_20' ) end [2025-03-19 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:10:22] Production.INFO: ==7244== Releasing lock... [2025-03-19 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:10:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:11:05 [end_date_ymd] => 2025-03-19 03:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:11:05' and `end` < '2025-03-19 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-03-19 03:11:17] Production.INFO: count ==356 [2025-03-19 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:11:05 - End Time 2025-03-19 03:11:05 [2025-03-19 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712659', 'tblTempUsageDetail_20' ) start [2025-03-19 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712659', 'tblTempUsageDetail_20' ) end [2025-03-19 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712659', 'tblTempVendorCDR_20' ) start [2025-03-19 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712659', 'tblTempVendorCDR_20' ) end [2025-03-19 03:11:17] Production.INFO: ProcessCDR(1,14712659,1,1,2) [2025-03-19 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712659', 'tblTempUsageDetail_20' ) start [2025-03-19 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712659', 'tblTempUsageDetail_20' ) end [2025-03-19 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:11:21] Production.INFO: ==7319== Releasing lock... [2025-03-19 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:11:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-19 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:12:06 [end_date_ymd] => 2025-03-19 03:12:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:12:06' and `end` < '2025-03-19 03: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-03-19 03:12:18] Production.INFO: count ==349 [2025-03-19 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:12:06 - End Time 2025-03-19 03:12:06 [2025-03-19 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712664', 'tblTempUsageDetail_20' ) start [2025-03-19 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712664', 'tblTempUsageDetail_20' ) end [2025-03-19 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712664', 'tblTempVendorCDR_20' ) start [2025-03-19 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712664', 'tblTempVendorCDR_20' ) end [2025-03-19 03:12:18] Production.INFO: ProcessCDR(1,14712664,1,1,2) [2025-03-19 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712664', 'tblTempUsageDetail_20' ) start [2025-03-19 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712664', 'tblTempUsageDetail_20' ) end [2025-03-19 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:12:22] Production.INFO: ==7390== Releasing lock... [2025-03-19 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:12:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:13:05 [end_date_ymd] => 2025-03-19 03:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:13:05' and `end` < '2025-03-19 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-03-19 03:13:17] Production.INFO: count ==349 [2025-03-19 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:13:05 - End Time 2025-03-19 03:13:05 [2025-03-19 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712669', 'tblTempUsageDetail_20' ) start [2025-03-19 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712669', 'tblTempUsageDetail_20' ) end [2025-03-19 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712669', 'tblTempVendorCDR_20' ) start [2025-03-19 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712669', 'tblTempVendorCDR_20' ) end [2025-03-19 03:13:17] Production.INFO: ProcessCDR(1,14712669,1,1,2) [2025-03-19 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712669', 'tblTempUsageDetail_20' ) start [2025-03-19 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712669', 'tblTempUsageDetail_20' ) end [2025-03-19 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:13:21] Production.INFO: ==7536== Releasing lock... [2025-03-19 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:14:05 [end_date_ymd] => 2025-03-19 03:14:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:14:05' and `end` < '2025-03-19 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-03-19 03:14:18] Production.INFO: count ==348 [2025-03-19 03:14:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:14:05 - End Time 2025-03-19 03:14:05 [2025-03-19 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712674', 'tblTempUsageDetail_20' ) start [2025-03-19 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712674', 'tblTempUsageDetail_20' ) end [2025-03-19 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712674', 'tblTempVendorCDR_20' ) start [2025-03-19 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712674', 'tblTempVendorCDR_20' ) end [2025-03-19 03:14:18] Production.INFO: ProcessCDR(1,14712674,1,1,2) [2025-03-19 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712674', 'tblTempUsageDetail_20' ) start [2025-03-19 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712674', 'tblTempUsageDetail_20' ) end [2025-03-19 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:14:21] Production.INFO: ==7609== Releasing lock... [2025-03-19 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:14:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:15:05 [end_date_ymd] => 2025-03-19 03:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:15:05' and `end` < '2025-03-19 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-03-19 03:15:17] Production.INFO: count ==348 [2025-03-19 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:15:05 - End Time 2025-03-19 03:15:05 [2025-03-19 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712679', 'tblTempUsageDetail_20' ) start [2025-03-19 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712679', 'tblTempUsageDetail_20' ) end [2025-03-19 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712679', 'tblTempVendorCDR_20' ) start [2025-03-19 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712679', 'tblTempVendorCDR_20' ) end [2025-03-19 03:15:17] Production.INFO: ProcessCDR(1,14712679,1,1,2) [2025-03-19 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712679', 'tblTempUsageDetail_20' ) start [2025-03-19 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712679', 'tblTempUsageDetail_20' ) end [2025-03-19 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:15:21] Production.INFO: ==7681== Releasing lock... [2025-03-19 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:16:05 [end_date_ymd] => 2025-03-19 03:16:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:16:05' and `end` < '2025-03-19 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-03-19 03:16:17] Production.INFO: count ==348 [2025-03-19 03:16:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:16:05 - End Time 2025-03-19 03:16:05 [2025-03-19 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712684', 'tblTempUsageDetail_20' ) start [2025-03-19 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712684', 'tblTempUsageDetail_20' ) end [2025-03-19 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712684', 'tblTempVendorCDR_20' ) start [2025-03-19 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712684', 'tblTempVendorCDR_20' ) end [2025-03-19 03:16:17] Production.INFO: ProcessCDR(1,14712684,1,1,2) [2025-03-19 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712684', 'tblTempUsageDetail_20' ) start [2025-03-19 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712684', 'tblTempUsageDetail_20' ) end [2025-03-19 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:16:21] Production.INFO: ==7791== Releasing lock... [2025-03-19 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:17:05 [end_date_ymd] => 2025-03-19 03:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:17:05' and `end` < '2025-03-19 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-03-19 03:17:18] Production.INFO: count ==348 [2025-03-19 03:17:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:17:05 - End Time 2025-03-19 03:17:05 [2025-03-19 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712689', 'tblTempUsageDetail_20' ) start [2025-03-19 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712689', 'tblTempUsageDetail_20' ) end [2025-03-19 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712689', 'tblTempVendorCDR_20' ) start [2025-03-19 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712689', 'tblTempVendorCDR_20' ) end [2025-03-19 03:17:18] Production.INFO: ProcessCDR(1,14712689,1,1,2) [2025-03-19 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712689', 'tblTempUsageDetail_20' ) start [2025-03-19 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712689', 'tblTempUsageDetail_20' ) end [2025-03-19 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:17:21] Production.INFO: ==7940== Releasing lock... [2025-03-19 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:18:05 [end_date_ymd] => 2025-03-19 03:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:18:05' and `end` < '2025-03-19 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-03-19 03:18:17] Production.INFO: count ==348 [2025-03-19 03:18:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:18:05 - End Time 2025-03-19 03:18:05 [2025-03-19 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712694', 'tblTempUsageDetail_20' ) start [2025-03-19 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712694', 'tblTempUsageDetail_20' ) end [2025-03-19 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712694', 'tblTempVendorCDR_20' ) start [2025-03-19 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712694', 'tblTempVendorCDR_20' ) end [2025-03-19 03:18:18] Production.INFO: ProcessCDR(1,14712694,1,1,2) [2025-03-19 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712694', 'tblTempUsageDetail_20' ) start [2025-03-19 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712694', 'tblTempUsageDetail_20' ) end [2025-03-19 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:18:21] Production.INFO: ==8015== Releasing lock... [2025-03-19 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:19:05 [end_date_ymd] => 2025-03-19 03:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:19:05' and `end` < '2025-03-19 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-03-19 03:19:17] Production.INFO: count ==348 [2025-03-19 03:19:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:19:05 - End Time 2025-03-19 03:19:05 [2025-03-19 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712699', 'tblTempUsageDetail_20' ) start [2025-03-19 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712699', 'tblTempUsageDetail_20' ) end [2025-03-19 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712699', 'tblTempVendorCDR_20' ) start [2025-03-19 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712699', 'tblTempVendorCDR_20' ) end [2025-03-19 03:19:17] Production.INFO: ProcessCDR(1,14712699,1,1,2) [2025-03-19 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712699', 'tblTempUsageDetail_20' ) start [2025-03-19 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712699', 'tblTempUsageDetail_20' ) end [2025-03-19 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:19:21] Production.INFO: ==8126== Releasing lock... [2025-03-19 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:19:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 03:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:20:07 [end_date_ymd] => 2025-03-19 03:20:07 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:20:07' and `end` < '2025-03-19 03: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-03-19 03:20:19] Production.INFO: count ==338 [2025-03-19 03:20:19] Production.ERROR: pbx CDR StartTime 2025-03-19 00:20:07 - End Time 2025-03-19 03:20:07 [2025-03-19 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712705', 'tblTempUsageDetail_20' ) start [2025-03-19 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712705', 'tblTempUsageDetail_20' ) end [2025-03-19 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712705', 'tblTempVendorCDR_20' ) start [2025-03-19 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712705', 'tblTempVendorCDR_20' ) end [2025-03-19 03:20:19] Production.INFO: ProcessCDR(1,14712705,1,1,2) [2025-03-19 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712705', 'tblTempUsageDetail_20' ) start [2025-03-19 03:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712705', 'tblTempUsageDetail_20' ) end [2025-03-19 03:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:20:23] Production.INFO: ==8211== Releasing lock... [2025-03-19 03:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:20:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:21:05 [end_date_ymd] => 2025-03-19 03:21:05 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:21:05' and `end` < '2025-03-19 03: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-03-19 03:21:17] Production.INFO: count ==332 [2025-03-19 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:21:05 - End Time 2025-03-19 03:21:05 [2025-03-19 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712710', 'tblTempUsageDetail_20' ) start [2025-03-19 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712710', 'tblTempUsageDetail_20' ) end [2025-03-19 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712710', 'tblTempVendorCDR_20' ) start [2025-03-19 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712710', 'tblTempVendorCDR_20' ) end [2025-03-19 03:21:17] Production.INFO: ProcessCDR(1,14712710,1,1,2) [2025-03-19 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712710', 'tblTempUsageDetail_20' ) start [2025-03-19 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712710', 'tblTempUsageDetail_20' ) end [2025-03-19 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:21:21] Production.INFO: ==8293== Releasing lock... [2025-03-19 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:21:21] Production.INFO: 31 MB #Memory Used# [2025-03-19 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:22:06 [end_date_ymd] => 2025-03-19 03:22:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:22:06' and `end` < '2025-03-19 03: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-03-19 03:22:18] Production.INFO: count ==329 [2025-03-19 03:22:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:22:06 - End Time 2025-03-19 03:22:06 [2025-03-19 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712715', 'tblTempUsageDetail_20' ) start [2025-03-19 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712715', 'tblTempUsageDetail_20' ) end [2025-03-19 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712715', 'tblTempVendorCDR_20' ) start [2025-03-19 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712715', 'tblTempVendorCDR_20' ) end [2025-03-19 03:22:18] Production.INFO: ProcessCDR(1,14712715,1,1,2) [2025-03-19 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712715', 'tblTempUsageDetail_20' ) start [2025-03-19 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712715', 'tblTempUsageDetail_20' ) end [2025-03-19 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:22:21] Production.INFO: ==8368== Releasing lock... [2025-03-19 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:22:21] Production.INFO: 31 MB #Memory Used# [2025-03-19 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:23:05 [end_date_ymd] => 2025-03-19 03:23:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:23:05' and `end` < '2025-03-19 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-03-19 03:23:17] Production.INFO: count ==329 [2025-03-19 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:23:05 - End Time 2025-03-19 03:23:05 [2025-03-19 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712720', 'tblTempUsageDetail_20' ) start [2025-03-19 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712720', 'tblTempUsageDetail_20' ) end [2025-03-19 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712720', 'tblTempVendorCDR_20' ) start [2025-03-19 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712720', 'tblTempVendorCDR_20' ) end [2025-03-19 03:23:17] Production.INFO: ProcessCDR(1,14712720,1,1,2) [2025-03-19 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712720', 'tblTempUsageDetail_20' ) start [2025-03-19 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712720', 'tblTempUsageDetail_20' ) end [2025-03-19 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:23:21] Production.INFO: ==8444== Releasing lock... [2025-03-19 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:23:21] Production.INFO: 31 MB #Memory Used# [2025-03-19 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:24:05 [end_date_ymd] => 2025-03-19 03:24:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:24:05' and `end` < '2025-03-19 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-03-19 03:24:18] Production.INFO: count ==321 [2025-03-19 03:24:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:24:05 - End Time 2025-03-19 03:24:05 [2025-03-19 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712725', 'tblTempUsageDetail_20' ) start [2025-03-19 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712725', 'tblTempUsageDetail_20' ) end [2025-03-19 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712725', 'tblTempVendorCDR_20' ) start [2025-03-19 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712725', 'tblTempVendorCDR_20' ) end [2025-03-19 03:24:18] Production.INFO: ProcessCDR(1,14712725,1,1,2) [2025-03-19 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712725', 'tblTempUsageDetail_20' ) start [2025-03-19 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712725', 'tblTempUsageDetail_20' ) end [2025-03-19 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:24:21] Production.INFO: ==8518== Releasing lock... [2025-03-19 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:25:05 [end_date_ymd] => 2025-03-19 03:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:25:05' and `end` < '2025-03-19 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-03-19 03:25:17] Production.INFO: count ==320 [2025-03-19 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:25:05 - End Time 2025-03-19 03:25:05 [2025-03-19 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712730', 'tblTempUsageDetail_20' ) start [2025-03-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712730', 'tblTempUsageDetail_20' ) end [2025-03-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712730', 'tblTempVendorCDR_20' ) start [2025-03-19 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712730', 'tblTempVendorCDR_20' ) end [2025-03-19 03:25:17] Production.INFO: ProcessCDR(1,14712730,1,1,2) [2025-03-19 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712730', 'tblTempUsageDetail_20' ) start [2025-03-19 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712730', 'tblTempUsageDetail_20' ) end [2025-03-19 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:25:21] Production.INFO: ==8589== Releasing lock... [2025-03-19 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:26:05 [end_date_ymd] => 2025-03-19 03:26:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:26:05' and `end` < '2025-03-19 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-03-19 03:26:17] Production.INFO: count ==312 [2025-03-19 03:26:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:26:05 - End Time 2025-03-19 03:26:05 [2025-03-19 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712735', 'tblTempUsageDetail_20' ) start [2025-03-19 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712735', 'tblTempUsageDetail_20' ) end [2025-03-19 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712735', 'tblTempVendorCDR_20' ) start [2025-03-19 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712735', 'tblTempVendorCDR_20' ) end [2025-03-19 03:26:17] Production.INFO: ProcessCDR(1,14712735,1,1,2) [2025-03-19 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712735', 'tblTempUsageDetail_20' ) start [2025-03-19 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712735', 'tblTempUsageDetail_20' ) end [2025-03-19 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:26:21] Production.INFO: ==8661== Releasing lock... [2025-03-19 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:27:05 [end_date_ymd] => 2025-03-19 03:27:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:27:05' and `end` < '2025-03-19 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-03-19 03:27:17] Production.INFO: count ==308 [2025-03-19 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:27:05 - End Time 2025-03-19 03:27:05 [2025-03-19 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712740', 'tblTempUsageDetail_20' ) start [2025-03-19 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712740', 'tblTempUsageDetail_20' ) end [2025-03-19 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712740', 'tblTempVendorCDR_20' ) start [2025-03-19 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712740', 'tblTempVendorCDR_20' ) end [2025-03-19 03:27:17] Production.INFO: ProcessCDR(1,14712740,1,1,2) [2025-03-19 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712740', 'tblTempUsageDetail_20' ) start [2025-03-19 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712740', 'tblTempUsageDetail_20' ) end [2025-03-19 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:27:21] Production.INFO: ==8739== Releasing lock... [2025-03-19 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:28:05 [end_date_ymd] => 2025-03-19 03:28:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:28:05' and `end` < '2025-03-19 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-03-19 03:28:18] Production.INFO: count ==307 [2025-03-19 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:28:05 - End Time 2025-03-19 03:28:05 [2025-03-19 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712745', 'tblTempUsageDetail_20' ) start [2025-03-19 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712745', 'tblTempUsageDetail_20' ) end [2025-03-19 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712745', 'tblTempVendorCDR_20' ) start [2025-03-19 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712745', 'tblTempVendorCDR_20' ) end [2025-03-19 03:28:18] Production.INFO: ProcessCDR(1,14712745,1,1,2) [2025-03-19 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712745', 'tblTempUsageDetail_20' ) start [2025-03-19 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712745', 'tblTempUsageDetail_20' ) end [2025-03-19 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:28:21] Production.INFO: ==8813== Releasing lock... [2025-03-19 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:29:05 [end_date_ymd] => 2025-03-19 03:29:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:29:05' and `end` < '2025-03-19 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-03-19 03:29:17] Production.INFO: count ==308 [2025-03-19 03:29:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:29:05 - End Time 2025-03-19 03:29:05 [2025-03-19 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712750', 'tblTempUsageDetail_20' ) start [2025-03-19 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712750', 'tblTempUsageDetail_20' ) end [2025-03-19 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712750', 'tblTempVendorCDR_20' ) start [2025-03-19 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712750', 'tblTempVendorCDR_20' ) end [2025-03-19 03:29:17] Production.INFO: ProcessCDR(1,14712750,1,1,2) [2025-03-19 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712750', 'tblTempUsageDetail_20' ) start [2025-03-19 03:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712750', 'tblTempUsageDetail_20' ) end [2025-03-19 03:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:29:20] Production.INFO: ==8885== Releasing lock... [2025-03-19 03:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:29:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:30:06 [end_date_ymd] => 2025-03-19 03:30:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:30:06' and `end` < '2025-03-19 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-03-19 03:30:18] Production.INFO: count ==312 [2025-03-19 03:30:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:30:06 - End Time 2025-03-19 03:30:06 [2025-03-19 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712755', 'tblTempUsageDetail_20' ) start [2025-03-19 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712755', 'tblTempUsageDetail_20' ) end [2025-03-19 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712755', 'tblTempVendorCDR_20' ) start [2025-03-19 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712755', 'tblTempVendorCDR_20' ) end [2025-03-19 03:30:18] Production.INFO: ProcessCDR(1,14712755,1,1,2) [2025-03-19 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712755', 'tblTempUsageDetail_20' ) start [2025-03-19 03:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712755', 'tblTempUsageDetail_20' ) end [2025-03-19 03:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:30:24] Production.INFO: ==8962== Releasing lock... [2025-03-19 03:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:30:24] Production.INFO: 31 MB #Memory Used# [2025-03-19 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:31:05 [end_date_ymd] => 2025-03-19 03:31:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:31:05' and `end` < '2025-03-19 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-03-19 03:31:17] Production.INFO: count ==302 [2025-03-19 03:31:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:31:05 - End Time 2025-03-19 03:31:05 [2025-03-19 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712761', 'tblTempUsageDetail_20' ) start [2025-03-19 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712761', 'tblTempUsageDetail_20' ) end [2025-03-19 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712761', 'tblTempVendorCDR_20' ) start [2025-03-19 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712761', 'tblTempVendorCDR_20' ) end [2025-03-19 03:31:17] Production.INFO: ProcessCDR(1,14712761,1,1,2) [2025-03-19 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712761', 'tblTempUsageDetail_20' ) start [2025-03-19 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712761', 'tblTempUsageDetail_20' ) end [2025-03-19 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:31:21] Production.INFO: ==9035== Releasing lock... [2025-03-19 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:31:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:32:06 [end_date_ymd] => 2025-03-19 03:32:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:32:06' and `end` < '2025-03-19 03: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-03-19 03:32:18] Production.INFO: count ==302 [2025-03-19 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:32:06 - End Time 2025-03-19 03:32:06 [2025-03-19 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712766', 'tblTempUsageDetail_20' ) start [2025-03-19 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712766', 'tblTempUsageDetail_20' ) end [2025-03-19 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712766', 'tblTempVendorCDR_20' ) start [2025-03-19 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712766', 'tblTempVendorCDR_20' ) end [2025-03-19 03:32:18] Production.INFO: ProcessCDR(1,14712766,1,1,2) [2025-03-19 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712766', 'tblTempUsageDetail_20' ) start [2025-03-19 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712766', 'tblTempUsageDetail_20' ) end [2025-03-19 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:32:22] Production.INFO: ==9110== Releasing lock... [2025-03-19 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:32:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:33:06 [end_date_ymd] => 2025-03-19 03:33:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:33:06' and `end` < '2025-03-19 03: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-03-19 03:33:18] Production.INFO: count ==302 [2025-03-19 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:33:06 - End Time 2025-03-19 03:33:06 [2025-03-19 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712771', 'tblTempUsageDetail_20' ) start [2025-03-19 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712771', 'tblTempUsageDetail_20' ) end [2025-03-19 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712771', 'tblTempVendorCDR_20' ) start [2025-03-19 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712771', 'tblTempVendorCDR_20' ) end [2025-03-19 03:33:18] Production.INFO: ProcessCDR(1,14712771,1,1,2) [2025-03-19 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712771', 'tblTempUsageDetail_20' ) start [2025-03-19 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712771', 'tblTempUsageDetail_20' ) end [2025-03-19 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:33:22] Production.INFO: ==9180== Releasing lock... [2025-03-19 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:33:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:34:05 [end_date_ymd] => 2025-03-19 03:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:34:05' and `end` < '2025-03-19 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-03-19 03:34:17] Production.INFO: count ==302 [2025-03-19 03:34:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:34:05 - End Time 2025-03-19 03:34:05 [2025-03-19 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712776', 'tblTempUsageDetail_20' ) start [2025-03-19 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712776', 'tblTempUsageDetail_20' ) end [2025-03-19 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712776', 'tblTempVendorCDR_20' ) start [2025-03-19 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712776', 'tblTempVendorCDR_20' ) end [2025-03-19 03:34:17] Production.INFO: ProcessCDR(1,14712776,1,1,2) [2025-03-19 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712776', 'tblTempUsageDetail_20' ) start [2025-03-19 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712776', 'tblTempUsageDetail_20' ) end [2025-03-19 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:34:21] Production.INFO: ==9253== Releasing lock... [2025-03-19 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:34:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:35:05 [end_date_ymd] => 2025-03-19 03:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:35:05' and `end` < '2025-03-19 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-03-19 03:35:17] Production.INFO: count ==302 [2025-03-19 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:35:05 - End Time 2025-03-19 03:35:05 [2025-03-19 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712781', 'tblTempUsageDetail_20' ) start [2025-03-19 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712781', 'tblTempUsageDetail_20' ) end [2025-03-19 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712781', 'tblTempVendorCDR_20' ) start [2025-03-19 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712781', 'tblTempVendorCDR_20' ) end [2025-03-19 03:35:18] Production.INFO: ProcessCDR(1,14712781,1,1,2) [2025-03-19 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712781', 'tblTempUsageDetail_20' ) start [2025-03-19 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712781', 'tblTempUsageDetail_20' ) end [2025-03-19 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:35:22] Production.INFO: ==9367== Releasing lock... [2025-03-19 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:35:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:36:05 [end_date_ymd] => 2025-03-19 03:36:05 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:36:05' and `end` < '2025-03-19 03: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-03-19 03:36:18] Production.INFO: count ==302 [2025-03-19 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:36:05 - End Time 2025-03-19 03:36:05 [2025-03-19 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712786', 'tblTempUsageDetail_20' ) start [2025-03-19 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712786', 'tblTempUsageDetail_20' ) end [2025-03-19 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712786', 'tblTempVendorCDR_20' ) start [2025-03-19 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712786', 'tblTempVendorCDR_20' ) end [2025-03-19 03:36:18] Production.INFO: ProcessCDR(1,14712786,1,1,2) [2025-03-19 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712786', 'tblTempUsageDetail_20' ) start [2025-03-19 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712786', 'tblTempUsageDetail_20' ) end [2025-03-19 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:36:22] Production.INFO: ==9438== Releasing lock... [2025-03-19 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:36:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:37:05 [end_date_ymd] => 2025-03-19 03:37:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:37:05' and `end` < '2025-03-19 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-03-19 03:37:18] Production.INFO: count ==298 [2025-03-19 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:37:05 - End Time 2025-03-19 03:37:05 [2025-03-19 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712791', 'tblTempUsageDetail_20' ) start [2025-03-19 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712791', 'tblTempUsageDetail_20' ) end [2025-03-19 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712791', 'tblTempVendorCDR_20' ) start [2025-03-19 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712791', 'tblTempVendorCDR_20' ) end [2025-03-19 03:37:18] Production.INFO: ProcessCDR(1,14712791,1,1,2) [2025-03-19 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712791', 'tblTempUsageDetail_20' ) start [2025-03-19 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712791', 'tblTempUsageDetail_20' ) end [2025-03-19 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:37:21] Production.INFO: ==9511== Releasing lock... [2025-03-19 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:37:21] Production.INFO: 31 MB #Memory Used# [2025-03-19 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:38:06 [end_date_ymd] => 2025-03-19 03:38:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:38:06' and `end` < '2025-03-19 03: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-03-19 03:38:18] Production.INFO: count ==298 [2025-03-19 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:38:06 - End Time 2025-03-19 03:38:06 [2025-03-19 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712796', 'tblTempUsageDetail_20' ) start [2025-03-19 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712796', 'tblTempUsageDetail_20' ) end [2025-03-19 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712796', 'tblTempVendorCDR_20' ) start [2025-03-19 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712796', 'tblTempVendorCDR_20' ) end [2025-03-19 03:38:18] Production.INFO: ProcessCDR(1,14712796,1,1,2) [2025-03-19 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712796', 'tblTempUsageDetail_20' ) start [2025-03-19 03:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712796', 'tblTempUsageDetail_20' ) end [2025-03-19 03:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:38:22] Production.INFO: ==9585== Releasing lock... [2025-03-19 03:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:38:22] Production.INFO: 31 MB #Memory Used# [2025-03-19 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:39:05 [end_date_ymd] => 2025-03-19 03:39:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:39:05' and `end` < '2025-03-19 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-03-19 03:39:17] Production.INFO: count ==298 [2025-03-19 03:39:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:39:05 - End Time 2025-03-19 03:39:05 [2025-03-19 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712801', 'tblTempUsageDetail_20' ) start [2025-03-19 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712801', 'tblTempUsageDetail_20' ) end [2025-03-19 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712801', 'tblTempVendorCDR_20' ) start [2025-03-19 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712801', 'tblTempVendorCDR_20' ) end [2025-03-19 03:39:17] Production.INFO: ProcessCDR(1,14712801,1,1,2) [2025-03-19 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712801', 'tblTempUsageDetail_20' ) start [2025-03-19 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712801', 'tblTempUsageDetail_20' ) end [2025-03-19 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:39:21] Production.INFO: ==9656== Releasing lock... [2025-03-19 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:39:21] Production.INFO: 31 MB #Memory Used# [2025-03-19 03:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:40:07 [end_date_ymd] => 2025-03-19 03:40:07 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:40:07' and `end` < '2025-03-19 03: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-03-19 03:40:19] Production.INFO: count ==288 [2025-03-19 03:40:19] Production.ERROR: pbx CDR StartTime 2025-03-19 00:40:07 - End Time 2025-03-19 03:40:07 [2025-03-19 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712806', 'tblTempUsageDetail_20' ) start [2025-03-19 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712806', 'tblTempUsageDetail_20' ) end [2025-03-19 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712806', 'tblTempVendorCDR_20' ) start [2025-03-19 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712806', 'tblTempVendorCDR_20' ) end [2025-03-19 03:40:19] Production.INFO: ProcessCDR(1,14712806,1,1,2) [2025-03-19 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712806', 'tblTempUsageDetail_20' ) start [2025-03-19 03:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712806', 'tblTempUsageDetail_20' ) end [2025-03-19 03:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:40:23] Production.INFO: ==9732== Releasing lock... [2025-03-19 03:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:40:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:41:06 [end_date_ymd] => 2025-03-19 03:41:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:41:06' and `end` < '2025-03-19 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-03-19 03:41:18] Production.INFO: count ==288 [2025-03-19 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:41:06 - End Time 2025-03-19 03:41:06 [2025-03-19 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712812', 'tblTempUsageDetail_20' ) start [2025-03-19 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712812', 'tblTempUsageDetail_20' ) end [2025-03-19 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712812', 'tblTempVendorCDR_20' ) start [2025-03-19 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712812', 'tblTempVendorCDR_20' ) end [2025-03-19 03:41:18] Production.INFO: ProcessCDR(1,14712812,1,1,2) [2025-03-19 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712812', 'tblTempUsageDetail_20' ) start [2025-03-19 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712812', 'tblTempUsageDetail_20' ) end [2025-03-19 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:41:22] Production.INFO: ==9807== Releasing lock... [2025-03-19 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:41:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:42:06 [end_date_ymd] => 2025-03-19 03:42:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:42:06' and `end` < '2025-03-19 03: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-03-19 03:42:18] Production.INFO: count ==288 [2025-03-19 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:42:06 - End Time 2025-03-19 03:42:06 [2025-03-19 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712817', 'tblTempUsageDetail_20' ) start [2025-03-19 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712817', 'tblTempUsageDetail_20' ) end [2025-03-19 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712817', 'tblTempVendorCDR_20' ) start [2025-03-19 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712817', 'tblTempVendorCDR_20' ) end [2025-03-19 03:42:18] Production.INFO: ProcessCDR(1,14712817,1,1,2) [2025-03-19 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712817', 'tblTempUsageDetail_20' ) start [2025-03-19 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712817', 'tblTempUsageDetail_20' ) end [2025-03-19 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:42:22] Production.INFO: ==9878== Releasing lock... [2025-03-19 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:42:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:43:05 [end_date_ymd] => 2025-03-19 03:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:43:05' and `end` < '2025-03-19 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-03-19 03:43:17] Production.INFO: count ==288 [2025-03-19 03:43:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:43:05 - End Time 2025-03-19 03:43:05 [2025-03-19 03:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712822', 'tblTempUsageDetail_20' ) start [2025-03-19 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712822', 'tblTempUsageDetail_20' ) end [2025-03-19 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712822', 'tblTempVendorCDR_20' ) start [2025-03-19 03:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712822', 'tblTempVendorCDR_20' ) end [2025-03-19 03:43:17] Production.INFO: ProcessCDR(1,14712822,1,1,2) [2025-03-19 03:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712822', 'tblTempUsageDetail_20' ) start [2025-03-19 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712822', 'tblTempUsageDetail_20' ) end [2025-03-19 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:43:21] Production.INFO: ==9950== Releasing lock... [2025-03-19 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:43:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:44:06 [end_date_ymd] => 2025-03-19 03:44:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:44:06' and `end` < '2025-03-19 03: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-03-19 03:44:18] Production.INFO: count ==288 [2025-03-19 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:44:06 - End Time 2025-03-19 03:44:06 [2025-03-19 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712827', 'tblTempUsageDetail_20' ) start [2025-03-19 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712827', 'tblTempUsageDetail_20' ) end [2025-03-19 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712827', 'tblTempVendorCDR_20' ) start [2025-03-19 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712827', 'tblTempVendorCDR_20' ) end [2025-03-19 03:44:18] Production.INFO: ProcessCDR(1,14712827,1,1,2) [2025-03-19 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712827', 'tblTempUsageDetail_20' ) start [2025-03-19 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712827', 'tblTempUsageDetail_20' ) end [2025-03-19 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:44:22] Production.INFO: ==10024== Releasing lock... [2025-03-19 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:44:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:45:06 [end_date_ymd] => 2025-03-19 03:45:06 [RateCDR] => 1 ) [2025-03-19 03:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 00:45:06' and `end` < '2025-03-19 03:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 03:45:18] Production.INFO: count ==288 [2025-03-19 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:45:06 - End Time 2025-03-19 03:45:06 [2025-03-19 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712832', 'tblTempUsageDetail_20' ) start [2025-03-19 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712832', 'tblTempUsageDetail_20' ) end [2025-03-19 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712832', 'tblTempVendorCDR_20' ) start [2025-03-19 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712832', 'tblTempVendorCDR_20' ) end [2025-03-19 03:45:18] Production.INFO: ProcessCDR(1,14712832,1,1,2) [2025-03-19 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712832', 'tblTempUsageDetail_20' ) start [2025-03-19 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712832', 'tblTempUsageDetail_20' ) end [2025-03-19 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:45:22] Production.INFO: ==10098== Releasing lock... [2025-03-19 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:45:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:46:06 [end_date_ymd] => 2025-03-19 03:46:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:46:06' and `end` < '2025-03-19 03: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-03-19 03:46:18] Production.INFO: count ==288 [2025-03-19 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:46:06 - End Time 2025-03-19 03:46:06 [2025-03-19 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712837', 'tblTempUsageDetail_20' ) start [2025-03-19 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712837', 'tblTempUsageDetail_20' ) end [2025-03-19 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712837', 'tblTempVendorCDR_20' ) start [2025-03-19 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712837', 'tblTempVendorCDR_20' ) end [2025-03-19 03:46:18] Production.INFO: ProcessCDR(1,14712837,1,1,2) [2025-03-19 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712837', 'tblTempUsageDetail_20' ) start [2025-03-19 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712837', 'tblTempUsageDetail_20' ) end [2025-03-19 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:46:22] Production.INFO: ==10179== Releasing lock... [2025-03-19 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:46:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:47:05 [end_date_ymd] => 2025-03-19 03:47:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:47:05' and `end` < '2025-03-19 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-03-19 03:47:18] Production.INFO: count ==288 [2025-03-19 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:47:05 - End Time 2025-03-19 03:47:05 [2025-03-19 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712842', 'tblTempUsageDetail_20' ) start [2025-03-19 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712842', 'tblTempUsageDetail_20' ) end [2025-03-19 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712842', 'tblTempVendorCDR_20' ) start [2025-03-19 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712842', 'tblTempVendorCDR_20' ) end [2025-03-19 03:47:18] Production.INFO: ProcessCDR(1,14712842,1,1,2) [2025-03-19 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712842', 'tblTempUsageDetail_20' ) start [2025-03-19 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712842', 'tblTempUsageDetail_20' ) end [2025-03-19 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:47:22] Production.INFO: ==10251== Releasing lock... [2025-03-19 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:47:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:48:06 [end_date_ymd] => 2025-03-19 03:48:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:48:06' and `end` < '2025-03-19 03: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-03-19 03:48:18] Production.INFO: count ==288 [2025-03-19 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:48:06 - End Time 2025-03-19 03:48:06 [2025-03-19 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712847', 'tblTempUsageDetail_20' ) start [2025-03-19 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712847', 'tblTempUsageDetail_20' ) end [2025-03-19 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712847', 'tblTempVendorCDR_20' ) start [2025-03-19 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712847', 'tblTempVendorCDR_20' ) end [2025-03-19 03:48:18] Production.INFO: ProcessCDR(1,14712847,1,1,2) [2025-03-19 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712847', 'tblTempUsageDetail_20' ) start [2025-03-19 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712847', 'tblTempUsageDetail_20' ) end [2025-03-19 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:48:22] Production.INFO: ==10323== Releasing lock... [2025-03-19 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:48:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:49:05 [end_date_ymd] => 2025-03-19 03:49:05 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:49:05' and `end` < '2025-03-19 03: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-03-19 03:49:17] Production.INFO: count ==286 [2025-03-19 03:49:17] Production.ERROR: pbx CDR StartTime 2025-03-19 00:49:05 - End Time 2025-03-19 03:49:05 [2025-03-19 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712852', 'tblTempUsageDetail_20' ) start [2025-03-19 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712852', 'tblTempUsageDetail_20' ) end [2025-03-19 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712852', 'tblTempVendorCDR_20' ) start [2025-03-19 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712852', 'tblTempVendorCDR_20' ) end [2025-03-19 03:49:17] Production.INFO: ProcessCDR(1,14712852,1,1,2) [2025-03-19 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712852', 'tblTempUsageDetail_20' ) start [2025-03-19 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712852', 'tblTempUsageDetail_20' ) end [2025-03-19 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:49:21] Production.INFO: ==10395== Releasing lock... [2025-03-19 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:49:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:50:07 [end_date_ymd] => 2025-03-19 03:50:07 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:50:07' and `end` < '2025-03-19 03: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-03-19 03:50:19] Production.INFO: count ==276 [2025-03-19 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-19 00:50:07 - End Time 2025-03-19 03:50:07 [2025-03-19 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712858', 'tblTempUsageDetail_20' ) start [2025-03-19 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712858', 'tblTempUsageDetail_20' ) end [2025-03-19 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712858', 'tblTempVendorCDR_20' ) start [2025-03-19 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712858', 'tblTempVendorCDR_20' ) end [2025-03-19 03:50:19] Production.INFO: ProcessCDR(1,14712858,1,1,2) [2025-03-19 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712858', 'tblTempUsageDetail_20' ) start [2025-03-19 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712858', 'tblTempUsageDetail_20' ) end [2025-03-19 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:50:23] Production.INFO: ==10510== Releasing lock... [2025-03-19 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:50:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-19 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:51:05 [end_date_ymd] => 2025-03-19 03:51:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:51:05' and `end` < '2025-03-19 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-03-19 03:51:18] Production.INFO: count ==272 [2025-03-19 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:51:05 - End Time 2025-03-19 03:51:05 [2025-03-19 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712863', 'tblTempUsageDetail_20' ) start [2025-03-19 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712863', 'tblTempUsageDetail_20' ) end [2025-03-19 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712863', 'tblTempVendorCDR_20' ) start [2025-03-19 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712863', 'tblTempVendorCDR_20' ) end [2025-03-19 03:51:18] Production.INFO: ProcessCDR(1,14712863,1,1,2) [2025-03-19 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712863', 'tblTempUsageDetail_20' ) start [2025-03-19 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712863', 'tblTempUsageDetail_20' ) end [2025-03-19 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:51:22] Production.INFO: ==10583== Releasing lock... [2025-03-19 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:52:06 [end_date_ymd] => 2025-03-19 03:52:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:52:06' and `end` < '2025-03-19 03: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-03-19 03:52:18] Production.INFO: count ==269 [2025-03-19 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:52:06 - End Time 2025-03-19 03:52:06 [2025-03-19 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712868', 'tblTempUsageDetail_20' ) start [2025-03-19 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712868', 'tblTempUsageDetail_20' ) end [2025-03-19 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712868', 'tblTempVendorCDR_20' ) start [2025-03-19 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712868', 'tblTempVendorCDR_20' ) end [2025-03-19 03:52:19] Production.INFO: ProcessCDR(1,14712868,1,1,2) [2025-03-19 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712868', 'tblTempUsageDetail_20' ) start [2025-03-19 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712868', 'tblTempUsageDetail_20' ) end [2025-03-19 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:52:22] Production.INFO: ==10655== Releasing lock... [2025-03-19 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:52:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:53:06 [end_date_ymd] => 2025-03-19 03:53:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:53:06' and `end` < '2025-03-19 03: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-03-19 03:53:18] Production.INFO: count ==263 [2025-03-19 03:53:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:53:06 - End Time 2025-03-19 03:53:06 [2025-03-19 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712873', 'tblTempUsageDetail_20' ) start [2025-03-19 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712873', 'tblTempUsageDetail_20' ) end [2025-03-19 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712873', 'tblTempVendorCDR_20' ) start [2025-03-19 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712873', 'tblTempVendorCDR_20' ) end [2025-03-19 03:53:18] Production.INFO: ProcessCDR(1,14712873,1,1,2) [2025-03-19 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712873', 'tblTempUsageDetail_20' ) start [2025-03-19 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712873', 'tblTempUsageDetail_20' ) end [2025-03-19 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:53:22] Production.INFO: ==10727== Releasing lock... [2025-03-19 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:53:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:54:05 [end_date_ymd] => 2025-03-19 03:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:54:05' and `end` < '2025-03-19 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-03-19 03:54:17] Production.INFO: count ==263 [2025-03-19 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:54:05 - End Time 2025-03-19 03:54:05 [2025-03-19 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712878', 'tblTempUsageDetail_20' ) start [2025-03-19 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712878', 'tblTempUsageDetail_20' ) end [2025-03-19 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712878', 'tblTempVendorCDR_20' ) start [2025-03-19 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712878', 'tblTempVendorCDR_20' ) end [2025-03-19 03:54:18] Production.INFO: ProcessCDR(1,14712878,1,1,2) [2025-03-19 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712878', 'tblTempUsageDetail_20' ) start [2025-03-19 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712878', 'tblTempUsageDetail_20' ) end [2025-03-19 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:54:21] Production.INFO: ==10801== Releasing lock... [2025-03-19 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:54:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:55:06 [end_date_ymd] => 2025-03-19 03:55:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:55:06' and `end` < '2025-03-19 03: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-03-19 03:55:18] Production.INFO: count ==261 [2025-03-19 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:55:06 - End Time 2025-03-19 03:55:06 [2025-03-19 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712883', 'tblTempUsageDetail_20' ) start [2025-03-19 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712883', 'tblTempUsageDetail_20' ) end [2025-03-19 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712883', 'tblTempVendorCDR_20' ) start [2025-03-19 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712883', 'tblTempVendorCDR_20' ) end [2025-03-19 03:55:18] Production.INFO: ProcessCDR(1,14712883,1,1,2) [2025-03-19 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712883', 'tblTempUsageDetail_20' ) start [2025-03-19 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712883', 'tblTempUsageDetail_20' ) end [2025-03-19 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:55:22] Production.INFO: ==10871== Releasing lock... [2025-03-19 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:55:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:56:06 [end_date_ymd] => 2025-03-19 03:56:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:56:06' and `end` < '2025-03-19 03: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-03-19 03:56:18] Production.INFO: count ==257 [2025-03-19 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:56:06 - End Time 2025-03-19 03:56:06 [2025-03-19 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712888', 'tblTempUsageDetail_20' ) start [2025-03-19 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712888', 'tblTempUsageDetail_20' ) end [2025-03-19 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712888', 'tblTempVendorCDR_20' ) start [2025-03-19 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712888', 'tblTempVendorCDR_20' ) end [2025-03-19 03:56:18] Production.INFO: ProcessCDR(1,14712888,1,1,2) [2025-03-19 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712888', 'tblTempUsageDetail_20' ) start [2025-03-19 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712888', 'tblTempUsageDetail_20' ) end [2025-03-19 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:56:22] Production.INFO: ==10944== Releasing lock... [2025-03-19 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:56:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-19 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:57:06 [end_date_ymd] => 2025-03-19 03:57:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:57:06' and `end` < '2025-03-19 03: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-03-19 03:57:18] Production.INFO: count ==256 [2025-03-19 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:57:06 - End Time 2025-03-19 03:57:06 [2025-03-19 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712893', 'tblTempUsageDetail_20' ) start [2025-03-19 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712893', 'tblTempUsageDetail_20' ) end [2025-03-19 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712893', 'tblTempVendorCDR_20' ) start [2025-03-19 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712893', 'tblTempVendorCDR_20' ) end [2025-03-19 03:57:18] Production.INFO: ProcessCDR(1,14712893,1,1,2) [2025-03-19 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712893', 'tblTempUsageDetail_20' ) start [2025-03-19 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712893', 'tblTempUsageDetail_20' ) end [2025-03-19 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:57:22] Production.INFO: ==11017== Releasing lock... [2025-03-19 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:57:22] Production.INFO: 30 MB #Memory Used# [2025-03-19 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:58:05 [end_date_ymd] => 2025-03-19 03:58:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 00:58:05' and `end` < '2025-03-19 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-03-19 03:58:18] Production.INFO: count ==256 [2025-03-19 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:58:05 - End Time 2025-03-19 03:58:05 [2025-03-19 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712898', 'tblTempUsageDetail_20' ) start [2025-03-19 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712898', 'tblTempUsageDetail_20' ) end [2025-03-19 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712898', 'tblTempVendorCDR_20' ) start [2025-03-19 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712898', 'tblTempVendorCDR_20' ) end [2025-03-19 03:58:18] Production.INFO: ProcessCDR(1,14712898,1,1,2) [2025-03-19 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712898', 'tblTempUsageDetail_20' ) start [2025-03-19 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712898', 'tblTempUsageDetail_20' ) end [2025-03-19 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:58:22] Production.INFO: ==11090== Releasing lock... [2025-03-19 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:58:22] Production.INFO: 30 MB #Memory Used# [2025-03-19 03:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 00:59:06 [end_date_ymd] => 2025-03-19 03:59:06 [RateCDR] => 1 ) [2025-03-19 03: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-03-19 00:59:06' and `end` < '2025-03-19 03: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-03-19 03:59:18] Production.INFO: count ==256 [2025-03-19 03:59:18] Production.ERROR: pbx CDR StartTime 2025-03-19 00:59:06 - End Time 2025-03-19 03:59:06 [2025-03-19 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712903', 'tblTempUsageDetail_20' ) start [2025-03-19 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712903', 'tblTempUsageDetail_20' ) end [2025-03-19 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712903', 'tblTempVendorCDR_20' ) start [2025-03-19 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712903', 'tblTempVendorCDR_20' ) end [2025-03-19 03:59:18] Production.INFO: ProcessCDR(1,14712903,1,1,2) [2025-03-19 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712903', 'tblTempUsageDetail_20' ) start [2025-03-19 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712903', 'tblTempUsageDetail_20' ) end [2025-03-19 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 03:59:22] Production.INFO: ==11161== Releasing lock... [2025-03-19 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 03:59:22] Production.INFO: 30 MB #Memory Used# [2025-03-19 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:00:06 [end_date_ymd] => 2025-03-19 04:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:00:06' and `end` < '2025-03-19 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-03-19 04:00:19] Production.INFO: count ==246 [2025-03-19 04:00:19] Production.ERROR: pbx CDR StartTime 2025-03-19 01:00:06 - End Time 2025-03-19 04:00:06 [2025-03-19 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712909', 'tblTempUsageDetail_20' ) start [2025-03-19 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712909', 'tblTempUsageDetail_20' ) end [2025-03-19 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712909', 'tblTempVendorCDR_20' ) start [2025-03-19 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712909', 'tblTempVendorCDR_20' ) end [2025-03-19 04:00:19] Production.INFO: ProcessCDR(1,14712909,1,1,2) [2025-03-19 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712909', 'tblTempUsageDetail_20' ) start [2025-03-19 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712909', 'tblTempUsageDetail_20' ) end [2025-03-19 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:00:22] Production.INFO: ==11236== Releasing lock... [2025-03-19 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-19 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:01:06 [end_date_ymd] => 2025-03-19 04:01:06 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:01:06' and `end` < '2025-03-19 04: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-03-19 04:01:18] Production.INFO: count ==243 [2025-03-19 04:01:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:01:06 - End Time 2025-03-19 04:01:06 [2025-03-19 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712915', 'tblTempUsageDetail_20' ) start [2025-03-19 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712915', 'tblTempUsageDetail_20' ) end [2025-03-19 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712915', 'tblTempVendorCDR_20' ) start [2025-03-19 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712915', 'tblTempVendorCDR_20' ) end [2025-03-19 04:01:18] Production.INFO: ProcessCDR(1,14712915,1,1,2) [2025-03-19 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712915', 'tblTempUsageDetail_20' ) start [2025-03-19 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712915', 'tblTempUsageDetail_20' ) end [2025-03-19 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:01:23] Production.INFO: ==11326== Releasing lock... [2025-03-19 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:01:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:02:05 [end_date_ymd] => 2025-03-19 04:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:02:05' and `end` < '2025-03-19 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-03-19 04:02:17] Production.INFO: count ==240 [2025-03-19 04:02:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:02:05 - End Time 2025-03-19 04:02:05 [2025-03-19 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712920', 'tblTempUsageDetail_20' ) start [2025-03-19 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712920', 'tblTempUsageDetail_20' ) end [2025-03-19 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712920', 'tblTempVendorCDR_20' ) start [2025-03-19 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712920', 'tblTempVendorCDR_20' ) end [2025-03-19 04:02:18] Production.INFO: ProcessCDR(1,14712920,1,1,2) [2025-03-19 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712920', 'tblTempUsageDetail_20' ) start [2025-03-19 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712920', 'tblTempUsageDetail_20' ) end [2025-03-19 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:02:21] Production.INFO: ==11399== Releasing lock... [2025-03-19 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-19 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:03:06 [end_date_ymd] => 2025-03-19 04:03:06 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:03:06' and `end` < '2025-03-19 04: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-03-19 04:03:18] Production.INFO: count ==239 [2025-03-19 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:03:06 - End Time 2025-03-19 04:03:06 [2025-03-19 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712925', 'tblTempUsageDetail_20' ) start [2025-03-19 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712925', 'tblTempUsageDetail_20' ) end [2025-03-19 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712925', 'tblTempVendorCDR_20' ) start [2025-03-19 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712925', 'tblTempVendorCDR_20' ) end [2025-03-19 04:03:18] Production.INFO: ProcessCDR(1,14712925,1,1,2) [2025-03-19 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712925', 'tblTempUsageDetail_20' ) start [2025-03-19 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712925', 'tblTempUsageDetail_20' ) end [2025-03-19 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:03:22] Production.INFO: ==11475== Releasing lock... [2025-03-19 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:03:22] Production.INFO: 30 MB #Memory Used# [2025-03-19 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:04:05 [end_date_ymd] => 2025-03-19 04:04:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:04:05' and `end` < '2025-03-19 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-03-19 04:04:17] Production.INFO: count ==239 [2025-03-19 04:04:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:04:05 - End Time 2025-03-19 04:04:05 [2025-03-19 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712930', 'tblTempUsageDetail_20' ) start [2025-03-19 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712930', 'tblTempUsageDetail_20' ) end [2025-03-19 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712930', 'tblTempVendorCDR_20' ) start [2025-03-19 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712930', 'tblTempVendorCDR_20' ) end [2025-03-19 04:04:18] Production.INFO: ProcessCDR(1,14712930,1,1,2) [2025-03-19 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712930', 'tblTempUsageDetail_20' ) start [2025-03-19 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712930', 'tblTempUsageDetail_20' ) end [2025-03-19 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:04:21] Production.INFO: ==11548== Releasing lock... [2025-03-19 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:04:21] Production.INFO: 30 MB #Memory Used# [2025-03-19 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:05:05 [end_date_ymd] => 2025-03-19 04:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:05:05' and `end` < '2025-03-19 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-03-19 04:05:17] Production.INFO: count ==239 [2025-03-19 04:05:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:05:05 - End Time 2025-03-19 04:05:05 [2025-03-19 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712935', 'tblTempUsageDetail_20' ) start [2025-03-19 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712935', 'tblTempUsageDetail_20' ) end [2025-03-19 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712935', 'tblTempVendorCDR_20' ) start [2025-03-19 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712935', 'tblTempVendorCDR_20' ) end [2025-03-19 04:05:17] Production.INFO: ProcessCDR(1,14712935,1,1,2) [2025-03-19 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712935', 'tblTempUsageDetail_20' ) start [2025-03-19 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712935', 'tblTempUsageDetail_20' ) end [2025-03-19 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:05:21] Production.INFO: ==11623== Releasing lock... [2025-03-19 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:05:21] Production.INFO: 30 MB #Memory Used# [2025-03-19 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:06:06 [end_date_ymd] => 2025-03-19 04:06:06 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:06:06' and `end` < '2025-03-19 04: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-03-19 04:06:18] Production.INFO: count ==235 [2025-03-19 04:06:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:06:06 - End Time 2025-03-19 04:06:06 [2025-03-19 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712940', 'tblTempUsageDetail_20' ) start [2025-03-19 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712940', 'tblTempUsageDetail_20' ) end [2025-03-19 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712940', 'tblTempVendorCDR_20' ) start [2025-03-19 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712940', 'tblTempVendorCDR_20' ) end [2025-03-19 04:06:18] Production.INFO: ProcessCDR(1,14712940,1,1,2) [2025-03-19 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712940', 'tblTempUsageDetail_20' ) start [2025-03-19 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712940', 'tblTempUsageDetail_20' ) end [2025-03-19 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:06:22] Production.INFO: ==11740== Releasing lock... [2025-03-19 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-19 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:07:05 [end_date_ymd] => 2025-03-19 04:07:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:07:05' and `end` < '2025-03-19 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-03-19 04:07:18] Production.INFO: count ==235 [2025-03-19 04:07:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:07:05 - End Time 2025-03-19 04:07:05 [2025-03-19 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712945', 'tblTempUsageDetail_20' ) start [2025-03-19 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712945', 'tblTempUsageDetail_20' ) end [2025-03-19 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712945', 'tblTempVendorCDR_20' ) start [2025-03-19 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712945', 'tblTempVendorCDR_20' ) end [2025-03-19 04:07:18] Production.INFO: ProcessCDR(1,14712945,1,1,2) [2025-03-19 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712945', 'tblTempUsageDetail_20' ) start [2025-03-19 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712945', 'tblTempUsageDetail_20' ) end [2025-03-19 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:07:21] Production.INFO: ==11813== Releasing lock... [2025-03-19 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:07:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-19 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:08:05 [end_date_ymd] => 2025-03-19 04:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:08:05' and `end` < '2025-03-19 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-03-19 04:08:18] Production.INFO: count ==231 [2025-03-19 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:08:05 - End Time 2025-03-19 04:08:05 [2025-03-19 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712950', 'tblTempUsageDetail_20' ) start [2025-03-19 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712950', 'tblTempUsageDetail_20' ) end [2025-03-19 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712950', 'tblTempVendorCDR_20' ) start [2025-03-19 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712950', 'tblTempVendorCDR_20' ) end [2025-03-19 04:08:18] Production.INFO: ProcessCDR(1,14712950,1,1,2) [2025-03-19 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712950', 'tblTempUsageDetail_20' ) start [2025-03-19 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712950', 'tblTempUsageDetail_20' ) end [2025-03-19 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:08:21] Production.INFO: ==11886== Releasing lock... [2025-03-19 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:08:21] Production.INFO: 30 MB #Memory Used# [2025-03-19 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:09:05 [end_date_ymd] => 2025-03-19 04:09:05 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:09:05' and `end` < '2025-03-19 04: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-03-19 04:09:17] Production.INFO: count ==223 [2025-03-19 04:09:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:09:05 - End Time 2025-03-19 04:09:05 [2025-03-19 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712955', 'tblTempUsageDetail_20' ) start [2025-03-19 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712955', 'tblTempUsageDetail_20' ) end [2025-03-19 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712955', 'tblTempVendorCDR_20' ) start [2025-03-19 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712955', 'tblTempVendorCDR_20' ) end [2025-03-19 04:09:17] Production.INFO: ProcessCDR(1,14712955,1,1,2) [2025-03-19 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712955', 'tblTempUsageDetail_20' ) start [2025-03-19 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712955', 'tblTempUsageDetail_20' ) end [2025-03-19 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:09:21] Production.INFO: ==11959== Releasing lock... [2025-03-19 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-19 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:10:06 [end_date_ymd] => 2025-03-19 04:10:06 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:10:06' and `end` < '2025-03-19 04: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-03-19 04:10:18] Production.INFO: count ==209 [2025-03-19 04:10:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:10:06 - End Time 2025-03-19 04:10:06 [2025-03-19 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712961', 'tblTempUsageDetail_20' ) start [2025-03-19 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712961', 'tblTempUsageDetail_20' ) end [2025-03-19 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712961', 'tblTempVendorCDR_20' ) start [2025-03-19 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712961', 'tblTempVendorCDR_20' ) end [2025-03-19 04:10:18] Production.INFO: ProcessCDR(1,14712961,1,1,2) [2025-03-19 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712961', 'tblTempUsageDetail_20' ) start [2025-03-19 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712961', 'tblTempUsageDetail_20' ) end [2025-03-19 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:10:22] Production.INFO: ==12035== Releasing lock... [2025-03-19 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:10:22] Production.INFO: 30 MB #Memory Used# [2025-03-19 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:11:05 [end_date_ymd] => 2025-03-19 04:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:11:05' and `end` < '2025-03-19 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-03-19 04:11:17] Production.INFO: count ==199 [2025-03-19 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:11:05 - End Time 2025-03-19 04:11:05 [2025-03-19 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712966', 'tblTempUsageDetail_20' ) start [2025-03-19 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712966', 'tblTempUsageDetail_20' ) end [2025-03-19 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712966', 'tblTempVendorCDR_20' ) start [2025-03-19 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712966', 'tblTempVendorCDR_20' ) end [2025-03-19 04:11:17] Production.INFO: ProcessCDR(1,14712966,1,1,2) [2025-03-19 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712966', 'tblTempUsageDetail_20' ) start [2025-03-19 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712966', 'tblTempUsageDetail_20' ) end [2025-03-19 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:11:20] Production.INFO: ==12107== Releasing lock... [2025-03-19 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:11:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-19 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:12:05 [end_date_ymd] => 2025-03-19 04:12:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:12:05' and `end` < '2025-03-19 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-03-19 04:12:17] Production.INFO: count ==195 [2025-03-19 04:12:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:12:05 - End Time 2025-03-19 04:12:05 [2025-03-19 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712971', 'tblTempUsageDetail_20' ) start [2025-03-19 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712971', 'tblTempUsageDetail_20' ) end [2025-03-19 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712971', 'tblTempVendorCDR_20' ) start [2025-03-19 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712971', 'tblTempVendorCDR_20' ) end [2025-03-19 04:12:17] Production.INFO: ProcessCDR(1,14712971,1,1,2) [2025-03-19 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712971', 'tblTempUsageDetail_20' ) start [2025-03-19 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712971', 'tblTempUsageDetail_20' ) end [2025-03-19 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:12:21] Production.INFO: ==12182== Releasing lock... [2025-03-19 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-19 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:13:06 [end_date_ymd] => 2025-03-19 04:13:06 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:13:06' and `end` < '2025-03-19 04:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 04:13:18] Production.INFO: count ==183 [2025-03-19 04:13:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:13:06 - End Time 2025-03-19 04:13:06 [2025-03-19 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712976', 'tblTempUsageDetail_20' ) start [2025-03-19 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712976', 'tblTempUsageDetail_20' ) end [2025-03-19 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712976', 'tblTempVendorCDR_20' ) start [2025-03-19 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712976', 'tblTempVendorCDR_20' ) end [2025-03-19 04:13:18] Production.INFO: ProcessCDR(1,14712976,1,1,2) [2025-03-19 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712976', 'tblTempUsageDetail_20' ) start [2025-03-19 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712976', 'tblTempUsageDetail_20' ) end [2025-03-19 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:13:21] Production.INFO: ==12255== Releasing lock... [2025-03-19 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-19 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:14:05 [end_date_ymd] => 2025-03-19 04:14:05 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:14:05' and `end` < '2025-03-19 04: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-03-19 04:14:17] Production.INFO: count ==183 [2025-03-19 04:14:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:14:05 - End Time 2025-03-19 04:14:05 [2025-03-19 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712981', 'tblTempUsageDetail_20' ) start [2025-03-19 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712981', 'tblTempUsageDetail_20' ) end [2025-03-19 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712981', 'tblTempVendorCDR_20' ) start [2025-03-19 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712981', 'tblTempVendorCDR_20' ) end [2025-03-19 04:14:17] Production.INFO: ProcessCDR(1,14712981,1,1,2) [2025-03-19 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712981', 'tblTempUsageDetail_20' ) start [2025-03-19 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712981', 'tblTempUsageDetail_20' ) end [2025-03-19 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:14:21] Production.INFO: ==12327== Releasing lock... [2025-03-19 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-19 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:15:05 [end_date_ymd] => 2025-03-19 04:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:15:05' and `end` < '2025-03-19 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-03-19 04:15:18] Production.INFO: count ==179 [2025-03-19 04:15:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:15:05 - End Time 2025-03-19 04:15:05 [2025-03-19 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712986', 'tblTempUsageDetail_20' ) start [2025-03-19 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712986', 'tblTempUsageDetail_20' ) end [2025-03-19 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712986', 'tblTempVendorCDR_20' ) start [2025-03-19 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712986', 'tblTempVendorCDR_20' ) end [2025-03-19 04:15:18] Production.INFO: ProcessCDR(1,14712986,1,1,2) [2025-03-19 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712986', 'tblTempUsageDetail_20' ) start [2025-03-19 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712986', 'tblTempUsageDetail_20' ) end [2025-03-19 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:15:21] Production.INFO: ==12399== Releasing lock... [2025-03-19 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:16:05 [end_date_ymd] => 2025-03-19 04:16:05 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:16:05' and `end` < '2025-03-19 04: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-03-19 04:16:17] Production.INFO: count ==175 [2025-03-19 04:16:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:16:05 - End Time 2025-03-19 04:16:05 [2025-03-19 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712991', 'tblTempUsageDetail_20' ) start [2025-03-19 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712991', 'tblTempUsageDetail_20' ) end [2025-03-19 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712991', 'tblTempVendorCDR_20' ) start [2025-03-19 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712991', 'tblTempVendorCDR_20' ) end [2025-03-19 04:16:17] Production.INFO: ProcessCDR(1,14712991,1,1,2) [2025-03-19 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712991', 'tblTempUsageDetail_20' ) start [2025-03-19 04:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712991', 'tblTempUsageDetail_20' ) end [2025-03-19 04:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:16:20] Production.INFO: ==12475== Releasing lock... [2025-03-19 04:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:16:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-19 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:17:05 [end_date_ymd] => 2025-03-19 04:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:17:05' and `end` < '2025-03-19 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-03-19 04:17:18] Production.INFO: count ==170 [2025-03-19 04:17:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:17:05 - End Time 2025-03-19 04:17:05 [2025-03-19 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712996', 'tblTempUsageDetail_20' ) start [2025-03-19 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14712996', 'tblTempUsageDetail_20' ) end [2025-03-19 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712996', 'tblTempVendorCDR_20' ) start [2025-03-19 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14712996', 'tblTempVendorCDR_20' ) end [2025-03-19 04:17:18] Production.INFO: ProcessCDR(1,14712996,1,1,2) [2025-03-19 04:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14712996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14712996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14712996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14712996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712996', 'tblTempUsageDetail_20' ) start [2025-03-19 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14712996', 'tblTempUsageDetail_20' ) end [2025-03-19 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:17:21] Production.INFO: ==12553== Releasing lock... [2025-03-19 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:18:06 [end_date_ymd] => 2025-03-19 04:18:06 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:18:06' and `end` < '2025-03-19 04: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-03-19 04:18:18] Production.INFO: count ==159 [2025-03-19 04:18:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:18:06 - End Time 2025-03-19 04:18:06 [2025-03-19 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713001', 'tblTempUsageDetail_20' ) start [2025-03-19 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713001', 'tblTempUsageDetail_20' ) end [2025-03-19 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713001', 'tblTempVendorCDR_20' ) start [2025-03-19 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713001', 'tblTempVendorCDR_20' ) end [2025-03-19 04:18:18] Production.INFO: ProcessCDR(1,14713001,1,1,2) [2025-03-19 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713001', 'tblTempUsageDetail_20' ) start [2025-03-19 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713001', 'tblTempUsageDetail_20' ) end [2025-03-19 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:18:21] Production.INFO: ==12626== Releasing lock... [2025-03-19 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 04:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:19:06 [end_date_ymd] => 2025-03-19 04:19:06 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:19:06' and `end` < '2025-03-19 04: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-03-19 04:19:19] Production.INFO: count ==154 [2025-03-19 04:19:19] Production.ERROR: pbx CDR StartTime 2025-03-19 01:19:06 - End Time 2025-03-19 04:19:06 [2025-03-19 04:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713006', 'tblTempUsageDetail_20' ) start [2025-03-19 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713006', 'tblTempUsageDetail_20' ) end [2025-03-19 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713006', 'tblTempVendorCDR_20' ) start [2025-03-19 04:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713006', 'tblTempVendorCDR_20' ) end [2025-03-19 04:19:19] Production.INFO: ProcessCDR(1,14713006,1,1,2) [2025-03-19 04:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713006', 'tblTempUsageDetail_20' ) start [2025-03-19 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713006', 'tblTempUsageDetail_20' ) end [2025-03-19 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:19:22] Production.INFO: ==12699== Releasing lock... [2025-03-19 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:20:06 [end_date_ymd] => 2025-03-19 04:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:20:06' and `end` < '2025-03-19 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-03-19 04:20:18] Production.INFO: count ==155 [2025-03-19 04:20:19] Production.ERROR: pbx CDR StartTime 2025-03-19 01:20:06 - End Time 2025-03-19 04:20:06 [2025-03-19 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713012', 'tblTempUsageDetail_20' ) start [2025-03-19 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713012', 'tblTempUsageDetail_20' ) end [2025-03-19 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713012', 'tblTempVendorCDR_20' ) start [2025-03-19 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713012', 'tblTempVendorCDR_20' ) end [2025-03-19 04:20:19] Production.INFO: ProcessCDR(1,14713012,1,1,2) [2025-03-19 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713012', 'tblTempUsageDetail_20' ) start [2025-03-19 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713012', 'tblTempUsageDetail_20' ) end [2025-03-19 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:20:22] Production.INFO: ==12777== Releasing lock... [2025-03-19 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 04:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:21:05 [end_date_ymd] => 2025-03-19 04:21:05 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:21:05' and `end` < '2025-03-19 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-03-19 04:21:18] Production.INFO: count ==152 [2025-03-19 04:21:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:21:05 - End Time 2025-03-19 04:21:05 [2025-03-19 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713017', 'tblTempUsageDetail_20' ) start [2025-03-19 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713017', 'tblTempUsageDetail_20' ) end [2025-03-19 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713017', 'tblTempVendorCDR_20' ) start [2025-03-19 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713017', 'tblTempVendorCDR_20' ) end [2025-03-19 04:21:18] Production.INFO: ProcessCDR(1,14713017,1,1,2) [2025-03-19 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713017', 'tblTempUsageDetail_20' ) start [2025-03-19 04:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713017', 'tblTempUsageDetail_20' ) end [2025-03-19 04:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:21:23] Production.INFO: ==12891== Releasing lock... [2025-03-19 04:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:21:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:22:05 [end_date_ymd] => 2025-03-19 04:22:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:22:05' and `end` < '2025-03-19 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-03-19 04:22:17] Production.INFO: count ==153 [2025-03-19 04:22:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:22:05 - End Time 2025-03-19 04:22:05 [2025-03-19 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713022', 'tblTempUsageDetail_20' ) start [2025-03-19 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713022', 'tblTempUsageDetail_20' ) end [2025-03-19 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713022', 'tblTempVendorCDR_20' ) start [2025-03-19 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713022', 'tblTempVendorCDR_20' ) end [2025-03-19 04:22:17] Production.INFO: ProcessCDR(1,14713022,1,1,2) [2025-03-19 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713022', 'tblTempUsageDetail_20' ) start [2025-03-19 04:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713022', 'tblTempUsageDetail_20' ) end [2025-03-19 04:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:22:22] Production.INFO: ==12962== Releasing lock... [2025-03-19 04:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:22:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:23:05 [end_date_ymd] => 2025-03-19 04:23:05 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:23:05' and `end` < '2025-03-19 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-03-19 04:23:18] Production.INFO: count ==152 [2025-03-19 04:23:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:23:05 - End Time 2025-03-19 04:23:05 [2025-03-19 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713027', 'tblTempUsageDetail_20' ) start [2025-03-19 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713027', 'tblTempUsageDetail_20' ) end [2025-03-19 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713027', 'tblTempVendorCDR_20' ) start [2025-03-19 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713027', 'tblTempVendorCDR_20' ) end [2025-03-19 04:23:18] Production.INFO: ProcessCDR(1,14713027,1,1,2) [2025-03-19 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713027', 'tblTempUsageDetail_20' ) start [2025-03-19 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713027', 'tblTempUsageDetail_20' ) end [2025-03-19 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:23:21] Production.INFO: ==13039== Releasing lock... [2025-03-19 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:24:05 [end_date_ymd] => 2025-03-19 04:24:05 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:24:05' and `end` < '2025-03-19 04: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-03-19 04:24:17] Production.INFO: count ==152 [2025-03-19 04:24:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:24:05 - End Time 2025-03-19 04:24:05 [2025-03-19 04:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713032', 'tblTempUsageDetail_20' ) start [2025-03-19 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713032', 'tblTempUsageDetail_20' ) end [2025-03-19 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713032', 'tblTempVendorCDR_20' ) start [2025-03-19 04:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713032', 'tblTempVendorCDR_20' ) end [2025-03-19 04:24:17] Production.INFO: ProcessCDR(1,14713032,1,1,2) [2025-03-19 04:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713032', 'tblTempUsageDetail_20' ) start [2025-03-19 04:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713032', 'tblTempUsageDetail_20' ) end [2025-03-19 04:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:24:20] Production.INFO: ==13109== Releasing lock... [2025-03-19 04:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:24:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:25:05 [end_date_ymd] => 2025-03-19 04:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:25:05' and `end` < '2025-03-19 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-03-19 04:25:17] Production.INFO: count ==148 [2025-03-19 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:25:05 - End Time 2025-03-19 04:25:05 [2025-03-19 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713037', 'tblTempUsageDetail_20' ) start [2025-03-19 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713037', 'tblTempUsageDetail_20' ) end [2025-03-19 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713037', 'tblTempVendorCDR_20' ) start [2025-03-19 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713037', 'tblTempVendorCDR_20' ) end [2025-03-19 04:25:17] Production.INFO: ProcessCDR(1,14713037,1,1,2) [2025-03-19 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713037', 'tblTempUsageDetail_20' ) start [2025-03-19 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713037', 'tblTempUsageDetail_20' ) end [2025-03-19 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:25:20] Production.INFO: ==13190== Releasing lock... [2025-03-19 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:25:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:26:05 [end_date_ymd] => 2025-03-19 04:26:05 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:26:05' and `end` < '2025-03-19 04: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-03-19 04:26:17] Production.INFO: count ==148 [2025-03-19 04:26:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:26:05 - End Time 2025-03-19 04:26:05 [2025-03-19 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713042', 'tblTempUsageDetail_20' ) start [2025-03-19 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713042', 'tblTempUsageDetail_20' ) end [2025-03-19 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713042', 'tblTempVendorCDR_20' ) start [2025-03-19 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713042', 'tblTempVendorCDR_20' ) end [2025-03-19 04:26:17] Production.INFO: ProcessCDR(1,14713042,1,1,2) [2025-03-19 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713042', 'tblTempUsageDetail_20' ) start [2025-03-19 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713042', 'tblTempUsageDetail_20' ) end [2025-03-19 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:26:20] Production.INFO: ==13263== Releasing lock... [2025-03-19 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:26:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:27:05 [end_date_ymd] => 2025-03-19 04:27:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:27:05' and `end` < '2025-03-19 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-03-19 04:27:17] Production.INFO: count ==148 [2025-03-19 04:27:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:27:05 - End Time 2025-03-19 04:27:05 [2025-03-19 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713047', 'tblTempUsageDetail_20' ) start [2025-03-19 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713047', 'tblTempUsageDetail_20' ) end [2025-03-19 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713047', 'tblTempVendorCDR_20' ) start [2025-03-19 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713047', 'tblTempVendorCDR_20' ) end [2025-03-19 04:27:18] Production.INFO: ProcessCDR(1,14713047,1,1,2) [2025-03-19 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713047', 'tblTempUsageDetail_20' ) start [2025-03-19 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713047', 'tblTempUsageDetail_20' ) end [2025-03-19 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:27:21] Production.INFO: ==13340== Releasing lock... [2025-03-19 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:28:05 [end_date_ymd] => 2025-03-19 04:28:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:28:05' and `end` < '2025-03-19 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-03-19 04:28:17] Production.INFO: count ==148 [2025-03-19 04:28:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:28:05 - End Time 2025-03-19 04:28:05 [2025-03-19 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713052', 'tblTempUsageDetail_20' ) start [2025-03-19 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713052', 'tblTempUsageDetail_20' ) end [2025-03-19 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713052', 'tblTempVendorCDR_20' ) start [2025-03-19 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713052', 'tblTempVendorCDR_20' ) end [2025-03-19 04:28:17] Production.INFO: ProcessCDR(1,14713052,1,1,2) [2025-03-19 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713052', 'tblTempUsageDetail_20' ) start [2025-03-19 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713052', 'tblTempUsageDetail_20' ) end [2025-03-19 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:28:21] Production.INFO: ==13415== Releasing lock... [2025-03-19 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:29:05 [end_date_ymd] => 2025-03-19 04:29:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:29:05' and `end` < '2025-03-19 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-03-19 04:29:17] Production.INFO: count ==148 [2025-03-19 04:29:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:29:05 - End Time 2025-03-19 04:29:05 [2025-03-19 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713057', 'tblTempUsageDetail_20' ) start [2025-03-19 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713057', 'tblTempUsageDetail_20' ) end [2025-03-19 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713057', 'tblTempVendorCDR_20' ) start [2025-03-19 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713057', 'tblTempVendorCDR_20' ) end [2025-03-19 04:29:17] Production.INFO: ProcessCDR(1,14713057,1,1,2) [2025-03-19 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713057', 'tblTempUsageDetail_20' ) start [2025-03-19 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713057', 'tblTempUsageDetail_20' ) end [2025-03-19 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:29:20] Production.INFO: ==13489== Releasing lock... [2025-03-19 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:29:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:30:07 [end_date_ymd] => 2025-03-19 04:30:07 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:30:07' and `end` < '2025-03-19 04: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-03-19 04:30:19] Production.INFO: count ==142 [2025-03-19 04:30:19] Production.ERROR: pbx CDR StartTime 2025-03-19 01:30:07 - End Time 2025-03-19 04:30:07 [2025-03-19 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713064', 'tblTempUsageDetail_20' ) start [2025-03-19 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713064', 'tblTempUsageDetail_20' ) end [2025-03-19 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713064', 'tblTempVendorCDR_20' ) start [2025-03-19 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713064', 'tblTempVendorCDR_20' ) end [2025-03-19 04:30:19] Production.INFO: ProcessCDR(1,14713064,1,1,2) [2025-03-19 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713064', 'tblTempUsageDetail_20' ) start [2025-03-19 04:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713064', 'tblTempUsageDetail_20' ) end [2025-03-19 04:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:30:24] Production.INFO: ==13571== Releasing lock... [2025-03-19 04:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:30:24] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:31:05 [end_date_ymd] => 2025-03-19 04:31:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:31:05' and `end` < '2025-03-19 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-03-19 04:31:17] Production.INFO: count ==139 [2025-03-19 04:31:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:31:05 - End Time 2025-03-19 04:31:05 [2025-03-19 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713069', 'tblTempUsageDetail_20' ) start [2025-03-19 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713069', 'tblTempUsageDetail_20' ) end [2025-03-19 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713069', 'tblTempVendorCDR_20' ) start [2025-03-19 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713069', 'tblTempVendorCDR_20' ) end [2025-03-19 04:31:17] Production.INFO: ProcessCDR(1,14713069,1,1,2) [2025-03-19 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713069', 'tblTempUsageDetail_20' ) start [2025-03-19 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713069', 'tblTempUsageDetail_20' ) end [2025-03-19 04:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:31:21] Production.INFO: ==13743== Releasing lock... [2025-03-19 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:31:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:32:06 [end_date_ymd] => 2025-03-19 04:32:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:32:06' and `end` < '2025-03-19 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-03-19 04:32:18] Production.INFO: count ==139 [2025-03-19 04:32:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:32:06 - End Time 2025-03-19 04:32:06 [2025-03-19 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713074', 'tblTempUsageDetail_20' ) start [2025-03-19 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713074', 'tblTempUsageDetail_20' ) end [2025-03-19 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713074', 'tblTempVendorCDR_20' ) start [2025-03-19 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713074', 'tblTempVendorCDR_20' ) end [2025-03-19 04:32:18] Production.INFO: ProcessCDR(1,14713074,1,1,2) [2025-03-19 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713074', 'tblTempUsageDetail_20' ) start [2025-03-19 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713074', 'tblTempUsageDetail_20' ) end [2025-03-19 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:32:22] Production.INFO: ==13825== Releasing lock... [2025-03-19 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:32:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:33:05 [end_date_ymd] => 2025-03-19 04:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:33:05' and `end` < '2025-03-19 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-03-19 04:33:17] Production.INFO: count ==139 [2025-03-19 04:33:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:33:05 - End Time 2025-03-19 04:33:05 [2025-03-19 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713079', 'tblTempUsageDetail_20' ) start [2025-03-19 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713079', 'tblTempUsageDetail_20' ) end [2025-03-19 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713079', 'tblTempVendorCDR_20' ) start [2025-03-19 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713079', 'tblTempVendorCDR_20' ) end [2025-03-19 04:33:17] Production.INFO: ProcessCDR(1,14713079,1,1,2) [2025-03-19 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713079', 'tblTempUsageDetail_20' ) start [2025-03-19 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713079', 'tblTempUsageDetail_20' ) end [2025-03-19 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:33:20] Production.INFO: ==13901== Releasing lock... [2025-03-19 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:33:20] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:34:05 [end_date_ymd] => 2025-03-19 04:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:34:05' and `end` < '2025-03-19 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-03-19 04:34:17] Production.INFO: count ==139 [2025-03-19 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:34:05 - End Time 2025-03-19 04:34:05 [2025-03-19 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713084', 'tblTempUsageDetail_20' ) start [2025-03-19 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713084', 'tblTempUsageDetail_20' ) end [2025-03-19 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713084', 'tblTempVendorCDR_20' ) start [2025-03-19 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713084', 'tblTempVendorCDR_20' ) end [2025-03-19 04:34:17] Production.INFO: ProcessCDR(1,14713084,1,1,2) [2025-03-19 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713084', 'tblTempUsageDetail_20' ) start [2025-03-19 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713084', 'tblTempUsageDetail_20' ) end [2025-03-19 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:34:21] Production.INFO: ==13981== Releasing lock... [2025-03-19 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:34:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:35:05 [end_date_ymd] => 2025-03-19 04:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:35:05' and `end` < '2025-03-19 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-03-19 04:35:17] Production.INFO: count ==139 [2025-03-19 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:35:05 - End Time 2025-03-19 04:35:05 [2025-03-19 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713089', 'tblTempUsageDetail_20' ) start [2025-03-19 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713089', 'tblTempUsageDetail_20' ) end [2025-03-19 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713089', 'tblTempVendorCDR_20' ) start [2025-03-19 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713089', 'tblTempVendorCDR_20' ) end [2025-03-19 04:35:17] Production.INFO: ProcessCDR(1,14713089,1,1,2) [2025-03-19 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713089', 'tblTempUsageDetail_20' ) start [2025-03-19 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713089', 'tblTempUsageDetail_20' ) end [2025-03-19 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:35:21] Production.INFO: ==14064== Releasing lock... [2025-03-19 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:35:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:36:05 [end_date_ymd] => 2025-03-19 04:36:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:36:05' and `end` < '2025-03-19 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-03-19 04:36:18] Production.INFO: count ==139 [2025-03-19 04:36:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:36:05 - End Time 2025-03-19 04:36:05 [2025-03-19 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713094', 'tblTempUsageDetail_20' ) start [2025-03-19 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713094', 'tblTempUsageDetail_20' ) end [2025-03-19 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713094', 'tblTempVendorCDR_20' ) start [2025-03-19 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713094', 'tblTempVendorCDR_20' ) end [2025-03-19 04:36:18] Production.INFO: ProcessCDR(1,14713094,1,1,2) [2025-03-19 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713094', 'tblTempUsageDetail_20' ) start [2025-03-19 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713094', 'tblTempUsageDetail_20' ) end [2025-03-19 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:36:21] Production.INFO: ==14144== Releasing lock... [2025-03-19 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:36:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:37:05 [end_date_ymd] => 2025-03-19 04:37:05 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:37:05' and `end` < '2025-03-19 04: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-03-19 04:37:17] Production.INFO: count ==139 [2025-03-19 04:37:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:37:05 - End Time 2025-03-19 04:37:05 [2025-03-19 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713099', 'tblTempUsageDetail_20' ) start [2025-03-19 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713099', 'tblTempUsageDetail_20' ) end [2025-03-19 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713099', 'tblTempVendorCDR_20' ) start [2025-03-19 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713099', 'tblTempVendorCDR_20' ) end [2025-03-19 04:37:17] Production.INFO: ProcessCDR(1,14713099,1,1,2) [2025-03-19 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713099', 'tblTempUsageDetail_20' ) start [2025-03-19 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713099', 'tblTempUsageDetail_20' ) end [2025-03-19 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:37:21] Production.INFO: ==14257== Releasing lock... [2025-03-19 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:37:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:38:05 [end_date_ymd] => 2025-03-19 04:38:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:38:05' and `end` < '2025-03-19 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-03-19 04:38:17] Production.INFO: count ==139 [2025-03-19 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:38:05 - End Time 2025-03-19 04:38:05 [2025-03-19 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713104', 'tblTempUsageDetail_20' ) start [2025-03-19 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713104', 'tblTempUsageDetail_20' ) end [2025-03-19 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713104', 'tblTempVendorCDR_20' ) start [2025-03-19 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713104', 'tblTempVendorCDR_20' ) end [2025-03-19 04:38:17] Production.INFO: ProcessCDR(1,14713104,1,1,2) [2025-03-19 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713104', 'tblTempUsageDetail_20' ) start [2025-03-19 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713104', 'tblTempUsageDetail_20' ) end [2025-03-19 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:38:21] Production.INFO: ==14342== Releasing lock... [2025-03-19 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:38:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:39:05 [end_date_ymd] => 2025-03-19 04:39:05 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:39:05' and `end` < '2025-03-19 04: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-03-19 04:39:17] Production.INFO: count ==139 [2025-03-19 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:39:05 - End Time 2025-03-19 04:39:05 [2025-03-19 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713109', 'tblTempUsageDetail_20' ) start [2025-03-19 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713109', 'tblTempUsageDetail_20' ) end [2025-03-19 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713109', 'tblTempVendorCDR_20' ) start [2025-03-19 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713109', 'tblTempVendorCDR_20' ) end [2025-03-19 04:39:17] Production.INFO: ProcessCDR(1,14713109,1,1,2) [2025-03-19 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713109', 'tblTempUsageDetail_20' ) start [2025-03-19 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713109', 'tblTempUsageDetail_20' ) end [2025-03-19 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:39:21] Production.INFO: ==14422== Releasing lock... [2025-03-19 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:39:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:40:06 [end_date_ymd] => 2025-03-19 04:40:06 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:40:06' and `end` < '2025-03-19 04: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-03-19 04:40:19] Production.INFO: count ==139 [2025-03-19 04:40:19] Production.ERROR: pbx CDR StartTime 2025-03-19 01:40:06 - End Time 2025-03-19 04:40:06 [2025-03-19 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713115', 'tblTempUsageDetail_20' ) start [2025-03-19 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713115', 'tblTempUsageDetail_20' ) end [2025-03-19 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713115', 'tblTempVendorCDR_20' ) start [2025-03-19 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713115', 'tblTempVendorCDR_20' ) end [2025-03-19 04:40:19] Production.INFO: ProcessCDR(1,14713115,1,1,2) [2025-03-19 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713115', 'tblTempUsageDetail_20' ) start [2025-03-19 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713115', 'tblTempUsageDetail_20' ) end [2025-03-19 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:40:22] Production.INFO: ==14501== Releasing lock... [2025-03-19 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:40:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:41:05 [end_date_ymd] => 2025-03-19 04:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:41:05' and `end` < '2025-03-19 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-03-19 04:41:17] Production.INFO: count ==139 [2025-03-19 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:41:05 - End Time 2025-03-19 04:41:05 [2025-03-19 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713120', 'tblTempUsageDetail_20' ) start [2025-03-19 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713120', 'tblTempUsageDetail_20' ) end [2025-03-19 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713120', 'tblTempVendorCDR_20' ) start [2025-03-19 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713120', 'tblTempVendorCDR_20' ) end [2025-03-19 04:41:17] Production.INFO: ProcessCDR(1,14713120,1,1,2) [2025-03-19 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713120', 'tblTempUsageDetail_20' ) start [2025-03-19 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713120', 'tblTempUsageDetail_20' ) end [2025-03-19 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:41:20] Production.INFO: ==14583== Releasing lock... [2025-03-19 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:41:20] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:42:05 [end_date_ymd] => 2025-03-19 04:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:42:05' and `end` < '2025-03-19 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-03-19 04:42:18] Production.INFO: count ==139 [2025-03-19 04:42:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:42:05 - End Time 2025-03-19 04:42:05 [2025-03-19 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713125', 'tblTempUsageDetail_20' ) start [2025-03-19 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713125', 'tblTempUsageDetail_20' ) end [2025-03-19 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713125', 'tblTempVendorCDR_20' ) start [2025-03-19 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713125', 'tblTempVendorCDR_20' ) end [2025-03-19 04:42:18] Production.INFO: ProcessCDR(1,14713125,1,1,2) [2025-03-19 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713125', 'tblTempUsageDetail_20' ) start [2025-03-19 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713125', 'tblTempUsageDetail_20' ) end [2025-03-19 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:42:21] Production.INFO: ==14663== Releasing lock... [2025-03-19 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:42:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:43:05 [end_date_ymd] => 2025-03-19 04:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:43:05' and `end` < '2025-03-19 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-03-19 04:43:17] Production.INFO: count ==140 [2025-03-19 04:43:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:43:05 - End Time 2025-03-19 04:43:05 [2025-03-19 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713130', 'tblTempUsageDetail_20' ) start [2025-03-19 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713130', 'tblTempUsageDetail_20' ) end [2025-03-19 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713130', 'tblTempVendorCDR_20' ) start [2025-03-19 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713130', 'tblTempVendorCDR_20' ) end [2025-03-19 04:43:17] Production.INFO: ProcessCDR(1,14713130,1,1,2) [2025-03-19 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713130', 'tblTempUsageDetail_20' ) start [2025-03-19 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713130', 'tblTempUsageDetail_20' ) end [2025-03-19 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:43:22] Production.INFO: ==14738== Releasing lock... [2025-03-19 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:43:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:44:05 [end_date_ymd] => 2025-03-19 04:44:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:44:05' and `end` < '2025-03-19 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-03-19 04:44:18] Production.INFO: count ==140 [2025-03-19 04:44:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:44:05 - End Time 2025-03-19 04:44:05 [2025-03-19 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713135', 'tblTempUsageDetail_20' ) start [2025-03-19 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713135', 'tblTempUsageDetail_20' ) end [2025-03-19 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713135', 'tblTempVendorCDR_20' ) start [2025-03-19 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713135', 'tblTempVendorCDR_20' ) end [2025-03-19 04:44:18] Production.INFO: ProcessCDR(1,14713135,1,1,2) [2025-03-19 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713135', 'tblTempUsageDetail_20' ) start [2025-03-19 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713135', 'tblTempUsageDetail_20' ) end [2025-03-19 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:44:21] Production.INFO: ==14829== Releasing lock... [2025-03-19 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 04:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:45:04 [end_date_ymd] => 2025-03-19 04:45:04 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:45:04' and `end` < '2025-03-19 04: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-03-19 04:45:17] Production.INFO: count ==140 [2025-03-19 04:45:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:45:04 - End Time 2025-03-19 04:45:04 [2025-03-19 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713140', 'tblTempUsageDetail_20' ) start [2025-03-19 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713140', 'tblTempUsageDetail_20' ) end [2025-03-19 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713140', 'tblTempVendorCDR_20' ) start [2025-03-19 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713140', 'tblTempVendorCDR_20' ) end [2025-03-19 04:45:17] Production.INFO: ProcessCDR(1,14713140,1,1,2) [2025-03-19 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713140', 'tblTempUsageDetail_20' ) start [2025-03-19 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713140', 'tblTempUsageDetail_20' ) end [2025-03-19 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:45:20] Production.INFO: ==14915== Releasing lock... [2025-03-19 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:45:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:46:05 [end_date_ymd] => 2025-03-19 04:46:05 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:46:05' and `end` < '2025-03-19 04: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-03-19 04:46:18] Production.INFO: count ==140 [2025-03-19 04:46:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:46:05 - End Time 2025-03-19 04:46:05 [2025-03-19 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713145', 'tblTempUsageDetail_20' ) start [2025-03-19 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713145', 'tblTempUsageDetail_20' ) end [2025-03-19 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713145', 'tblTempVendorCDR_20' ) start [2025-03-19 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713145', 'tblTempVendorCDR_20' ) end [2025-03-19 04:46:18] Production.INFO: ProcessCDR(1,14713145,1,1,2) [2025-03-19 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713145', 'tblTempUsageDetail_20' ) start [2025-03-19 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713145', 'tblTempUsageDetail_20' ) end [2025-03-19 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:46:21] Production.INFO: ==14998== Releasing lock... [2025-03-19 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:47:05 [end_date_ymd] => 2025-03-19 04:47:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:47:05' and `end` < '2025-03-19 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-03-19 04:47:18] Production.INFO: count ==140 [2025-03-19 04:47:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:47:05 - End Time 2025-03-19 04:47:05 [2025-03-19 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713150', 'tblTempUsageDetail_20' ) start [2025-03-19 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713150', 'tblTempUsageDetail_20' ) end [2025-03-19 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713150', 'tblTempVendorCDR_20' ) start [2025-03-19 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713150', 'tblTempVendorCDR_20' ) end [2025-03-19 04:47:18] Production.INFO: ProcessCDR(1,14713150,1,1,2) [2025-03-19 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713150', 'tblTempUsageDetail_20' ) start [2025-03-19 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713150', 'tblTempUsageDetail_20' ) end [2025-03-19 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:47:21] Production.INFO: ==15073== Releasing lock... [2025-03-19 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:48:05 [end_date_ymd] => 2025-03-19 04:48:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:48:05' and `end` < '2025-03-19 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-03-19 04:48:17] Production.INFO: count ==134 [2025-03-19 04:48:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:48:05 - End Time 2025-03-19 04:48:05 [2025-03-19 04:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713155', 'tblTempUsageDetail_20' ) start [2025-03-19 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713155', 'tblTempUsageDetail_20' ) end [2025-03-19 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713155', 'tblTempVendorCDR_20' ) start [2025-03-19 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713155', 'tblTempVendorCDR_20' ) end [2025-03-19 04:48:17] Production.INFO: ProcessCDR(1,14713155,1,1,2) [2025-03-19 04:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713155', 'tblTempUsageDetail_20' ) start [2025-03-19 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713155', 'tblTempUsageDetail_20' ) end [2025-03-19 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:48:23] Production.INFO: ==15153== Releasing lock... [2025-03-19 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:48:23] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:49:05 [end_date_ymd] => 2025-03-19 04:49:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:49:05' and `end` < '2025-03-19 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-03-19 04:49:20] Production.INFO: count ==136 [2025-03-19 04:49:20] Production.ERROR: pbx CDR StartTime 2025-03-19 01:49:05 - End Time 2025-03-19 04:49:05 [2025-03-19 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713160', 'tblTempUsageDetail_20' ) start [2025-03-19 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713160', 'tblTempUsageDetail_20' ) end [2025-03-19 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713160', 'tblTempVendorCDR_20' ) start [2025-03-19 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713160', 'tblTempVendorCDR_20' ) end [2025-03-19 04:49:20] Production.INFO: ProcessCDR(1,14713160,1,1,2) [2025-03-19 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713160', 'tblTempUsageDetail_20' ) start [2025-03-19 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713160', 'tblTempUsageDetail_20' ) end [2025-03-19 04:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:49:25] Production.INFO: ==15236== Releasing lock... [2025-03-19 04:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:49:25] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:50:06 [end_date_ymd] => 2025-03-19 04:50:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:50:06' and `end` < '2025-03-19 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-03-19 04:50:19] Production.INFO: count ==130 [2025-03-19 04:50:19] Production.ERROR: pbx CDR StartTime 2025-03-19 01:50:06 - End Time 2025-03-19 04:50:06 [2025-03-19 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713166', 'tblTempUsageDetail_20' ) start [2025-03-19 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713166', 'tblTempUsageDetail_20' ) end [2025-03-19 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713166', 'tblTempVendorCDR_20' ) start [2025-03-19 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713166', 'tblTempVendorCDR_20' ) end [2025-03-19 04:50:19] Production.INFO: ProcessCDR(1,14713166,1,1,2) [2025-03-19 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713166', 'tblTempUsageDetail_20' ) start [2025-03-19 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713166', 'tblTempUsageDetail_20' ) end [2025-03-19 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:50:22] Production.INFO: ==15317== Releasing lock... [2025-03-19 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:50:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:51:06 [end_date_ymd] => 2025-03-19 04:51:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:51:06' and `end` < '2025-03-19 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-03-19 04:51:18] Production.INFO: count ==129 [2025-03-19 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:51:06 - End Time 2025-03-19 04:51:06 [2025-03-19 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713171', 'tblTempUsageDetail_20' ) start [2025-03-19 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713171', 'tblTempUsageDetail_20' ) end [2025-03-19 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713171', 'tblTempVendorCDR_20' ) start [2025-03-19 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713171', 'tblTempVendorCDR_20' ) end [2025-03-19 04:51:18] Production.INFO: ProcessCDR(1,14713171,1,1,2) [2025-03-19 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713171', 'tblTempUsageDetail_20' ) start [2025-03-19 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713171', 'tblTempUsageDetail_20' ) end [2025-03-19 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:51:22] Production.INFO: ==15394== Releasing lock... [2025-03-19 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:51:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:52:05 [end_date_ymd] => 2025-03-19 04:52:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:52:05' and `end` < '2025-03-19 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-03-19 04:52:19] Production.INFO: count ==134 [2025-03-19 04:52:19] Production.ERROR: pbx CDR StartTime 2025-03-19 01:52:05 - End Time 2025-03-19 04:52:05 [2025-03-19 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713176', 'tblTempUsageDetail_20' ) start [2025-03-19 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713176', 'tblTempUsageDetail_20' ) end [2025-03-19 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713176', 'tblTempVendorCDR_20' ) start [2025-03-19 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713176', 'tblTempVendorCDR_20' ) end [2025-03-19 04:52:19] Production.INFO: ProcessCDR(1,14713176,1,1,2) [2025-03-19 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713176', 'tblTempUsageDetail_20' ) start [2025-03-19 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713176', 'tblTempUsageDetail_20' ) end [2025-03-19 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:52:22] Production.INFO: ==15517== Releasing lock... [2025-03-19 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:53:05 [end_date_ymd] => 2025-03-19 04:53:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:53:05' and `end` < '2025-03-19 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-03-19 04:53:17] Production.INFO: count ==135 [2025-03-19 04:53:17] Production.ERROR: pbx CDR StartTime 2025-03-19 01:53:05 - End Time 2025-03-19 04:53:05 [2025-03-19 04:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713181', 'tblTempUsageDetail_20' ) start [2025-03-19 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713181', 'tblTempUsageDetail_20' ) end [2025-03-19 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713181', 'tblTempVendorCDR_20' ) start [2025-03-19 04:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713181', 'tblTempVendorCDR_20' ) end [2025-03-19 04:53:17] Production.INFO: ProcessCDR(1,14713181,1,1,2) [2025-03-19 04:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713181', 'tblTempUsageDetail_20' ) start [2025-03-19 04:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713181', 'tblTempUsageDetail_20' ) end [2025-03-19 04:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:53:22] Production.INFO: ==15617== Releasing lock... [2025-03-19 04:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:53:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:54:05 [end_date_ymd] => 2025-03-19 04:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:54:05' and `end` < '2025-03-19 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-03-19 04:54:18] Production.INFO: count ==136 [2025-03-19 04:54:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:54:05 - End Time 2025-03-19 04:54:05 [2025-03-19 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713186', 'tblTempUsageDetail_20' ) start [2025-03-19 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713186', 'tblTempUsageDetail_20' ) end [2025-03-19 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713186', 'tblTempVendorCDR_20' ) start [2025-03-19 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713186', 'tblTempVendorCDR_20' ) end [2025-03-19 04:54:18] Production.INFO: ProcessCDR(1,14713186,1,1,2) [2025-03-19 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713186', 'tblTempUsageDetail_20' ) start [2025-03-19 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713186', 'tblTempUsageDetail_20' ) end [2025-03-19 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:54:21] Production.INFO: ==15694== Releasing lock... [2025-03-19 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:54:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:55:05 [end_date_ymd] => 2025-03-19 04:55:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:55:05' and `end` < '2025-03-19 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-03-19 04:55:17] Production.INFO: count ==136 [2025-03-19 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:55:05 - End Time 2025-03-19 04:55:05 [2025-03-19 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713191', 'tblTempUsageDetail_20' ) start [2025-03-19 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713191', 'tblTempUsageDetail_20' ) end [2025-03-19 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713191', 'tblTempVendorCDR_20' ) start [2025-03-19 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713191', 'tblTempVendorCDR_20' ) end [2025-03-19 04:55:18] Production.INFO: ProcessCDR(1,14713191,1,1,2) [2025-03-19 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713191', 'tblTempUsageDetail_20' ) start [2025-03-19 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713191', 'tblTempUsageDetail_20' ) end [2025-03-19 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:55:21] Production.INFO: ==15773== Releasing lock... [2025-03-19 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:55:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:56:05 [end_date_ymd] => 2025-03-19 04:56:05 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:56:05' and `end` < '2025-03-19 04: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-03-19 04:56:19] Production.INFO: count ==138 [2025-03-19 04:56:19] Production.ERROR: pbx CDR StartTime 2025-03-19 01:56:05 - End Time 2025-03-19 04:56:05 [2025-03-19 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713196', 'tblTempUsageDetail_20' ) start [2025-03-19 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713196', 'tblTempUsageDetail_20' ) end [2025-03-19 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713196', 'tblTempVendorCDR_20' ) start [2025-03-19 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713196', 'tblTempVendorCDR_20' ) end [2025-03-19 04:56:19] Production.INFO: ProcessCDR(1,14713196,1,1,2) [2025-03-19 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713196', 'tblTempUsageDetail_20' ) start [2025-03-19 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713196', 'tblTempUsageDetail_20' ) end [2025-03-19 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:56:22] Production.INFO: ==15857== Releasing lock... [2025-03-19 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:56:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:57:06 [end_date_ymd] => 2025-03-19 04:57:06 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:57:06' and `end` < '2025-03-19 04: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-03-19 04:57:18] Production.INFO: count ==134 [2025-03-19 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:57:06 - End Time 2025-03-19 04:57:06 [2025-03-19 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713201', 'tblTempUsageDetail_20' ) start [2025-03-19 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713201', 'tblTempUsageDetail_20' ) end [2025-03-19 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713201', 'tblTempVendorCDR_20' ) start [2025-03-19 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713201', 'tblTempVendorCDR_20' ) end [2025-03-19 04:57:18] Production.INFO: ProcessCDR(1,14713201,1,1,2) [2025-03-19 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713201', 'tblTempUsageDetail_20' ) start [2025-03-19 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713201', 'tblTempUsageDetail_20' ) end [2025-03-19 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:57:21] Production.INFO: ==15938== Releasing lock... [2025-03-19 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:57:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:58:05 [end_date_ymd] => 2025-03-19 04:58:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 01:58:05' and `end` < '2025-03-19 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-03-19 04:58:18] Production.INFO: count ==134 [2025-03-19 04:58:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:58:05 - End Time 2025-03-19 04:58:05 [2025-03-19 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713206', 'tblTempUsageDetail_20' ) start [2025-03-19 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713206', 'tblTempUsageDetail_20' ) end [2025-03-19 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713206', 'tblTempVendorCDR_20' ) start [2025-03-19 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713206', 'tblTempVendorCDR_20' ) end [2025-03-19 04:58:18] Production.INFO: ProcessCDR(1,14713206,1,1,2) [2025-03-19 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713206', 'tblTempUsageDetail_20' ) start [2025-03-19 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713206', 'tblTempUsageDetail_20' ) end [2025-03-19 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:58:21] Production.INFO: ==16017== Releasing lock... [2025-03-19 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:58:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 04:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 01:59:06 [end_date_ymd] => 2025-03-19 04:59:06 [RateCDR] => 1 ) [2025-03-19 04: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-03-19 01:59:06' and `end` < '2025-03-19 04: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-03-19 04:59:18] Production.INFO: count ==129 [2025-03-19 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-19 01:59:06 - End Time 2025-03-19 04:59:06 [2025-03-19 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713211', 'tblTempUsageDetail_20' ) start [2025-03-19 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713211', 'tblTempUsageDetail_20' ) end [2025-03-19 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713211', 'tblTempVendorCDR_20' ) start [2025-03-19 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713211', 'tblTempVendorCDR_20' ) end [2025-03-19 04:59:18] Production.INFO: ProcessCDR(1,14713211,1,1,2) [2025-03-19 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713211', 'tblTempUsageDetail_20' ) start [2025-03-19 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713211', 'tblTempUsageDetail_20' ) end [2025-03-19 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 04:59:22] Production.INFO: ==16095== Releasing lock... [2025-03-19 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 04:59:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:00:06 [end_date_ymd] => 2025-03-19 05:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:00:06' and `end` < '2025-03-19 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-03-19 05:00:18] Production.INFO: count ==125 [2025-03-19 05:00:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:00:06 - End Time 2025-03-19 05:00:06 [2025-03-19 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713217', 'tblTempUsageDetail_20' ) start [2025-03-19 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713217', 'tblTempUsageDetail_20' ) end [2025-03-19 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713217', 'tblTempVendorCDR_20' ) start [2025-03-19 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713217', 'tblTempVendorCDR_20' ) end [2025-03-19 05:00:18] Production.INFO: ProcessCDR(1,14713217,1,1,2) [2025-03-19 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713217', 'tblTempUsageDetail_20' ) start [2025-03-19 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713217', 'tblTempUsageDetail_20' ) end [2025-03-19 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:00:22] Production.INFO: ==16175== Releasing lock... [2025-03-19 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:00:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:01:05 [end_date_ymd] => 2025-03-19 05:01:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:01:05' and `end` < '2025-03-19 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-03-19 05:01:19] Production.INFO: count ==121 [2025-03-19 05:01:19] Production.ERROR: pbx CDR StartTime 2025-03-19 02:01:05 - End Time 2025-03-19 05:01:05 [2025-03-19 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713222', 'tblTempUsageDetail_20' ) start [2025-03-19 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713222', 'tblTempUsageDetail_20' ) end [2025-03-19 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713222', 'tblTempVendorCDR_20' ) start [2025-03-19 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713222', 'tblTempVendorCDR_20' ) end [2025-03-19 05:01:19] Production.INFO: ProcessCDR(1,14713222,1,1,2) [2025-03-19 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713222', 'tblTempUsageDetail_20' ) start [2025-03-19 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713222', 'tblTempUsageDetail_20' ) end [2025-03-19 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:01:22] Production.INFO: ==16271== Releasing lock... [2025-03-19 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:01:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:02:05 [end_date_ymd] => 2025-03-19 05:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:02:05' and `end` < '2025-03-19 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-03-19 05:02:18] Production.INFO: count ==121 [2025-03-19 05:02:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:02:05 - End Time 2025-03-19 05:02:05 [2025-03-19 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713227', 'tblTempUsageDetail_20' ) start [2025-03-19 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713227', 'tblTempUsageDetail_20' ) end [2025-03-19 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713227', 'tblTempVendorCDR_20' ) start [2025-03-19 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713227', 'tblTempVendorCDR_20' ) end [2025-03-19 05:02:18] Production.INFO: ProcessCDR(1,14713227,1,1,2) [2025-03-19 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713227', 'tblTempUsageDetail_20' ) start [2025-03-19 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713227', 'tblTempUsageDetail_20' ) end [2025-03-19 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:02:22] Production.INFO: ==16351== Releasing lock... [2025-03-19 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:03:06 [end_date_ymd] => 2025-03-19 05:03:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:03:06' and `end` < '2025-03-19 05: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-03-19 05:03:19] Production.INFO: count ==121 [2025-03-19 05:03:19] Production.ERROR: pbx CDR StartTime 2025-03-19 02:03:06 - End Time 2025-03-19 05:03:06 [2025-03-19 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713232', 'tblTempUsageDetail_20' ) start [2025-03-19 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713232', 'tblTempUsageDetail_20' ) end [2025-03-19 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713232', 'tblTempVendorCDR_20' ) start [2025-03-19 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713232', 'tblTempVendorCDR_20' ) end [2025-03-19 05:03:19] Production.INFO: ProcessCDR(1,14713232,1,1,2) [2025-03-19 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713232', 'tblTempUsageDetail_20' ) start [2025-03-19 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713232', 'tblTempUsageDetail_20' ) end [2025-03-19 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:03:22] Production.INFO: ==16436== Releasing lock... [2025-03-19 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:04:05 [end_date_ymd] => 2025-03-19 05:04:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:04:05' and `end` < '2025-03-19 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-03-19 05:04:17] Production.INFO: count ==121 [2025-03-19 05:04:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:04:05 - End Time 2025-03-19 05:04:05 [2025-03-19 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713237', 'tblTempUsageDetail_20' ) start [2025-03-19 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713237', 'tblTempUsageDetail_20' ) end [2025-03-19 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713237', 'tblTempVendorCDR_20' ) start [2025-03-19 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713237', 'tblTempVendorCDR_20' ) end [2025-03-19 05:04:17] Production.INFO: ProcessCDR(1,14713237,1,1,2) [2025-03-19 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713237', 'tblTempUsageDetail_20' ) start [2025-03-19 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713237', 'tblTempUsageDetail_20' ) end [2025-03-19 05:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:04:20] Production.INFO: ==16516== Releasing lock... [2025-03-19 05:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:04:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:05:06 [end_date_ymd] => 2025-03-19 05:05:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:05:06' and `end` < '2025-03-19 05: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-03-19 05:05:18] Production.INFO: count ==121 [2025-03-19 05:05:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:05:06 - End Time 2025-03-19 05:05:06 [2025-03-19 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713242', 'tblTempUsageDetail_20' ) start [2025-03-19 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713242', 'tblTempUsageDetail_20' ) end [2025-03-19 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713242', 'tblTempVendorCDR_20' ) start [2025-03-19 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713242', 'tblTempVendorCDR_20' ) end [2025-03-19 05:05:18] Production.INFO: ProcessCDR(1,14713242,1,1,2) [2025-03-19 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713242', 'tblTempUsageDetail_20' ) start [2025-03-19 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713242', 'tblTempUsageDetail_20' ) end [2025-03-19 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:05:21] Production.INFO: ==16591== Releasing lock... [2025-03-19 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:06:05 [end_date_ymd] => 2025-03-19 05:06:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:06:05' and `end` < '2025-03-19 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-03-19 05:06:18] Production.INFO: count ==123 [2025-03-19 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:06:05 - End Time 2025-03-19 05:06:05 [2025-03-19 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713247', 'tblTempUsageDetail_20' ) start [2025-03-19 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713247', 'tblTempUsageDetail_20' ) end [2025-03-19 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713247', 'tblTempVendorCDR_20' ) start [2025-03-19 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713247', 'tblTempVendorCDR_20' ) end [2025-03-19 05:06:18] Production.INFO: ProcessCDR(1,14713247,1,1,2) [2025-03-19 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713247', 'tblTempUsageDetail_20' ) start [2025-03-19 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713247', 'tblTempUsageDetail_20' ) end [2025-03-19 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:06:21] Production.INFO: ==16664== Releasing lock... [2025-03-19 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:07:05 [end_date_ymd] => 2025-03-19 05:07:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:07:05' and `end` < '2025-03-19 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-03-19 05:07:18] Production.INFO: count ==123 [2025-03-19 05:07:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:07:05 - End Time 2025-03-19 05:07:05 [2025-03-19 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713252', 'tblTempUsageDetail_20' ) start [2025-03-19 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713252', 'tblTempUsageDetail_20' ) end [2025-03-19 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713252', 'tblTempVendorCDR_20' ) start [2025-03-19 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713252', 'tblTempVendorCDR_20' ) end [2025-03-19 05:07:18] Production.INFO: ProcessCDR(1,14713252,1,1,2) [2025-03-19 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713252', 'tblTempUsageDetail_20' ) start [2025-03-19 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713252', 'tblTempUsageDetail_20' ) end [2025-03-19 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:07:21] Production.INFO: ==16778== Releasing lock... [2025-03-19 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:08:05 [end_date_ymd] => 2025-03-19 05:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:08:05' and `end` < '2025-03-19 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-03-19 05:08:17] Production.INFO: count ==123 [2025-03-19 05:08:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:08:05 - End Time 2025-03-19 05:08:05 [2025-03-19 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713257', 'tblTempUsageDetail_20' ) start [2025-03-19 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713257', 'tblTempUsageDetail_20' ) end [2025-03-19 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713257', 'tblTempVendorCDR_20' ) start [2025-03-19 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713257', 'tblTempVendorCDR_20' ) end [2025-03-19 05:08:17] Production.INFO: ProcessCDR(1,14713257,1,1,2) [2025-03-19 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713257', 'tblTempUsageDetail_20' ) start [2025-03-19 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713257', 'tblTempUsageDetail_20' ) end [2025-03-19 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:08:21] Production.INFO: ==16855== Releasing lock... [2025-03-19 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:09:06 [end_date_ymd] => 2025-03-19 05:09:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:09:06' and `end` < '2025-03-19 05: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-03-19 05:09:18] Production.INFO: count ==122 [2025-03-19 05:09:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:09:06 - End Time 2025-03-19 05:09:06 [2025-03-19 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713262', 'tblTempUsageDetail_20' ) start [2025-03-19 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713262', 'tblTempUsageDetail_20' ) end [2025-03-19 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713262', 'tblTempVendorCDR_20' ) start [2025-03-19 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713262', 'tblTempVendorCDR_20' ) end [2025-03-19 05:09:18] Production.INFO: ProcessCDR(1,14713262,1,1,2) [2025-03-19 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713262', 'tblTempUsageDetail_20' ) start [2025-03-19 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713262', 'tblTempUsageDetail_20' ) end [2025-03-19 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:09:21] Production.INFO: ==16929== Releasing lock... [2025-03-19 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:10:06 [end_date_ymd] => 2025-03-19 05:10:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:10:06' and `end` < '2025-03-19 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-03-19 05:10:18] Production.INFO: count ==130 [2025-03-19 05:10:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:10:06 - End Time 2025-03-19 05:10:06 [2025-03-19 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713268', 'tblTempUsageDetail_20' ) start [2025-03-19 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713268', 'tblTempUsageDetail_20' ) end [2025-03-19 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713268', 'tblTempVendorCDR_20' ) start [2025-03-19 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713268', 'tblTempVendorCDR_20' ) end [2025-03-19 05:10:18] Production.INFO: ProcessCDR(1,14713268,1,1,2) [2025-03-19 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713268', 'tblTempUsageDetail_20' ) start [2025-03-19 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713268', 'tblTempUsageDetail_20' ) end [2025-03-19 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:10:22] Production.INFO: ==17004== Releasing lock... [2025-03-19 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:10:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:11:05 [end_date_ymd] => 2025-03-19 05:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:11:05' and `end` < '2025-03-19 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-03-19 05:11:17] Production.INFO: count ==131 [2025-03-19 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:11:05 - End Time 2025-03-19 05:11:05 [2025-03-19 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713273', 'tblTempUsageDetail_20' ) start [2025-03-19 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713273', 'tblTempUsageDetail_20' ) end [2025-03-19 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713273', 'tblTempVendorCDR_20' ) start [2025-03-19 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713273', 'tblTempVendorCDR_20' ) end [2025-03-19 05:11:17] Production.INFO: ProcessCDR(1,14713273,1,1,2) [2025-03-19 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713273', 'tblTempUsageDetail_20' ) start [2025-03-19 05:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713273', 'tblTempUsageDetail_20' ) end [2025-03-19 05:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:11:22] Production.INFO: ==17089== Releasing lock... [2025-03-19 05:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:11:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:12:05 [end_date_ymd] => 2025-03-19 05:12:05 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:12:05' and `end` < '2025-03-19 05: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-03-19 05:12:17] Production.INFO: count ==132 [2025-03-19 05:12:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:12:05 - End Time 2025-03-19 05:12:05 [2025-03-19 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713278', 'tblTempUsageDetail_20' ) start [2025-03-19 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713278', 'tblTempUsageDetail_20' ) end [2025-03-19 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713278', 'tblTempVendorCDR_20' ) start [2025-03-19 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713278', 'tblTempVendorCDR_20' ) end [2025-03-19 05:12:17] Production.INFO: ProcessCDR(1,14713278,1,1,2) [2025-03-19 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713278', 'tblTempUsageDetail_20' ) start [2025-03-19 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713278', 'tblTempUsageDetail_20' ) end [2025-03-19 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:12:22] Production.INFO: ==17162== Releasing lock... [2025-03-19 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:12:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 05:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:13:06 [end_date_ymd] => 2025-03-19 05:13:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:13:06' and `end` < '2025-03-19 05:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 05:13:18] Production.INFO: count ==132 [2025-03-19 05:13:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:13:06 - End Time 2025-03-19 05:13:06 [2025-03-19 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713283', 'tblTempUsageDetail_20' ) start [2025-03-19 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713283', 'tblTempUsageDetail_20' ) end [2025-03-19 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713283', 'tblTempVendorCDR_20' ) start [2025-03-19 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713283', 'tblTempVendorCDR_20' ) end [2025-03-19 05:13:18] Production.INFO: ProcessCDR(1,14713283,1,1,2) [2025-03-19 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713283', 'tblTempUsageDetail_20' ) start [2025-03-19 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713283', 'tblTempUsageDetail_20' ) end [2025-03-19 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:13:21] Production.INFO: ==17234== Releasing lock... [2025-03-19 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:13:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:14:05 [end_date_ymd] => 2025-03-19 05:14:05 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:14:05' and `end` < '2025-03-19 05: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-03-19 05:14:17] Production.INFO: count ==132 [2025-03-19 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:14:05 - End Time 2025-03-19 05:14:05 [2025-03-19 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713288', 'tblTempUsageDetail_20' ) start [2025-03-19 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713288', 'tblTempUsageDetail_20' ) end [2025-03-19 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713288', 'tblTempVendorCDR_20' ) start [2025-03-19 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713288', 'tblTempVendorCDR_20' ) end [2025-03-19 05:14:17] Production.INFO: ProcessCDR(1,14713288,1,1,2) [2025-03-19 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713288', 'tblTempUsageDetail_20' ) start [2025-03-19 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713288', 'tblTempUsageDetail_20' ) end [2025-03-19 05:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:14:20] Production.INFO: ==17305== Releasing lock... [2025-03-19 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:14:20] Production.INFO: 29 MB #Memory Used# [2025-03-19 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:15:05 [end_date_ymd] => 2025-03-19 05:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:15:05' and `end` < '2025-03-19 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-03-19 05:15:17] Production.INFO: count ==132 [2025-03-19 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:15:05 - End Time 2025-03-19 05:15:05 [2025-03-19 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713293', 'tblTempUsageDetail_20' ) start [2025-03-19 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713293', 'tblTempUsageDetail_20' ) end [2025-03-19 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713293', 'tblTempVendorCDR_20' ) start [2025-03-19 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713293', 'tblTempVendorCDR_20' ) end [2025-03-19 05:15:17] Production.INFO: ProcessCDR(1,14713293,1,1,2) [2025-03-19 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713293', 'tblTempUsageDetail_20' ) start [2025-03-19 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713293', 'tblTempUsageDetail_20' ) end [2025-03-19 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:15:21] Production.INFO: ==17377== Releasing lock... [2025-03-19 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:15:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:16:06 [end_date_ymd] => 2025-03-19 05:16:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:16:06' and `end` < '2025-03-19 05: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-03-19 05:16:18] Production.INFO: count ==132 [2025-03-19 05:16:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:16:06 - End Time 2025-03-19 05:16:06 [2025-03-19 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713298', 'tblTempUsageDetail_20' ) start [2025-03-19 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713298', 'tblTempUsageDetail_20' ) end [2025-03-19 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713298', 'tblTempVendorCDR_20' ) start [2025-03-19 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713298', 'tblTempVendorCDR_20' ) end [2025-03-19 05:16:18] Production.INFO: ProcessCDR(1,14713298,1,1,2) [2025-03-19 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713298', 'tblTempUsageDetail_20' ) start [2025-03-19 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713298', 'tblTempUsageDetail_20' ) end [2025-03-19 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:16:22] Production.INFO: ==17449== Releasing lock... [2025-03-19 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:16:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:17:05 [end_date_ymd] => 2025-03-19 05:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:17:05' and `end` < '2025-03-19 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-03-19 05:17:17] Production.INFO: count ==132 [2025-03-19 05:17:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:17:05 - End Time 2025-03-19 05:17:05 [2025-03-19 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713303', 'tblTempUsageDetail_20' ) start [2025-03-19 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713303', 'tblTempUsageDetail_20' ) end [2025-03-19 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713303', 'tblTempVendorCDR_20' ) start [2025-03-19 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713303', 'tblTempVendorCDR_20' ) end [2025-03-19 05:17:17] Production.INFO: ProcessCDR(1,14713303,1,1,2) [2025-03-19 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713303', 'tblTempUsageDetail_20' ) start [2025-03-19 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713303', 'tblTempUsageDetail_20' ) end [2025-03-19 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:17:21] Production.INFO: ==17524== Releasing lock... [2025-03-19 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:17:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:18:05 [end_date_ymd] => 2025-03-19 05:18:05 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:18:05' and `end` < '2025-03-19 05: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-03-19 05:18:17] Production.INFO: count ==132 [2025-03-19 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:18:05 - End Time 2025-03-19 05:18:05 [2025-03-19 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713308', 'tblTempUsageDetail_20' ) start [2025-03-19 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713308', 'tblTempUsageDetail_20' ) end [2025-03-19 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713308', 'tblTempVendorCDR_20' ) start [2025-03-19 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713308', 'tblTempVendorCDR_20' ) end [2025-03-19 05:18:17] Production.INFO: ProcessCDR(1,14713308,1,1,2) [2025-03-19 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713308', 'tblTempUsageDetail_20' ) start [2025-03-19 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713308', 'tblTempUsageDetail_20' ) end [2025-03-19 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:18:20] Production.INFO: ==17609== Releasing lock... [2025-03-19 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:18:20] Production.INFO: 29 MB #Memory Used# [2025-03-19 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:19:05 [end_date_ymd] => 2025-03-19 05:19:05 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:19:05' and `end` < '2025-03-19 05: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-03-19 05:19:17] Production.INFO: count ==132 [2025-03-19 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:19:05 - End Time 2025-03-19 05:19:05 [2025-03-19 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713313', 'tblTempUsageDetail_20' ) start [2025-03-19 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713313', 'tblTempUsageDetail_20' ) end [2025-03-19 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713313', 'tblTempVendorCDR_20' ) start [2025-03-19 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713313', 'tblTempVendorCDR_20' ) end [2025-03-19 05:19:17] Production.INFO: ProcessCDR(1,14713313,1,1,2) [2025-03-19 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713313', 'tblTempUsageDetail_20' ) start [2025-03-19 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713313', 'tblTempUsageDetail_20' ) end [2025-03-19 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:19:20] Production.INFO: ==17679== Releasing lock... [2025-03-19 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:19:20] Production.INFO: 29 MB #Memory Used# [2025-03-19 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:20:06 [end_date_ymd] => 2025-03-19 05:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:20:06' and `end` < '2025-03-19 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-03-19 05:20:18] Production.INFO: count ==125 [2025-03-19 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:20:06 - End Time 2025-03-19 05:20:06 [2025-03-19 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713319', 'tblTempUsageDetail_20' ) start [2025-03-19 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713319', 'tblTempUsageDetail_20' ) end [2025-03-19 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713319', 'tblTempVendorCDR_20' ) start [2025-03-19 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713319', 'tblTempVendorCDR_20' ) end [2025-03-19 05:20:18] Production.INFO: ProcessCDR(1,14713319,1,1,2) [2025-03-19 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713319', 'tblTempUsageDetail_20' ) start [2025-03-19 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713319', 'tblTempUsageDetail_20' ) end [2025-03-19 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:20:22] Production.INFO: ==17758== Releasing lock... [2025-03-19 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:21:05 [end_date_ymd] => 2025-03-19 05:21:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:21:05' and `end` < '2025-03-19 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-03-19 05:21:17] Production.INFO: count ==125 [2025-03-19 05:21:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:21:05 - End Time 2025-03-19 05:21:05 [2025-03-19 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713324', 'tblTempUsageDetail_20' ) start [2025-03-19 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713324', 'tblTempUsageDetail_20' ) end [2025-03-19 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713324', 'tblTempVendorCDR_20' ) start [2025-03-19 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713324', 'tblTempVendorCDR_20' ) end [2025-03-19 05:21:17] Production.INFO: ProcessCDR(1,14713324,1,1,2) [2025-03-19 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713324', 'tblTempUsageDetail_20' ) start [2025-03-19 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713324', 'tblTempUsageDetail_20' ) end [2025-03-19 05:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:21:20] Production.INFO: ==17832== Releasing lock... [2025-03-19 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:22:06 [end_date_ymd] => 2025-03-19 05:22:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:22:06' and `end` < '2025-03-19 05: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-03-19 05:22:18] Production.INFO: count ==125 [2025-03-19 05:22:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:22:06 - End Time 2025-03-19 05:22:06 [2025-03-19 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713329', 'tblTempUsageDetail_20' ) start [2025-03-19 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713329', 'tblTempUsageDetail_20' ) end [2025-03-19 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713329', 'tblTempVendorCDR_20' ) start [2025-03-19 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713329', 'tblTempVendorCDR_20' ) end [2025-03-19 05:22:18] Production.INFO: ProcessCDR(1,14713329,1,1,2) [2025-03-19 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713329', 'tblTempUsageDetail_20' ) start [2025-03-19 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713329', 'tblTempUsageDetail_20' ) end [2025-03-19 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:22:21] Production.INFO: ==17905== Releasing lock... [2025-03-19 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:23:05 [end_date_ymd] => 2025-03-19 05:23:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:23:05' and `end` < '2025-03-19 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-03-19 05:23:17] Production.INFO: count ==125 [2025-03-19 05:23:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:23:05 - End Time 2025-03-19 05:23:05 [2025-03-19 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713334', 'tblTempUsageDetail_20' ) start [2025-03-19 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713334', 'tblTempUsageDetail_20' ) end [2025-03-19 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713334', 'tblTempVendorCDR_20' ) start [2025-03-19 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713334', 'tblTempVendorCDR_20' ) end [2025-03-19 05:23:17] Production.INFO: ProcessCDR(1,14713334,1,1,2) [2025-03-19 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713334', 'tblTempUsageDetail_20' ) start [2025-03-19 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713334', 'tblTempUsageDetail_20' ) end [2025-03-19 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:23:20] Production.INFO: ==18021== Releasing lock... [2025-03-19 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:23:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:24:06 [end_date_ymd] => 2025-03-19 05:24:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:24:06' and `end` < '2025-03-19 05: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-03-19 05:24:18] Production.INFO: count ==125 [2025-03-19 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:24:06 - End Time 2025-03-19 05:24:06 [2025-03-19 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713339', 'tblTempUsageDetail_20' ) start [2025-03-19 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713339', 'tblTempUsageDetail_20' ) end [2025-03-19 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713339', 'tblTempVendorCDR_20' ) start [2025-03-19 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713339', 'tblTempVendorCDR_20' ) end [2025-03-19 05:24:18] Production.INFO: ProcessCDR(1,14713339,1,1,2) [2025-03-19 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713339', 'tblTempUsageDetail_20' ) start [2025-03-19 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713339', 'tblTempUsageDetail_20' ) end [2025-03-19 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:24:21] Production.INFO: ==18099== Releasing lock... [2025-03-19 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:25:05 [end_date_ymd] => 2025-03-19 05:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:25:05' and `end` < '2025-03-19 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-03-19 05:25:17] Production.INFO: count ==125 [2025-03-19 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:25:05 - End Time 2025-03-19 05:25:05 [2025-03-19 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713344', 'tblTempUsageDetail_20' ) start [2025-03-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713344', 'tblTempUsageDetail_20' ) end [2025-03-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713344', 'tblTempVendorCDR_20' ) start [2025-03-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713344', 'tblTempVendorCDR_20' ) end [2025-03-19 05:25:17] Production.INFO: ProcessCDR(1,14713344,1,1,2) [2025-03-19 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713344', 'tblTempUsageDetail_20' ) start [2025-03-19 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713344', 'tblTempUsageDetail_20' ) end [2025-03-19 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:25:21] Production.INFO: ==18175== Releasing lock... [2025-03-19 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:26:05 [end_date_ymd] => 2025-03-19 05:26:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:26:05' and `end` < '2025-03-19 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-03-19 05:26:17] Production.INFO: count ==125 [2025-03-19 05:26:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:26:05 - End Time 2025-03-19 05:26:05 [2025-03-19 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713349', 'tblTempUsageDetail_20' ) start [2025-03-19 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713349', 'tblTempUsageDetail_20' ) end [2025-03-19 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713349', 'tblTempVendorCDR_20' ) start [2025-03-19 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713349', 'tblTempVendorCDR_20' ) end [2025-03-19 05:26:17] Production.INFO: ProcessCDR(1,14713349,1,1,2) [2025-03-19 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713349', 'tblTempUsageDetail_20' ) start [2025-03-19 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713349', 'tblTempUsageDetail_20' ) end [2025-03-19 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:26:20] Production.INFO: ==18254== Releasing lock... [2025-03-19 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:26:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:27:05 [end_date_ymd] => 2025-03-19 05:27:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:27:05' and `end` < '2025-03-19 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-03-19 05:27:17] Production.INFO: count ==125 [2025-03-19 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:27:05 - End Time 2025-03-19 05:27:05 [2025-03-19 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713354', 'tblTempUsageDetail_20' ) start [2025-03-19 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713354', 'tblTempUsageDetail_20' ) end [2025-03-19 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713354', 'tblTempVendorCDR_20' ) start [2025-03-19 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713354', 'tblTempVendorCDR_20' ) end [2025-03-19 05:27:17] Production.INFO: ProcessCDR(1,14713354,1,1,2) [2025-03-19 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713354', 'tblTempUsageDetail_20' ) start [2025-03-19 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713354', 'tblTempUsageDetail_20' ) end [2025-03-19 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:27:20] Production.INFO: ==18330== Releasing lock... [2025-03-19 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:27:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:28:06 [end_date_ymd] => 2025-03-19 05:28:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:28:06' and `end` < '2025-03-19 05: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-03-19 05:28:18] Production.INFO: count ==125 [2025-03-19 05:28:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:28:06 - End Time 2025-03-19 05:28:06 [2025-03-19 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713359', 'tblTempUsageDetail_20' ) start [2025-03-19 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713359', 'tblTempUsageDetail_20' ) end [2025-03-19 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713359', 'tblTempVendorCDR_20' ) start [2025-03-19 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713359', 'tblTempVendorCDR_20' ) end [2025-03-19 05:28:18] Production.INFO: ProcessCDR(1,14713359,1,1,2) [2025-03-19 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713359', 'tblTempUsageDetail_20' ) start [2025-03-19 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713359', 'tblTempUsageDetail_20' ) end [2025-03-19 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:28:21] Production.INFO: ==18414== Releasing lock... [2025-03-19 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:29:06 [end_date_ymd] => 2025-03-19 05:29:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:29:06' and `end` < '2025-03-19 05: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-03-19 05:29:18] Production.INFO: count ==125 [2025-03-19 05:29:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:29:06 - End Time 2025-03-19 05:29:06 [2025-03-19 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713364', 'tblTempUsageDetail_20' ) start [2025-03-19 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713364', 'tblTempUsageDetail_20' ) end [2025-03-19 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713364', 'tblTempVendorCDR_20' ) start [2025-03-19 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713364', 'tblTempVendorCDR_20' ) end [2025-03-19 05:29:18] Production.INFO: ProcessCDR(1,14713364,1,1,2) [2025-03-19 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713364', 'tblTempUsageDetail_20' ) start [2025-03-19 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713364', 'tblTempUsageDetail_20' ) end [2025-03-19 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:29:21] Production.INFO: ==18487== Releasing lock... [2025-03-19 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:30:06 [end_date_ymd] => 2025-03-19 05:30:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:30:06' and `end` < '2025-03-19 05: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-03-19 05:30:18] Production.INFO: count ==123 [2025-03-19 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:30:06 - End Time 2025-03-19 05:30:06 [2025-03-19 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713370', 'tblTempUsageDetail_20' ) start [2025-03-19 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713370', 'tblTempUsageDetail_20' ) end [2025-03-19 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713370', 'tblTempVendorCDR_20' ) start [2025-03-19 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713370', 'tblTempVendorCDR_20' ) end [2025-03-19 05:30:18] Production.INFO: ProcessCDR(1,14713370,1,1,2) [2025-03-19 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713370', 'tblTempUsageDetail_20' ) start [2025-03-19 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713370', 'tblTempUsageDetail_20' ) end [2025-03-19 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:30:22] Production.INFO: ==18570== Releasing lock... [2025-03-19 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:30:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 05:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:31:06 [end_date_ymd] => 2025-03-19 05:31:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:31:06' and `end` < '2025-03-19 05: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-03-19 05:31:18] Production.INFO: count ==123 [2025-03-19 05:31:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:31:06 - End Time 2025-03-19 05:31:06 [2025-03-19 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713375', 'tblTempUsageDetail_20' ) start [2025-03-19 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713375', 'tblTempUsageDetail_20' ) end [2025-03-19 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713375', 'tblTempVendorCDR_20' ) start [2025-03-19 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713375', 'tblTempVendorCDR_20' ) end [2025-03-19 05:31:18] Production.INFO: ProcessCDR(1,14713375,1,1,2) [2025-03-19 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713375', 'tblTempUsageDetail_20' ) start [2025-03-19 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713375', 'tblTempUsageDetail_20' ) end [2025-03-19 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:31:21] Production.INFO: ==18661== Releasing lock... [2025-03-19 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:32:05 [end_date_ymd] => 2025-03-19 05:32:05 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:32:05' and `end` < '2025-03-19 05: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-03-19 05:32:17] Production.INFO: count ==123 [2025-03-19 05:32:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:32:05 - End Time 2025-03-19 05:32:05 [2025-03-19 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713380', 'tblTempUsageDetail_20' ) start [2025-03-19 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713380', 'tblTempUsageDetail_20' ) end [2025-03-19 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713380', 'tblTempVendorCDR_20' ) start [2025-03-19 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713380', 'tblTempVendorCDR_20' ) end [2025-03-19 05:32:17] Production.INFO: ProcessCDR(1,14713380,1,1,2) [2025-03-19 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713380', 'tblTempUsageDetail_20' ) start [2025-03-19 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713380', 'tblTempUsageDetail_20' ) end [2025-03-19 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:32:21] Production.INFO: ==18744== Releasing lock... [2025-03-19 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:33:05 [end_date_ymd] => 2025-03-19 05:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:33:05' and `end` < '2025-03-19 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-03-19 05:33:17] Production.INFO: count ==123 [2025-03-19 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:33:05 - End Time 2025-03-19 05:33:05 [2025-03-19 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713385', 'tblTempUsageDetail_20' ) start [2025-03-19 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713385', 'tblTempUsageDetail_20' ) end [2025-03-19 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713385', 'tblTempVendorCDR_20' ) start [2025-03-19 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713385', 'tblTempVendorCDR_20' ) end [2025-03-19 05:33:17] Production.INFO: ProcessCDR(1,14713385,1,1,2) [2025-03-19 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713385', 'tblTempUsageDetail_20' ) start [2025-03-19 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713385', 'tblTempUsageDetail_20' ) end [2025-03-19 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:33:21] Production.INFO: ==18834== Releasing lock... [2025-03-19 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:34:05 [end_date_ymd] => 2025-03-19 05:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:34:05' and `end` < '2025-03-19 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-03-19 05:34:17] Production.INFO: count ==123 [2025-03-19 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:34:05 - End Time 2025-03-19 05:34:05 [2025-03-19 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713390', 'tblTempUsageDetail_20' ) start [2025-03-19 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713390', 'tblTempUsageDetail_20' ) end [2025-03-19 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713390', 'tblTempVendorCDR_20' ) start [2025-03-19 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713390', 'tblTempVendorCDR_20' ) end [2025-03-19 05:34:17] Production.INFO: ProcessCDR(1,14713390,1,1,2) [2025-03-19 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713390', 'tblTempUsageDetail_20' ) start [2025-03-19 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713390', 'tblTempUsageDetail_20' ) end [2025-03-19 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:34:21] Production.INFO: ==18928== Releasing lock... [2025-03-19 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:35:05 [end_date_ymd] => 2025-03-19 05:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:35:05' and `end` < '2025-03-19 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-03-19 05:35:17] Production.INFO: count ==123 [2025-03-19 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:35:05 - End Time 2025-03-19 05:35:05 [2025-03-19 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713395', 'tblTempUsageDetail_20' ) start [2025-03-19 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713395', 'tblTempUsageDetail_20' ) end [2025-03-19 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713395', 'tblTempVendorCDR_20' ) start [2025-03-19 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713395', 'tblTempVendorCDR_20' ) end [2025-03-19 05:35:17] Production.INFO: ProcessCDR(1,14713395,1,1,2) [2025-03-19 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713395', 'tblTempUsageDetail_20' ) start [2025-03-19 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713395', 'tblTempUsageDetail_20' ) end [2025-03-19 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:35:21] Production.INFO: ==19017== Releasing lock... [2025-03-19 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:36:05 [end_date_ymd] => 2025-03-19 05:36:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:36:05' and `end` < '2025-03-19 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-03-19 05:36:17] Production.INFO: count ==123 [2025-03-19 05:36:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:36:05 - End Time 2025-03-19 05:36:05 [2025-03-19 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713400', 'tblTempUsageDetail_20' ) start [2025-03-19 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713400', 'tblTempUsageDetail_20' ) end [2025-03-19 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713400', 'tblTempVendorCDR_20' ) start [2025-03-19 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713400', 'tblTempVendorCDR_20' ) end [2025-03-19 05:36:17] Production.INFO: ProcessCDR(1,14713400,1,1,2) [2025-03-19 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713400', 'tblTempUsageDetail_20' ) start [2025-03-19 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713400', 'tblTempUsageDetail_20' ) end [2025-03-19 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:36:21] Production.INFO: ==19111== Releasing lock... [2025-03-19 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:37:05 [end_date_ymd] => 2025-03-19 05:37:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:37:05' and `end` < '2025-03-19 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-03-19 05:37:05] Production.ERROR: Class Name:App\PBX,Method: App\PBX::getAccountCDRs, Fault. Code: 2002, Reason: SQLSTATE[HY000] [2002] Connection refused [2025-03-19 05:37:05] Production.ERROR: exception 'Exception' with message 'SQLSTATE[HY000] [2002] Connection refused' in /var/www/html/onswitch.neon.service/app/PBX.php:133 Stack trace: #0 /var/www/html/onswitch.neon.service/app/Console/Commands/PBXAccountUsage.php(0): App\PBX::getAccountCDRs() #1 [internal function]: App\Console\Commands\PBXAccountUsage->fire() #2 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Container/Container.php(526): call_user_func_array(Array, Array) #3 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(115): Illuminate\Container\Container->call(Array) #4 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #5 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Console/Command.php(101): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #6 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #7 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\PBXAccountUsage), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /var/www/html/onswitch.neon.service/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /var/www/html/onswitch.neon.service/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(94): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /var/www/html/onswitch.neon.service/artisan(36): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #11 {main} [2025-03-19 05:37:07] Production.ERROR: **Email Sent Status 1 [2025-03-19 05:37:07] Production.ERROR: **Email Sent message Email has been sent [2025-03-19 05:37:07] Production.INFO: ==19205== Releasing lock... [2025-03-19 05:37:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:37:07] Production.INFO: 29.5 MB #Memory Used# [2025-03-19 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:38:05 [end_date_ymd] => 2025-03-19 05:38:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:38:05' and `end` < '2025-03-19 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-03-19 05:38:59] Production.INFO: count ==123 [2025-03-19 05:38:59] Production.ERROR: pbx CDR StartTime 2025-03-19 02:38:05 - End Time 2025-03-19 05:38:05 [2025-03-19 05:38:59] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:38:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713410', 'tblTempUsageDetail_20' ) start [2025-03-19 05:38:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713410', 'tblTempUsageDetail_20' ) end [2025-03-19 05:38:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713410', 'tblTempVendorCDR_20' ) start [2025-03-19 05:38:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713410', 'tblTempVendorCDR_20' ) end [2025-03-19 05:38:59] Production.INFO: ProcessCDR(1,14713410,1,1,2) [2025-03-19 05:38:59] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:39:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:39:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:39:03] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:39:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713410', 'tblTempUsageDetail_20' ) start [2025-03-19 05:39:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713410', 'tblTempUsageDetail_20' ) end [2025-03-19 05:39:03] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:39:03] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:39:03] Production.INFO: ==19337== Releasing lock... [2025-03-19 05:39:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:39:03] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:40:06 [end_date_ymd] => 2025-03-19 05:40:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:40:06' and `end` < '2025-03-19 05: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-03-19 05:40:18] Production.INFO: count ==113 [2025-03-19 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:40:06 - End Time 2025-03-19 05:40:06 [2025-03-19 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713420', 'tblTempUsageDetail_20' ) start [2025-03-19 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713420', 'tblTempUsageDetail_20' ) end [2025-03-19 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713420', 'tblTempVendorCDR_20' ) start [2025-03-19 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713420', 'tblTempVendorCDR_20' ) end [2025-03-19 05:40:18] Production.INFO: ProcessCDR(1,14713420,1,1,2) [2025-03-19 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713420', 'tblTempUsageDetail_20' ) start [2025-03-19 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713420', 'tblTempUsageDetail_20' ) end [2025-03-19 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:40:21] Production.INFO: ==19524== Releasing lock... [2025-03-19 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:41:05 [end_date_ymd] => 2025-03-19 05:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:41:05' and `end` < '2025-03-19 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-03-19 05:41:17] Production.INFO: count ==113 [2025-03-19 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:41:05 - End Time 2025-03-19 05:41:05 [2025-03-19 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713425', 'tblTempUsageDetail_20' ) start [2025-03-19 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713425', 'tblTempUsageDetail_20' ) end [2025-03-19 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713425', 'tblTempVendorCDR_20' ) start [2025-03-19 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713425', 'tblTempVendorCDR_20' ) end [2025-03-19 05:41:17] Production.INFO: ProcessCDR(1,14713425,1,1,2) [2025-03-19 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713425', 'tblTempUsageDetail_20' ) start [2025-03-19 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713425', 'tblTempUsageDetail_20' ) end [2025-03-19 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:41:20] Production.INFO: ==19619== Releasing lock... [2025-03-19 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:41:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:42:05 [end_date_ymd] => 2025-03-19 05:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:42:05' and `end` < '2025-03-19 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-03-19 05:42:17] Production.INFO: count ==113 [2025-03-19 05:42:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:42:05 - End Time 2025-03-19 05:42:05 [2025-03-19 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713430', 'tblTempUsageDetail_20' ) start [2025-03-19 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713430', 'tblTempUsageDetail_20' ) end [2025-03-19 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713430', 'tblTempVendorCDR_20' ) start [2025-03-19 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713430', 'tblTempVendorCDR_20' ) end [2025-03-19 05:42:17] Production.INFO: ProcessCDR(1,14713430,1,1,2) [2025-03-19 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713430', 'tblTempUsageDetail_20' ) start [2025-03-19 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713430', 'tblTempUsageDetail_20' ) end [2025-03-19 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:42:21] Production.INFO: ==19718== Releasing lock... [2025-03-19 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:43:06 [end_date_ymd] => 2025-03-19 05:43:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:43:06' and `end` < '2025-03-19 05: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-03-19 05:43:18] Production.INFO: count ==113 [2025-03-19 05:43:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:43:06 - End Time 2025-03-19 05:43:06 [2025-03-19 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713435', 'tblTempUsageDetail_20' ) start [2025-03-19 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713435', 'tblTempUsageDetail_20' ) end [2025-03-19 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713435', 'tblTempVendorCDR_20' ) start [2025-03-19 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713435', 'tblTempVendorCDR_20' ) end [2025-03-19 05:43:18] Production.INFO: ProcessCDR(1,14713435,1,1,2) [2025-03-19 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713435', 'tblTempUsageDetail_20' ) start [2025-03-19 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713435', 'tblTempUsageDetail_20' ) end [2025-03-19 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:43:21] Production.INFO: ==19813== Releasing lock... [2025-03-19 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:44:05 [end_date_ymd] => 2025-03-19 05:44:05 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:44:05' and `end` < '2025-03-19 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-03-19 05:44:18] Production.INFO: count ==113 [2025-03-19 05:44:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:44:05 - End Time 2025-03-19 05:44:05 [2025-03-19 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713440', 'tblTempUsageDetail_20' ) start [2025-03-19 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713440', 'tblTempUsageDetail_20' ) end [2025-03-19 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713440', 'tblTempVendorCDR_20' ) start [2025-03-19 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713440', 'tblTempVendorCDR_20' ) end [2025-03-19 05:44:18] Production.INFO: ProcessCDR(1,14713440,1,1,2) [2025-03-19 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713440', 'tblTempUsageDetail_20' ) start [2025-03-19 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713440', 'tblTempUsageDetail_20' ) end [2025-03-19 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:44:21] Production.INFO: ==19916== Releasing lock... [2025-03-19 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:45:05 [end_date_ymd] => 2025-03-19 05:45:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:45:05' and `end` < '2025-03-19 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-03-19 05:45:17] Production.INFO: count ==113 [2025-03-19 05:45:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:45:05 - End Time 2025-03-19 05:45:05 [2025-03-19 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713445', 'tblTempUsageDetail_20' ) start [2025-03-19 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713445', 'tblTempUsageDetail_20' ) end [2025-03-19 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713445', 'tblTempVendorCDR_20' ) start [2025-03-19 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713445', 'tblTempVendorCDR_20' ) end [2025-03-19 05:45:17] Production.INFO: ProcessCDR(1,14713445,1,1,2) [2025-03-19 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713445', 'tblTempUsageDetail_20' ) start [2025-03-19 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713445', 'tblTempUsageDetail_20' ) end [2025-03-19 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:45:20] Production.INFO: ==20014== Releasing lock... [2025-03-19 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:45:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:46:05 [end_date_ymd] => 2025-03-19 05:46:05 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:46:05' and `end` < '2025-03-19 05: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-03-19 05:46:17] Production.INFO: count ==113 [2025-03-19 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:46:05 - End Time 2025-03-19 05:46:05 [2025-03-19 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713450', 'tblTempUsageDetail_20' ) start [2025-03-19 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713450', 'tblTempUsageDetail_20' ) end [2025-03-19 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713450', 'tblTempVendorCDR_20' ) start [2025-03-19 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713450', 'tblTempVendorCDR_20' ) end [2025-03-19 05:46:17] Production.INFO: ProcessCDR(1,14713450,1,1,2) [2025-03-19 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713450', 'tblTempUsageDetail_20' ) start [2025-03-19 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713450', 'tblTempUsageDetail_20' ) end [2025-03-19 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:46:20] Production.INFO: ==20119== Releasing lock... [2025-03-19 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:46:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:47:06 [end_date_ymd] => 2025-03-19 05:47:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:47:06' and `end` < '2025-03-19 05: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-03-19 05:47:18] Production.INFO: count ==111 [2025-03-19 05:47:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:47:06 - End Time 2025-03-19 05:47:06 [2025-03-19 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713455', 'tblTempUsageDetail_20' ) start [2025-03-19 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713455', 'tblTempUsageDetail_20' ) end [2025-03-19 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713455', 'tblTempVendorCDR_20' ) start [2025-03-19 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713455', 'tblTempVendorCDR_20' ) end [2025-03-19 05:47:18] Production.INFO: ProcessCDR(1,14713455,1,1,2) [2025-03-19 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713455', 'tblTempUsageDetail_20' ) start [2025-03-19 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713455', 'tblTempUsageDetail_20' ) end [2025-03-19 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:47:21] Production.INFO: ==20215== Releasing lock... [2025-03-19 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:48:05 [end_date_ymd] => 2025-03-19 05:48:05 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:48:05' and `end` < '2025-03-19 05: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-03-19 05:48:17] Production.INFO: count ==111 [2025-03-19 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:48:05 - End Time 2025-03-19 05:48:05 [2025-03-19 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713460', 'tblTempUsageDetail_20' ) start [2025-03-19 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713460', 'tblTempUsageDetail_20' ) end [2025-03-19 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713460', 'tblTempVendorCDR_20' ) start [2025-03-19 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713460', 'tblTempVendorCDR_20' ) end [2025-03-19 05:48:17] Production.INFO: ProcessCDR(1,14713460,1,1,2) [2025-03-19 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713460', 'tblTempUsageDetail_20' ) start [2025-03-19 05:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713460', 'tblTempUsageDetail_20' ) end [2025-03-19 05:48:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:48:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:48:20] Production.INFO: ==20302== Releasing lock... [2025-03-19 05:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:48:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:49:06 [end_date_ymd] => 2025-03-19 05:49:06 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:49:06' and `end` < '2025-03-19 05: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-03-19 05:49:18] Production.INFO: count ==110 [2025-03-19 05:49:18] Production.ERROR: pbx CDR StartTime 2025-03-19 02:49:06 - End Time 2025-03-19 05:49:06 [2025-03-19 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713465', 'tblTempUsageDetail_20' ) start [2025-03-19 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713465', 'tblTempUsageDetail_20' ) end [2025-03-19 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713465', 'tblTempVendorCDR_20' ) start [2025-03-19 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713465', 'tblTempVendorCDR_20' ) end [2025-03-19 05:49:18] Production.INFO: ProcessCDR(1,14713465,1,1,2) [2025-03-19 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713465', 'tblTempUsageDetail_20' ) start [2025-03-19 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713465', 'tblTempUsageDetail_20' ) end [2025-03-19 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:49:21] Production.INFO: ==20405== Releasing lock... [2025-03-19 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:50:05 [end_date_ymd] => 2025-03-19 05:50:05 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:50:05' and `end` < '2025-03-19 05: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-03-19 05:50:17] Production.INFO: count ==104 [2025-03-19 05:50:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:50:05 - End Time 2025-03-19 05:50:05 [2025-03-19 05:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713471', 'tblTempUsageDetail_20' ) start [2025-03-19 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713471', 'tblTempUsageDetail_20' ) end [2025-03-19 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713471', 'tblTempVendorCDR_20' ) start [2025-03-19 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713471', 'tblTempVendorCDR_20' ) end [2025-03-19 05:50:17] Production.INFO: ProcessCDR(1,14713471,1,1,2) [2025-03-19 05:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:50:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713471', 'tblTempUsageDetail_20' ) start [2025-03-19 05:50:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713471', 'tblTempUsageDetail_20' ) end [2025-03-19 05:50:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:50:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:50:20] Production.INFO: ==20508== Releasing lock... [2025-03-19 05:50:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:50:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:51:05 [end_date_ymd] => 2025-03-19 05:51:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:51:05' and `end` < '2025-03-19 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-03-19 05:51:17] Production.INFO: count ==102 [2025-03-19 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:51:05 - End Time 2025-03-19 05:51:05 [2025-03-19 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713476', 'tblTempUsageDetail_20' ) start [2025-03-19 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713476', 'tblTempUsageDetail_20' ) end [2025-03-19 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713476', 'tblTempVendorCDR_20' ) start [2025-03-19 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713476', 'tblTempVendorCDR_20' ) end [2025-03-19 05:51:17] Production.INFO: ProcessCDR(1,14713476,1,1,2) [2025-03-19 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713476', 'tblTempUsageDetail_20' ) start [2025-03-19 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713476', 'tblTempUsageDetail_20' ) end [2025-03-19 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:51:20] Production.INFO: ==20609== Releasing lock... [2025-03-19 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:51:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:52:05 [end_date_ymd] => 2025-03-19 05:52:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:52:05' and `end` < '2025-03-19 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-03-19 05:52:17] Production.INFO: count ==102 [2025-03-19 05:52:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:52:05 - End Time 2025-03-19 05:52:05 [2025-03-19 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713481', 'tblTempUsageDetail_20' ) start [2025-03-19 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713481', 'tblTempUsageDetail_20' ) end [2025-03-19 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713481', 'tblTempVendorCDR_20' ) start [2025-03-19 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713481', 'tblTempVendorCDR_20' ) end [2025-03-19 05:52:17] Production.INFO: ProcessCDR(1,14713481,1,1,2) [2025-03-19 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713481', 'tblTempUsageDetail_20' ) start [2025-03-19 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713481', 'tblTempUsageDetail_20' ) end [2025-03-19 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:52:20] Production.INFO: ==20705== Releasing lock... [2025-03-19 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:52:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:53:05 [end_date_ymd] => 2025-03-19 05:53:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:53:05' and `end` < '2025-03-19 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-03-19 05:53:17] Production.INFO: count ==101 [2025-03-19 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:53:05 - End Time 2025-03-19 05:53:05 [2025-03-19 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713486', 'tblTempUsageDetail_20' ) start [2025-03-19 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713486', 'tblTempUsageDetail_20' ) end [2025-03-19 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713486', 'tblTempVendorCDR_20' ) start [2025-03-19 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713486', 'tblTempVendorCDR_20' ) end [2025-03-19 05:53:17] Production.INFO: ProcessCDR(1,14713486,1,1,2) [2025-03-19 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713486', 'tblTempUsageDetail_20' ) start [2025-03-19 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713486', 'tblTempUsageDetail_20' ) end [2025-03-19 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:53:20] Production.INFO: ==20815== Releasing lock... [2025-03-19 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:53:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:54:04 [end_date_ymd] => 2025-03-19 05:54:04 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:54:04' and `end` < '2025-03-19 05:54: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-03-19 05:54:16] Production.INFO: count ==101 [2025-03-19 05:54:16] Production.ERROR: pbx CDR StartTime 2025-03-19 02:54:04 - End Time 2025-03-19 05:54:04 [2025-03-19 05:54:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713491', 'tblTempUsageDetail_20' ) start [2025-03-19 05:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713491', 'tblTempUsageDetail_20' ) end [2025-03-19 05:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713491', 'tblTempVendorCDR_20' ) start [2025-03-19 05:54:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713491', 'tblTempVendorCDR_20' ) end [2025-03-19 05:54:16] Production.INFO: ProcessCDR(1,14713491,1,1,2) [2025-03-19 05:54:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:54:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:54:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713491', 'tblTempUsageDetail_20' ) start [2025-03-19 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713491', 'tblTempUsageDetail_20' ) end [2025-03-19 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:54:20] Production.INFO: ==20946== Releasing lock... [2025-03-19 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:54:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:55:05 [end_date_ymd] => 2025-03-19 05:55:05 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:55:05' and `end` < '2025-03-19 05: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-03-19 05:55:17] Production.INFO: count ==102 [2025-03-19 05:55:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:55:05 - End Time 2025-03-19 05:55:05 [2025-03-19 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713496', 'tblTempUsageDetail_20' ) start [2025-03-19 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713496', 'tblTempUsageDetail_20' ) end [2025-03-19 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713496', 'tblTempVendorCDR_20' ) start [2025-03-19 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713496', 'tblTempVendorCDR_20' ) end [2025-03-19 05:55:17] Production.INFO: ProcessCDR(1,14713496,1,1,2) [2025-03-19 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713496', 'tblTempUsageDetail_20' ) start [2025-03-19 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713496', 'tblTempUsageDetail_20' ) end [2025-03-19 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:55:22] Production.INFO: ==21044== Releasing lock... [2025-03-19 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:55:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:56:05 [end_date_ymd] => 2025-03-19 05:56:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:56:05' and `end` < '2025-03-19 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-03-19 05:56:17] Production.INFO: count ==102 [2025-03-19 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:56:05 - End Time 2025-03-19 05:56:05 [2025-03-19 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713501', 'tblTempUsageDetail_20' ) start [2025-03-19 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713501', 'tblTempUsageDetail_20' ) end [2025-03-19 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713501', 'tblTempVendorCDR_20' ) start [2025-03-19 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713501', 'tblTempVendorCDR_20' ) end [2025-03-19 05:56:17] Production.INFO: ProcessCDR(1,14713501,1,1,2) [2025-03-19 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713501', 'tblTempUsageDetail_20' ) start [2025-03-19 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713501', 'tblTempUsageDetail_20' ) end [2025-03-19 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:56:20] Production.INFO: ==21148== Releasing lock... [2025-03-19 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:56:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:57:05 [end_date_ymd] => 2025-03-19 05:57:05 [RateCDR] => 1 ) [2025-03-19 05: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-03-19 02:57:05' and `end` < '2025-03-19 05: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-03-19 05:57:17] Production.INFO: count ==98 [2025-03-19 05:57:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:57:05 - End Time 2025-03-19 05:57:05 [2025-03-19 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713506', 'tblTempUsageDetail_20' ) start [2025-03-19 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713506', 'tblTempUsageDetail_20' ) end [2025-03-19 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713506', 'tblTempVendorCDR_20' ) start [2025-03-19 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713506', 'tblTempVendorCDR_20' ) end [2025-03-19 05:57:17] Production.INFO: ProcessCDR(1,14713506,1,1,2) [2025-03-19 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713506', 'tblTempUsageDetail_20' ) start [2025-03-19 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713506', 'tblTempUsageDetail_20' ) end [2025-03-19 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:57:21] Production.INFO: ==21246== Releasing lock... [2025-03-19 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-19 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:58:05 [end_date_ymd] => 2025-03-19 05:58:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:58:05' and `end` < '2025-03-19 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-03-19 05:58:17] Production.INFO: count ==98 [2025-03-19 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:58:05 - End Time 2025-03-19 05:58:05 [2025-03-19 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713511', 'tblTempUsageDetail_20' ) start [2025-03-19 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713511', 'tblTempUsageDetail_20' ) end [2025-03-19 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713511', 'tblTempVendorCDR_20' ) start [2025-03-19 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713511', 'tblTempVendorCDR_20' ) end [2025-03-19 05:58:17] Production.INFO: ProcessCDR(1,14713511,1,1,2) [2025-03-19 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713511', 'tblTempUsageDetail_20' ) start [2025-03-19 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713511', 'tblTempUsageDetail_20' ) end [2025-03-19 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:58:21] Production.INFO: ==21341== Releasing lock... [2025-03-19 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-19 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 02:59:05 [end_date_ymd] => 2025-03-19 05:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 02:59:05' and `end` < '2025-03-19 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-03-19 05:59:17] Production.INFO: count ==98 [2025-03-19 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-19 02:59:05 - End Time 2025-03-19 05:59:05 [2025-03-19 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713516', 'tblTempUsageDetail_20' ) start [2025-03-19 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713516', 'tblTempUsageDetail_20' ) end [2025-03-19 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713516', 'tblTempVendorCDR_20' ) start [2025-03-19 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713516', 'tblTempVendorCDR_20' ) end [2025-03-19 05:59:17] Production.INFO: ProcessCDR(1,14713516,1,1,2) [2025-03-19 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713516', 'tblTempUsageDetail_20' ) start [2025-03-19 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713516', 'tblTempUsageDetail_20' ) end [2025-03-19 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 05:59:21] Production.INFO: ==21445== Releasing lock... [2025-03-19 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 05:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-19 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:00:06 [end_date_ymd] => 2025-03-19 06:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:00:06' and `end` < '2025-03-19 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-03-19 06:00:18] Production.INFO: count ==88 [2025-03-19 06:00:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:00:06 - End Time 2025-03-19 06:00:06 [2025-03-19 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713522', 'tblTempUsageDetail_20' ) start [2025-03-19 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713522', 'tblTempUsageDetail_20' ) end [2025-03-19 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713522', 'tblTempVendorCDR_20' ) start [2025-03-19 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713522', 'tblTempVendorCDR_20' ) end [2025-03-19 06:00:18] Production.INFO: ProcessCDR(1,14713522,1,1,2) [2025-03-19 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713522', 'tblTempUsageDetail_20' ) start [2025-03-19 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713522', 'tblTempUsageDetail_20' ) end [2025-03-19 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:00:21] Production.INFO: ==21545== Releasing lock... [2025-03-19 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:00:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-19 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:01:05 [end_date_ymd] => 2025-03-19 06:01:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:01:05' and `end` < '2025-03-19 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-03-19 06:01:17] Production.INFO: count ==87 [2025-03-19 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:01:05 - End Time 2025-03-19 06:01:05 [2025-03-19 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713527', 'tblTempUsageDetail_20' ) start [2025-03-19 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713527', 'tblTempUsageDetail_20' ) end [2025-03-19 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713527', 'tblTempVendorCDR_20' ) start [2025-03-19 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713527', 'tblTempVendorCDR_20' ) end [2025-03-19 06:01:17] Production.INFO: ProcessCDR(1,14713527,1,1,2) [2025-03-19 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713527', 'tblTempUsageDetail_20' ) start [2025-03-19 06:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713527', 'tblTempUsageDetail_20' ) end [2025-03-19 06:01:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:01:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:01:21] Production.INFO: ==21658== Releasing lock... [2025-03-19 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-19 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:02:06 [end_date_ymd] => 2025-03-19 06:02:06 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:02:06' and `end` < '2025-03-19 06: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-03-19 06:02:18] Production.INFO: count ==91 [2025-03-19 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:02:06 - End Time 2025-03-19 06:02:06 [2025-03-19 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713532', 'tblTempUsageDetail_20' ) start [2025-03-19 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713532', 'tblTempUsageDetail_20' ) end [2025-03-19 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713532', 'tblTempVendorCDR_20' ) start [2025-03-19 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713532', 'tblTempVendorCDR_20' ) end [2025-03-19 06:02:18] Production.INFO: ProcessCDR(1,14713532,1,1,2) [2025-03-19 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713532', 'tblTempUsageDetail_20' ) start [2025-03-19 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713532', 'tblTempUsageDetail_20' ) end [2025-03-19 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:02:21] Production.INFO: ==21758== Releasing lock... [2025-03-19 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:02:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-19 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:03:05 [end_date_ymd] => 2025-03-19 06:03:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:03:05' and `end` < '2025-03-19 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-03-19 06:03:17] Production.INFO: count ==91 [2025-03-19 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:03:05 - End Time 2025-03-19 06:03:05 [2025-03-19 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713537', 'tblTempUsageDetail_20' ) start [2025-03-19 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713537', 'tblTempUsageDetail_20' ) end [2025-03-19 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713537', 'tblTempVendorCDR_20' ) start [2025-03-19 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713537', 'tblTempVendorCDR_20' ) end [2025-03-19 06:03:17] Production.INFO: ProcessCDR(1,14713537,1,1,2) [2025-03-19 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713537', 'tblTempUsageDetail_20' ) start [2025-03-19 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713537', 'tblTempUsageDetail_20' ) end [2025-03-19 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:03:20] Production.INFO: ==21852== Releasing lock... [2025-03-19 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:03:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-19 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:04:05 [end_date_ymd] => 2025-03-19 06:04:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:04:05' and `end` < '2025-03-19 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-03-19 06:04:17] Production.INFO: count ==91 [2025-03-19 06:04:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:04:05 - End Time 2025-03-19 06:04:05 [2025-03-19 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713542', 'tblTempUsageDetail_20' ) start [2025-03-19 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713542', 'tblTempUsageDetail_20' ) end [2025-03-19 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713542', 'tblTempVendorCDR_20' ) start [2025-03-19 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713542', 'tblTempVendorCDR_20' ) end [2025-03-19 06:04:17] Production.INFO: ProcessCDR(1,14713542,1,1,2) [2025-03-19 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713542', 'tblTempUsageDetail_20' ) start [2025-03-19 06:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713542', 'tblTempUsageDetail_20' ) end [2025-03-19 06:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:04:20] Production.INFO: ==21952== Releasing lock... [2025-03-19 06:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:04:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-19 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:05:05 [end_date_ymd] => 2025-03-19 06:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:05:05' and `end` < '2025-03-19 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-03-19 06:05:17] Production.INFO: count ==91 [2025-03-19 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:05:05 - End Time 2025-03-19 06:05:05 [2025-03-19 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713547', 'tblTempUsageDetail_20' ) start [2025-03-19 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713547', 'tblTempUsageDetail_20' ) end [2025-03-19 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713547', 'tblTempVendorCDR_20' ) start [2025-03-19 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713547', 'tblTempVendorCDR_20' ) end [2025-03-19 06:05:17] Production.INFO: ProcessCDR(1,14713547,1,1,2) [2025-03-19 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713547', 'tblTempUsageDetail_20' ) start [2025-03-19 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713547', 'tblTempUsageDetail_20' ) end [2025-03-19 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:05:20] Production.INFO: ==22048== Releasing lock... [2025-03-19 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:05:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-19 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:06:05 [end_date_ymd] => 2025-03-19 06:06:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:06:05' and `end` < '2025-03-19 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-03-19 06:06:17] Production.INFO: count ==91 [2025-03-19 06:06:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:06:05 - End Time 2025-03-19 06:06:05 [2025-03-19 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713552', 'tblTempUsageDetail_20' ) start [2025-03-19 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713552', 'tblTempUsageDetail_20' ) end [2025-03-19 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713552', 'tblTempVendorCDR_20' ) start [2025-03-19 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713552', 'tblTempVendorCDR_20' ) end [2025-03-19 06:06:18] Production.INFO: ProcessCDR(1,14713552,1,1,2) [2025-03-19 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713552', 'tblTempUsageDetail_20' ) start [2025-03-19 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713552', 'tblTempUsageDetail_20' ) end [2025-03-19 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:06:21] Production.INFO: ==22135== Releasing lock... [2025-03-19 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:06:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-19 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:07:05 [end_date_ymd] => 2025-03-19 06:07:05 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:07:05' and `end` < '2025-03-19 06: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-03-19 06:07:17] Production.INFO: count ==91 [2025-03-19 06:07:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:07:05 - End Time 2025-03-19 06:07:05 [2025-03-19 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713557', 'tblTempUsageDetail_20' ) start [2025-03-19 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713557', 'tblTempUsageDetail_20' ) end [2025-03-19 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713557', 'tblTempVendorCDR_20' ) start [2025-03-19 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713557', 'tblTempVendorCDR_20' ) end [2025-03-19 06:07:17] Production.INFO: ProcessCDR(1,14713557,1,1,2) [2025-03-19 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713557', 'tblTempUsageDetail_20' ) start [2025-03-19 06:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713557', 'tblTempUsageDetail_20' ) end [2025-03-19 06:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:07:20] Production.INFO: ==22235== Releasing lock... [2025-03-19 06:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:07:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-19 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:08:05 [end_date_ymd] => 2025-03-19 06:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:08:05' and `end` < '2025-03-19 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-03-19 06:08:17] Production.INFO: count ==91 [2025-03-19 06:08:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:08:05 - End Time 2025-03-19 06:08:05 [2025-03-19 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713562', 'tblTempUsageDetail_20' ) start [2025-03-19 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713562', 'tblTempUsageDetail_20' ) end [2025-03-19 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713562', 'tblTempVendorCDR_20' ) start [2025-03-19 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713562', 'tblTempVendorCDR_20' ) end [2025-03-19 06:08:17] Production.INFO: ProcessCDR(1,14713562,1,1,2) [2025-03-19 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713562', 'tblTempUsageDetail_20' ) start [2025-03-19 06:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713562', 'tblTempUsageDetail_20' ) end [2025-03-19 06:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:08:20] Production.INFO: ==22326== Releasing lock... [2025-03-19 06:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:08:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-19 06:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:09:04 [end_date_ymd] => 2025-03-19 06:09:04 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:09:04' and `end` < '2025-03-19 06: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-03-19 06:09:16] Production.INFO: count ==91 [2025-03-19 06:09:16] Production.ERROR: pbx CDR StartTime 2025-03-19 03:09:04 - End Time 2025-03-19 06:09:04 [2025-03-19 06:09:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713567', 'tblTempUsageDetail_20' ) start [2025-03-19 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713567', 'tblTempUsageDetail_20' ) end [2025-03-19 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713567', 'tblTempVendorCDR_20' ) start [2025-03-19 06:09:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713567', 'tblTempVendorCDR_20' ) end [2025-03-19 06:09:16] Production.INFO: ProcessCDR(1,14713567,1,1,2) [2025-03-19 06:09:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:09:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:09:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713567', 'tblTempUsageDetail_20' ) start [2025-03-19 06:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713567', 'tblTempUsageDetail_20' ) end [2025-03-19 06:09:19] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:09:19] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:09:19] Production.INFO: ==22456== Releasing lock... [2025-03-19 06:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:09:19] Production.INFO: 28.5 MB #Memory Used# [2025-03-19 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:10:06 [end_date_ymd] => 2025-03-19 06:10:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:10:06' and `end` < '2025-03-19 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-03-19 06:10:18] Production.INFO: count ==99 [2025-03-19 06:10:19] Production.ERROR: pbx CDR StartTime 2025-03-19 03:10:06 - End Time 2025-03-19 06:10:06 [2025-03-19 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713573', 'tblTempUsageDetail_20' ) start [2025-03-19 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713573', 'tblTempUsageDetail_20' ) end [2025-03-19 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713573', 'tblTempVendorCDR_20' ) start [2025-03-19 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713573', 'tblTempVendorCDR_20' ) end [2025-03-19 06:10:19] Production.INFO: ProcessCDR(1,14713573,1,1,2) [2025-03-19 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713573', 'tblTempUsageDetail_20' ) start [2025-03-19 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713573', 'tblTempUsageDetail_20' ) end [2025-03-19 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:10:22] Production.INFO: ==22556== Releasing lock... [2025-03-19 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:11:06 [end_date_ymd] => 2025-03-19 06:11:06 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:11:06' and `end` < '2025-03-19 06: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-03-19 06:11:18] Production.INFO: count ==99 [2025-03-19 06:11:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:11:06 - End Time 2025-03-19 06:11:06 [2025-03-19 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713578', 'tblTempUsageDetail_20' ) start [2025-03-19 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713578', 'tblTempUsageDetail_20' ) end [2025-03-19 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713578', 'tblTempVendorCDR_20' ) start [2025-03-19 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713578', 'tblTempVendorCDR_20' ) end [2025-03-19 06:11:18] Production.INFO: ProcessCDR(1,14713578,1,1,2) [2025-03-19 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713578', 'tblTempUsageDetail_20' ) start [2025-03-19 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713578', 'tblTempUsageDetail_20' ) end [2025-03-19 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:11:21] Production.INFO: ==22645== Releasing lock... [2025-03-19 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:12:05 [end_date_ymd] => 2025-03-19 06:12:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:12:05' and `end` < '2025-03-19 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-03-19 06:12:17] Production.INFO: count ==99 [2025-03-19 06:12:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:12:05 - End Time 2025-03-19 06:12:05 [2025-03-19 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713583', 'tblTempUsageDetail_20' ) start [2025-03-19 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713583', 'tblTempUsageDetail_20' ) end [2025-03-19 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713583', 'tblTempVendorCDR_20' ) start [2025-03-19 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713583', 'tblTempVendorCDR_20' ) end [2025-03-19 06:12:17] Production.INFO: ProcessCDR(1,14713583,1,1,2) [2025-03-19 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713583', 'tblTempUsageDetail_20' ) start [2025-03-19 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713583', 'tblTempUsageDetail_20' ) end [2025-03-19 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:12:20] Production.INFO: ==22731== Releasing lock... [2025-03-19 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:12:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:13:05 [end_date_ymd] => 2025-03-19 06:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:13:05' and `end` < '2025-03-19 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-03-19 06:13:17] Production.INFO: count ==99 [2025-03-19 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:13:05 - End Time 2025-03-19 06:13:05 [2025-03-19 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713588', 'tblTempUsageDetail_20' ) start [2025-03-19 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713588', 'tblTempUsageDetail_20' ) end [2025-03-19 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713588', 'tblTempVendorCDR_20' ) start [2025-03-19 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713588', 'tblTempVendorCDR_20' ) end [2025-03-19 06:13:17] Production.INFO: ProcessCDR(1,14713588,1,1,2) [2025-03-19 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713588', 'tblTempUsageDetail_20' ) start [2025-03-19 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713588', 'tblTempUsageDetail_20' ) end [2025-03-19 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:13:20] Production.INFO: ==22827== Releasing lock... [2025-03-19 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:13:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:14:05 [end_date_ymd] => 2025-03-19 06:14:05 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:14:05' and `end` < '2025-03-19 06: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-03-19 06:14:17] Production.INFO: count ==99 [2025-03-19 06:14:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:14:05 - End Time 2025-03-19 06:14:05 [2025-03-19 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713593', 'tblTempUsageDetail_20' ) start [2025-03-19 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713593', 'tblTempUsageDetail_20' ) end [2025-03-19 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713593', 'tblTempVendorCDR_20' ) start [2025-03-19 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713593', 'tblTempVendorCDR_20' ) end [2025-03-19 06:14:17] Production.INFO: ProcessCDR(1,14713593,1,1,2) [2025-03-19 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713593', 'tblTempUsageDetail_20' ) start [2025-03-19 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713593', 'tblTempUsageDetail_20' ) end [2025-03-19 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:14:20] Production.INFO: ==22926== Releasing lock... [2025-03-19 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:14:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:15:05 [end_date_ymd] => 2025-03-19 06:15:05 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:15:05' and `end` < '2025-03-19 06: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-03-19 06:15:18] Production.INFO: count ==102 [2025-03-19 06:15:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:15:05 - End Time 2025-03-19 06:15:05 [2025-03-19 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713598', 'tblTempUsageDetail_20' ) start [2025-03-19 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713598', 'tblTempUsageDetail_20' ) end [2025-03-19 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713598', 'tblTempVendorCDR_20' ) start [2025-03-19 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713598', 'tblTempVendorCDR_20' ) end [2025-03-19 06:15:18] Production.INFO: ProcessCDR(1,14713598,1,1,2) [2025-03-19 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713598', 'tblTempUsageDetail_20' ) start [2025-03-19 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713598', 'tblTempUsageDetail_20' ) end [2025-03-19 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:15:21] Production.INFO: ==23025== Releasing lock... [2025-03-19 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:16:05 [end_date_ymd] => 2025-03-19 06:16:05 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:16:05' and `end` < '2025-03-19 06: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-03-19 06:16:17] Production.INFO: count ==107 [2025-03-19 06:16:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:16:05 - End Time 2025-03-19 06:16:05 [2025-03-19 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713603', 'tblTempUsageDetail_20' ) start [2025-03-19 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713603', 'tblTempUsageDetail_20' ) end [2025-03-19 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713603', 'tblTempVendorCDR_20' ) start [2025-03-19 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713603', 'tblTempVendorCDR_20' ) end [2025-03-19 06:16:18] Production.INFO: ProcessCDR(1,14713603,1,1,2) [2025-03-19 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713603', 'tblTempUsageDetail_20' ) start [2025-03-19 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713603', 'tblTempUsageDetail_20' ) end [2025-03-19 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:16:21] Production.INFO: ==23130== Releasing lock... [2025-03-19 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:17:05 [end_date_ymd] => 2025-03-19 06:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:17:05' and `end` < '2025-03-19 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-03-19 06:17:17] Production.INFO: count ==107 [2025-03-19 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:17:05 - End Time 2025-03-19 06:17:05 [2025-03-19 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713608', 'tblTempUsageDetail_20' ) start [2025-03-19 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713608', 'tblTempUsageDetail_20' ) end [2025-03-19 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713608', 'tblTempVendorCDR_20' ) start [2025-03-19 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713608', 'tblTempVendorCDR_20' ) end [2025-03-19 06:17:17] Production.INFO: ProcessCDR(1,14713608,1,1,2) [2025-03-19 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713608', 'tblTempUsageDetail_20' ) start [2025-03-19 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713608', 'tblTempUsageDetail_20' ) end [2025-03-19 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:17:20] Production.INFO: ==23226== Releasing lock... [2025-03-19 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:17:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:18:05 [end_date_ymd] => 2025-03-19 06:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:18:05' and `end` < '2025-03-19 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-03-19 06:18:17] Production.INFO: count ==107 [2025-03-19 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:18:05 - End Time 2025-03-19 06:18:05 [2025-03-19 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713613', 'tblTempUsageDetail_20' ) start [2025-03-19 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713613', 'tblTempUsageDetail_20' ) end [2025-03-19 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713613', 'tblTempVendorCDR_20' ) start [2025-03-19 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713613', 'tblTempVendorCDR_20' ) end [2025-03-19 06:18:17] Production.INFO: ProcessCDR(1,14713613,1,1,2) [2025-03-19 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713613', 'tblTempUsageDetail_20' ) start [2025-03-19 06:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713613', 'tblTempUsageDetail_20' ) end [2025-03-19 06:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:18:20] Production.INFO: ==23302== Releasing lock... [2025-03-19 06:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:18:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:19:05 [end_date_ymd] => 2025-03-19 06:19:05 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:19:05' and `end` < '2025-03-19 06: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-03-19 06:19:17] Production.INFO: count ==107 [2025-03-19 06:19:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:19:05 - End Time 2025-03-19 06:19:05 [2025-03-19 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713618', 'tblTempUsageDetail_20' ) start [2025-03-19 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713618', 'tblTempUsageDetail_20' ) end [2025-03-19 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713618', 'tblTempVendorCDR_20' ) start [2025-03-19 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713618', 'tblTempVendorCDR_20' ) end [2025-03-19 06:19:17] Production.INFO: ProcessCDR(1,14713618,1,1,2) [2025-03-19 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713618', 'tblTempUsageDetail_20' ) start [2025-03-19 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713618', 'tblTempUsageDetail_20' ) end [2025-03-19 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:19:21] Production.INFO: ==23391== Releasing lock... [2025-03-19 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:20:06 [end_date_ymd] => 2025-03-19 06:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:20:06' and `end` < '2025-03-19 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-03-19 06:20:18] Production.INFO: count ==113 [2025-03-19 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:20:06 - End Time 2025-03-19 06:20:06 [2025-03-19 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713623', 'tblTempUsageDetail_20' ) start [2025-03-19 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713623', 'tblTempUsageDetail_20' ) end [2025-03-19 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713623', 'tblTempVendorCDR_20' ) start [2025-03-19 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713623', 'tblTempVendorCDR_20' ) end [2025-03-19 06:20:18] Production.INFO: ProcessCDR(1,14713623,1,1,2) [2025-03-19 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713623', 'tblTempUsageDetail_20' ) start [2025-03-19 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713623', 'tblTempUsageDetail_20' ) end [2025-03-19 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:20:21] Production.INFO: ==23471== Releasing lock... [2025-03-19 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:21:05 [end_date_ymd] => 2025-03-19 06:21:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:21:05' and `end` < '2025-03-19 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-03-19 06:21:17] Production.INFO: count ==113 [2025-03-19 06:21:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:21:05 - End Time 2025-03-19 06:21:05 [2025-03-19 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713629', 'tblTempUsageDetail_20' ) start [2025-03-19 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713629', 'tblTempUsageDetail_20' ) end [2025-03-19 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713629', 'tblTempVendorCDR_20' ) start [2025-03-19 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713629', 'tblTempVendorCDR_20' ) end [2025-03-19 06:21:17] Production.INFO: ProcessCDR(1,14713629,1,1,2) [2025-03-19 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713629', 'tblTempUsageDetail_20' ) start [2025-03-19 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713629', 'tblTempUsageDetail_20' ) end [2025-03-19 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:21:20] Production.INFO: ==23565== Releasing lock... [2025-03-19 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:22:05 [end_date_ymd] => 2025-03-19 06:22:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:22:05' and `end` < '2025-03-19 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-03-19 06:22:17] Production.INFO: count ==113 [2025-03-19 06:22:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:22:05 - End Time 2025-03-19 06:22:05 [2025-03-19 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713634', 'tblTempUsageDetail_20' ) start [2025-03-19 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713634', 'tblTempUsageDetail_20' ) end [2025-03-19 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713634', 'tblTempVendorCDR_20' ) start [2025-03-19 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713634', 'tblTempVendorCDR_20' ) end [2025-03-19 06:22:18] Production.INFO: ProcessCDR(1,14713634,1,1,2) [2025-03-19 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713634', 'tblTempUsageDetail_20' ) start [2025-03-19 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713634', 'tblTempUsageDetail_20' ) end [2025-03-19 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:22:21] Production.INFO: ==23665== Releasing lock... [2025-03-19 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:23:05 [end_date_ymd] => 2025-03-19 06:23:05 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:23:05' and `end` < '2025-03-19 06: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-03-19 06:23:17] Production.INFO: count ==113 [2025-03-19 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:23:05 - End Time 2025-03-19 06:23:05 [2025-03-19 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713639', 'tblTempUsageDetail_20' ) start [2025-03-19 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713639', 'tblTempUsageDetail_20' ) end [2025-03-19 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713639', 'tblTempVendorCDR_20' ) start [2025-03-19 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713639', 'tblTempVendorCDR_20' ) end [2025-03-19 06:23:17] Production.INFO: ProcessCDR(1,14713639,1,1,2) [2025-03-19 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713639', 'tblTempUsageDetail_20' ) start [2025-03-19 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713639', 'tblTempUsageDetail_20' ) end [2025-03-19 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:23:21] Production.INFO: ==23774== Releasing lock... [2025-03-19 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:24:06 [end_date_ymd] => 2025-03-19 06:24:06 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:24:06' and `end` < '2025-03-19 06: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-03-19 06:24:18] Production.INFO: count ==113 [2025-03-19 06:24:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:24:06 - End Time 2025-03-19 06:24:06 [2025-03-19 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713644', 'tblTempUsageDetail_20' ) start [2025-03-19 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713644', 'tblTempUsageDetail_20' ) end [2025-03-19 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713644', 'tblTempVendorCDR_20' ) start [2025-03-19 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713644', 'tblTempVendorCDR_20' ) end [2025-03-19 06:24:18] Production.INFO: ProcessCDR(1,14713644,1,1,2) [2025-03-19 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713644', 'tblTempUsageDetail_20' ) start [2025-03-19 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713644', 'tblTempUsageDetail_20' ) end [2025-03-19 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:24:21] Production.INFO: ==23862== Releasing lock... [2025-03-19 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:25:05 [end_date_ymd] => 2025-03-19 06:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:25:05' and `end` < '2025-03-19 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-03-19 06:25:17] Production.INFO: count ==118 [2025-03-19 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:25:05 - End Time 2025-03-19 06:25:05 [2025-03-19 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713649', 'tblTempUsageDetail_20' ) start [2025-03-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713649', 'tblTempUsageDetail_20' ) end [2025-03-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713649', 'tblTempVendorCDR_20' ) start [2025-03-19 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713649', 'tblTempVendorCDR_20' ) end [2025-03-19 06:25:17] Production.INFO: ProcessCDR(1,14713649,1,1,2) [2025-03-19 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713649', 'tblTempUsageDetail_20' ) start [2025-03-19 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713649', 'tblTempUsageDetail_20' ) end [2025-03-19 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:25:22] Production.INFO: ==23973== Releasing lock... [2025-03-19 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:25:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:26:05 [end_date_ymd] => 2025-03-19 06:26:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:26:05' and `end` < '2025-03-19 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-03-19 06:26:17] Production.INFO: count ==118 [2025-03-19 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:26:05 - End Time 2025-03-19 06:26:05 [2025-03-19 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713654', 'tblTempUsageDetail_20' ) start [2025-03-19 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713654', 'tblTempUsageDetail_20' ) end [2025-03-19 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713654', 'tblTempVendorCDR_20' ) start [2025-03-19 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713654', 'tblTempVendorCDR_20' ) end [2025-03-19 06:26:17] Production.INFO: ProcessCDR(1,14713654,1,1,2) [2025-03-19 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713654', 'tblTempUsageDetail_20' ) start [2025-03-19 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713654', 'tblTempUsageDetail_20' ) end [2025-03-19 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:26:21] Production.INFO: ==24053== Releasing lock... [2025-03-19 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:26:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:27:05 [end_date_ymd] => 2025-03-19 06:27:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:27:05' and `end` < '2025-03-19 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-03-19 06:27:17] Production.INFO: count ==118 [2025-03-19 06:27:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:27:05 - End Time 2025-03-19 06:27:05 [2025-03-19 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713659', 'tblTempUsageDetail_20' ) start [2025-03-19 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713659', 'tblTempUsageDetail_20' ) end [2025-03-19 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713659', 'tblTempVendorCDR_20' ) start [2025-03-19 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713659', 'tblTempVendorCDR_20' ) end [2025-03-19 06:27:17] Production.INFO: ProcessCDR(1,14713659,1,1,2) [2025-03-19 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713659', 'tblTempUsageDetail_20' ) start [2025-03-19 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713659', 'tblTempUsageDetail_20' ) end [2025-03-19 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:27:21] Production.INFO: ==24124== Releasing lock... [2025-03-19 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:27:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:28:05 [end_date_ymd] => 2025-03-19 06:28:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:28:05' and `end` < '2025-03-19 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-03-19 06:28:18] Production.INFO: count ==118 [2025-03-19 06:28:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:28:05 - End Time 2025-03-19 06:28:05 [2025-03-19 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713664', 'tblTempUsageDetail_20' ) start [2025-03-19 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713664', 'tblTempUsageDetail_20' ) end [2025-03-19 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713664', 'tblTempVendorCDR_20' ) start [2025-03-19 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713664', 'tblTempVendorCDR_20' ) end [2025-03-19 06:28:18] Production.INFO: ProcessCDR(1,14713664,1,1,2) [2025-03-19 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713664', 'tblTempUsageDetail_20' ) start [2025-03-19 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713664', 'tblTempUsageDetail_20' ) end [2025-03-19 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:28:21] Production.INFO: ==24196== Releasing lock... [2025-03-19 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:28:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:29:05 [end_date_ymd] => 2025-03-19 06:29:05 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:29:05' and `end` < '2025-03-19 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-03-19 06:29:17] Production.INFO: count ==115 [2025-03-19 06:29:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:29:05 - End Time 2025-03-19 06:29:05 [2025-03-19 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713669', 'tblTempUsageDetail_20' ) start [2025-03-19 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713669', 'tblTempUsageDetail_20' ) end [2025-03-19 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713669', 'tblTempVendorCDR_20' ) start [2025-03-19 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713669', 'tblTempVendorCDR_20' ) end [2025-03-19 06:29:17] Production.INFO: ProcessCDR(1,14713669,1,1,2) [2025-03-19 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713669', 'tblTempUsageDetail_20' ) start [2025-03-19 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713669', 'tblTempUsageDetail_20' ) end [2025-03-19 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:29:20] Production.INFO: ==24270== Releasing lock... [2025-03-19 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:29:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:30:06 [end_date_ymd] => 2025-03-19 06:30:06 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:30:06' and `end` < '2025-03-19 06: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-03-19 06:30:18] Production.INFO: count ==105 [2025-03-19 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:30:06 - End Time 2025-03-19 06:30:06 [2025-03-19 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713675', 'tblTempUsageDetail_20' ) start [2025-03-19 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713675', 'tblTempUsageDetail_20' ) end [2025-03-19 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713675', 'tblTempVendorCDR_20' ) start [2025-03-19 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713675', 'tblTempVendorCDR_20' ) end [2025-03-19 06:30:18] Production.INFO: ProcessCDR(1,14713675,1,1,2) [2025-03-19 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713675', 'tblTempUsageDetail_20' ) start [2025-03-19 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713675', 'tblTempUsageDetail_20' ) end [2025-03-19 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:30:22] Production.INFO: ==24347== Releasing lock... [2025-03-19 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:30:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:31:05 [end_date_ymd] => 2025-03-19 06:31:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:31:05' and `end` < '2025-03-19 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-03-19 06:31:17] Production.INFO: count ==105 [2025-03-19 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:31:05 - End Time 2025-03-19 06:31:05 [2025-03-19 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713680', 'tblTempUsageDetail_20' ) start [2025-03-19 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713680', 'tblTempUsageDetail_20' ) end [2025-03-19 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713680', 'tblTempVendorCDR_20' ) start [2025-03-19 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713680', 'tblTempVendorCDR_20' ) end [2025-03-19 06:31:17] Production.INFO: ProcessCDR(1,14713680,1,1,2) [2025-03-19 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713680', 'tblTempUsageDetail_20' ) start [2025-03-19 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713680', 'tblTempUsageDetail_20' ) end [2025-03-19 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:31:20] Production.INFO: ==24426== Releasing lock... [2025-03-19 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:31:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:32:05 [end_date_ymd] => 2025-03-19 06:32:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:32:05' and `end` < '2025-03-19 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-03-19 06:32:17] Production.INFO: count ==105 [2025-03-19 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:32:05 - End Time 2025-03-19 06:32:05 [2025-03-19 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713685', 'tblTempUsageDetail_20' ) start [2025-03-19 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713685', 'tblTempUsageDetail_20' ) end [2025-03-19 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713685', 'tblTempVendorCDR_20' ) start [2025-03-19 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713685', 'tblTempVendorCDR_20' ) end [2025-03-19 06:32:17] Production.INFO: ProcessCDR(1,14713685,1,1,2) [2025-03-19 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713685', 'tblTempUsageDetail_20' ) start [2025-03-19 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713685', 'tblTempUsageDetail_20' ) end [2025-03-19 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:32:21] Production.INFO: ==24511== Releasing lock... [2025-03-19 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:33:05 [end_date_ymd] => 2025-03-19 06:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:33:05' and `end` < '2025-03-19 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-03-19 06:33:17] Production.INFO: count ==105 [2025-03-19 06:33:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:33:05 - End Time 2025-03-19 06:33:05 [2025-03-19 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713690', 'tblTempUsageDetail_20' ) start [2025-03-19 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713690', 'tblTempUsageDetail_20' ) end [2025-03-19 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713690', 'tblTempVendorCDR_20' ) start [2025-03-19 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713690', 'tblTempVendorCDR_20' ) end [2025-03-19 06:33:17] Production.INFO: ProcessCDR(1,14713690,1,1,2) [2025-03-19 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713690', 'tblTempUsageDetail_20' ) start [2025-03-19 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713690', 'tblTempUsageDetail_20' ) end [2025-03-19 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:33:20] Production.INFO: ==24601== Releasing lock... [2025-03-19 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:33:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:34:05 [end_date_ymd] => 2025-03-19 06:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:34:05' and `end` < '2025-03-19 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-03-19 06:34:17] Production.INFO: count ==105 [2025-03-19 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:34:05 - End Time 2025-03-19 06:34:05 [2025-03-19 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713695', 'tblTempUsageDetail_20' ) start [2025-03-19 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713695', 'tblTempUsageDetail_20' ) end [2025-03-19 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713695', 'tblTempVendorCDR_20' ) start [2025-03-19 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713695', 'tblTempVendorCDR_20' ) end [2025-03-19 06:34:17] Production.INFO: ProcessCDR(1,14713695,1,1,2) [2025-03-19 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713695', 'tblTempUsageDetail_20' ) start [2025-03-19 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713695', 'tblTempUsageDetail_20' ) end [2025-03-19 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:34:20] Production.INFO: ==24674== Releasing lock... [2025-03-19 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:34:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:35:06 [end_date_ymd] => 2025-03-19 06:35:06 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:35:06' and `end` < '2025-03-19 06: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-03-19 06:35:17] Production.INFO: count ==105 [2025-03-19 06:35:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:35:06 - End Time 2025-03-19 06:35:06 [2025-03-19 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713700', 'tblTempUsageDetail_20' ) start [2025-03-19 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713700', 'tblTempUsageDetail_20' ) end [2025-03-19 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713700', 'tblTempVendorCDR_20' ) start [2025-03-19 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713700', 'tblTempVendorCDR_20' ) end [2025-03-19 06:35:18] Production.INFO: ProcessCDR(1,14713700,1,1,2) [2025-03-19 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713700', 'tblTempUsageDetail_20' ) start [2025-03-19 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713700', 'tblTempUsageDetail_20' ) end [2025-03-19 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:35:21] Production.INFO: ==24749== Releasing lock... [2025-03-19 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:36:05 [end_date_ymd] => 2025-03-19 06:36:05 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:36:05' and `end` < '2025-03-19 06: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-03-19 06:36:17] Production.INFO: count ==105 [2025-03-19 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:36:05 - End Time 2025-03-19 06:36:05 [2025-03-19 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713705', 'tblTempUsageDetail_20' ) start [2025-03-19 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713705', 'tblTempUsageDetail_20' ) end [2025-03-19 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713705', 'tblTempVendorCDR_20' ) start [2025-03-19 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713705', 'tblTempVendorCDR_20' ) end [2025-03-19 06:36:17] Production.INFO: ProcessCDR(1,14713705,1,1,2) [2025-03-19 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713705', 'tblTempUsageDetail_20' ) start [2025-03-19 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713705', 'tblTempUsageDetail_20' ) end [2025-03-19 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:36:20] Production.INFO: ==24829== Releasing lock... [2025-03-19 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:36:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:37:05 [end_date_ymd] => 2025-03-19 06:37:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:37:05' and `end` < '2025-03-19 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-03-19 06:37:17] Production.INFO: count ==105 [2025-03-19 06:37:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:37:05 - End Time 2025-03-19 06:37:05 [2025-03-19 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713710', 'tblTempUsageDetail_20' ) start [2025-03-19 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713710', 'tblTempUsageDetail_20' ) end [2025-03-19 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713710', 'tblTempVendorCDR_20' ) start [2025-03-19 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713710', 'tblTempVendorCDR_20' ) end [2025-03-19 06:37:17] Production.INFO: ProcessCDR(1,14713710,1,1,2) [2025-03-19 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713710', 'tblTempUsageDetail_20' ) start [2025-03-19 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713710', 'tblTempUsageDetail_20' ) end [2025-03-19 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:37:21] Production.INFO: ==24900== Releasing lock... [2025-03-19 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:38:05 [end_date_ymd] => 2025-03-19 06:38:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:38:05' and `end` < '2025-03-19 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-03-19 06:38:17] Production.INFO: count ==105 [2025-03-19 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:38:05 - End Time 2025-03-19 06:38:05 [2025-03-19 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713715', 'tblTempUsageDetail_20' ) start [2025-03-19 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713715', 'tblTempUsageDetail_20' ) end [2025-03-19 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713715', 'tblTempVendorCDR_20' ) start [2025-03-19 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713715', 'tblTempVendorCDR_20' ) end [2025-03-19 06:38:17] Production.INFO: ProcessCDR(1,14713715,1,1,2) [2025-03-19 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713715', 'tblTempUsageDetail_20' ) start [2025-03-19 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713715', 'tblTempUsageDetail_20' ) end [2025-03-19 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:38:20] Production.INFO: ==24973== Releasing lock... [2025-03-19 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:38:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:39:05 [end_date_ymd] => 2025-03-19 06:39:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:39:05' and `end` < '2025-03-19 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-03-19 06:39:17] Production.INFO: count ==105 [2025-03-19 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:39:05 - End Time 2025-03-19 06:39:05 [2025-03-19 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713720', 'tblTempUsageDetail_20' ) start [2025-03-19 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713720', 'tblTempUsageDetail_20' ) end [2025-03-19 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713720', 'tblTempVendorCDR_20' ) start [2025-03-19 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713720', 'tblTempVendorCDR_20' ) end [2025-03-19 06:39:17] Production.INFO: ProcessCDR(1,14713720,1,1,2) [2025-03-19 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713720', 'tblTempUsageDetail_20' ) start [2025-03-19 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713720', 'tblTempUsageDetail_20' ) end [2025-03-19 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:39:20] Production.INFO: ==25047== Releasing lock... [2025-03-19 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:39:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:40:06 [end_date_ymd] => 2025-03-19 06:40:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:40:06' and `end` < '2025-03-19 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-03-19 06:40:18] Production.INFO: count ==107 [2025-03-19 06:40:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:40:06 - End Time 2025-03-19 06:40:06 [2025-03-19 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713726', 'tblTempUsageDetail_20' ) start [2025-03-19 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713726', 'tblTempUsageDetail_20' ) end [2025-03-19 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713726', 'tblTempVendorCDR_20' ) start [2025-03-19 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713726', 'tblTempVendorCDR_20' ) end [2025-03-19 06:40:18] Production.INFO: ProcessCDR(1,14713726,1,1,2) [2025-03-19 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713726', 'tblTempUsageDetail_20' ) start [2025-03-19 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713726', 'tblTempUsageDetail_20' ) end [2025-03-19 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:40:21] Production.INFO: ==25170== Releasing lock... [2025-03-19 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:41:06 [end_date_ymd] => 2025-03-19 06:41:06 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:41:06' and `end` < '2025-03-19 06: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-03-19 06:41:18] Production.INFO: count ==107 [2025-03-19 06:41:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:41:06 - End Time 2025-03-19 06:41:06 [2025-03-19 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713731', 'tblTempUsageDetail_20' ) start [2025-03-19 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713731', 'tblTempUsageDetail_20' ) end [2025-03-19 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713731', 'tblTempVendorCDR_20' ) start [2025-03-19 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713731', 'tblTempVendorCDR_20' ) end [2025-03-19 06:41:18] Production.INFO: ProcessCDR(1,14713731,1,1,2) [2025-03-19 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713731', 'tblTempUsageDetail_20' ) start [2025-03-19 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713731', 'tblTempUsageDetail_20' ) end [2025-03-19 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:41:21] Production.INFO: ==25248== Releasing lock... [2025-03-19 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:42:05 [end_date_ymd] => 2025-03-19 06:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:42:05' and `end` < '2025-03-19 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-03-19 06:42:17] Production.INFO: count ==107 [2025-03-19 06:42:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:42:05 - End Time 2025-03-19 06:42:05 [2025-03-19 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713736', 'tblTempUsageDetail_20' ) start [2025-03-19 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713736', 'tblTempUsageDetail_20' ) end [2025-03-19 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713736', 'tblTempVendorCDR_20' ) start [2025-03-19 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713736', 'tblTempVendorCDR_20' ) end [2025-03-19 06:42:17] Production.INFO: ProcessCDR(1,14713736,1,1,2) [2025-03-19 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713736', 'tblTempUsageDetail_20' ) start [2025-03-19 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713736', 'tblTempUsageDetail_20' ) end [2025-03-19 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:42:20] Production.INFO: ==25319== Releasing lock... [2025-03-19 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:42:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:43:06 [end_date_ymd] => 2025-03-19 06:43:06 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:43:06' and `end` < '2025-03-19 06: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-03-19 06:43:18] Production.INFO: count ==107 [2025-03-19 06:43:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:43:06 - End Time 2025-03-19 06:43:06 [2025-03-19 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713741', 'tblTempUsageDetail_20' ) start [2025-03-19 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713741', 'tblTempUsageDetail_20' ) end [2025-03-19 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713741', 'tblTempVendorCDR_20' ) start [2025-03-19 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713741', 'tblTempVendorCDR_20' ) end [2025-03-19 06:43:18] Production.INFO: ProcessCDR(1,14713741,1,1,2) [2025-03-19 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713741', 'tblTempUsageDetail_20' ) start [2025-03-19 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713741', 'tblTempUsageDetail_20' ) end [2025-03-19 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:43:21] Production.INFO: ==25391== Releasing lock... [2025-03-19 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:44:05 [end_date_ymd] => 2025-03-19 06:44:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:44:05' and `end` < '2025-03-19 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-03-19 06:44:17] Production.INFO: count ==107 [2025-03-19 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:44:05 - End Time 2025-03-19 06:44:05 [2025-03-19 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713746', 'tblTempUsageDetail_20' ) start [2025-03-19 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713746', 'tblTempUsageDetail_20' ) end [2025-03-19 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713746', 'tblTempVendorCDR_20' ) start [2025-03-19 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713746', 'tblTempVendorCDR_20' ) end [2025-03-19 06:44:17] Production.INFO: ProcessCDR(1,14713746,1,1,2) [2025-03-19 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713746', 'tblTempUsageDetail_20' ) start [2025-03-19 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713746', 'tblTempUsageDetail_20' ) end [2025-03-19 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:44:20] Production.INFO: ==25463== Releasing lock... [2025-03-19 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:44:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:45:05 [end_date_ymd] => 2025-03-19 06:45:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:45:05' and `end` < '2025-03-19 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-03-19 06:45:17] Production.INFO: count ==107 [2025-03-19 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:45:05 - End Time 2025-03-19 06:45:05 [2025-03-19 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713751', 'tblTempUsageDetail_20' ) start [2025-03-19 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713751', 'tblTempUsageDetail_20' ) end [2025-03-19 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713751', 'tblTempVendorCDR_20' ) start [2025-03-19 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713751', 'tblTempVendorCDR_20' ) end [2025-03-19 06:45:17] Production.INFO: ProcessCDR(1,14713751,1,1,2) [2025-03-19 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713751', 'tblTempUsageDetail_20' ) start [2025-03-19 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713751', 'tblTempUsageDetail_20' ) end [2025-03-19 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:45:21] Production.INFO: ==25537== Releasing lock... [2025-03-19 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:46:05 [end_date_ymd] => 2025-03-19 06:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:46:05' and `end` < '2025-03-19 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-03-19 06:46:17] Production.INFO: count ==107 [2025-03-19 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:46:05 - End Time 2025-03-19 06:46:05 [2025-03-19 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713756', 'tblTempUsageDetail_20' ) start [2025-03-19 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713756', 'tblTempUsageDetail_20' ) end [2025-03-19 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713756', 'tblTempVendorCDR_20' ) start [2025-03-19 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713756', 'tblTempVendorCDR_20' ) end [2025-03-19 06:46:17] Production.INFO: ProcessCDR(1,14713756,1,1,2) [2025-03-19 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713756', 'tblTempUsageDetail_20' ) start [2025-03-19 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713756', 'tblTempUsageDetail_20' ) end [2025-03-19 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:46:21] Production.INFO: ==25611== Releasing lock... [2025-03-19 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:47:05 [end_date_ymd] => 2025-03-19 06:47:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:47:05' and `end` < '2025-03-19 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-03-19 06:47:17] Production.INFO: count ==107 [2025-03-19 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:47:05 - End Time 2025-03-19 06:47:05 [2025-03-19 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713761', 'tblTempUsageDetail_20' ) start [2025-03-19 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713761', 'tblTempUsageDetail_20' ) end [2025-03-19 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713761', 'tblTempVendorCDR_20' ) start [2025-03-19 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713761', 'tblTempVendorCDR_20' ) end [2025-03-19 06:47:17] Production.INFO: ProcessCDR(1,14713761,1,1,2) [2025-03-19 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713761', 'tblTempUsageDetail_20' ) start [2025-03-19 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713761', 'tblTempUsageDetail_20' ) end [2025-03-19 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:47:21] Production.INFO: ==25695== Releasing lock... [2025-03-19 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:48:06 [end_date_ymd] => 2025-03-19 06:48:06 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:48:06' and `end` < '2025-03-19 06: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-03-19 06:48:18] Production.INFO: count ==107 [2025-03-19 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:48:06 - End Time 2025-03-19 06:48:06 [2025-03-19 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713766', 'tblTempUsageDetail_20' ) start [2025-03-19 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713766', 'tblTempUsageDetail_20' ) end [2025-03-19 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713766', 'tblTempVendorCDR_20' ) start [2025-03-19 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713766', 'tblTempVendorCDR_20' ) end [2025-03-19 06:48:18] Production.INFO: ProcessCDR(1,14713766,1,1,2) [2025-03-19 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713766', 'tblTempUsageDetail_20' ) start [2025-03-19 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713766', 'tblTempUsageDetail_20' ) end [2025-03-19 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:48:22] Production.INFO: ==25774== Releasing lock... [2025-03-19 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:49:05 [end_date_ymd] => 2025-03-19 06:49:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:49:05' and `end` < '2025-03-19 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-03-19 06:49:17] Production.INFO: count ==107 [2025-03-19 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:49:05 - End Time 2025-03-19 06:49:05 [2025-03-19 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713771', 'tblTempUsageDetail_20' ) start [2025-03-19 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713771', 'tblTempUsageDetail_20' ) end [2025-03-19 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713771', 'tblTempVendorCDR_20' ) start [2025-03-19 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713771', 'tblTempVendorCDR_20' ) end [2025-03-19 06:49:17] Production.INFO: ProcessCDR(1,14713771,1,1,2) [2025-03-19 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713771', 'tblTempUsageDetail_20' ) start [2025-03-19 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713771', 'tblTempUsageDetail_20' ) end [2025-03-19 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:49:21] Production.INFO: ==25848== Releasing lock... [2025-03-19 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:50:05 [end_date_ymd] => 2025-03-19 06:50:05 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:50:05' and `end` < '2025-03-19 06: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-03-19 06:50:17] Production.INFO: count ==107 [2025-03-19 06:50:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:50:05 - End Time 2025-03-19 06:50:05 [2025-03-19 06:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713776', 'tblTempUsageDetail_20' ) start [2025-03-19 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713776', 'tblTempUsageDetail_20' ) end [2025-03-19 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713776', 'tblTempVendorCDR_20' ) start [2025-03-19 06:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713776', 'tblTempVendorCDR_20' ) end [2025-03-19 06:50:17] Production.INFO: ProcessCDR(1,14713776,1,1,2) [2025-03-19 06:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:50:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:50:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713776', 'tblTempUsageDetail_20' ) start [2025-03-19 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713776', 'tblTempUsageDetail_20' ) end [2025-03-19 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:50:21] Production.INFO: ==25920== Releasing lock... [2025-03-19 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:50:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:51:05 [end_date_ymd] => 2025-03-19 06:51:05 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:51:05' and `end` < '2025-03-19 06: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-03-19 06:51:17] Production.INFO: count ==107 [2025-03-19 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:51:05 - End Time 2025-03-19 06:51:05 [2025-03-19 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713782', 'tblTempUsageDetail_20' ) start [2025-03-19 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713782', 'tblTempUsageDetail_20' ) end [2025-03-19 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713782', 'tblTempVendorCDR_20' ) start [2025-03-19 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713782', 'tblTempVendorCDR_20' ) end [2025-03-19 06:51:17] Production.INFO: ProcessCDR(1,14713782,1,1,2) [2025-03-19 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713782', 'tblTempUsageDetail_20' ) start [2025-03-19 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713782', 'tblTempUsageDetail_20' ) end [2025-03-19 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:51:21] Production.INFO: ==25998== Releasing lock... [2025-03-19 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:52:05 [end_date_ymd] => 2025-03-19 06:52:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:52:05' and `end` < '2025-03-19 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-03-19 06:52:17] Production.INFO: count ==107 [2025-03-19 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:52:05 - End Time 2025-03-19 06:52:05 [2025-03-19 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713787', 'tblTempUsageDetail_20' ) start [2025-03-19 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713787', 'tblTempUsageDetail_20' ) end [2025-03-19 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713787', 'tblTempVendorCDR_20' ) start [2025-03-19 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713787', 'tblTempVendorCDR_20' ) end [2025-03-19 06:52:17] Production.INFO: ProcessCDR(1,14713787,1,1,2) [2025-03-19 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713787', 'tblTempUsageDetail_20' ) start [2025-03-19 06:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713787', 'tblTempUsageDetail_20' ) end [2025-03-19 06:52:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:52:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:52:20] Production.INFO: ==26070== Releasing lock... [2025-03-19 06:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:52:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:53:05 [end_date_ymd] => 2025-03-19 06:53:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:53:05' and `end` < '2025-03-19 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-03-19 06:53:17] Production.INFO: count ==107 [2025-03-19 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:53:05 - End Time 2025-03-19 06:53:05 [2025-03-19 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713792', 'tblTempUsageDetail_20' ) start [2025-03-19 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713792', 'tblTempUsageDetail_20' ) end [2025-03-19 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713792', 'tblTempVendorCDR_20' ) start [2025-03-19 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713792', 'tblTempVendorCDR_20' ) end [2025-03-19 06:53:17] Production.INFO: ProcessCDR(1,14713792,1,1,2) [2025-03-19 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713792', 'tblTempUsageDetail_20' ) start [2025-03-19 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713792', 'tblTempUsageDetail_20' ) end [2025-03-19 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:53:20] Production.INFO: ==26141== Releasing lock... [2025-03-19 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:53:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:54:05 [end_date_ymd] => 2025-03-19 06:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:54:05' and `end` < '2025-03-19 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-03-19 06:54:17] Production.INFO: count ==107 [2025-03-19 06:54:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:54:05 - End Time 2025-03-19 06:54:05 [2025-03-19 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713797', 'tblTempUsageDetail_20' ) start [2025-03-19 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713797', 'tblTempUsageDetail_20' ) end [2025-03-19 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713797', 'tblTempVendorCDR_20' ) start [2025-03-19 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713797', 'tblTempVendorCDR_20' ) end [2025-03-19 06:54:17] Production.INFO: ProcessCDR(1,14713797,1,1,2) [2025-03-19 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713797', 'tblTempUsageDetail_20' ) start [2025-03-19 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713797', 'tblTempUsageDetail_20' ) end [2025-03-19 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:54:20] Production.INFO: ==26217== Releasing lock... [2025-03-19 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:54:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:55:05 [end_date_ymd] => 2025-03-19 06:55:05 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:55:05' and `end` < '2025-03-19 06: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-03-19 06:55:17] Production.INFO: count ==107 [2025-03-19 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:55:05 - End Time 2025-03-19 06:55:05 [2025-03-19 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713802', 'tblTempUsageDetail_20' ) start [2025-03-19 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713802', 'tblTempUsageDetail_20' ) end [2025-03-19 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713802', 'tblTempVendorCDR_20' ) start [2025-03-19 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713802', 'tblTempVendorCDR_20' ) end [2025-03-19 06:55:17] Production.INFO: ProcessCDR(1,14713802,1,1,2) [2025-03-19 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713802', 'tblTempUsageDetail_20' ) start [2025-03-19 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713802', 'tblTempUsageDetail_20' ) end [2025-03-19 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:55:21] Production.INFO: ==26293== Releasing lock... [2025-03-19 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:56:05 [end_date_ymd] => 2025-03-19 06:56:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:56:05' and `end` < '2025-03-19 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-03-19 06:56:17] Production.INFO: count ==107 [2025-03-19 06:56:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:56:05 - End Time 2025-03-19 06:56:05 [2025-03-19 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713807', 'tblTempUsageDetail_20' ) start [2025-03-19 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713807', 'tblTempUsageDetail_20' ) end [2025-03-19 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713807', 'tblTempVendorCDR_20' ) start [2025-03-19 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713807', 'tblTempVendorCDR_20' ) end [2025-03-19 06:56:17] Production.INFO: ProcessCDR(1,14713807,1,1,2) [2025-03-19 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713807', 'tblTempUsageDetail_20' ) start [2025-03-19 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713807', 'tblTempUsageDetail_20' ) end [2025-03-19 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:56:20] Production.INFO: ==26403== Releasing lock... [2025-03-19 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:56:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:57:05 [end_date_ymd] => 2025-03-19 06:57:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:57:05' and `end` < '2025-03-19 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-03-19 06:57:17] Production.INFO: count ==107 [2025-03-19 06:57:17] Production.ERROR: pbx CDR StartTime 2025-03-19 03:57:05 - End Time 2025-03-19 06:57:05 [2025-03-19 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713812', 'tblTempUsageDetail_20' ) start [2025-03-19 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713812', 'tblTempUsageDetail_20' ) end [2025-03-19 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713812', 'tblTempVendorCDR_20' ) start [2025-03-19 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713812', 'tblTempVendorCDR_20' ) end [2025-03-19 06:57:17] Production.INFO: ProcessCDR(1,14713812,1,1,2) [2025-03-19 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713812', 'tblTempUsageDetail_20' ) start [2025-03-19 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713812', 'tblTempUsageDetail_20' ) end [2025-03-19 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:57:21] Production.INFO: ==26475== Releasing lock... [2025-03-19 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:58:06 [end_date_ymd] => 2025-03-19 06:58:06 [RateCDR] => 1 ) [2025-03-19 06: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-03-19 03:58:06' and `end` < '2025-03-19 06: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-03-19 06:58:18] Production.INFO: count ==107 [2025-03-19 06:58:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:58:06 - End Time 2025-03-19 06:58:06 [2025-03-19 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713817', 'tblTempUsageDetail_20' ) start [2025-03-19 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713817', 'tblTempUsageDetail_20' ) end [2025-03-19 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713817', 'tblTempVendorCDR_20' ) start [2025-03-19 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713817', 'tblTempVendorCDR_20' ) end [2025-03-19 06:58:18] Production.INFO: ProcessCDR(1,14713817,1,1,2) [2025-03-19 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713817', 'tblTempUsageDetail_20' ) start [2025-03-19 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713817', 'tblTempUsageDetail_20' ) end [2025-03-19 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:58:21] Production.INFO: ==26550== Releasing lock... [2025-03-19 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:58:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 03:59:05 [end_date_ymd] => 2025-03-19 06:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 03:59:05' and `end` < '2025-03-19 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-03-19 06:59:18] Production.INFO: count ==107 [2025-03-19 06:59:18] Production.ERROR: pbx CDR StartTime 2025-03-19 03:59:05 - End Time 2025-03-19 06:59:05 [2025-03-19 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713822', 'tblTempUsageDetail_20' ) start [2025-03-19 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713822', 'tblTempUsageDetail_20' ) end [2025-03-19 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713822', 'tblTempVendorCDR_20' ) start [2025-03-19 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713822', 'tblTempVendorCDR_20' ) end [2025-03-19 06:59:18] Production.INFO: ProcessCDR(1,14713822,1,1,2) [2025-03-19 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713822', 'tblTempUsageDetail_20' ) start [2025-03-19 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713822', 'tblTempUsageDetail_20' ) end [2025-03-19 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 06:59:21] Production.INFO: ==26631== Releasing lock... [2025-03-19 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 06:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:00:06 [end_date_ymd] => 2025-03-19 07:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:00:06' and `end` < '2025-03-19 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-03-19 07:00:19] Production.INFO: count ==118 [2025-03-19 07:00:19] Production.ERROR: pbx CDR StartTime 2025-03-19 04:00:06 - End Time 2025-03-19 07:00:06 [2025-03-19 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713828', 'tblTempUsageDetail_20' ) start [2025-03-19 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713828', 'tblTempUsageDetail_20' ) end [2025-03-19 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713828', 'tblTempVendorCDR_20' ) start [2025-03-19 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713828', 'tblTempVendorCDR_20' ) end [2025-03-19 07:00:19] Production.INFO: ProcessCDR(1,14713828,1,1,2) [2025-03-19 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713828', 'tblTempUsageDetail_20' ) start [2025-03-19 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713828', 'tblTempUsageDetail_20' ) end [2025-03-19 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:00:22] Production.INFO: ==26723== Releasing lock... [2025-03-19 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:01:06 [end_date_ymd] => 2025-03-19 07:01:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:01:06' and `end` < '2025-03-19 07: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-03-19 07:01:18] Production.INFO: count ==118 [2025-03-19 07:01:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:01:06 - End Time 2025-03-19 07:01:06 [2025-03-19 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713833', 'tblTempUsageDetail_20' ) start [2025-03-19 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713833', 'tblTempUsageDetail_20' ) end [2025-03-19 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713833', 'tblTempVendorCDR_20' ) start [2025-03-19 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713833', 'tblTempVendorCDR_20' ) end [2025-03-19 07:01:18] Production.INFO: ProcessCDR(1,14713833,1,1,2) [2025-03-19 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713833', 'tblTempUsageDetail_20' ) start [2025-03-19 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713833', 'tblTempUsageDetail_20' ) end [2025-03-19 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:01:21] Production.INFO: ==26854== Releasing lock... [2025-03-19 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:02:05 [end_date_ymd] => 2025-03-19 07:02:05 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:02:05' and `end` < '2025-03-19 07: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-03-19 07:02:17] Production.INFO: count ==118 [2025-03-19 07:02:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:02:05 - End Time 2025-03-19 07:02:05 [2025-03-19 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713837', 'tblTempUsageDetail_20' ) start [2025-03-19 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713837', 'tblTempUsageDetail_20' ) end [2025-03-19 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713837', 'tblTempVendorCDR_20' ) start [2025-03-19 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713837', 'tblTempVendorCDR_20' ) end [2025-03-19 07:02:17] Production.INFO: ProcessCDR(1,14713837,1,1,2) [2025-03-19 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713837', 'tblTempUsageDetail_20' ) start [2025-03-19 07:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713837', 'tblTempUsageDetail_20' ) end [2025-03-19 07:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:02:21] Production.INFO: ==26972== Releasing lock... [2025-03-19 07:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:03:05 [end_date_ymd] => 2025-03-19 07:03:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:03:05' and `end` < '2025-03-19 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-03-19 07:03:17] Production.INFO: count ==118 [2025-03-19 07:03:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:03:05 - End Time 2025-03-19 07:03:05 [2025-03-19 07:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713843', 'tblTempUsageDetail_20' ) start [2025-03-19 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713843', 'tblTempUsageDetail_20' ) end [2025-03-19 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713843', 'tblTempVendorCDR_20' ) start [2025-03-19 07:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713843', 'tblTempVendorCDR_20' ) end [2025-03-19 07:03:17] Production.INFO: ProcessCDR(1,14713843,1,1,2) [2025-03-19 07:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713843', 'tblTempUsageDetail_20' ) start [2025-03-19 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713843', 'tblTempUsageDetail_20' ) end [2025-03-19 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:03:21] Production.INFO: ==27046== Releasing lock... [2025-03-19 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:04:06 [end_date_ymd] => 2025-03-19 07:04:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:04:06' and `end` < '2025-03-19 07: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-03-19 07:04:20] Production.INFO: count ==118 [2025-03-19 07:04:20] Production.ERROR: pbx CDR StartTime 2025-03-19 04:04:06 - End Time 2025-03-19 07:04:06 [2025-03-19 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713848', 'tblTempUsageDetail_20' ) start [2025-03-19 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713848', 'tblTempUsageDetail_20' ) end [2025-03-19 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713848', 'tblTempVendorCDR_20' ) start [2025-03-19 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713848', 'tblTempVendorCDR_20' ) end [2025-03-19 07:04:20] Production.INFO: ProcessCDR(1,14713848,1,1,2) [2025-03-19 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713848', 'tblTempUsageDetail_20' ) start [2025-03-19 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713848', 'tblTempUsageDetail_20' ) end [2025-03-19 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:04:24] Production.INFO: ==27123== Releasing lock... [2025-03-19 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:04:24] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:05:05 [end_date_ymd] => 2025-03-19 07:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:05:05' and `end` < '2025-03-19 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-03-19 07:05:18] Production.INFO: count ==118 [2025-03-19 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:05:05 - End Time 2025-03-19 07:05:05 [2025-03-19 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713853', 'tblTempUsageDetail_20' ) start [2025-03-19 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713853', 'tblTempUsageDetail_20' ) end [2025-03-19 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713853', 'tblTempVendorCDR_20' ) start [2025-03-19 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713853', 'tblTempVendorCDR_20' ) end [2025-03-19 07:05:18] Production.INFO: ProcessCDR(1,14713853,1,1,2) [2025-03-19 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713853', 'tblTempUsageDetail_20' ) start [2025-03-19 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713853', 'tblTempUsageDetail_20' ) end [2025-03-19 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:05:22] Production.INFO: ==27281== Releasing lock... [2025-03-19 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:06:05 [end_date_ymd] => 2025-03-19 07:06:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:06:05' and `end` < '2025-03-19 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-03-19 07:06:18] Production.INFO: count ==118 [2025-03-19 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:06:05 - End Time 2025-03-19 07:06:05 [2025-03-19 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713858', 'tblTempUsageDetail_20' ) start [2025-03-19 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713858', 'tblTempUsageDetail_20' ) end [2025-03-19 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713858', 'tblTempVendorCDR_20' ) start [2025-03-19 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713858', 'tblTempVendorCDR_20' ) end [2025-03-19 07:06:18] Production.INFO: ProcessCDR(1,14713858,1,1,2) [2025-03-19 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713858', 'tblTempUsageDetail_20' ) start [2025-03-19 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713858', 'tblTempUsageDetail_20' ) end [2025-03-19 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:06:21] Production.INFO: ==27359== Releasing lock... [2025-03-19 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:07:05 [end_date_ymd] => 2025-03-19 07:07:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:07:05' and `end` < '2025-03-19 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-03-19 07:07:18] Production.INFO: count ==118 [2025-03-19 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:07:05 - End Time 2025-03-19 07:07:05 [2025-03-19 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713863', 'tblTempUsageDetail_20' ) start [2025-03-19 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713863', 'tblTempUsageDetail_20' ) end [2025-03-19 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713863', 'tblTempVendorCDR_20' ) start [2025-03-19 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713863', 'tblTempVendorCDR_20' ) end [2025-03-19 07:07:18] Production.INFO: ProcessCDR(1,14713863,1,1,2) [2025-03-19 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713863', 'tblTempUsageDetail_20' ) start [2025-03-19 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713863', 'tblTempUsageDetail_20' ) end [2025-03-19 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:07:21] Production.INFO: ==27438== Releasing lock... [2025-03-19 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:08:05 [end_date_ymd] => 2025-03-19 07:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:08:05' and `end` < '2025-03-19 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-03-19 07:08:18] Production.INFO: count ==118 [2025-03-19 07:08:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:08:05 - End Time 2025-03-19 07:08:05 [2025-03-19 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713868', 'tblTempUsageDetail_20' ) start [2025-03-19 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713868', 'tblTempUsageDetail_20' ) end [2025-03-19 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713868', 'tblTempVendorCDR_20' ) start [2025-03-19 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713868', 'tblTempVendorCDR_20' ) end [2025-03-19 07:08:18] Production.INFO: ProcessCDR(1,14713868,1,1,2) [2025-03-19 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713868', 'tblTempUsageDetail_20' ) start [2025-03-19 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713868', 'tblTempUsageDetail_20' ) end [2025-03-19 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:08:22] Production.INFO: ==27600== Releasing lock... [2025-03-19 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:08:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:09:05 [end_date_ymd] => 2025-03-19 07:09:05 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:09:05' and `end` < '2025-03-19 07: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-03-19 07:09:17] Production.INFO: count ==115 [2025-03-19 07:09:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:09:05 - End Time 2025-03-19 07:09:05 [2025-03-19 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713873', 'tblTempUsageDetail_20' ) start [2025-03-19 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713873', 'tblTempUsageDetail_20' ) end [2025-03-19 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713873', 'tblTempVendorCDR_20' ) start [2025-03-19 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713873', 'tblTempVendorCDR_20' ) end [2025-03-19 07:09:17] Production.INFO: ProcessCDR(1,14713873,1,1,2) [2025-03-19 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713873', 'tblTempUsageDetail_20' ) start [2025-03-19 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713873', 'tblTempUsageDetail_20' ) end [2025-03-19 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:09:21] Production.INFO: ==27677== Releasing lock... [2025-03-19 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:10:05 [end_date_ymd] => 2025-03-19 07:10:05 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:10:05' and `end` < '2025-03-19 07: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-03-19 07:10:19] Production.INFO: count ==115 [2025-03-19 07:10:19] Production.ERROR: pbx CDR StartTime 2025-03-19 04:10:05 - End Time 2025-03-19 07:10:05 [2025-03-19 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713878', 'tblTempUsageDetail_20' ) start [2025-03-19 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713878', 'tblTempUsageDetail_20' ) end [2025-03-19 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713878', 'tblTempVendorCDR_20' ) start [2025-03-19 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713878', 'tblTempVendorCDR_20' ) end [2025-03-19 07:10:19] Production.INFO: ProcessCDR(1,14713878,1,1,2) [2025-03-19 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713878', 'tblTempUsageDetail_20' ) start [2025-03-19 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713878', 'tblTempUsageDetail_20' ) end [2025-03-19 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:10:23] Production.INFO: ==27761== Releasing lock... [2025-03-19 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:10:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:11:06 [end_date_ymd] => 2025-03-19 07:11:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:11:06' and `end` < '2025-03-19 07: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-03-19 07:11:19] Production.INFO: count ==115 [2025-03-19 07:11:19] Production.ERROR: pbx CDR StartTime 2025-03-19 04:11:06 - End Time 2025-03-19 07:11:06 [2025-03-19 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713884', 'tblTempUsageDetail_20' ) start [2025-03-19 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713884', 'tblTempUsageDetail_20' ) end [2025-03-19 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713884', 'tblTempVendorCDR_20' ) start [2025-03-19 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713884', 'tblTempVendorCDR_20' ) end [2025-03-19 07:11:19] Production.INFO: ProcessCDR(1,14713884,1,1,2) [2025-03-19 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713884', 'tblTempUsageDetail_20' ) start [2025-03-19 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713884', 'tblTempUsageDetail_20' ) end [2025-03-19 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:11:22] Production.INFO: ==27882== Releasing lock... [2025-03-19 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:11:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:12:05 [end_date_ymd] => 2025-03-19 07:12:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:12:05' and `end` < '2025-03-19 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-03-19 07:12:17] Production.INFO: count ==115 [2025-03-19 07:12:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:12:05 - End Time 2025-03-19 07:12:05 [2025-03-19 07:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713889', 'tblTempUsageDetail_20' ) start [2025-03-19 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713889', 'tblTempUsageDetail_20' ) end [2025-03-19 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713889', 'tblTempVendorCDR_20' ) start [2025-03-19 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713889', 'tblTempVendorCDR_20' ) end [2025-03-19 07:12:17] Production.INFO: ProcessCDR(1,14713889,1,1,2) [2025-03-19 07:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713889', 'tblTempUsageDetail_20' ) start [2025-03-19 07:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713889', 'tblTempUsageDetail_20' ) end [2025-03-19 07:12:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:12:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:12:20] Production.INFO: ==28043== Releasing lock... [2025-03-19 07:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:12:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:13:05 [end_date_ymd] => 2025-03-19 07:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:13:05' and `end` < '2025-03-19 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-03-19 07:13:18] Production.INFO: count ==115 [2025-03-19 07:13:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:13:05 - End Time 2025-03-19 07:13:05 [2025-03-19 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713894', 'tblTempUsageDetail_20' ) start [2025-03-19 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713894', 'tblTempUsageDetail_20' ) end [2025-03-19 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713894', 'tblTempVendorCDR_20' ) start [2025-03-19 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713894', 'tblTempVendorCDR_20' ) end [2025-03-19 07:13:18] Production.INFO: ProcessCDR(1,14713894,1,1,2) [2025-03-19 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713894', 'tblTempUsageDetail_20' ) start [2025-03-19 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713894', 'tblTempUsageDetail_20' ) end [2025-03-19 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:13:21] Production.INFO: ==28128== Releasing lock... [2025-03-19 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:13:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:14:05 [end_date_ymd] => 2025-03-19 07:14:05 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:14:05' and `end` < '2025-03-19 07: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-03-19 07:14:19] Production.INFO: count ==115 [2025-03-19 07:14:19] Production.ERROR: pbx CDR StartTime 2025-03-19 04:14:05 - End Time 2025-03-19 07:14:05 [2025-03-19 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713899', 'tblTempUsageDetail_20' ) start [2025-03-19 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713899', 'tblTempUsageDetail_20' ) end [2025-03-19 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713899', 'tblTempVendorCDR_20' ) start [2025-03-19 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713899', 'tblTempVendorCDR_20' ) end [2025-03-19 07:14:19] Production.INFO: ProcessCDR(1,14713899,1,1,2) [2025-03-19 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713899', 'tblTempUsageDetail_20' ) start [2025-03-19 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713899', 'tblTempUsageDetail_20' ) end [2025-03-19 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:14:23] Production.INFO: ==28211== Releasing lock... [2025-03-19 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:14:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:15:05 [end_date_ymd] => 2025-03-19 07:15:05 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:15:05' and `end` < '2025-03-19 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-03-19 07:15:18] Production.INFO: count ==116 [2025-03-19 07:15:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:15:05 - End Time 2025-03-19 07:15:05 [2025-03-19 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713904', 'tblTempUsageDetail_20' ) start [2025-03-19 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713904', 'tblTempUsageDetail_20' ) end [2025-03-19 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713904', 'tblTempVendorCDR_20' ) start [2025-03-19 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713904', 'tblTempVendorCDR_20' ) end [2025-03-19 07:15:18] Production.INFO: ProcessCDR(1,14713904,1,1,2) [2025-03-19 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713904', 'tblTempUsageDetail_20' ) start [2025-03-19 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713904', 'tblTempUsageDetail_20' ) end [2025-03-19 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:15:23] Production.INFO: ==28371== Releasing lock... [2025-03-19 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:15:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:16:05 [end_date_ymd] => 2025-03-19 07:16:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:16:05' and `end` < '2025-03-19 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-03-19 07:16:20] Production.INFO: count ==116 [2025-03-19 07:16:20] Production.ERROR: pbx CDR StartTime 2025-03-19 04:16:05 - End Time 2025-03-19 07:16:05 [2025-03-19 07:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713909', 'tblTempUsageDetail_20' ) start [2025-03-19 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713909', 'tblTempUsageDetail_20' ) end [2025-03-19 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713909', 'tblTempVendorCDR_20' ) start [2025-03-19 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713909', 'tblTempVendorCDR_20' ) end [2025-03-19 07:16:20] Production.INFO: ProcessCDR(1,14713909,1,1,2) [2025-03-19 07:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713909', 'tblTempUsageDetail_20' ) start [2025-03-19 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713909', 'tblTempUsageDetail_20' ) end [2025-03-19 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:16:23] Production.INFO: ==28447== Releasing lock... [2025-03-19 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:16:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:17:05 [end_date_ymd] => 2025-03-19 07:17:05 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:17:05' and `end` < '2025-03-19 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-03-19 07:17:18] Production.INFO: count ==116 [2025-03-19 07:17:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:17:05 - End Time 2025-03-19 07:17:05 [2025-03-19 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713914', 'tblTempUsageDetail_20' ) start [2025-03-19 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713914', 'tblTempUsageDetail_20' ) end [2025-03-19 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713914', 'tblTempVendorCDR_20' ) start [2025-03-19 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713914', 'tblTempVendorCDR_20' ) end [2025-03-19 07:17:18] Production.INFO: ProcessCDR(1,14713914,1,1,2) [2025-03-19 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713914', 'tblTempUsageDetail_20' ) start [2025-03-19 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713914', 'tblTempUsageDetail_20' ) end [2025-03-19 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:17:21] Production.INFO: ==28537== Releasing lock... [2025-03-19 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:18:05 [end_date_ymd] => 2025-03-19 07:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:18:05' and `end` < '2025-03-19 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-03-19 07:18:18] Production.INFO: count ==116 [2025-03-19 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:18:05 - End Time 2025-03-19 07:18:05 [2025-03-19 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713919', 'tblTempUsageDetail_20' ) start [2025-03-19 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713919', 'tblTempUsageDetail_20' ) end [2025-03-19 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713919', 'tblTempVendorCDR_20' ) start [2025-03-19 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713919', 'tblTempVendorCDR_20' ) end [2025-03-19 07:18:18] Production.INFO: ProcessCDR(1,14713919,1,1,2) [2025-03-19 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713919', 'tblTempUsageDetail_20' ) start [2025-03-19 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713919', 'tblTempUsageDetail_20' ) end [2025-03-19 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:18:22] Production.INFO: ==28622== Releasing lock... [2025-03-19 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:19:06 [end_date_ymd] => 2025-03-19 07:19:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:19:06' and `end` < '2025-03-19 07: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-03-19 07:19:18] Production.INFO: count ==119 [2025-03-19 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:19:06 - End Time 2025-03-19 07:19:06 [2025-03-19 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713924', 'tblTempUsageDetail_20' ) start [2025-03-19 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713924', 'tblTempUsageDetail_20' ) end [2025-03-19 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713924', 'tblTempVendorCDR_20' ) start [2025-03-19 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713924', 'tblTempVendorCDR_20' ) end [2025-03-19 07:19:18] Production.INFO: ProcessCDR(1,14713924,1,1,2) [2025-03-19 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713924', 'tblTempUsageDetail_20' ) start [2025-03-19 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713924', 'tblTempUsageDetail_20' ) end [2025-03-19 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:19:22] Production.INFO: ==28704== Releasing lock... [2025-03-19 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:19:22] Production.INFO: 29 MB #Memory Used# [2025-03-19 07:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:20:07 [end_date_ymd] => 2025-03-19 07:20:07 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:20:07' and `end` < '2025-03-19 07: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-03-19 07:20:19] Production.INFO: count ==103 [2025-03-19 07:20:19] Production.ERROR: pbx CDR StartTime 2025-03-19 04:20:07 - End Time 2025-03-19 07:20:07 [2025-03-19 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713930', 'tblTempUsageDetail_20' ) start [2025-03-19 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713930', 'tblTempUsageDetail_20' ) end [2025-03-19 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713930', 'tblTempVendorCDR_20' ) start [2025-03-19 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713930', 'tblTempVendorCDR_20' ) end [2025-03-19 07:20:19] Production.INFO: ProcessCDR(1,14713930,1,1,2) [2025-03-19 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713930', 'tblTempUsageDetail_20' ) start [2025-03-19 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713930', 'tblTempUsageDetail_20' ) end [2025-03-19 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:20:23] Production.INFO: ==28786== Releasing lock... [2025-03-19 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:20:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:21:06 [end_date_ymd] => 2025-03-19 07:21:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:21:06' and `end` < '2025-03-19 07: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-03-19 07:21:18] Production.INFO: count ==102 [2025-03-19 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:21:06 - End Time 2025-03-19 07:21:06 [2025-03-19 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713935', 'tblTempUsageDetail_20' ) start [2025-03-19 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713935', 'tblTempUsageDetail_20' ) end [2025-03-19 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713935', 'tblTempVendorCDR_20' ) start [2025-03-19 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713935', 'tblTempVendorCDR_20' ) end [2025-03-19 07:21:18] Production.INFO: ProcessCDR(1,14713935,1,1,2) [2025-03-19 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713935', 'tblTempUsageDetail_20' ) start [2025-03-19 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713935', 'tblTempUsageDetail_20' ) end [2025-03-19 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:21:22] Production.INFO: ==28871== Releasing lock... [2025-03-19 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:21:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:22:05 [end_date_ymd] => 2025-03-19 07:22:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:22:05' and `end` < '2025-03-19 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-03-19 07:22:19] Production.INFO: count ==101 [2025-03-19 07:22:19] Production.ERROR: pbx CDR StartTime 2025-03-19 04:22:05 - End Time 2025-03-19 07:22:05 [2025-03-19 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713940', 'tblTempUsageDetail_20' ) start [2025-03-19 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713940', 'tblTempUsageDetail_20' ) end [2025-03-19 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713940', 'tblTempVendorCDR_20' ) start [2025-03-19 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713940', 'tblTempVendorCDR_20' ) end [2025-03-19 07:22:19] Production.INFO: ProcessCDR(1,14713940,1,1,2) [2025-03-19 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713940', 'tblTempUsageDetail_20' ) start [2025-03-19 07:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713940', 'tblTempUsageDetail_20' ) end [2025-03-19 07:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:22:23] Production.INFO: ==28946== Releasing lock... [2025-03-19 07:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:22:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:23:05 [end_date_ymd] => 2025-03-19 07:23:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:23:05' and `end` < '2025-03-19 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-03-19 07:23:18] Production.INFO: count ==101 [2025-03-19 07:23:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:23:05 - End Time 2025-03-19 07:23:05 [2025-03-19 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713945', 'tblTempUsageDetail_20' ) start [2025-03-19 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713945', 'tblTempUsageDetail_20' ) end [2025-03-19 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713945', 'tblTempVendorCDR_20' ) start [2025-03-19 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713945', 'tblTempVendorCDR_20' ) end [2025-03-19 07:23:18] Production.INFO: ProcessCDR(1,14713945,1,1,2) [2025-03-19 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713945', 'tblTempUsageDetail_20' ) start [2025-03-19 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713945', 'tblTempUsageDetail_20' ) end [2025-03-19 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:23:21] Production.INFO: ==29027== Releasing lock... [2025-03-19 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:24:06 [end_date_ymd] => 2025-03-19 07:24:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:24:06' and `end` < '2025-03-19 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-03-19 07:24:18] Production.INFO: count ==101 [2025-03-19 07:24:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:24:06 - End Time 2025-03-19 07:24:06 [2025-03-19 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713950', 'tblTempUsageDetail_20' ) start [2025-03-19 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713950', 'tblTempUsageDetail_20' ) end [2025-03-19 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713950', 'tblTempVendorCDR_20' ) start [2025-03-19 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713950', 'tblTempVendorCDR_20' ) end [2025-03-19 07:24:18] Production.INFO: ProcessCDR(1,14713950,1,1,2) [2025-03-19 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713950', 'tblTempUsageDetail_20' ) start [2025-03-19 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713950', 'tblTempUsageDetail_20' ) end [2025-03-19 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:24:22] Production.INFO: ==29109== Releasing lock... [2025-03-19 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:24:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:25:05 [end_date_ymd] => 2025-03-19 07:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:25:05' and `end` < '2025-03-19 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-03-19 07:25:17] Production.INFO: count ==101 [2025-03-19 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:25:05 - End Time 2025-03-19 07:25:05 [2025-03-19 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713955', 'tblTempUsageDetail_20' ) start [2025-03-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713955', 'tblTempUsageDetail_20' ) end [2025-03-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713955', 'tblTempVendorCDR_20' ) start [2025-03-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713955', 'tblTempVendorCDR_20' ) end [2025-03-19 07:25:17] Production.INFO: ProcessCDR(1,14713955,1,1,2) [2025-03-19 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713955', 'tblTempUsageDetail_20' ) start [2025-03-19 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713955', 'tblTempUsageDetail_20' ) end [2025-03-19 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:25:21] Production.INFO: ==29183== Releasing lock... [2025-03-19 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:26:06 [end_date_ymd] => 2025-03-19 07:26:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:26:06' and `end` < '2025-03-19 07: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-03-19 07:26:18] Production.INFO: count ==101 [2025-03-19 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:26:06 - End Time 2025-03-19 07:26:06 [2025-03-19 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713960', 'tblTempUsageDetail_20' ) start [2025-03-19 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713960', 'tblTempUsageDetail_20' ) end [2025-03-19 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713960', 'tblTempVendorCDR_20' ) start [2025-03-19 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713960', 'tblTempVendorCDR_20' ) end [2025-03-19 07:26:18] Production.INFO: ProcessCDR(1,14713960,1,1,2) [2025-03-19 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713960', 'tblTempUsageDetail_20' ) start [2025-03-19 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713960', 'tblTempUsageDetail_20' ) end [2025-03-19 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:26:22] Production.INFO: ==29265== Releasing lock... [2025-03-19 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:26:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:27:05 [end_date_ymd] => 2025-03-19 07:27:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:27:05' and `end` < '2025-03-19 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-03-19 07:27:17] Production.INFO: count ==104 [2025-03-19 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:27:05 - End Time 2025-03-19 07:27:05 [2025-03-19 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713965', 'tblTempUsageDetail_20' ) start [2025-03-19 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713965', 'tblTempUsageDetail_20' ) end [2025-03-19 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713965', 'tblTempVendorCDR_20' ) start [2025-03-19 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713965', 'tblTempVendorCDR_20' ) end [2025-03-19 07:27:17] Production.INFO: ProcessCDR(1,14713965,1,1,2) [2025-03-19 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713965', 'tblTempUsageDetail_20' ) start [2025-03-19 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713965', 'tblTempUsageDetail_20' ) end [2025-03-19 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:27:21] Production.INFO: ==29393== Releasing lock... [2025-03-19 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:28:06 [end_date_ymd] => 2025-03-19 07:28:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:28:06' and `end` < '2025-03-19 07: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-03-19 07:28:18] Production.INFO: count ==107 [2025-03-19 07:28:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:28:06 - End Time 2025-03-19 07:28:06 [2025-03-19 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713970', 'tblTempUsageDetail_20' ) start [2025-03-19 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713970', 'tblTempUsageDetail_20' ) end [2025-03-19 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713970', 'tblTempVendorCDR_20' ) start [2025-03-19 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713970', 'tblTempVendorCDR_20' ) end [2025-03-19 07:28:18] Production.INFO: ProcessCDR(1,14713970,1,1,2) [2025-03-19 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713970', 'tblTempUsageDetail_20' ) start [2025-03-19 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713970', 'tblTempUsageDetail_20' ) end [2025-03-19 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:28:22] Production.INFO: ==29477== Releasing lock... [2025-03-19 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:28:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:29:05 [end_date_ymd] => 2025-03-19 07:29:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:29:05' and `end` < '2025-03-19 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-03-19 07:29:17] Production.INFO: count ==107 [2025-03-19 07:29:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:29:05 - End Time 2025-03-19 07:29:05 [2025-03-19 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713975', 'tblTempUsageDetail_20' ) start [2025-03-19 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713975', 'tblTempUsageDetail_20' ) end [2025-03-19 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713975', 'tblTempVendorCDR_20' ) start [2025-03-19 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713975', 'tblTempVendorCDR_20' ) end [2025-03-19 07:29:18] Production.INFO: ProcessCDR(1,14713975,1,1,2) [2025-03-19 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713975', 'tblTempUsageDetail_20' ) start [2025-03-19 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713975', 'tblTempUsageDetail_20' ) end [2025-03-19 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:29:21] Production.INFO: ==29551== Releasing lock... [2025-03-19 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:30:07 [end_date_ymd] => 2025-03-19 07:30:07 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:30:07' and `end` < '2025-03-19 07: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-03-19 07:30:19] Production.INFO: count ==113 [2025-03-19 07:30:19] Production.ERROR: pbx CDR StartTime 2025-03-19 04:30:07 - End Time 2025-03-19 07:30:07 [2025-03-19 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713981', 'tblTempUsageDetail_20' ) start [2025-03-19 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713981', 'tblTempUsageDetail_20' ) end [2025-03-19 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713981', 'tblTempVendorCDR_20' ) start [2025-03-19 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713981', 'tblTempVendorCDR_20' ) end [2025-03-19 07:30:19] Production.INFO: ProcessCDR(1,14713981,1,1,2) [2025-03-19 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713981', 'tblTempUsageDetail_20' ) start [2025-03-19 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713981', 'tblTempUsageDetail_20' ) end [2025-03-19 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:30:23] Production.INFO: ==29632== Releasing lock... [2025-03-19 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:30:23] Production.INFO: 29 MB #Memory Used# [2025-03-19 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:31:05 [end_date_ymd] => 2025-03-19 07:31:05 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:31:05' and `end` < '2025-03-19 07: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-03-19 07:31:17] Production.INFO: count ==113 [2025-03-19 07:31:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:31:05 - End Time 2025-03-19 07:31:05 [2025-03-19 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713986', 'tblTempUsageDetail_20' ) start [2025-03-19 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713986', 'tblTempUsageDetail_20' ) end [2025-03-19 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713986', 'tblTempVendorCDR_20' ) start [2025-03-19 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713986', 'tblTempVendorCDR_20' ) end [2025-03-19 07:31:17] Production.INFO: ProcessCDR(1,14713986,1,1,2) [2025-03-19 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713986', 'tblTempUsageDetail_20' ) start [2025-03-19 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713986', 'tblTempUsageDetail_20' ) end [2025-03-19 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:31:21] Production.INFO: ==29714== Releasing lock... [2025-03-19 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:32:06 [end_date_ymd] => 2025-03-19 07:32:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:32:06' and `end` < '2025-03-19 07: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-03-19 07:32:18] Production.INFO: count ==114 [2025-03-19 07:32:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:32:06 - End Time 2025-03-19 07:32:06 [2025-03-19 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713991', 'tblTempUsageDetail_20' ) start [2025-03-19 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713991', 'tblTempUsageDetail_20' ) end [2025-03-19 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713991', 'tblTempVendorCDR_20' ) start [2025-03-19 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713991', 'tblTempVendorCDR_20' ) end [2025-03-19 07:32:18] Production.INFO: ProcessCDR(1,14713991,1,1,2) [2025-03-19 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713991', 'tblTempUsageDetail_20' ) start [2025-03-19 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713991', 'tblTempUsageDetail_20' ) end [2025-03-19 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:32:22] Production.INFO: ==29794== Releasing lock... [2025-03-19 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:32:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:33:05 [end_date_ymd] => 2025-03-19 07:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:33:05' and `end` < '2025-03-19 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-03-19 07:33:17] Production.INFO: count ==114 [2025-03-19 07:33:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:33:05 - End Time 2025-03-19 07:33:05 [2025-03-19 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713996', 'tblTempUsageDetail_20' ) start [2025-03-19 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14713996', 'tblTempUsageDetail_20' ) end [2025-03-19 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713996', 'tblTempVendorCDR_20' ) start [2025-03-19 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14713996', 'tblTempVendorCDR_20' ) end [2025-03-19 07:33:18] Production.INFO: ProcessCDR(1,14713996,1,1,2) [2025-03-19 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14713996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14713996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14713996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14713996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713996', 'tblTempUsageDetail_20' ) start [2025-03-19 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14713996', 'tblTempUsageDetail_20' ) end [2025-03-19 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:33:21] Production.INFO: ==29874== Releasing lock... [2025-03-19 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:34:06 [end_date_ymd] => 2025-03-19 07:34:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:34:06' and `end` < '2025-03-19 07: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-03-19 07:34:18] Production.INFO: count ==114 [2025-03-19 07:34:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:34:06 - End Time 2025-03-19 07:34:06 [2025-03-19 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714001', 'tblTempUsageDetail_20' ) start [2025-03-19 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714001', 'tblTempUsageDetail_20' ) end [2025-03-19 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714001', 'tblTempVendorCDR_20' ) start [2025-03-19 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714001', 'tblTempVendorCDR_20' ) end [2025-03-19 07:34:18] Production.INFO: ProcessCDR(1,14714001,1,1,2) [2025-03-19 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714001', 'tblTempUsageDetail_20' ) start [2025-03-19 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714001', 'tblTempUsageDetail_20' ) end [2025-03-19 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:34:22] Production.INFO: ==29952== Releasing lock... [2025-03-19 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:35:05 [end_date_ymd] => 2025-03-19 07:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:35:05' and `end` < '2025-03-19 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-03-19 07:35:17] Production.INFO: count ==115 [2025-03-19 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:35:05 - End Time 2025-03-19 07:35:05 [2025-03-19 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714006', 'tblTempUsageDetail_20' ) start [2025-03-19 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714006', 'tblTempUsageDetail_20' ) end [2025-03-19 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714006', 'tblTempVendorCDR_20' ) start [2025-03-19 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714006', 'tblTempVendorCDR_20' ) end [2025-03-19 07:35:17] Production.INFO: ProcessCDR(1,14714006,1,1,2) [2025-03-19 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714006', 'tblTempUsageDetail_20' ) start [2025-03-19 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714006', 'tblTempUsageDetail_20' ) end [2025-03-19 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:35:20] Production.INFO: ==30024== Releasing lock... [2025-03-19 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:35:20] Production.INFO: 29 MB #Memory Used# [2025-03-19 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:36:05 [end_date_ymd] => 2025-03-19 07:36:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:36:05' and `end` < '2025-03-19 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-03-19 07:36:17] Production.INFO: count ==120 [2025-03-19 07:36:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:36:05 - End Time 2025-03-19 07:36:05 [2025-03-19 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714011', 'tblTempUsageDetail_20' ) start [2025-03-19 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714011', 'tblTempUsageDetail_20' ) end [2025-03-19 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714011', 'tblTempVendorCDR_20' ) start [2025-03-19 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714011', 'tblTempVendorCDR_20' ) end [2025-03-19 07:36:17] Production.INFO: ProcessCDR(1,14714011,1,1,2) [2025-03-19 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714011', 'tblTempUsageDetail_20' ) start [2025-03-19 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714011', 'tblTempUsageDetail_20' ) end [2025-03-19 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:36:21] Production.INFO: ==30101== Releasing lock... [2025-03-19 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:37:05 [end_date_ymd] => 2025-03-19 07:37:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:37:05' and `end` < '2025-03-19 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-03-19 07:37:17] Production.INFO: count ==120 [2025-03-19 07:37:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:37:05 - End Time 2025-03-19 07:37:05 [2025-03-19 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714016', 'tblTempUsageDetail_20' ) start [2025-03-19 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714016', 'tblTempUsageDetail_20' ) end [2025-03-19 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714016', 'tblTempVendorCDR_20' ) start [2025-03-19 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714016', 'tblTempVendorCDR_20' ) end [2025-03-19 07:37:17] Production.INFO: ProcessCDR(1,14714016,1,1,2) [2025-03-19 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714016', 'tblTempUsageDetail_20' ) start [2025-03-19 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714016', 'tblTempUsageDetail_20' ) end [2025-03-19 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:37:20] Production.INFO: ==30176== Releasing lock... [2025-03-19 07:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:38:06 [end_date_ymd] => 2025-03-19 07:38:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:38:06' and `end` < '2025-03-19 07: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-03-19 07:38:18] Production.INFO: count ==120 [2025-03-19 07:38:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:38:06 - End Time 2025-03-19 07:38:06 [2025-03-19 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714021', 'tblTempUsageDetail_20' ) start [2025-03-19 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714021', 'tblTempUsageDetail_20' ) end [2025-03-19 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714021', 'tblTempVendorCDR_20' ) start [2025-03-19 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714021', 'tblTempVendorCDR_20' ) end [2025-03-19 07:38:18] Production.INFO: ProcessCDR(1,14714021,1,1,2) [2025-03-19 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714021', 'tblTempUsageDetail_20' ) start [2025-03-19 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714021', 'tblTempUsageDetail_20' ) end [2025-03-19 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:38:21] Production.INFO: ==30260== Releasing lock... [2025-03-19 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:39:05 [end_date_ymd] => 2025-03-19 07:39:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:39:05' and `end` < '2025-03-19 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-03-19 07:39:17] Production.INFO: count ==120 [2025-03-19 07:39:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:39:05 - End Time 2025-03-19 07:39:05 [2025-03-19 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714026', 'tblTempUsageDetail_20' ) start [2025-03-19 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714026', 'tblTempUsageDetail_20' ) end [2025-03-19 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714026', 'tblTempVendorCDR_20' ) start [2025-03-19 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714026', 'tblTempVendorCDR_20' ) end [2025-03-19 07:39:17] Production.INFO: ProcessCDR(1,14714026,1,1,2) [2025-03-19 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714026', 'tblTempUsageDetail_20' ) start [2025-03-19 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714026', 'tblTempUsageDetail_20' ) end [2025-03-19 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:39:20] Production.INFO: ==30329== Releasing lock... [2025-03-19 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:39:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:40:05 [end_date_ymd] => 2025-03-19 07:40:05 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:40:05' and `end` < '2025-03-19 07: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-03-19 07:40:18] Production.INFO: count ==115 [2025-03-19 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:40:05 - End Time 2025-03-19 07:40:05 [2025-03-19 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714031', 'tblTempUsageDetail_20' ) start [2025-03-19 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714031', 'tblTempUsageDetail_20' ) end [2025-03-19 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714031', 'tblTempVendorCDR_20' ) start [2025-03-19 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714031', 'tblTempVendorCDR_20' ) end [2025-03-19 07:40:18] Production.INFO: ProcessCDR(1,14714031,1,1,2) [2025-03-19 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714031', 'tblTempUsageDetail_20' ) start [2025-03-19 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714031', 'tblTempUsageDetail_20' ) end [2025-03-19 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:40:21] Production.INFO: ==30409== Releasing lock... [2025-03-19 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:40:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:41:05 [end_date_ymd] => 2025-03-19 07:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:41:05' and `end` < '2025-03-19 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-03-19 07:41:17] Production.INFO: count ==115 [2025-03-19 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:41:05 - End Time 2025-03-19 07:41:05 [2025-03-19 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714037', 'tblTempUsageDetail_20' ) start [2025-03-19 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714037', 'tblTempUsageDetail_20' ) end [2025-03-19 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714037', 'tblTempVendorCDR_20' ) start [2025-03-19 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714037', 'tblTempVendorCDR_20' ) end [2025-03-19 07:41:17] Production.INFO: ProcessCDR(1,14714037,1,1,2) [2025-03-19 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714037', 'tblTempUsageDetail_20' ) start [2025-03-19 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714037', 'tblTempUsageDetail_20' ) end [2025-03-19 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:41:20] Production.INFO: ==30499== Releasing lock... [2025-03-19 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:41:20] Production.INFO: 29 MB #Memory Used# [2025-03-19 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:42:05 [end_date_ymd] => 2025-03-19 07:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:42:05' and `end` < '2025-03-19 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-03-19 07:42:18] Production.INFO: count ==115 [2025-03-19 07:42:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:42:05 - End Time 2025-03-19 07:42:05 [2025-03-19 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714042', 'tblTempUsageDetail_20' ) start [2025-03-19 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714042', 'tblTempUsageDetail_20' ) end [2025-03-19 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714042', 'tblTempVendorCDR_20' ) start [2025-03-19 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714042', 'tblTempVendorCDR_20' ) end [2025-03-19 07:42:18] Production.INFO: ProcessCDR(1,14714042,1,1,2) [2025-03-19 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714042', 'tblTempUsageDetail_20' ) start [2025-03-19 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714042', 'tblTempUsageDetail_20' ) end [2025-03-19 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:42:21] Production.INFO: ==30617== Releasing lock... [2025-03-19 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:42:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:43:05 [end_date_ymd] => 2025-03-19 07:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:43:05' and `end` < '2025-03-19 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-03-19 07:43:17] Production.INFO: count ==114 [2025-03-19 07:43:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:43:05 - End Time 2025-03-19 07:43:05 [2025-03-19 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714047', 'tblTempUsageDetail_20' ) start [2025-03-19 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714047', 'tblTempUsageDetail_20' ) end [2025-03-19 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714047', 'tblTempVendorCDR_20' ) start [2025-03-19 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714047', 'tblTempVendorCDR_20' ) end [2025-03-19 07:43:17] Production.INFO: ProcessCDR(1,14714047,1,1,2) [2025-03-19 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714047', 'tblTempUsageDetail_20' ) start [2025-03-19 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714047', 'tblTempUsageDetail_20' ) end [2025-03-19 07:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:43:20] Production.INFO: ==30693== Releasing lock... [2025-03-19 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:43:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:44:05 [end_date_ymd] => 2025-03-19 07:44:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:44:05' and `end` < '2025-03-19 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-03-19 07:44:17] Production.INFO: count ==114 [2025-03-19 07:44:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:44:05 - End Time 2025-03-19 07:44:05 [2025-03-19 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714052', 'tblTempUsageDetail_20' ) start [2025-03-19 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714052', 'tblTempUsageDetail_20' ) end [2025-03-19 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714052', 'tblTempVendorCDR_20' ) start [2025-03-19 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714052', 'tblTempVendorCDR_20' ) end [2025-03-19 07:44:17] Production.INFO: ProcessCDR(1,14714052,1,1,2) [2025-03-19 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714052', 'tblTempUsageDetail_20' ) start [2025-03-19 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714052', 'tblTempUsageDetail_20' ) end [2025-03-19 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:44:20] Production.INFO: ==30770== Releasing lock... [2025-03-19 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:44:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:45:04 [end_date_ymd] => 2025-03-19 07:45:04 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:45:04' and `end` < '2025-03-19 07: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-03-19 07:45:17] Production.INFO: count ==114 [2025-03-19 07:45:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:45:04 - End Time 2025-03-19 07:45:04 [2025-03-19 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714057', 'tblTempUsageDetail_20' ) start [2025-03-19 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714057', 'tblTempUsageDetail_20' ) end [2025-03-19 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714057', 'tblTempVendorCDR_20' ) start [2025-03-19 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714057', 'tblTempVendorCDR_20' ) end [2025-03-19 07:45:17] Production.INFO: ProcessCDR(1,14714057,1,1,2) [2025-03-19 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714057', 'tblTempUsageDetail_20' ) start [2025-03-19 07:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714057', 'tblTempUsageDetail_20' ) end [2025-03-19 07:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:45:20] Production.INFO: ==30847== Releasing lock... [2025-03-19 07:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:45:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-19 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:46:05 [end_date_ymd] => 2025-03-19 07:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:46:05' and `end` < '2025-03-19 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-03-19 07:46:18] Production.INFO: count ==117 [2025-03-19 07:46:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:46:05 - End Time 2025-03-19 07:46:05 [2025-03-19 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714062', 'tblTempUsageDetail_20' ) start [2025-03-19 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714062', 'tblTempUsageDetail_20' ) end [2025-03-19 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714062', 'tblTempVendorCDR_20' ) start [2025-03-19 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714062', 'tblTempVendorCDR_20' ) end [2025-03-19 07:46:18] Production.INFO: ProcessCDR(1,14714062,1,1,2) [2025-03-19 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714062', 'tblTempUsageDetail_20' ) start [2025-03-19 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714062', 'tblTempUsageDetail_20' ) end [2025-03-19 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:46:21] Production.INFO: ==30928== Releasing lock... [2025-03-19 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:46:21] Production.INFO: 29 MB #Memory Used# [2025-03-19 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:47:06 [end_date_ymd] => 2025-03-19 07:47:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:47:06' and `end` < '2025-03-19 07: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-03-19 07:47:18] Production.INFO: count ==134 [2025-03-19 07:47:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:47:06 - End Time 2025-03-19 07:47:06 [2025-03-19 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714067', 'tblTempUsageDetail_20' ) start [2025-03-19 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714067', 'tblTempUsageDetail_20' ) end [2025-03-19 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714067', 'tblTempVendorCDR_20' ) start [2025-03-19 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714067', 'tblTempVendorCDR_20' ) end [2025-03-19 07:47:18] Production.INFO: ProcessCDR(1,14714067,1,1,2) [2025-03-19 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714067', 'tblTempUsageDetail_20' ) start [2025-03-19 07:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714067', 'tblTempUsageDetail_20' ) end [2025-03-19 07:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:47:23] Production.INFO: ==31007== Releasing lock... [2025-03-19 07:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:47:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-19 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:48:05 [end_date_ymd] => 2025-03-19 07:48:05 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:48:05' and `end` < '2025-03-19 07: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-03-19 07:48:17] Production.INFO: count ==139 [2025-03-19 07:48:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:48:05 - End Time 2025-03-19 07:48:05 [2025-03-19 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714072', 'tblTempUsageDetail_20' ) start [2025-03-19 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714072', 'tblTempUsageDetail_20' ) end [2025-03-19 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714072', 'tblTempVendorCDR_20' ) start [2025-03-19 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714072', 'tblTempVendorCDR_20' ) end [2025-03-19 07:48:17] Production.INFO: ProcessCDR(1,14714072,1,1,2) [2025-03-19 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714072', 'tblTempUsageDetail_20' ) start [2025-03-19 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714072', 'tblTempUsageDetail_20' ) end [2025-03-19 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:48:22] Production.INFO: ==31080== Releasing lock... [2025-03-19 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:48:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:49:06 [end_date_ymd] => 2025-03-19 07:49:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:49:06' and `end` < '2025-03-19 07: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-03-19 07:49:18] Production.INFO: count ==137 [2025-03-19 07:49:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:49:06 - End Time 2025-03-19 07:49:06 [2025-03-19 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714077', 'tblTempUsageDetail_20' ) start [2025-03-19 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714077', 'tblTempUsageDetail_20' ) end [2025-03-19 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714077', 'tblTempVendorCDR_20' ) start [2025-03-19 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714077', 'tblTempVendorCDR_20' ) end [2025-03-19 07:49:18] Production.INFO: ProcessCDR(1,14714077,1,1,2) [2025-03-19 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714077', 'tblTempUsageDetail_20' ) start [2025-03-19 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714077', 'tblTempUsageDetail_20' ) end [2025-03-19 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:49:21] Production.INFO: ==31153== Releasing lock... [2025-03-19 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-19 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:50:06 [end_date_ymd] => 2025-03-19 07:50:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:50:06' and `end` < '2025-03-19 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-03-19 07:50:18] Production.INFO: count ==137 [2025-03-19 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:50:06 - End Time 2025-03-19 07:50:06 [2025-03-19 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714083', 'tblTempUsageDetail_20' ) start [2025-03-19 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714083', 'tblTempUsageDetail_20' ) end [2025-03-19 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714083', 'tblTempVendorCDR_20' ) start [2025-03-19 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714083', 'tblTempVendorCDR_20' ) end [2025-03-19 07:50:18] Production.INFO: ProcessCDR(1,14714083,1,1,2) [2025-03-19 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714083', 'tblTempUsageDetail_20' ) start [2025-03-19 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714083', 'tblTempUsageDetail_20' ) end [2025-03-19 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:50:21] Production.INFO: ==31231== Releasing lock... [2025-03-19 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:50:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-19 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:51:06 [end_date_ymd] => 2025-03-19 07:51:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:51:06' and `end` < '2025-03-19 07: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-03-19 07:51:18] Production.INFO: count ==134 [2025-03-19 07:51:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:51:06 - End Time 2025-03-19 07:51:06 [2025-03-19 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714088', 'tblTempUsageDetail_20' ) start [2025-03-19 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714088', 'tblTempUsageDetail_20' ) end [2025-03-19 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714088', 'tblTempVendorCDR_20' ) start [2025-03-19 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714088', 'tblTempVendorCDR_20' ) end [2025-03-19 07:51:18] Production.INFO: ProcessCDR(1,14714088,1,1,2) [2025-03-19 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714088', 'tblTempUsageDetail_20' ) start [2025-03-19 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714088', 'tblTempUsageDetail_20' ) end [2025-03-19 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:51:21] Production.INFO: ==31304== Releasing lock... [2025-03-19 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:52:05 [end_date_ymd] => 2025-03-19 07:52:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:52:05' and `end` < '2025-03-19 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-03-19 07:52:17] Production.INFO: count ==133 [2025-03-19 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:52:05 - End Time 2025-03-19 07:52:05 [2025-03-19 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714093', 'tblTempUsageDetail_20' ) start [2025-03-19 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714093', 'tblTempUsageDetail_20' ) end [2025-03-19 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714093', 'tblTempVendorCDR_20' ) start [2025-03-19 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714093', 'tblTempVendorCDR_20' ) end [2025-03-19 07:52:17] Production.INFO: ProcessCDR(1,14714093,1,1,2) [2025-03-19 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714093', 'tblTempUsageDetail_20' ) start [2025-03-19 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714093', 'tblTempUsageDetail_20' ) end [2025-03-19 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:52:21] Production.INFO: ==31377== Releasing lock... [2025-03-19 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:53:05 [end_date_ymd] => 2025-03-19 07:53:05 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:53:05' and `end` < '2025-03-19 07: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-03-19 07:53:17] Production.INFO: count ==132 [2025-03-19 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:53:05 - End Time 2025-03-19 07:53:05 [2025-03-19 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714098', 'tblTempUsageDetail_20' ) start [2025-03-19 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714098', 'tblTempUsageDetail_20' ) end [2025-03-19 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714098', 'tblTempVendorCDR_20' ) start [2025-03-19 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714098', 'tblTempVendorCDR_20' ) end [2025-03-19 07:53:17] Production.INFO: ProcessCDR(1,14714098,1,1,2) [2025-03-19 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714098', 'tblTempUsageDetail_20' ) start [2025-03-19 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714098', 'tblTempUsageDetail_20' ) end [2025-03-19 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:53:21] Production.INFO: ==31451== Releasing lock... [2025-03-19 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:54:05 [end_date_ymd] => 2025-03-19 07:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:54:05' and `end` < '2025-03-19 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-03-19 07:54:17] Production.INFO: count ==134 [2025-03-19 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:54:05 - End Time 2025-03-19 07:54:05 [2025-03-19 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714103', 'tblTempUsageDetail_20' ) start [2025-03-19 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714103', 'tblTempUsageDetail_20' ) end [2025-03-19 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714103', 'tblTempVendorCDR_20' ) start [2025-03-19 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714103', 'tblTempVendorCDR_20' ) end [2025-03-19 07:54:17] Production.INFO: ProcessCDR(1,14714103,1,1,2) [2025-03-19 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714103', 'tblTempUsageDetail_20' ) start [2025-03-19 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714103', 'tblTempUsageDetail_20' ) end [2025-03-19 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:54:21] Production.INFO: ==31522== Releasing lock... [2025-03-19 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:55:06 [end_date_ymd] => 2025-03-19 07:55:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:55:06' and `end` < '2025-03-19 07: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-03-19 07:55:18] Production.INFO: count ==134 [2025-03-19 07:55:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:55:06 - End Time 2025-03-19 07:55:06 [2025-03-19 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714108', 'tblTempUsageDetail_20' ) start [2025-03-19 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714108', 'tblTempUsageDetail_20' ) end [2025-03-19 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714108', 'tblTempVendorCDR_20' ) start [2025-03-19 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714108', 'tblTempVendorCDR_20' ) end [2025-03-19 07:55:18] Production.INFO: ProcessCDR(1,14714108,1,1,2) [2025-03-19 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714108', 'tblTempUsageDetail_20' ) start [2025-03-19 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714108', 'tblTempUsageDetail_20' ) end [2025-03-19 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:55:21] Production.INFO: ==31597== Releasing lock... [2025-03-19 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:56:05 [end_date_ymd] => 2025-03-19 07:56:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:56:05' and `end` < '2025-03-19 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-03-19 07:56:17] Production.INFO: count ==134 [2025-03-19 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-19 04:56:05 - End Time 2025-03-19 07:56:05 [2025-03-19 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714113', 'tblTempUsageDetail_20' ) start [2025-03-19 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714113', 'tblTempUsageDetail_20' ) end [2025-03-19 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714113', 'tblTempVendorCDR_20' ) start [2025-03-19 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714113', 'tblTempVendorCDR_20' ) end [2025-03-19 07:56:17] Production.INFO: ProcessCDR(1,14714113,1,1,2) [2025-03-19 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714113', 'tblTempUsageDetail_20' ) start [2025-03-19 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714113', 'tblTempUsageDetail_20' ) end [2025-03-19 07:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:56:20] Production.INFO: ==31678== Releasing lock... [2025-03-19 07:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:56:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:57:06 [end_date_ymd] => 2025-03-19 07:57:06 [RateCDR] => 1 ) [2025-03-19 07: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-03-19 04:57:06' and `end` < '2025-03-19 07: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-03-19 07:57:18] Production.INFO: count ==134 [2025-03-19 07:57:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:57:06 - End Time 2025-03-19 07:57:06 [2025-03-19 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714118', 'tblTempUsageDetail_20' ) start [2025-03-19 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714118', 'tblTempUsageDetail_20' ) end [2025-03-19 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714118', 'tblTempVendorCDR_20' ) start [2025-03-19 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714118', 'tblTempVendorCDR_20' ) end [2025-03-19 07:57:18] Production.INFO: ProcessCDR(1,14714118,1,1,2) [2025-03-19 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714118', 'tblTempUsageDetail_20' ) start [2025-03-19 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714118', 'tblTempUsageDetail_20' ) end [2025-03-19 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:57:22] Production.INFO: ==31796== Releasing lock... [2025-03-19 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:58:05 [end_date_ymd] => 2025-03-19 07:58:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:58:05' and `end` < '2025-03-19 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-03-19 07:58:18] Production.INFO: count ==134 [2025-03-19 07:58:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:58:05 - End Time 2025-03-19 07:58:05 [2025-03-19 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714123', 'tblTempUsageDetail_20' ) start [2025-03-19 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714123', 'tblTempUsageDetail_20' ) end [2025-03-19 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714123', 'tblTempVendorCDR_20' ) start [2025-03-19 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714123', 'tblTempVendorCDR_20' ) end [2025-03-19 07:58:18] Production.INFO: ProcessCDR(1,14714123,1,1,2) [2025-03-19 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714123', 'tblTempUsageDetail_20' ) start [2025-03-19 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714123', 'tblTempUsageDetail_20' ) end [2025-03-19 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:58:21] Production.INFO: ==31871== Releasing lock... [2025-03-19 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 04:59:05 [end_date_ymd] => 2025-03-19 07:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 04:59:05' and `end` < '2025-03-19 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-03-19 07:59:18] Production.INFO: count ==134 [2025-03-19 07:59:18] Production.ERROR: pbx CDR StartTime 2025-03-19 04:59:05 - End Time 2025-03-19 07:59:05 [2025-03-19 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714128', 'tblTempUsageDetail_20' ) start [2025-03-19 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714128', 'tblTempUsageDetail_20' ) end [2025-03-19 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714128', 'tblTempVendorCDR_20' ) start [2025-03-19 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714128', 'tblTempVendorCDR_20' ) end [2025-03-19 07:59:18] Production.INFO: ProcessCDR(1,14714128,1,1,2) [2025-03-19 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714128', 'tblTempUsageDetail_20' ) start [2025-03-19 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714128', 'tblTempUsageDetail_20' ) end [2025-03-19 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 07:59:21] Production.INFO: ==31946== Releasing lock... [2025-03-19 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 07:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:00:05 [end_date_ymd] => 2025-03-19 08:00:05 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:00:05' and `end` < '2025-03-19 08: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-03-19 08:00:18] Production.INFO: count ==142 [2025-03-19 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:00:05 - End Time 2025-03-19 08:00:05 [2025-03-19 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714133', 'tblTempUsageDetail_20' ) start [2025-03-19 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714133', 'tblTempUsageDetail_20' ) end [2025-03-19 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714133', 'tblTempVendorCDR_20' ) start [2025-03-19 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714133', 'tblTempVendorCDR_20' ) end [2025-03-19 08:00:18] Production.INFO: ProcessCDR(1,14714133,1,1,2) [2025-03-19 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714133', 'tblTempUsageDetail_20' ) start [2025-03-19 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714133', 'tblTempUsageDetail_20' ) end [2025-03-19 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:00:21] Production.INFO: ==32029== Releasing lock... [2025-03-19 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:00:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:01:05 [end_date_ymd] => 2025-03-19 08:01:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:01:05' and `end` < '2025-03-19 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-03-19 08:01:18] Production.INFO: count ==144 [2025-03-19 08:01:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:01:05 - End Time 2025-03-19 08:01:05 [2025-03-19 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714139', 'tblTempUsageDetail_20' ) start [2025-03-19 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714139', 'tblTempUsageDetail_20' ) end [2025-03-19 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714139', 'tblTempVendorCDR_20' ) start [2025-03-19 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714139', 'tblTempVendorCDR_20' ) end [2025-03-19 08:01:18] Production.INFO: ProcessCDR(1,14714139,1,1,2) [2025-03-19 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714139', 'tblTempUsageDetail_20' ) start [2025-03-19 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714139', 'tblTempUsageDetail_20' ) end [2025-03-19 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:01:21] Production.INFO: ==32116== Releasing lock... [2025-03-19 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:02:05 [end_date_ymd] => 2025-03-19 08:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:02:05' and `end` < '2025-03-19 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-03-19 08:02:17] Production.INFO: count ==141 [2025-03-19 08:02:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:02:05 - End Time 2025-03-19 08:02:05 [2025-03-19 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714144', 'tblTempUsageDetail_20' ) start [2025-03-19 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714144', 'tblTempUsageDetail_20' ) end [2025-03-19 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714144', 'tblTempVendorCDR_20' ) start [2025-03-19 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714144', 'tblTempVendorCDR_20' ) end [2025-03-19 08:02:17] Production.INFO: ProcessCDR(1,14714144,1,1,2) [2025-03-19 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714144', 'tblTempUsageDetail_20' ) start [2025-03-19 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714144', 'tblTempUsageDetail_20' ) end [2025-03-19 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:02:21] Production.INFO: ==32188== Releasing lock... [2025-03-19 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:02:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-19 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:03:05 [end_date_ymd] => 2025-03-19 08:03:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:03:05' and `end` < '2025-03-19 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-03-19 08:03:17] Production.INFO: count ==154 [2025-03-19 08:03:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:03:05 - End Time 2025-03-19 08:03:05 [2025-03-19 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714149', 'tblTempUsageDetail_20' ) start [2025-03-19 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714149', 'tblTempUsageDetail_20' ) end [2025-03-19 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714149', 'tblTempVendorCDR_20' ) start [2025-03-19 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714149', 'tblTempVendorCDR_20' ) end [2025-03-19 08:03:17] Production.INFO: ProcessCDR(1,14714149,1,1,2) [2025-03-19 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714149', 'tblTempUsageDetail_20' ) start [2025-03-19 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714149', 'tblTempUsageDetail_20' ) end [2025-03-19 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:03:22] Production.INFO: ==32262== Releasing lock... [2025-03-19 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-19 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:04:06 [end_date_ymd] => 2025-03-19 08:04:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:04:06' and `end` < '2025-03-19 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-03-19 08:04:18] Production.INFO: count ==171 [2025-03-19 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:04:06 - End Time 2025-03-19 08:04:06 [2025-03-19 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714154', 'tblTempUsageDetail_20' ) start [2025-03-19 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714154', 'tblTempUsageDetail_20' ) end [2025-03-19 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714154', 'tblTempVendorCDR_20' ) start [2025-03-19 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714154', 'tblTempVendorCDR_20' ) end [2025-03-19 08:04:18] Production.INFO: ProcessCDR(1,14714154,1,1,2) [2025-03-19 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714154', 'tblTempUsageDetail_20' ) start [2025-03-19 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714154', 'tblTempUsageDetail_20' ) end [2025-03-19 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:04:21] Production.INFO: ==32333== Releasing lock... [2025-03-19 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-19 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:05:05 [end_date_ymd] => 2025-03-19 08:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:05:05' and `end` < '2025-03-19 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-03-19 08:05:17] Production.INFO: count ==177 [2025-03-19 08:05:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:05:05 - End Time 2025-03-19 08:05:05 [2025-03-19 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714159', 'tblTempUsageDetail_20' ) start [2025-03-19 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714159', 'tblTempUsageDetail_20' ) end [2025-03-19 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714159', 'tblTempVendorCDR_20' ) start [2025-03-19 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714159', 'tblTempVendorCDR_20' ) end [2025-03-19 08:05:17] Production.INFO: ProcessCDR(1,14714159,1,1,2) [2025-03-19 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714159', 'tblTempUsageDetail_20' ) start [2025-03-19 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714159', 'tblTempUsageDetail_20' ) end [2025-03-19 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:05:21] Production.INFO: ==32406== Releasing lock... [2025-03-19 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:05:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-19 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:06:06 [end_date_ymd] => 2025-03-19 08:06:06 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:06:06' and `end` < '2025-03-19 08: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-03-19 08:06:18] Production.INFO: count ==174 [2025-03-19 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:06:06 - End Time 2025-03-19 08:06:06 [2025-03-19 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714164', 'tblTempUsageDetail_20' ) start [2025-03-19 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714164', 'tblTempUsageDetail_20' ) end [2025-03-19 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714164', 'tblTempVendorCDR_20' ) start [2025-03-19 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714164', 'tblTempVendorCDR_20' ) end [2025-03-19 08:06:18] Production.INFO: ProcessCDR(1,14714164,1,1,2) [2025-03-19 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714164', 'tblTempUsageDetail_20' ) start [2025-03-19 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714164', 'tblTempUsageDetail_20' ) end [2025-03-19 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:06:22] Production.INFO: ==32480== Releasing lock... [2025-03-19 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-19 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:07:05 [end_date_ymd] => 2025-03-19 08:07:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:07:05' and `end` < '2025-03-19 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-03-19 08:07:18] Production.INFO: count ==179 [2025-03-19 08:07:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:07:05 - End Time 2025-03-19 08:07:05 [2025-03-19 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714169', 'tblTempUsageDetail_20' ) start [2025-03-19 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714169', 'tblTempUsageDetail_20' ) end [2025-03-19 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714169', 'tblTempVendorCDR_20' ) start [2025-03-19 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714169', 'tblTempVendorCDR_20' ) end [2025-03-19 08:07:18] Production.INFO: ProcessCDR(1,14714169,1,1,2) [2025-03-19 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714169', 'tblTempUsageDetail_20' ) start [2025-03-19 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714169', 'tblTempUsageDetail_20' ) end [2025-03-19 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:07:21] Production.INFO: ==32554== Releasing lock... [2025-03-19 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:07:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-19 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:08:05 [end_date_ymd] => 2025-03-19 08:08:05 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:08:05' and `end` < '2025-03-19 08: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-03-19 08:08:18] Production.INFO: count ==179 [2025-03-19 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:08:05 - End Time 2025-03-19 08:08:05 [2025-03-19 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714174', 'tblTempUsageDetail_20' ) start [2025-03-19 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714174', 'tblTempUsageDetail_20' ) end [2025-03-19 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714174', 'tblTempVendorCDR_20' ) start [2025-03-19 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714174', 'tblTempVendorCDR_20' ) end [2025-03-19 08:08:18] Production.INFO: ProcessCDR(1,14714174,1,1,2) [2025-03-19 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714174', 'tblTempUsageDetail_20' ) start [2025-03-19 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714174', 'tblTempUsageDetail_20' ) end [2025-03-19 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:08:21] Production.INFO: ==32627== Releasing lock... [2025-03-19 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:08:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-19 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:09:05 [end_date_ymd] => 2025-03-19 08:09:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:09:05' and `end` < '2025-03-19 08: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-03-19 08:09:17] Production.INFO: count ==180 [2025-03-19 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:09:05 - End Time 2025-03-19 08:09:05 [2025-03-19 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714179', 'tblTempUsageDetail_20' ) start [2025-03-19 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714179', 'tblTempUsageDetail_20' ) end [2025-03-19 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714179', 'tblTempVendorCDR_20' ) start [2025-03-19 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714179', 'tblTempVendorCDR_20' ) end [2025-03-19 08:09:17] Production.INFO: ProcessCDR(1,14714179,1,1,2) [2025-03-19 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714179', 'tblTempUsageDetail_20' ) start [2025-03-19 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714179', 'tblTempUsageDetail_20' ) end [2025-03-19 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:09:21] Production.INFO: ==32709== Releasing lock... [2025-03-19 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:09:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-19 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:10:06 [end_date_ymd] => 2025-03-19 08:10:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:10:06' and `end` < '2025-03-19 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-03-19 08:10:18] Production.INFO: count ==183 [2025-03-19 08:10:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:10:06 - End Time 2025-03-19 08:10:06 [2025-03-19 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714185', 'tblTempUsageDetail_20' ) start [2025-03-19 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714185', 'tblTempUsageDetail_20' ) end [2025-03-19 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714185', 'tblTempVendorCDR_20' ) start [2025-03-19 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714185', 'tblTempVendorCDR_20' ) end [2025-03-19 08:10:18] Production.INFO: ProcessCDR(1,14714185,1,1,2) [2025-03-19 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714185', 'tblTempUsageDetail_20' ) start [2025-03-19 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714185', 'tblTempUsageDetail_20' ) end [2025-03-19 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:10:22] Production.INFO: ==330== Releasing lock... [2025-03-19 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-19 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:11:05 [end_date_ymd] => 2025-03-19 08:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:11:05' and `end` < '2025-03-19 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-03-19 08:11:17] Production.INFO: count ==202 [2025-03-19 08:11:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:11:05 - End Time 2025-03-19 08:11:05 [2025-03-19 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714190', 'tblTempUsageDetail_20' ) start [2025-03-19 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714190', 'tblTempUsageDetail_20' ) end [2025-03-19 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714190', 'tblTempVendorCDR_20' ) start [2025-03-19 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714190', 'tblTempVendorCDR_20' ) end [2025-03-19 08:11:17] Production.INFO: ProcessCDR(1,14714190,1,1,2) [2025-03-19 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714190', 'tblTempUsageDetail_20' ) start [2025-03-19 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714190', 'tblTempUsageDetail_20' ) end [2025-03-19 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:11:23] Production.INFO: ==415== Releasing lock... [2025-03-19 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:11:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-19 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:12:06 [end_date_ymd] => 2025-03-19 08:12:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:12:06' and `end` < '2025-03-19 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-03-19 08:12:18] Production.INFO: count ==206 [2025-03-19 08:12:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:12:06 - End Time 2025-03-19 08:12:06 [2025-03-19 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714195', 'tblTempUsageDetail_20' ) start [2025-03-19 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714195', 'tblTempUsageDetail_20' ) end [2025-03-19 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714195', 'tblTempVendorCDR_20' ) start [2025-03-19 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714195', 'tblTempVendorCDR_20' ) end [2025-03-19 08:12:18] Production.INFO: ProcessCDR(1,14714195,1,1,2) [2025-03-19 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714195', 'tblTempUsageDetail_20' ) start [2025-03-19 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714195', 'tblTempUsageDetail_20' ) end [2025-03-19 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:12:22] Production.INFO: ==490== Releasing lock... [2025-03-19 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:12:22] Production.INFO: 30 MB #Memory Used# [2025-03-19 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:13:05 [end_date_ymd] => 2025-03-19 08:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:13:05' and `end` < '2025-03-19 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-03-19 08:13:17] Production.INFO: count ==207 [2025-03-19 08:13:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:13:05 - End Time 2025-03-19 08:13:05 [2025-03-19 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714200', 'tblTempUsageDetail_20' ) start [2025-03-19 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714200', 'tblTempUsageDetail_20' ) end [2025-03-19 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714200', 'tblTempVendorCDR_20' ) start [2025-03-19 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714200', 'tblTempVendorCDR_20' ) end [2025-03-19 08:13:18] Production.INFO: ProcessCDR(1,14714200,1,1,2) [2025-03-19 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714200', 'tblTempUsageDetail_20' ) start [2025-03-19 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714200', 'tblTempUsageDetail_20' ) end [2025-03-19 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:13:23] Production.INFO: ==608== Releasing lock... [2025-03-19 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:13:23] Production.INFO: 30 MB #Memory Used# [2025-03-19 08:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:14:06 [end_date_ymd] => 2025-03-19 08:14:06 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:14:06' and `end` < '2025-03-19 08: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-03-19 08:14:18] Production.INFO: count ==213 [2025-03-19 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:14:06 - End Time 2025-03-19 08:14:06 [2025-03-19 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714205', 'tblTempUsageDetail_20' ) start [2025-03-19 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714205', 'tblTempUsageDetail_20' ) end [2025-03-19 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714205', 'tblTempVendorCDR_20' ) start [2025-03-19 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714205', 'tblTempVendorCDR_20' ) end [2025-03-19 08:14:18] Production.INFO: ProcessCDR(1,14714205,1,1,2) [2025-03-19 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714205', 'tblTempUsageDetail_20' ) start [2025-03-19 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714205', 'tblTempUsageDetail_20' ) end [2025-03-19 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:14:22] Production.INFO: ==705== Releasing lock... [2025-03-19 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:14:22] Production.INFO: 30 MB #Memory Used# [2025-03-19 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:15:05 [end_date_ymd] => 2025-03-19 08:15:05 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:15:05' and `end` < '2025-03-19 08: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-03-19 08:15:17] Production.INFO: count ==228 [2025-03-19 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:15:05 - End Time 2025-03-19 08:15:05 [2025-03-19 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714210', 'tblTempUsageDetail_20' ) start [2025-03-19 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714210', 'tblTempUsageDetail_20' ) end [2025-03-19 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714210', 'tblTempVendorCDR_20' ) start [2025-03-19 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714210', 'tblTempVendorCDR_20' ) end [2025-03-19 08:15:17] Production.INFO: ProcessCDR(1,14714210,1,1,2) [2025-03-19 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714210', 'tblTempUsageDetail_20' ) start [2025-03-19 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714210', 'tblTempUsageDetail_20' ) end [2025-03-19 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:15:21] Production.INFO: ==790== Releasing lock... [2025-03-19 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:15:21] Production.INFO: 30 MB #Memory Used# [2025-03-19 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:16:06 [end_date_ymd] => 2025-03-19 08:16:06 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:16:06' and `end` < '2025-03-19 08: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-03-19 08:16:18] Production.INFO: count ==235 [2025-03-19 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:16:06 - End Time 2025-03-19 08:16:06 [2025-03-19 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714215', 'tblTempUsageDetail_20' ) start [2025-03-19 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714215', 'tblTempUsageDetail_20' ) end [2025-03-19 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714215', 'tblTempVendorCDR_20' ) start [2025-03-19 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714215', 'tblTempVendorCDR_20' ) end [2025-03-19 08:16:18] Production.INFO: ProcessCDR(1,14714215,1,1,2) [2025-03-19 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714215', 'tblTempUsageDetail_20' ) start [2025-03-19 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714215', 'tblTempUsageDetail_20' ) end [2025-03-19 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:16:23] Production.INFO: ==868== Releasing lock... [2025-03-19 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:16:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:17:05 [end_date_ymd] => 2025-03-19 08:17:05 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:17:05' and `end` < '2025-03-19 08: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-03-19 08:17:17] Production.INFO: count ==236 [2025-03-19 08:17:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:17:05 - End Time 2025-03-19 08:17:05 [2025-03-19 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714220', 'tblTempUsageDetail_20' ) start [2025-03-19 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714220', 'tblTempUsageDetail_20' ) end [2025-03-19 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714220', 'tblTempVendorCDR_20' ) start [2025-03-19 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714220', 'tblTempVendorCDR_20' ) end [2025-03-19 08:17:17] Production.INFO: ProcessCDR(1,14714220,1,1,2) [2025-03-19 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714220', 'tblTempUsageDetail_20' ) start [2025-03-19 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714220', 'tblTempUsageDetail_20' ) end [2025-03-19 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:17:21] Production.INFO: ==944== Releasing lock... [2025-03-19 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:17:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:18:05 [end_date_ymd] => 2025-03-19 08:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:18:05' and `end` < '2025-03-19 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-03-19 08:18:18] Production.INFO: count ==237 [2025-03-19 08:18:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:18:05 - End Time 2025-03-19 08:18:05 [2025-03-19 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714225', 'tblTempUsageDetail_20' ) start [2025-03-19 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714225', 'tblTempUsageDetail_20' ) end [2025-03-19 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714225', 'tblTempVendorCDR_20' ) start [2025-03-19 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714225', 'tblTempVendorCDR_20' ) end [2025-03-19 08:18:18] Production.INFO: ProcessCDR(1,14714225,1,1,2) [2025-03-19 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714225', 'tblTempUsageDetail_20' ) start [2025-03-19 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714225', 'tblTempUsageDetail_20' ) end [2025-03-19 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:18:21] Production.INFO: ==1019== Releasing lock... [2025-03-19 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:19:05 [end_date_ymd] => 2025-03-19 08:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:19:05' and `end` < '2025-03-19 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-03-19 08:19:17] Production.INFO: count ==239 [2025-03-19 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:19:05 - End Time 2025-03-19 08:19:05 [2025-03-19 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714230', 'tblTempUsageDetail_20' ) start [2025-03-19 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714230', 'tblTempUsageDetail_20' ) end [2025-03-19 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714230', 'tblTempVendorCDR_20' ) start [2025-03-19 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714230', 'tblTempVendorCDR_20' ) end [2025-03-19 08:19:17] Production.INFO: ProcessCDR(1,14714230,1,1,2) [2025-03-19 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714230', 'tblTempUsageDetail_20' ) start [2025-03-19 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714230', 'tblTempUsageDetail_20' ) end [2025-03-19 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:19:22] Production.INFO: ==1092== Releasing lock... [2025-03-19 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:19:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-19 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:20:06 [end_date_ymd] => 2025-03-19 08:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:20:06' and `end` < '2025-03-19 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-03-19 08:20:18] Production.INFO: count ==256 [2025-03-19 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:20:06 - End Time 2025-03-19 08:20:06 [2025-03-19 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714236', 'tblTempUsageDetail_20' ) start [2025-03-19 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714236', 'tblTempUsageDetail_20' ) end [2025-03-19 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714236', 'tblTempVendorCDR_20' ) start [2025-03-19 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714236', 'tblTempVendorCDR_20' ) end [2025-03-19 08:20:18] Production.INFO: ProcessCDR(1,14714236,1,1,2) [2025-03-19 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714236', 'tblTempUsageDetail_20' ) start [2025-03-19 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714236', 'tblTempUsageDetail_20' ) end [2025-03-19 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:20:23] Production.INFO: ==1172== Releasing lock... [2025-03-19 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:20:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:21:05 [end_date_ymd] => 2025-03-19 08:21:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:21:05' and `end` < '2025-03-19 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-03-19 08:21:18] Production.INFO: count ==285 [2025-03-19 08:21:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:21:05 - End Time 2025-03-19 08:21:05 [2025-03-19 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714241', 'tblTempUsageDetail_20' ) start [2025-03-19 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714241', 'tblTempUsageDetail_20' ) end [2025-03-19 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714241', 'tblTempVendorCDR_20' ) start [2025-03-19 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714241', 'tblTempVendorCDR_20' ) end [2025-03-19 08:21:18] Production.INFO: ProcessCDR(1,14714241,1,1,2) [2025-03-19 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714241', 'tblTempUsageDetail_20' ) start [2025-03-19 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714241', 'tblTempUsageDetail_20' ) end [2025-03-19 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:21:21] Production.INFO: ==1254== Releasing lock... [2025-03-19 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:21:21] Production.INFO: 31 MB #Memory Used# [2025-03-19 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:22:06 [end_date_ymd] => 2025-03-19 08:22:06 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:22:06' and `end` < '2025-03-19 08: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-03-19 08:22:18] Production.INFO: count ==292 [2025-03-19 08:22:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:22:06 - End Time 2025-03-19 08:22:06 [2025-03-19 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714246', 'tblTempUsageDetail_20' ) start [2025-03-19 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714246', 'tblTempUsageDetail_20' ) end [2025-03-19 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714246', 'tblTempVendorCDR_20' ) start [2025-03-19 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714246', 'tblTempVendorCDR_20' ) end [2025-03-19 08:22:18] Production.INFO: ProcessCDR(1,14714246,1,1,2) [2025-03-19 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714246', 'tblTempUsageDetail_20' ) start [2025-03-19 08:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714246', 'tblTempUsageDetail_20' ) end [2025-03-19 08:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:22:24] Production.INFO: ==1331== Releasing lock... [2025-03-19 08:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:22:24] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:23:05 [end_date_ymd] => 2025-03-19 08:23:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:23:05' and `end` < '2025-03-19 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-03-19 08:23:17] Production.INFO: count ==298 [2025-03-19 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:23:05 - End Time 2025-03-19 08:23:05 [2025-03-19 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714251', 'tblTempUsageDetail_20' ) start [2025-03-19 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714251', 'tblTempUsageDetail_20' ) end [2025-03-19 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714251', 'tblTempVendorCDR_20' ) start [2025-03-19 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714251', 'tblTempVendorCDR_20' ) end [2025-03-19 08:23:17] Production.INFO: ProcessCDR(1,14714251,1,1,2) [2025-03-19 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714251', 'tblTempUsageDetail_20' ) start [2025-03-19 08:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714251', 'tblTempUsageDetail_20' ) end [2025-03-19 08:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:23:23] Production.INFO: ==1410== Releasing lock... [2025-03-19 08:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:23:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-19 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:24:06 [end_date_ymd] => 2025-03-19 08:24:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:24:06' and `end` < '2025-03-19 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-03-19 08:24:18] Production.INFO: count ==301 [2025-03-19 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:24:06 - End Time 2025-03-19 08:24:06 [2025-03-19 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714256', 'tblTempUsageDetail_20' ) start [2025-03-19 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714256', 'tblTempUsageDetail_20' ) end [2025-03-19 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714256', 'tblTempVendorCDR_20' ) start [2025-03-19 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714256', 'tblTempVendorCDR_20' ) end [2025-03-19 08:24:18] Production.INFO: ProcessCDR(1,14714256,1,1,2) [2025-03-19 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714256', 'tblTempUsageDetail_20' ) start [2025-03-19 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714256', 'tblTempUsageDetail_20' ) end [2025-03-19 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:24:23] Production.INFO: ==1489== Releasing lock... [2025-03-19 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:24:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-19 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:25:05 [end_date_ymd] => 2025-03-19 08:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:25:05' and `end` < '2025-03-19 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-03-19 08:25:17] Production.INFO: count ==312 [2025-03-19 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:25:05 - End Time 2025-03-19 08:25:05 [2025-03-19 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714261', 'tblTempUsageDetail_20' ) start [2025-03-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714261', 'tblTempUsageDetail_20' ) end [2025-03-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714261', 'tblTempVendorCDR_20' ) start [2025-03-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714261', 'tblTempVendorCDR_20' ) end [2025-03-19 08:25:17] Production.INFO: ProcessCDR(1,14714261,1,1,2) [2025-03-19 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714261', 'tblTempUsageDetail_20' ) start [2025-03-19 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714261', 'tblTempUsageDetail_20' ) end [2025-03-19 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:25:21] Production.INFO: ==1598== Releasing lock... [2025-03-19 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:25:21] Production.INFO: 31 MB #Memory Used# [2025-03-19 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:26:05 [end_date_ymd] => 2025-03-19 08:26:05 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:26:05' and `end` < '2025-03-19 08: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-03-19 08:26:17] Production.INFO: count ==322 [2025-03-19 08:26:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:26:05 - End Time 2025-03-19 08:26:05 [2025-03-19 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714266', 'tblTempUsageDetail_20' ) start [2025-03-19 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714266', 'tblTempUsageDetail_20' ) end [2025-03-19 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714266', 'tblTempVendorCDR_20' ) start [2025-03-19 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714266', 'tblTempVendorCDR_20' ) end [2025-03-19 08:26:17] Production.INFO: ProcessCDR(1,14714266,1,1,2) [2025-03-19 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714266', 'tblTempUsageDetail_20' ) start [2025-03-19 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714266', 'tblTempUsageDetail_20' ) end [2025-03-19 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:26:21] Production.INFO: ==1672== Releasing lock... [2025-03-19 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:27:06 [end_date_ymd] => 2025-03-19 08:27:06 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:27:06' and `end` < '2025-03-19 08: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-03-19 08:27:18] Production.INFO: count ==327 [2025-03-19 08:27:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:27:06 - End Time 2025-03-19 08:27:06 [2025-03-19 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714271', 'tblTempUsageDetail_20' ) start [2025-03-19 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714271', 'tblTempUsageDetail_20' ) end [2025-03-19 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714271', 'tblTempVendorCDR_20' ) start [2025-03-19 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714271', 'tblTempVendorCDR_20' ) end [2025-03-19 08:27:18] Production.INFO: ProcessCDR(1,14714271,1,1,2) [2025-03-19 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714271', 'tblTempUsageDetail_20' ) start [2025-03-19 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714271', 'tblTempUsageDetail_20' ) end [2025-03-19 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:27:23] Production.INFO: ==1745== Releasing lock... [2025-03-19 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:27:23] Production.INFO: 31 MB #Memory Used# [2025-03-19 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:28:05 [end_date_ymd] => 2025-03-19 08:28:05 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:28:05' and `end` < '2025-03-19 08: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-03-19 08:28:17] Production.INFO: count ==327 [2025-03-19 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:28:05 - End Time 2025-03-19 08:28:05 [2025-03-19 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714276', 'tblTempUsageDetail_20' ) start [2025-03-19 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714276', 'tblTempUsageDetail_20' ) end [2025-03-19 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714276', 'tblTempVendorCDR_20' ) start [2025-03-19 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714276', 'tblTempVendorCDR_20' ) end [2025-03-19 08:28:17] Production.INFO: ProcessCDR(1,14714276,1,1,2) [2025-03-19 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714276', 'tblTempUsageDetail_20' ) start [2025-03-19 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714276', 'tblTempUsageDetail_20' ) end [2025-03-19 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:28:21] Production.INFO: ==1860== Releasing lock... [2025-03-19 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:28:21] Production.INFO: 31 MB #Memory Used# [2025-03-19 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:29:06 [end_date_ymd] => 2025-03-19 08:29:06 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:29:06' and `end` < '2025-03-19 08: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-03-19 08:29:18] Production.INFO: count ==332 [2025-03-19 08:29:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:29:06 - End Time 2025-03-19 08:29:06 [2025-03-19 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714281', 'tblTempUsageDetail_20' ) start [2025-03-19 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714281', 'tblTempUsageDetail_20' ) end [2025-03-19 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714281', 'tblTempVendorCDR_20' ) start [2025-03-19 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714281', 'tblTempVendorCDR_20' ) end [2025-03-19 08:29:18] Production.INFO: ProcessCDR(1,14714281,1,1,2) [2025-03-19 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714281', 'tblTempUsageDetail_20' ) start [2025-03-19 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714281', 'tblTempUsageDetail_20' ) end [2025-03-19 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:29:22] Production.INFO: ==1934== Releasing lock... [2025-03-19 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:29:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-19 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:30:06 [end_date_ymd] => 2025-03-19 08:30:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:30:06' and `end` < '2025-03-19 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-03-19 08:30:18] Production.INFO: count ==355 [2025-03-19 08:30:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:30:06 - End Time 2025-03-19 08:30:06 [2025-03-19 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714287', 'tblTempUsageDetail_20' ) start [2025-03-19 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714287', 'tblTempUsageDetail_20' ) end [2025-03-19 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714287', 'tblTempVendorCDR_20' ) start [2025-03-19 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714287', 'tblTempVendorCDR_20' ) end [2025-03-19 08:30:18] Production.INFO: ProcessCDR(1,14714287,1,1,2) [2025-03-19 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714287', 'tblTempUsageDetail_20' ) start [2025-03-19 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714287', 'tblTempUsageDetail_20' ) end [2025-03-19 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:30:22] Production.INFO: ==2016== Releasing lock... [2025-03-19 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:30:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:31:05 [end_date_ymd] => 2025-03-19 08:31:05 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:31:05' and `end` < '2025-03-19 08: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-03-19 08:31:18] Production.INFO: count ==380 [2025-03-19 08:31:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:31:05 - End Time 2025-03-19 08:31:05 [2025-03-19 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714292', 'tblTempUsageDetail_20' ) start [2025-03-19 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714292', 'tblTempUsageDetail_20' ) end [2025-03-19 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714292', 'tblTempVendorCDR_20' ) start [2025-03-19 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714292', 'tblTempVendorCDR_20' ) end [2025-03-19 08:31:18] Production.INFO: ProcessCDR(1,14714292,1,1,2) [2025-03-19 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714292', 'tblTempUsageDetail_20' ) start [2025-03-19 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714292', 'tblTempUsageDetail_20' ) end [2025-03-19 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:31:21] Production.INFO: ==2099== Releasing lock... [2025-03-19 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:31:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:32:05 [end_date_ymd] => 2025-03-19 08:32:05 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:32:05' and `end` < '2025-03-19 08: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-03-19 08:32:17] Production.INFO: count ==382 [2025-03-19 08:32:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:32:05 - End Time 2025-03-19 08:32:05 [2025-03-19 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714297', 'tblTempUsageDetail_20' ) start [2025-03-19 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714297', 'tblTempUsageDetail_20' ) end [2025-03-19 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714297', 'tblTempVendorCDR_20' ) start [2025-03-19 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714297', 'tblTempVendorCDR_20' ) end [2025-03-19 08:32:17] Production.INFO: ProcessCDR(1,14714297,1,1,2) [2025-03-19 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714297', 'tblTempUsageDetail_20' ) start [2025-03-19 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714297', 'tblTempUsageDetail_20' ) end [2025-03-19 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:32:22] Production.INFO: ==2172== Releasing lock... [2025-03-19 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:32:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:33:05 [end_date_ymd] => 2025-03-19 08:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:33:05' and `end` < '2025-03-19 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-03-19 08:33:18] Production.INFO: count ==386 [2025-03-19 08:33:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:33:05 - End Time 2025-03-19 08:33:05 [2025-03-19 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714302', 'tblTempUsageDetail_20' ) start [2025-03-19 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714302', 'tblTempUsageDetail_20' ) end [2025-03-19 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714302', 'tblTempVendorCDR_20' ) start [2025-03-19 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714302', 'tblTempVendorCDR_20' ) end [2025-03-19 08:33:18] Production.INFO: ProcessCDR(1,14714302,1,1,2) [2025-03-19 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714302', 'tblTempUsageDetail_20' ) start [2025-03-19 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714302', 'tblTempUsageDetail_20' ) end [2025-03-19 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:33:23] Production.INFO: ==2249== Releasing lock... [2025-03-19 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:33:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-19 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:34:05 [end_date_ymd] => 2025-03-19 08:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:34:05' and `end` < '2025-03-19 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-03-19 08:34:18] Production.INFO: count ==409 [2025-03-19 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:34:05 - End Time 2025-03-19 08:34:05 [2025-03-19 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714307', 'tblTempUsageDetail_20' ) start [2025-03-19 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714307', 'tblTempUsageDetail_20' ) end [2025-03-19 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714307', 'tblTempVendorCDR_20' ) start [2025-03-19 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714307', 'tblTempVendorCDR_20' ) end [2025-03-19 08:34:18] Production.INFO: ProcessCDR(1,14714307,1,1,2) [2025-03-19 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714307', 'tblTempUsageDetail_20' ) start [2025-03-19 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714307', 'tblTempUsageDetail_20' ) end [2025-03-19 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:34:23] Production.INFO: ==2320== Releasing lock... [2025-03-19 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:34:23] Production.INFO: 31 MB #Memory Used# [2025-03-19 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:35:06 [end_date_ymd] => 2025-03-19 08:35:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:35:06' and `end` < '2025-03-19 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-03-19 08:35:18] Production.INFO: count ==411 [2025-03-19 08:35:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:35:06 - End Time 2025-03-19 08:35:06 [2025-03-19 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714312', 'tblTempUsageDetail_20' ) start [2025-03-19 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714312', 'tblTempUsageDetail_20' ) end [2025-03-19 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714312', 'tblTempVendorCDR_20' ) start [2025-03-19 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714312', 'tblTempVendorCDR_20' ) end [2025-03-19 08:35:18] Production.INFO: ProcessCDR(1,14714312,1,1,2) [2025-03-19 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714312', 'tblTempUsageDetail_20' ) start [2025-03-19 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714312', 'tblTempUsageDetail_20' ) end [2025-03-19 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:35:23] Production.INFO: ==2392== Releasing lock... [2025-03-19 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:35:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:36:05 [end_date_ymd] => 2025-03-19 08:36:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:36:05' and `end` < '2025-03-19 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-03-19 08:36:17] Production.INFO: count ==419 [2025-03-19 08:36:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:36:05 - End Time 2025-03-19 08:36:05 [2025-03-19 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714317', 'tblTempUsageDetail_20' ) start [2025-03-19 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714317', 'tblTempUsageDetail_20' ) end [2025-03-19 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714317', 'tblTempVendorCDR_20' ) start [2025-03-19 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714317', 'tblTempVendorCDR_20' ) end [2025-03-19 08:36:17] Production.INFO: ProcessCDR(1,14714317,1,1,2) [2025-03-19 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714317', 'tblTempUsageDetail_20' ) start [2025-03-19 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714317', 'tblTempUsageDetail_20' ) end [2025-03-19 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:36:21] Production.INFO: ==2472== Releasing lock... [2025-03-19 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:36:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:37:05 [end_date_ymd] => 2025-03-19 08:37:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:37:05' and `end` < '2025-03-19 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-03-19 08:37:17] Production.INFO: count ==427 [2025-03-19 08:37:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:37:05 - End Time 2025-03-19 08:37:05 [2025-03-19 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714322', 'tblTempUsageDetail_20' ) start [2025-03-19 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714322', 'tblTempUsageDetail_20' ) end [2025-03-19 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714322', 'tblTempVendorCDR_20' ) start [2025-03-19 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714322', 'tblTempVendorCDR_20' ) end [2025-03-19 08:37:18] Production.INFO: ProcessCDR(1,14714322,1,1,2) [2025-03-19 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714322', 'tblTempUsageDetail_20' ) start [2025-03-19 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714322', 'tblTempUsageDetail_20' ) end [2025-03-19 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:37:22] Production.INFO: ==2548== Releasing lock... [2025-03-19 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:37:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:38:05 [end_date_ymd] => 2025-03-19 08:38:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:38:05' and `end` < '2025-03-19 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-03-19 08:38:17] Production.INFO: count ==427 [2025-03-19 08:38:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:38:05 - End Time 2025-03-19 08:38:05 [2025-03-19 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714327', 'tblTempUsageDetail_20' ) start [2025-03-19 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714327', 'tblTempUsageDetail_20' ) end [2025-03-19 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714327', 'tblTempVendorCDR_20' ) start [2025-03-19 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714327', 'tblTempVendorCDR_20' ) end [2025-03-19 08:38:17] Production.INFO: ProcessCDR(1,14714327,1,1,2) [2025-03-19 08:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714327', 'tblTempUsageDetail_20' ) start [2025-03-19 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714327', 'tblTempUsageDetail_20' ) end [2025-03-19 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:38:21] Production.INFO: ==2629== Releasing lock... [2025-03-19 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:38:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:39:05 [end_date_ymd] => 2025-03-19 08:39:05 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:39:05' and `end` < '2025-03-19 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-03-19 08:39:17] Production.INFO: count ==435 [2025-03-19 08:39:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:39:05 - End Time 2025-03-19 08:39:05 [2025-03-19 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714332', 'tblTempUsageDetail_20' ) start [2025-03-19 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714332', 'tblTempUsageDetail_20' ) end [2025-03-19 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714332', 'tblTempVendorCDR_20' ) start [2025-03-19 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714332', 'tblTempVendorCDR_20' ) end [2025-03-19 08:39:17] Production.INFO: ProcessCDR(1,14714332,1,1,2) [2025-03-19 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714332', 'tblTempUsageDetail_20' ) start [2025-03-19 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714332', 'tblTempUsageDetail_20' ) end [2025-03-19 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:39:21] Production.INFO: ==2703== Releasing lock... [2025-03-19 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:39:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-19 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:40:06 [end_date_ymd] => 2025-03-19 08:40:06 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:40:06' and `end` < '2025-03-19 08: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-03-19 08:40:18] Production.INFO: count ==453 [2025-03-19 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:40:06 - End Time 2025-03-19 08:40:06 [2025-03-19 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714337', 'tblTempUsageDetail_20' ) start [2025-03-19 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714337', 'tblTempUsageDetail_20' ) end [2025-03-19 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714337', 'tblTempVendorCDR_20' ) start [2025-03-19 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714337', 'tblTempVendorCDR_20' ) end [2025-03-19 08:40:18] Production.INFO: ProcessCDR(1,14714337,1,1,2) [2025-03-19 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714337', 'tblTempUsageDetail_20' ) start [2025-03-19 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714337', 'tblTempUsageDetail_20' ) end [2025-03-19 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:40:23] Production.INFO: ==2780== Releasing lock... [2025-03-19 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:40:23] Production.INFO: 32 MB #Memory Used# [2025-03-19 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:41:05 [end_date_ymd] => 2025-03-19 08:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:41:05' and `end` < '2025-03-19 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-03-19 08:41:17] Production.INFO: count ==501 [2025-03-19 08:41:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:41:05 - End Time 2025-03-19 08:41:05 [2025-03-19 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714343', 'tblTempUsageDetail_20' ) start [2025-03-19 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714343', 'tblTempUsageDetail_20' ) end [2025-03-19 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714343', 'tblTempVendorCDR_20' ) start [2025-03-19 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714343', 'tblTempVendorCDR_20' ) end [2025-03-19 08:41:17] Production.INFO: ProcessCDR(1,14714343,1,1,2) [2025-03-19 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714343', 'tblTempUsageDetail_20' ) start [2025-03-19 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714343', 'tblTempUsageDetail_20' ) end [2025-03-19 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:41:22] Production.INFO: ==2855== Releasing lock... [2025-03-19 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:41:22] Production.INFO: 32 MB #Memory Used# [2025-03-19 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:42:05 [end_date_ymd] => 2025-03-19 08:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:42:05' and `end` < '2025-03-19 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-03-19 08:42:18] Production.INFO: count ==510 [2025-03-19 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:42:05 - End Time 2025-03-19 08:42:05 [2025-03-19 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714348', 'tblTempUsageDetail_20' ) start [2025-03-19 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714348', 'tblTempUsageDetail_20' ) end [2025-03-19 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714348', 'tblTempVendorCDR_20' ) start [2025-03-19 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714348', 'tblTempVendorCDR_20' ) end [2025-03-19 08:42:18] Production.INFO: ProcessCDR(1,14714348,1,1,2) [2025-03-19 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714348', 'tblTempUsageDetail_20' ) start [2025-03-19 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714348', 'tblTempUsageDetail_20' ) end [2025-03-19 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:42:23] Production.INFO: ==2926== Releasing lock... [2025-03-19 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:42:23] Production.INFO: 33 MB #Memory Used# [2025-03-19 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:43:05 [end_date_ymd] => 2025-03-19 08:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:43:05' and `end` < '2025-03-19 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-03-19 08:43:17] Production.INFO: count ==518 [2025-03-19 08:43:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:43:05 - End Time 2025-03-19 08:43:05 [2025-03-19 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714353', 'tblTempUsageDetail_20' ) start [2025-03-19 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714353', 'tblTempUsageDetail_20' ) end [2025-03-19 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714353', 'tblTempVendorCDR_20' ) start [2025-03-19 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714353', 'tblTempVendorCDR_20' ) end [2025-03-19 08:43:17] Production.INFO: ProcessCDR(1,14714353,1,1,2) [2025-03-19 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714353', 'tblTempUsageDetail_20' ) start [2025-03-19 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714353', 'tblTempUsageDetail_20' ) end [2025-03-19 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:43:22] Production.INFO: ==2995== Releasing lock... [2025-03-19 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:43:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-19 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:44:06 [end_date_ymd] => 2025-03-19 08:44:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:44:06' and `end` < '2025-03-19 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-03-19 08:44:18] Production.INFO: count ==537 [2025-03-19 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:44:06 - End Time 2025-03-19 08:44:06 [2025-03-19 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714358', 'tblTempUsageDetail_20' ) start [2025-03-19 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714358', 'tblTempUsageDetail_20' ) end [2025-03-19 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714358', 'tblTempVendorCDR_20' ) start [2025-03-19 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714358', 'tblTempVendorCDR_20' ) end [2025-03-19 08:44:18] Production.INFO: ProcessCDR(1,14714358,1,1,2) [2025-03-19 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714358', 'tblTempUsageDetail_20' ) start [2025-03-19 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714358', 'tblTempUsageDetail_20' ) end [2025-03-19 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:44:23] Production.INFO: ==3109== Releasing lock... [2025-03-19 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:44:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-19 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:45:05 [end_date_ymd] => 2025-03-19 08:45:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:45:05' and `end` < '2025-03-19 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-03-19 08:45:17] Production.INFO: count ==545 [2025-03-19 08:45:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:45:05 - End Time 2025-03-19 08:45:05 [2025-03-19 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714363', 'tblTempUsageDetail_20' ) start [2025-03-19 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714363', 'tblTempUsageDetail_20' ) end [2025-03-19 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714363', 'tblTempVendorCDR_20' ) start [2025-03-19 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714363', 'tblTempVendorCDR_20' ) end [2025-03-19 08:45:17] Production.INFO: ProcessCDR(1,14714363,1,1,2) [2025-03-19 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714363', 'tblTempUsageDetail_20' ) start [2025-03-19 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714363', 'tblTempUsageDetail_20' ) end [2025-03-19 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:45:22] Production.INFO: ==3183== Releasing lock... [2025-03-19 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:45:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-19 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:46:05 [end_date_ymd] => 2025-03-19 08:46:05 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:46:05' and `end` < '2025-03-19 08: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-03-19 08:46:18] Production.INFO: count ==551 [2025-03-19 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:46:05 - End Time 2025-03-19 08:46:05 [2025-03-19 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714368', 'tblTempUsageDetail_20' ) start [2025-03-19 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714368', 'tblTempUsageDetail_20' ) end [2025-03-19 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714368', 'tblTempVendorCDR_20' ) start [2025-03-19 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714368', 'tblTempVendorCDR_20' ) end [2025-03-19 08:46:18] Production.INFO: ProcessCDR(1,14714368,1,1,2) [2025-03-19 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714368', 'tblTempUsageDetail_20' ) start [2025-03-19 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714368', 'tblTempUsageDetail_20' ) end [2025-03-19 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:46:23] Production.INFO: ==3263== Releasing lock... [2025-03-19 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:46:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-19 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:47:05 [end_date_ymd] => 2025-03-19 08:47:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:47:05' and `end` < '2025-03-19 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-03-19 08:47:17] Production.INFO: count ==561 [2025-03-19 08:47:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:47:05 - End Time 2025-03-19 08:47:05 [2025-03-19 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714373', 'tblTempUsageDetail_20' ) start [2025-03-19 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714373', 'tblTempUsageDetail_20' ) end [2025-03-19 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714373', 'tblTempVendorCDR_20' ) start [2025-03-19 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714373', 'tblTempVendorCDR_20' ) end [2025-03-19 08:47:17] Production.INFO: ProcessCDR(1,14714373,1,1,2) [2025-03-19 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714373', 'tblTempUsageDetail_20' ) start [2025-03-19 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714373', 'tblTempUsageDetail_20' ) end [2025-03-19 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:47:21] Production.INFO: ==3333== Releasing lock... [2025-03-19 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:47:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-19 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:48:05 [end_date_ymd] => 2025-03-19 08:48:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:48:05' and `end` < '2025-03-19 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-03-19 08:48:17] Production.INFO: count ==562 [2025-03-19 08:48:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:48:05 - End Time 2025-03-19 08:48:05 [2025-03-19 08:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714378', 'tblTempUsageDetail_20' ) start [2025-03-19 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714378', 'tblTempUsageDetail_20' ) end [2025-03-19 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714378', 'tblTempVendorCDR_20' ) start [2025-03-19 08:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714378', 'tblTempVendorCDR_20' ) end [2025-03-19 08:48:17] Production.INFO: ProcessCDR(1,14714378,1,1,2) [2025-03-19 08:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714378', 'tblTempUsageDetail_20' ) start [2025-03-19 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714378', 'tblTempUsageDetail_20' ) end [2025-03-19 08:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:48:22] Production.INFO: ==3405== Releasing lock... [2025-03-19 08:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:48:22] Production.INFO: 32 MB #Memory Used# [2025-03-19 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:49:05 [end_date_ymd] => 2025-03-19 08:49:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:49:05' and `end` < '2025-03-19 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-03-19 08:49:17] Production.INFO: count ==563 [2025-03-19 08:49:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:49:05 - End Time 2025-03-19 08:49:05 [2025-03-19 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714383', 'tblTempUsageDetail_20' ) start [2025-03-19 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714383', 'tblTempUsageDetail_20' ) end [2025-03-19 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714383', 'tblTempVendorCDR_20' ) start [2025-03-19 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714383', 'tblTempVendorCDR_20' ) end [2025-03-19 08:49:18] Production.INFO: ProcessCDR(1,14714383,1,1,2) [2025-03-19 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714383', 'tblTempUsageDetail_20' ) start [2025-03-19 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714383', 'tblTempUsageDetail_20' ) end [2025-03-19 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:49:21] Production.INFO: ==3479== Releasing lock... [2025-03-19 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:49:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-19 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:50:06 [end_date_ymd] => 2025-03-19 08:50:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:50:06' and `end` < '2025-03-19 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-03-19 08:50:18] Production.INFO: count ==579 [2025-03-19 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:50:06 - End Time 2025-03-19 08:50:06 [2025-03-19 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714389', 'tblTempUsageDetail_20' ) start [2025-03-19 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714389', 'tblTempUsageDetail_20' ) end [2025-03-19 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714389', 'tblTempVendorCDR_20' ) start [2025-03-19 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714389', 'tblTempVendorCDR_20' ) end [2025-03-19 08:50:18] Production.INFO: ProcessCDR(1,14714389,1,1,2) [2025-03-19 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714389', 'tblTempUsageDetail_20' ) start [2025-03-19 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714389', 'tblTempUsageDetail_20' ) end [2025-03-19 08:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:50:23] Production.INFO: ==3557== Releasing lock... [2025-03-19 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:50:23] Production.INFO: 33 MB #Memory Used# [2025-03-19 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:51:05 [end_date_ymd] => 2025-03-19 08:51:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:51:05' and `end` < '2025-03-19 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-03-19 08:51:17] Production.INFO: count ==607 [2025-03-19 08:51:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:51:05 - End Time 2025-03-19 08:51:05 [2025-03-19 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714394', 'tblTempUsageDetail_20' ) start [2025-03-19 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714394', 'tblTempUsageDetail_20' ) end [2025-03-19 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714394', 'tblTempVendorCDR_20' ) start [2025-03-19 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714394', 'tblTempVendorCDR_20' ) end [2025-03-19 08:51:18] Production.INFO: ProcessCDR(1,14714394,1,1,2) [2025-03-19 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714394', 'tblTempUsageDetail_20' ) start [2025-03-19 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714394', 'tblTempUsageDetail_20' ) end [2025-03-19 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:51:21] Production.INFO: ==3634== Releasing lock... [2025-03-19 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:51:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-19 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:52:05 [end_date_ymd] => 2025-03-19 08:52:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:52:05' and `end` < '2025-03-19 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-03-19 08:52:17] Production.INFO: count ==608 [2025-03-19 08:52:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:52:05 - End Time 2025-03-19 08:52:05 [2025-03-19 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714399', 'tblTempUsageDetail_20' ) start [2025-03-19 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714399', 'tblTempUsageDetail_20' ) end [2025-03-19 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714399', 'tblTempVendorCDR_20' ) start [2025-03-19 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714399', 'tblTempVendorCDR_20' ) end [2025-03-19 08:52:18] Production.INFO: ProcessCDR(1,14714399,1,1,2) [2025-03-19 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714399', 'tblTempUsageDetail_20' ) start [2025-03-19 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714399', 'tblTempUsageDetail_20' ) end [2025-03-19 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:52:23] Production.INFO: ==3716== Releasing lock... [2025-03-19 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:52:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-19 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:53:05 [end_date_ymd] => 2025-03-19 08:53:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:53:05' and `end` < '2025-03-19 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-03-19 08:53:17] Production.INFO: count ==609 [2025-03-19 08:53:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:53:05 - End Time 2025-03-19 08:53:05 [2025-03-19 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714404', 'tblTempUsageDetail_20' ) start [2025-03-19 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714404', 'tblTempUsageDetail_20' ) end [2025-03-19 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714404', 'tblTempVendorCDR_20' ) start [2025-03-19 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714404', 'tblTempVendorCDR_20' ) end [2025-03-19 08:53:17] Production.INFO: ProcessCDR(1,14714404,1,1,2) [2025-03-19 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714404', 'tblTempUsageDetail_20' ) start [2025-03-19 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714404', 'tblTempUsageDetail_20' ) end [2025-03-19 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:53:22] Production.INFO: ==3789== Releasing lock... [2025-03-19 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:53:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-19 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:54:05 [end_date_ymd] => 2025-03-19 08:54:05 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:54:05' and `end` < '2025-03-19 08: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-03-19 08:54:17] Production.INFO: count ==611 [2025-03-19 08:54:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:54:05 - End Time 2025-03-19 08:54:05 [2025-03-19 08:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714409', 'tblTempUsageDetail_20' ) start [2025-03-19 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714409', 'tblTempUsageDetail_20' ) end [2025-03-19 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714409', 'tblTempVendorCDR_20' ) start [2025-03-19 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714409', 'tblTempVendorCDR_20' ) end [2025-03-19 08:54:18] Production.INFO: ProcessCDR(1,14714409,1,1,2) [2025-03-19 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714409', 'tblTempUsageDetail_20' ) start [2025-03-19 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714409', 'tblTempUsageDetail_20' ) end [2025-03-19 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:54:23] Production.INFO: ==3864== Releasing lock... [2025-03-19 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:54:23] Production.INFO: 33 MB #Memory Used# [2025-03-19 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:55:05 [end_date_ymd] => 2025-03-19 08:55:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:55:05' and `end` < '2025-03-19 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-03-19 08:55:17] Production.INFO: count ==617 [2025-03-19 08:55:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:55:05 - End Time 2025-03-19 08:55:05 [2025-03-19 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714414', 'tblTempUsageDetail_20' ) start [2025-03-19 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714414', 'tblTempUsageDetail_20' ) end [2025-03-19 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714414', 'tblTempVendorCDR_20' ) start [2025-03-19 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714414', 'tblTempVendorCDR_20' ) end [2025-03-19 08:55:18] Production.INFO: ProcessCDR(1,14714414,1,1,2) [2025-03-19 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714414', 'tblTempUsageDetail_20' ) start [2025-03-19 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714414', 'tblTempUsageDetail_20' ) end [2025-03-19 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:55:23] Production.INFO: ==3936== Releasing lock... [2025-03-19 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:55:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-19 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:56:05 [end_date_ymd] => 2025-03-19 08:56:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:56:05' and `end` < '2025-03-19 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-03-19 08:56:17] Production.INFO: count ==620 [2025-03-19 08:56:17] Production.ERROR: pbx CDR StartTime 2025-03-19 05:56:05 - End Time 2025-03-19 08:56:05 [2025-03-19 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714419', 'tblTempUsageDetail_20' ) start [2025-03-19 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714419', 'tblTempUsageDetail_20' ) end [2025-03-19 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714419', 'tblTempVendorCDR_20' ) start [2025-03-19 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714419', 'tblTempVendorCDR_20' ) end [2025-03-19 08:56:18] Production.INFO: ProcessCDR(1,14714419,1,1,2) [2025-03-19 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714419', 'tblTempUsageDetail_20' ) start [2025-03-19 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714419', 'tblTempUsageDetail_20' ) end [2025-03-19 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:56:23] Production.INFO: ==4012== Releasing lock... [2025-03-19 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:56:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-19 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:57:05 [end_date_ymd] => 2025-03-19 08:57:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:57:05' and `end` < '2025-03-19 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-03-19 08:57:17] Production.INFO: count ==633 [2025-03-19 08:57:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:57:05 - End Time 2025-03-19 08:57:05 [2025-03-19 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714424', 'tblTempUsageDetail_20' ) start [2025-03-19 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714424', 'tblTempUsageDetail_20' ) end [2025-03-19 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714424', 'tblTempVendorCDR_20' ) start [2025-03-19 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714424', 'tblTempVendorCDR_20' ) end [2025-03-19 08:57:18] Production.INFO: ProcessCDR(1,14714424,1,1,2) [2025-03-19 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714424', 'tblTempUsageDetail_20' ) start [2025-03-19 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714424', 'tblTempUsageDetail_20' ) end [2025-03-19 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:57:23] Production.INFO: ==4087== Releasing lock... [2025-03-19 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:57:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-19 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:58:05 [end_date_ymd] => 2025-03-19 08:58:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 05:58:05' and `end` < '2025-03-19 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-03-19 08:58:17] Production.INFO: count ==634 [2025-03-19 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:58:05 - End Time 2025-03-19 08:58:05 [2025-03-19 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714429', 'tblTempUsageDetail_20' ) start [2025-03-19 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714429', 'tblTempUsageDetail_20' ) end [2025-03-19 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714429', 'tblTempVendorCDR_20' ) start [2025-03-19 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714429', 'tblTempVendorCDR_20' ) end [2025-03-19 08:58:18] Production.INFO: ProcessCDR(1,14714429,1,1,2) [2025-03-19 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714429', 'tblTempUsageDetail_20' ) start [2025-03-19 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714429', 'tblTempUsageDetail_20' ) end [2025-03-19 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:58:21] Production.INFO: ==4159== Releasing lock... [2025-03-19 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:58:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-19 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 05:59:05 [end_date_ymd] => 2025-03-19 08:59:05 [RateCDR] => 1 ) [2025-03-19 08: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-03-19 05:59:05' and `end` < '2025-03-19 08: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-03-19 08:59:17] Production.INFO: count ==645 [2025-03-19 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-19 05:59:05 - End Time 2025-03-19 08:59:05 [2025-03-19 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714434', 'tblTempUsageDetail_20' ) start [2025-03-19 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714434', 'tblTempUsageDetail_20' ) end [2025-03-19 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714434', 'tblTempVendorCDR_20' ) start [2025-03-19 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714434', 'tblTempVendorCDR_20' ) end [2025-03-19 08:59:18] Production.INFO: ProcessCDR(1,14714434,1,1,2) [2025-03-19 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714434', 'tblTempUsageDetail_20' ) start [2025-03-19 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714434', 'tblTempUsageDetail_20' ) end [2025-03-19 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 08:59:21] Production.INFO: ==4272== Releasing lock... [2025-03-19 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 08:59:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-19 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:00:06 [end_date_ymd] => 2025-03-19 09:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:00:06' and `end` < '2025-03-19 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-03-19 09:00:18] Production.INFO: count ==661 [2025-03-19 09:00:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:00:06 - End Time 2025-03-19 09:00:06 [2025-03-19 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714439', 'tblTempUsageDetail_20' ) start [2025-03-19 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714439', 'tblTempUsageDetail_20' ) end [2025-03-19 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714439', 'tblTempVendorCDR_20' ) start [2025-03-19 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714439', 'tblTempVendorCDR_20' ) end [2025-03-19 09:00:19] Production.INFO: ProcessCDR(1,14714439,1,1,2) [2025-03-19 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714439', 'tblTempUsageDetail_20' ) start [2025-03-19 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714439', 'tblTempUsageDetail_20' ) end [2025-03-19 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:00:22] Production.INFO: ==4355== Releasing lock... [2025-03-19 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:00:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-19 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:01:05 [end_date_ymd] => 2025-03-19 09:01:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:01:05' and `end` < '2025-03-19 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-03-19 09:01:18] Production.INFO: count ==692 [2025-03-19 09:01:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:01:05 - End Time 2025-03-19 09:01:05 [2025-03-19 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714445', 'tblTempUsageDetail_20' ) start [2025-03-19 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714445', 'tblTempUsageDetail_20' ) end [2025-03-19 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714445', 'tblTempVendorCDR_20' ) start [2025-03-19 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714445', 'tblTempVendorCDR_20' ) end [2025-03-19 09:01:18] Production.INFO: ProcessCDR(1,14714445,1,1,2) [2025-03-19 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714445', 'tblTempUsageDetail_20' ) start [2025-03-19 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714445', 'tblTempUsageDetail_20' ) end [2025-03-19 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:01:21] Production.INFO: ==4444== Releasing lock... [2025-03-19 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:01:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-19 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:02:05 [end_date_ymd] => 2025-03-19 09:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:02:05' and `end` < '2025-03-19 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-03-19 09:02:17] Production.INFO: count ==703 [2025-03-19 09:02:17] Production.ERROR: pbx CDR StartTime 2025-03-19 06:02:05 - End Time 2025-03-19 09:02:05 [2025-03-19 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714450', 'tblTempUsageDetail_20' ) start [2025-03-19 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714450', 'tblTempUsageDetail_20' ) end [2025-03-19 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714450', 'tblTempVendorCDR_20' ) start [2025-03-19 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714450', 'tblTempVendorCDR_20' ) end [2025-03-19 09:02:18] Production.INFO: ProcessCDR(1,14714450,1,1,2) [2025-03-19 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714450', 'tblTempUsageDetail_20' ) start [2025-03-19 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714450', 'tblTempUsageDetail_20' ) end [2025-03-19 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:02:24] Production.INFO: ==4518== Releasing lock... [2025-03-19 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:02:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-19 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:03:05 [end_date_ymd] => 2025-03-19 09:03:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:03:05' and `end` < '2025-03-19 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-03-19 09:03:18] Production.INFO: count ==706 [2025-03-19 09:03:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:03:05 - End Time 2025-03-19 09:03:05 [2025-03-19 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714455', 'tblTempUsageDetail_20' ) start [2025-03-19 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714455', 'tblTempUsageDetail_20' ) end [2025-03-19 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714455', 'tblTempVendorCDR_20' ) start [2025-03-19 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714455', 'tblTempVendorCDR_20' ) end [2025-03-19 09:03:18] Production.INFO: ProcessCDR(1,14714455,1,1,2) [2025-03-19 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714455', 'tblTempUsageDetail_20' ) start [2025-03-19 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714455', 'tblTempUsageDetail_20' ) end [2025-03-19 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:03:23] Production.INFO: ==4597== Releasing lock... [2025-03-19 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:03:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-19 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:04:05 [end_date_ymd] => 2025-03-19 09:04:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:04:05' and `end` < '2025-03-19 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-03-19 09:04:17] Production.INFO: count ==708 [2025-03-19 09:04:17] Production.ERROR: pbx CDR StartTime 2025-03-19 06:04:05 - End Time 2025-03-19 09:04:05 [2025-03-19 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714460', 'tblTempUsageDetail_20' ) start [2025-03-19 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714460', 'tblTempUsageDetail_20' ) end [2025-03-19 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714460', 'tblTempVendorCDR_20' ) start [2025-03-19 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714460', 'tblTempVendorCDR_20' ) end [2025-03-19 09:04:17] Production.INFO: ProcessCDR(1,14714460,1,1,2) [2025-03-19 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714460', 'tblTempUsageDetail_20' ) start [2025-03-19 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714460', 'tblTempUsageDetail_20' ) end [2025-03-19 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:04:22] Production.INFO: ==4670== Releasing lock... [2025-03-19 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:04:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-19 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:05:05 [end_date_ymd] => 2025-03-19 09:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:05:05' and `end` < '2025-03-19 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-03-19 09:05:17] Production.INFO: count ==736 [2025-03-19 09:05:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:05:05 - End Time 2025-03-19 09:05:05 [2025-03-19 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714465', 'tblTempUsageDetail_20' ) start [2025-03-19 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714465', 'tblTempUsageDetail_20' ) end [2025-03-19 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714465', 'tblTempVendorCDR_20' ) start [2025-03-19 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714465', 'tblTempVendorCDR_20' ) end [2025-03-19 09:05:18] Production.INFO: ProcessCDR(1,14714465,1,1,2) [2025-03-19 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714465', 'tblTempUsageDetail_20' ) start [2025-03-19 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714465', 'tblTempUsageDetail_20' ) end [2025-03-19 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:05:21] Production.INFO: ==4747== Releasing lock... [2025-03-19 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:05:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-19 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:06:05 [end_date_ymd] => 2025-03-19 09:06:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:06:05' and `end` < '2025-03-19 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-03-19 09:06:17] Production.INFO: count ==742 [2025-03-19 09:06:17] Production.ERROR: pbx CDR StartTime 2025-03-19 06:06:05 - End Time 2025-03-19 09:06:05 [2025-03-19 09:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714470', 'tblTempUsageDetail_20' ) start [2025-03-19 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714470', 'tblTempUsageDetail_20' ) end [2025-03-19 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714470', 'tblTempVendorCDR_20' ) start [2025-03-19 09:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714470', 'tblTempVendorCDR_20' ) end [2025-03-19 09:06:17] Production.INFO: ProcessCDR(1,14714470,1,1,2) [2025-03-19 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714470', 'tblTempUsageDetail_20' ) start [2025-03-19 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714470', 'tblTempUsageDetail_20' ) end [2025-03-19 09:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:06:22] Production.INFO: ==4818== Releasing lock... [2025-03-19 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:06:22] Production.INFO: 34 MB #Memory Used# [2025-03-19 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:07:06 [end_date_ymd] => 2025-03-19 09:07:06 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:07:06' and `end` < '2025-03-19 09: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-03-19 09:07:18] Production.INFO: count ==759 [2025-03-19 09:07:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:07:06 - End Time 2025-03-19 09:07:06 [2025-03-19 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714475', 'tblTempUsageDetail_20' ) start [2025-03-19 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714475', 'tblTempUsageDetail_20' ) end [2025-03-19 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714475', 'tblTempVendorCDR_20' ) start [2025-03-19 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714475', 'tblTempVendorCDR_20' ) end [2025-03-19 09:07:18] Production.INFO: ProcessCDR(1,14714475,1,1,2) [2025-03-19 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714475', 'tblTempUsageDetail_20' ) start [2025-03-19 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714475', 'tblTempUsageDetail_20' ) end [2025-03-19 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:07:24] Production.INFO: ==4898== Releasing lock... [2025-03-19 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:07:24] Production.INFO: 34 MB #Memory Used# [2025-03-19 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:08:06 [end_date_ymd] => 2025-03-19 09:08:06 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:08:06' and `end` < '2025-03-19 09: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-03-19 09:08:18] Production.INFO: count ==771 [2025-03-19 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:08:06 - End Time 2025-03-19 09:08:06 [2025-03-19 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714480', 'tblTempUsageDetail_20' ) start [2025-03-19 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714480', 'tblTempUsageDetail_20' ) end [2025-03-19 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714480', 'tblTempVendorCDR_20' ) start [2025-03-19 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714480', 'tblTempVendorCDR_20' ) end [2025-03-19 09:08:18] Production.INFO: ProcessCDR(1,14714480,1,1,2) [2025-03-19 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714480', 'tblTempUsageDetail_20' ) start [2025-03-19 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714480', 'tblTempUsageDetail_20' ) end [2025-03-19 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:08:23] Production.INFO: ==4972== Releasing lock... [2025-03-19 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:08:23] Production.INFO: 34 MB #Memory Used# [2025-03-19 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:09:05 [end_date_ymd] => 2025-03-19 09:09:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:09:05' and `end` < '2025-03-19 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-03-19 09:09:18] Production.INFO: count ==807 [2025-03-19 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:09:05 - End Time 2025-03-19 09:09:05 [2025-03-19 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714485', 'tblTempUsageDetail_20' ) start [2025-03-19 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714485', 'tblTempUsageDetail_20' ) end [2025-03-19 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714485', 'tblTempVendorCDR_20' ) start [2025-03-19 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714485', 'tblTempVendorCDR_20' ) end [2025-03-19 09:09:18] Production.INFO: ProcessCDR(1,14714485,1,1,2) [2025-03-19 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714485', 'tblTempUsageDetail_20' ) start [2025-03-19 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714485', 'tblTempUsageDetail_20' ) end [2025-03-19 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:09:23] Production.INFO: ==5041== Releasing lock... [2025-03-19 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:09:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-19 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:10:06 [end_date_ymd] => 2025-03-19 09:10:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:10:06' and `end` < '2025-03-19 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-03-19 09:10:18] Production.INFO: count ==834 [2025-03-19 09:10:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:10:06 - End Time 2025-03-19 09:10:06 [2025-03-19 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714490', 'tblTempUsageDetail_20' ) start [2025-03-19 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714490', 'tblTempUsageDetail_20' ) end [2025-03-19 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714490', 'tblTempVendorCDR_20' ) start [2025-03-19 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714490', 'tblTempVendorCDR_20' ) end [2025-03-19 09:10:18] Production.INFO: ProcessCDR(1,14714490,1,1,2) [2025-03-19 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714490', 'tblTempUsageDetail_20' ) start [2025-03-19 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714490', 'tblTempUsageDetail_20' ) end [2025-03-19 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:10:22] Production.INFO: ==5115== Releasing lock... [2025-03-19 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:10:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-19 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:11:05 [end_date_ymd] => 2025-03-19 09:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:11:05' and `end` < '2025-03-19 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-03-19 09:11:17] Production.INFO: count ==888 [2025-03-19 09:11:17] Production.ERROR: pbx CDR StartTime 2025-03-19 06:11:05 - End Time 2025-03-19 09:11:05 [2025-03-19 09:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714496', 'tblTempUsageDetail_20' ) start [2025-03-19 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714496', 'tblTempUsageDetail_20' ) end [2025-03-19 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714496', 'tblTempVendorCDR_20' ) start [2025-03-19 09:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714496', 'tblTempVendorCDR_20' ) end [2025-03-19 09:11:17] Production.INFO: ProcessCDR(1,14714496,1,1,2) [2025-03-19 09:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714496', 'tblTempUsageDetail_20' ) start [2025-03-19 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714496', 'tblTempUsageDetail_20' ) end [2025-03-19 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:11:22] Production.INFO: ==5191== Releasing lock... [2025-03-19 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:11:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-19 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:12:05 [end_date_ymd] => 2025-03-19 09:12:05 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:12:05' and `end` < '2025-03-19 09: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-03-19 09:12:17] Production.INFO: count ==901 [2025-03-19 09:12:17] Production.ERROR: pbx CDR StartTime 2025-03-19 06:12:05 - End Time 2025-03-19 09:12:05 [2025-03-19 09:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714501', 'tblTempUsageDetail_20' ) start [2025-03-19 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714501', 'tblTempUsageDetail_20' ) end [2025-03-19 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714501', 'tblTempVendorCDR_20' ) start [2025-03-19 09:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714501', 'tblTempVendorCDR_20' ) end [2025-03-19 09:12:17] Production.INFO: ProcessCDR(1,14714501,1,1,2) [2025-03-19 09:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714501', 'tblTempUsageDetail_20' ) start [2025-03-19 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714501', 'tblTempUsageDetail_20' ) end [2025-03-19 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:12:22] Production.INFO: ==5263== Releasing lock... [2025-03-19 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:12:22] Production.INFO: 35 MB #Memory Used# [2025-03-19 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:13:05 [end_date_ymd] => 2025-03-19 09:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:13:05' and `end` < '2025-03-19 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-03-19 09:13:17] Production.INFO: count ==920 [2025-03-19 09:13:17] Production.ERROR: pbx CDR StartTime 2025-03-19 06:13:05 - End Time 2025-03-19 09:13:05 [2025-03-19 09:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714506', 'tblTempUsageDetail_20' ) start [2025-03-19 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714506', 'tblTempUsageDetail_20' ) end [2025-03-19 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714506', 'tblTempVendorCDR_20' ) start [2025-03-19 09:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714506', 'tblTempVendorCDR_20' ) end [2025-03-19 09:13:17] Production.INFO: ProcessCDR(1,14714506,1,1,2) [2025-03-19 09:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714506', 'tblTempUsageDetail_20' ) start [2025-03-19 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714506', 'tblTempUsageDetail_20' ) end [2025-03-19 09:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:13:22] Production.INFO: ==5335== Releasing lock... [2025-03-19 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:13:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-19 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:14:06 [end_date_ymd] => 2025-03-19 09:14:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:14:06' and `end` < '2025-03-19 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-03-19 09:14:18] Production.INFO: count ==932 [2025-03-19 09:14:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:14:06 - End Time 2025-03-19 09:14:06 [2025-03-19 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714511', 'tblTempUsageDetail_20' ) start [2025-03-19 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714511', 'tblTempUsageDetail_20' ) end [2025-03-19 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714511', 'tblTempVendorCDR_20' ) start [2025-03-19 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714511', 'tblTempVendorCDR_20' ) end [2025-03-19 09:14:18] Production.INFO: ProcessCDR(1,14714511,1,1,2) [2025-03-19 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714511', 'tblTempUsageDetail_20' ) start [2025-03-19 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714511', 'tblTempUsageDetail_20' ) end [2025-03-19 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:14:24] Production.INFO: ==5410== Releasing lock... [2025-03-19 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:14:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-19 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:15:05 [end_date_ymd] => 2025-03-19 09:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:15:05' and `end` < '2025-03-19 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-03-19 09:15:17] Production.INFO: count ==941 [2025-03-19 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:15:05 - End Time 2025-03-19 09:15:05 [2025-03-19 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714516', 'tblTempUsageDetail_20' ) start [2025-03-19 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714516', 'tblTempUsageDetail_20' ) end [2025-03-19 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714516', 'tblTempVendorCDR_20' ) start [2025-03-19 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714516', 'tblTempVendorCDR_20' ) end [2025-03-19 09:15:18] Production.INFO: ProcessCDR(1,14714516,1,1,2) [2025-03-19 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714516', 'tblTempUsageDetail_20' ) start [2025-03-19 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714516', 'tblTempUsageDetail_20' ) end [2025-03-19 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:15:23] Production.INFO: ==5533== Releasing lock... [2025-03-19 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:15:23] Production.INFO: 35.25 MB #Memory Used# [2025-03-19 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:16:06 [end_date_ymd] => 2025-03-19 09:16:06 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:16:06' and `end` < '2025-03-19 09: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-03-19 09:16:18] Production.INFO: count ==962 [2025-03-19 09:16:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:16:06 - End Time 2025-03-19 09:16:06 [2025-03-19 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714521', 'tblTempUsageDetail_20' ) start [2025-03-19 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714521', 'tblTempUsageDetail_20' ) end [2025-03-19 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714521', 'tblTempVendorCDR_20' ) start [2025-03-19 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714521', 'tblTempVendorCDR_20' ) end [2025-03-19 09:16:19] Production.INFO: ProcessCDR(1,14714521,1,1,2) [2025-03-19 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714521', 'tblTempUsageDetail_20' ) start [2025-03-19 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714521', 'tblTempUsageDetail_20' ) end [2025-03-19 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:16:24] Production.INFO: ==5606== Releasing lock... [2025-03-19 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:16:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-19 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:17:05 [end_date_ymd] => 2025-03-19 09:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:17:05' and `end` < '2025-03-19 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-03-19 09:17:18] Production.INFO: count ==983 [2025-03-19 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:17:05 - End Time 2025-03-19 09:17:05 [2025-03-19 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714526', 'tblTempUsageDetail_20' ) start [2025-03-19 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714526', 'tblTempUsageDetail_20' ) end [2025-03-19 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714526', 'tblTempVendorCDR_20' ) start [2025-03-19 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714526', 'tblTempVendorCDR_20' ) end [2025-03-19 09:17:18] Production.INFO: ProcessCDR(1,14714526,1,1,2) [2025-03-19 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714526', 'tblTempUsageDetail_20' ) start [2025-03-19 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714526', 'tblTempUsageDetail_20' ) end [2025-03-19 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:17:24] Production.INFO: ==5680== Releasing lock... [2025-03-19 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:17:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-19 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:18:05 [end_date_ymd] => 2025-03-19 09:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:18:05' and `end` < '2025-03-19 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-03-19 09:18:18] Production.INFO: count ==1010 [2025-03-19 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:18:05 - End Time 2025-03-19 09:18:05 [2025-03-19 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714531', 'tblTempUsageDetail_20' ) start [2025-03-19 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714531', 'tblTempUsageDetail_20' ) end [2025-03-19 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714531', 'tblTempVendorCDR_20' ) start [2025-03-19 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714531', 'tblTempVendorCDR_20' ) end [2025-03-19 09:18:18] Production.INFO: ProcessCDR(1,14714531,1,1,2) [2025-03-19 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714531', 'tblTempUsageDetail_20' ) start [2025-03-19 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714531', 'tblTempUsageDetail_20' ) end [2025-03-19 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:18:24] Production.INFO: ==5766== Releasing lock... [2025-03-19 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:18:24] Production.INFO: 36 MB #Memory Used# [2025-03-19 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:19:05 [end_date_ymd] => 2025-03-19 09:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:19:05' and `end` < '2025-03-19 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-03-19 09:19:17] Production.INFO: count ==1026 [2025-03-19 09:19:17] Production.ERROR: pbx CDR StartTime 2025-03-19 06:19:05 - End Time 2025-03-19 09:19:05 [2025-03-19 09:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714536', 'tblTempUsageDetail_20' ) start [2025-03-19 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714536', 'tblTempUsageDetail_20' ) end [2025-03-19 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714536', 'tblTempVendorCDR_20' ) start [2025-03-19 09:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714536', 'tblTempVendorCDR_20' ) end [2025-03-19 09:19:17] Production.INFO: ProcessCDR(1,14714536,1,1,2) [2025-03-19 09:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714536', 'tblTempUsageDetail_20' ) start [2025-03-19 09:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714536', 'tblTempUsageDetail_20' ) end [2025-03-19 09:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:19:22] Production.INFO: ==5840== Releasing lock... [2025-03-19 09:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:19:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-19 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:20:06 [end_date_ymd] => 2025-03-19 09:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:20:06' and `end` < '2025-03-19 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-03-19 09:20:19] Production.INFO: count ==1044 [2025-03-19 09:20:19] Production.ERROR: pbx CDR StartTime 2025-03-19 06:20:06 - End Time 2025-03-19 09:20:06 [2025-03-19 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714541', 'tblTempUsageDetail_20' ) start [2025-03-19 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714541', 'tblTempUsageDetail_20' ) end [2025-03-19 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714541', 'tblTempVendorCDR_20' ) start [2025-03-19 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714541', 'tblTempVendorCDR_20' ) end [2025-03-19 09:20:19] Production.INFO: ProcessCDR(1,14714541,1,1,2) [2025-03-19 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714541', 'tblTempUsageDetail_20' ) start [2025-03-19 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714541', 'tblTempUsageDetail_20' ) end [2025-03-19 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:20:24] Production.INFO: ==5920== Releasing lock... [2025-03-19 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:20:24] Production.INFO: 36.5 MB #Memory Used# [2025-03-19 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:21:05 [end_date_ymd] => 2025-03-19 09:21:05 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:21:05' and `end` < '2025-03-19 09: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-03-19 09:21:17] Production.INFO: count ==1120 [2025-03-19 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:21:05 - End Time 2025-03-19 09:21:05 [2025-03-19 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714547', 'tblTempUsageDetail_20' ) start [2025-03-19 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714547', 'tblTempUsageDetail_20' ) end [2025-03-19 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714547', 'tblTempVendorCDR_20' ) start [2025-03-19 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714547', 'tblTempVendorCDR_20' ) end [2025-03-19 09:21:18] Production.INFO: ProcessCDR(1,14714547,1,1,2) [2025-03-19 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714547', 'tblTempUsageDetail_20' ) start [2025-03-19 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714547', 'tblTempUsageDetail_20' ) end [2025-03-19 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:21:23] Production.INFO: ==6011== Releasing lock... [2025-03-19 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:21:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:22:05 [end_date_ymd] => 2025-03-19 09:22:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:22:05' and `end` < '2025-03-19 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-03-19 09:22:18] Production.INFO: count ==1132 [2025-03-19 09:22:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:22:05 - End Time 2025-03-19 09:22:05 [2025-03-19 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714552', 'tblTempUsageDetail_20' ) start [2025-03-19 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714552', 'tblTempUsageDetail_20' ) end [2025-03-19 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714552', 'tblTempVendorCDR_20' ) start [2025-03-19 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714552', 'tblTempVendorCDR_20' ) end [2025-03-19 09:22:18] Production.INFO: ProcessCDR(1,14714552,1,1,2) [2025-03-19 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714552', 'tblTempUsageDetail_20' ) start [2025-03-19 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714552', 'tblTempUsageDetail_20' ) end [2025-03-19 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:22:23] Production.INFO: ==6088== Releasing lock... [2025-03-19 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:22:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-19 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:23:05 [end_date_ymd] => 2025-03-19 09:23:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:23:05' and `end` < '2025-03-19 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-03-19 09:23:17] Production.INFO: count ==1151 [2025-03-19 09:23:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:23:05 - End Time 2025-03-19 09:23:05 [2025-03-19 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714557', 'tblTempUsageDetail_20' ) start [2025-03-19 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714557', 'tblTempUsageDetail_20' ) end [2025-03-19 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714557', 'tblTempVendorCDR_20' ) start [2025-03-19 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714557', 'tblTempVendorCDR_20' ) end [2025-03-19 09:23:18] Production.INFO: ProcessCDR(1,14714557,1,1,2) [2025-03-19 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714557', 'tblTempUsageDetail_20' ) start [2025-03-19 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714557', 'tblTempUsageDetail_20' ) end [2025-03-19 09:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:23:22] Production.INFO: ==6162== Releasing lock... [2025-03-19 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:23:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:24:05 [end_date_ymd] => 2025-03-19 09:24:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:24:05' and `end` < '2025-03-19 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-03-19 09:24:18] Production.INFO: count ==1171 [2025-03-19 09:24:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:24:05 - End Time 2025-03-19 09:24:05 [2025-03-19 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714562', 'tblTempUsageDetail_20' ) start [2025-03-19 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714562', 'tblTempUsageDetail_20' ) end [2025-03-19 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714562', 'tblTempVendorCDR_20' ) start [2025-03-19 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714562', 'tblTempVendorCDR_20' ) end [2025-03-19 09:24:18] Production.INFO: ProcessCDR(1,14714562,1,1,2) [2025-03-19 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714562', 'tblTempUsageDetail_20' ) start [2025-03-19 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714562', 'tblTempUsageDetail_20' ) end [2025-03-19 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:24:24] Production.INFO: ==6236== Releasing lock... [2025-03-19 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:24:24] Production.INFO: 37 MB #Memory Used# [2025-03-19 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:25:05 [end_date_ymd] => 2025-03-19 09:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:25:05' and `end` < '2025-03-19 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-03-19 09:25:17] Production.INFO: count ==1176 [2025-03-19 09:25:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:25:05 - End Time 2025-03-19 09:25:05 [2025-03-19 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714567', 'tblTempUsageDetail_20' ) start [2025-03-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714567', 'tblTempUsageDetail_20' ) end [2025-03-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714567', 'tblTempVendorCDR_20' ) start [2025-03-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714567', 'tblTempVendorCDR_20' ) end [2025-03-19 09:25:18] Production.INFO: ProcessCDR(1,14714567,1,1,2) [2025-03-19 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714567', 'tblTempUsageDetail_20' ) start [2025-03-19 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714567', 'tblTempUsageDetail_20' ) end [2025-03-19 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:25:23] Production.INFO: ==6317== Releasing lock... [2025-03-19 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:25:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:26:05 [end_date_ymd] => 2025-03-19 09:26:05 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:26:05' and `end` < '2025-03-19 09: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-03-19 09:26:18] Production.INFO: count ==1203 [2025-03-19 09:26:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:26:05 - End Time 2025-03-19 09:26:05 [2025-03-19 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714572', 'tblTempUsageDetail_20' ) start [2025-03-19 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714572', 'tblTempUsageDetail_20' ) end [2025-03-19 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714572', 'tblTempVendorCDR_20' ) start [2025-03-19 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714572', 'tblTempVendorCDR_20' ) end [2025-03-19 09:26:18] Production.INFO: ProcessCDR(1,14714572,1,1,2) [2025-03-19 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714572', 'tblTempUsageDetail_20' ) start [2025-03-19 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714572', 'tblTempUsageDetail_20' ) end [2025-03-19 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:26:23] Production.INFO: ==6399== Releasing lock... [2025-03-19 09:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:26:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-19 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:27:06 [end_date_ymd] => 2025-03-19 09:27:06 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:27:06' and `end` < '2025-03-19 09: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-03-19 09:27:18] Production.INFO: count ==1216 [2025-03-19 09:27:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:27:06 - End Time 2025-03-19 09:27:06 [2025-03-19 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714577', 'tblTempUsageDetail_20' ) start [2025-03-19 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714577', 'tblTempUsageDetail_20' ) end [2025-03-19 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714577', 'tblTempVendorCDR_20' ) start [2025-03-19 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714577', 'tblTempVendorCDR_20' ) end [2025-03-19 09:27:18] Production.INFO: ProcessCDR(1,14714577,1,1,2) [2025-03-19 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714577', 'tblTempUsageDetail_20' ) start [2025-03-19 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714577', 'tblTempUsageDetail_20' ) end [2025-03-19 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:27:23] Production.INFO: ==6487== Releasing lock... [2025-03-19 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:27:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-19 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:28:05 [end_date_ymd] => 2025-03-19 09:28:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:28:05' and `end` < '2025-03-19 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-03-19 09:28:17] Production.INFO: count ==1220 [2025-03-19 09:28:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:28:05 - End Time 2025-03-19 09:28:05 [2025-03-19 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714582', 'tblTempUsageDetail_20' ) start [2025-03-19 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714582', 'tblTempUsageDetail_20' ) end [2025-03-19 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714582', 'tblTempVendorCDR_20' ) start [2025-03-19 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714582', 'tblTempVendorCDR_20' ) end [2025-03-19 09:28:18] Production.INFO: ProcessCDR(1,14714582,1,1,2) [2025-03-19 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714582', 'tblTempUsageDetail_20' ) start [2025-03-19 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714582', 'tblTempUsageDetail_20' ) end [2025-03-19 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:28:23] Production.INFO: ==6573== Releasing lock... [2025-03-19 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:28:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-19 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:29:05 [end_date_ymd] => 2025-03-19 09:29:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:29:05' and `end` < '2025-03-19 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-03-19 09:29:18] Production.INFO: count ==1253 [2025-03-19 09:29:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:29:05 - End Time 2025-03-19 09:29:05 [2025-03-19 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714587', 'tblTempUsageDetail_20' ) start [2025-03-19 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714587', 'tblTempUsageDetail_20' ) end [2025-03-19 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714587', 'tblTempVendorCDR_20' ) start [2025-03-19 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714587', 'tblTempVendorCDR_20' ) end [2025-03-19 09:29:18] Production.INFO: ProcessCDR(1,14714587,1,1,2) [2025-03-19 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714587', 'tblTempUsageDetail_20' ) start [2025-03-19 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714587', 'tblTempUsageDetail_20' ) end [2025-03-19 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:29:23] Production.INFO: ==6648== Releasing lock... [2025-03-19 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:29:23] Production.INFO: 38 MB #Memory Used# [2025-03-19 09:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:30:07 [end_date_ymd] => 2025-03-19 09:30:07 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:30:07' and `end` < '2025-03-19 09: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-03-19 09:30:19] Production.INFO: count ==1275 [2025-03-19 09:30:20] Production.ERROR: pbx CDR StartTime 2025-03-19 06:30:07 - End Time 2025-03-19 09:30:07 [2025-03-19 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714592', 'tblTempUsageDetail_20' ) start [2025-03-19 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714592', 'tblTempUsageDetail_20' ) end [2025-03-19 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714592', 'tblTempVendorCDR_20' ) start [2025-03-19 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714592', 'tblTempVendorCDR_20' ) end [2025-03-19 09:30:20] Production.INFO: ProcessCDR(1,14714592,1,1,2) [2025-03-19 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714592', 'tblTempUsageDetail_20' ) start [2025-03-19 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714592', 'tblTempUsageDetail_20' ) end [2025-03-19 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:30:25] Production.INFO: ==6777== Releasing lock... [2025-03-19 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:30:25] Production.INFO: 37.75 MB #Memory Used# [2025-03-19 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:31:05 [end_date_ymd] => 2025-03-19 09:31:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:31:05' and `end` < '2025-03-19 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-03-19 09:31:17] Production.INFO: count ==1363 [2025-03-19 09:31:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:31:05 - End Time 2025-03-19 09:31:05 [2025-03-19 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714598', 'tblTempUsageDetail_20' ) start [2025-03-19 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714598', 'tblTempUsageDetail_20' ) end [2025-03-19 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714598', 'tblTempVendorCDR_20' ) start [2025-03-19 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714598', 'tblTempVendorCDR_20' ) end [2025-03-19 09:31:18] Production.INFO: ProcessCDR(1,14714598,1,1,2) [2025-03-19 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714598', 'tblTempUsageDetail_20' ) start [2025-03-19 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714598', 'tblTempUsageDetail_20' ) end [2025-03-19 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:31:23] Production.INFO: ==6867== Releasing lock... [2025-03-19 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:31:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-19 09:32:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:32:07 [end_date_ymd] => 2025-03-19 09:32:07 [RateCDR] => 1 ) [2025-03-19 09:32: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-03-19 06:32:07' and `end` < '2025-03-19 09:32: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-03-19 09:32:19] Production.INFO: count ==1368 [2025-03-19 09:32:20] Production.ERROR: pbx CDR StartTime 2025-03-19 06:32:07 - End Time 2025-03-19 09:32:07 [2025-03-19 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714603', 'tblTempUsageDetail_20' ) start [2025-03-19 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714603', 'tblTempUsageDetail_20' ) end [2025-03-19 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714603', 'tblTempVendorCDR_20' ) start [2025-03-19 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714603', 'tblTempVendorCDR_20' ) end [2025-03-19 09:32:20] Production.INFO: ProcessCDR(1,14714603,1,1,2) [2025-03-19 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714603', 'tblTempUsageDetail_20' ) start [2025-03-19 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714603', 'tblTempUsageDetail_20' ) end [2025-03-19 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:32:25] Production.INFO: ==6948== Releasing lock... [2025-03-19 09:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:32:25] Production.INFO: 38.25 MB #Memory Used# [2025-03-19 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:33:05 [end_date_ymd] => 2025-03-19 09:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:33:05' and `end` < '2025-03-19 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-03-19 09:33:18] Production.INFO: count ==1392 [2025-03-19 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:33:05 - End Time 2025-03-19 09:33:05 [2025-03-19 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714608', 'tblTempUsageDetail_20' ) start [2025-03-19 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714608', 'tblTempUsageDetail_20' ) end [2025-03-19 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714608', 'tblTempVendorCDR_20' ) start [2025-03-19 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714608', 'tblTempVendorCDR_20' ) end [2025-03-19 09:33:18] Production.INFO: ProcessCDR(1,14714608,1,1,2) [2025-03-19 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714608', 'tblTempUsageDetail_20' ) start [2025-03-19 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714608', 'tblTempUsageDetail_20' ) end [2025-03-19 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:33:24] Production.INFO: ==7033== Releasing lock... [2025-03-19 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:33:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-19 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:34:05 [end_date_ymd] => 2025-03-19 09:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:34:05' and `end` < '2025-03-19 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-03-19 09:34:18] Production.INFO: count ==1410 [2025-03-19 09:34:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:34:05 - End Time 2025-03-19 09:34:05 [2025-03-19 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714613', 'tblTempUsageDetail_20' ) start [2025-03-19 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714613', 'tblTempUsageDetail_20' ) end [2025-03-19 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714613', 'tblTempVendorCDR_20' ) start [2025-03-19 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714613', 'tblTempVendorCDR_20' ) end [2025-03-19 09:34:18] Production.INFO: ProcessCDR(1,14714613,1,1,2) [2025-03-19 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714613', 'tblTempUsageDetail_20' ) start [2025-03-19 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714613', 'tblTempUsageDetail_20' ) end [2025-03-19 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:34:24] Production.INFO: ==7121== Releasing lock... [2025-03-19 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:34:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-19 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:35:05 [end_date_ymd] => 2025-03-19 09:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:35:05' and `end` < '2025-03-19 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-03-19 09:35:18] Production.INFO: count ==1439 [2025-03-19 09:35:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:35:05 - End Time 2025-03-19 09:35:05 [2025-03-19 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714618', 'tblTempUsageDetail_20' ) start [2025-03-19 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714618', 'tblTempUsageDetail_20' ) end [2025-03-19 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714618', 'tblTempVendorCDR_20' ) start [2025-03-19 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714618', 'tblTempVendorCDR_20' ) end [2025-03-19 09:35:18] Production.INFO: ProcessCDR(1,14714618,1,1,2) [2025-03-19 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714618', 'tblTempUsageDetail_20' ) start [2025-03-19 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714618', 'tblTempUsageDetail_20' ) end [2025-03-19 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:35:24] Production.INFO: ==7203== Releasing lock... [2025-03-19 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:35:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-19 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:36:05 [end_date_ymd] => 2025-03-19 09:36:05 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:36:05' and `end` < '2025-03-19 09: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-03-19 09:36:17] Production.INFO: count ==1449 [2025-03-19 09:36:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:36:05 - End Time 2025-03-19 09:36:05 [2025-03-19 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714623', 'tblTempUsageDetail_20' ) start [2025-03-19 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714623', 'tblTempUsageDetail_20' ) end [2025-03-19 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714623', 'tblTempVendorCDR_20' ) start [2025-03-19 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714623', 'tblTempVendorCDR_20' ) end [2025-03-19 09:36:18] Production.INFO: ProcessCDR(1,14714623,1,1,2) [2025-03-19 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714623', 'tblTempUsageDetail_20' ) start [2025-03-19 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714623', 'tblTempUsageDetail_20' ) end [2025-03-19 09:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:36:23] Production.INFO: ==7290== Releasing lock... [2025-03-19 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:36:23] Production.INFO: 39 MB #Memory Used# [2025-03-19 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:37:05 [end_date_ymd] => 2025-03-19 09:37:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:37:05' and `end` < '2025-03-19 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-03-19 09:37:18] Production.INFO: count ==1462 [2025-03-19 09:37:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:37:05 - End Time 2025-03-19 09:37:05 [2025-03-19 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714628', 'tblTempUsageDetail_20' ) start [2025-03-19 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714628', 'tblTempUsageDetail_20' ) end [2025-03-19 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714628', 'tblTempVendorCDR_20' ) start [2025-03-19 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714628', 'tblTempVendorCDR_20' ) end [2025-03-19 09:37:19] Production.INFO: ProcessCDR(1,14714628,1,1,2) [2025-03-19 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714628', 'tblTempUsageDetail_20' ) start [2025-03-19 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714628', 'tblTempUsageDetail_20' ) end [2025-03-19 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:37:24] Production.INFO: ==7379== Releasing lock... [2025-03-19 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:37:24] Production.INFO: 39 MB #Memory Used# [2025-03-19 09:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:38:04 [end_date_ymd] => 2025-03-19 09:38:04 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:38:04' and `end` < '2025-03-19 09: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-03-19 09:38:17] Production.INFO: count ==1472 [2025-03-19 09:38:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:38:04 - End Time 2025-03-19 09:38:04 [2025-03-19 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714631', 'tblTempUsageDetail_20' ) start [2025-03-19 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714631', 'tblTempUsageDetail_20' ) end [2025-03-19 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714631', 'tblTempVendorCDR_20' ) start [2025-03-19 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714631', 'tblTempVendorCDR_20' ) end [2025-03-19 09:38:18] Production.INFO: ProcessCDR(1,14714631,1,1,2) [2025-03-19 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714631', 'tblTempUsageDetail_20' ) start [2025-03-19 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714631', 'tblTempUsageDetail_20' ) end [2025-03-19 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:38:23] Production.INFO: ==7466== Releasing lock... [2025-03-19 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:38:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-19 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:39:05 [end_date_ymd] => 2025-03-19 09:39:05 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:39:05' and `end` < '2025-03-19 09: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-03-19 09:39:18] Production.INFO: count ==1486 [2025-03-19 09:39:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:39:05 - End Time 2025-03-19 09:39:05 [2025-03-19 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714638', 'tblTempUsageDetail_20' ) start [2025-03-19 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714638', 'tblTempUsageDetail_20' ) end [2025-03-19 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714638', 'tblTempVendorCDR_20' ) start [2025-03-19 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714638', 'tblTempVendorCDR_20' ) end [2025-03-19 09:39:18] Production.INFO: ProcessCDR(1,14714638,1,1,2) [2025-03-19 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714638', 'tblTempUsageDetail_20' ) start [2025-03-19 09:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714638', 'tblTempUsageDetail_20' ) end [2025-03-19 09:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:39:23] Production.INFO: ==7546== Releasing lock... [2025-03-19 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:39:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-19 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:40:06 [end_date_ymd] => 2025-03-19 09:40:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:40:06' and `end` < '2025-03-19 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-03-19 09:40:19] Production.INFO: count ==1511 [2025-03-19 09:40:19] Production.ERROR: pbx CDR StartTime 2025-03-19 06:40:06 - End Time 2025-03-19 09:40:06 [2025-03-19 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714644', 'tblTempUsageDetail_20' ) start [2025-03-19 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714644', 'tblTempUsageDetail_20' ) end [2025-03-19 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714644', 'tblTempVendorCDR_20' ) start [2025-03-19 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714644', 'tblTempVendorCDR_20' ) end [2025-03-19 09:40:19] Production.INFO: ProcessCDR(1,14714644,1,1,2) [2025-03-19 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714644', 'tblTempUsageDetail_20' ) start [2025-03-19 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714644', 'tblTempUsageDetail_20' ) end [2025-03-19 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:40:25] Production.INFO: ==7635== Releasing lock... [2025-03-19 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:40:25] Production.INFO: 39.5 MB #Memory Used# [2025-03-19 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:41:05 [end_date_ymd] => 2025-03-19 09:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:41:05' and `end` < '2025-03-19 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-03-19 09:41:18] Production.INFO: count ==1583 [2025-03-19 09:41:19] Production.ERROR: pbx CDR StartTime 2025-03-19 06:41:05 - End Time 2025-03-19 09:41:05 [2025-03-19 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714649', 'tblTempUsageDetail_20' ) start [2025-03-19 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714649', 'tblTempUsageDetail_20' ) end [2025-03-19 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714649', 'tblTempVendorCDR_20' ) start [2025-03-19 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714649', 'tblTempVendorCDR_20' ) end [2025-03-19 09:41:19] Production.INFO: ProcessCDR(1,14714649,1,1,2) [2025-03-19 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714649', 'tblTempUsageDetail_20' ) start [2025-03-19 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714649', 'tblTempUsageDetail_20' ) end [2025-03-19 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:41:25] Production.INFO: ==7726== Releasing lock... [2025-03-19 09:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:41:25] Production.INFO: 40 MB #Memory Used# [2025-03-19 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:42:06 [end_date_ymd] => 2025-03-19 09:42:06 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:42:06' and `end` < '2025-03-19 09: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-03-19 09:42:19] Production.INFO: count ==1599 [2025-03-19 09:42:19] Production.ERROR: pbx CDR StartTime 2025-03-19 06:42:06 - End Time 2025-03-19 09:42:06 [2025-03-19 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714654', 'tblTempUsageDetail_20' ) start [2025-03-19 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714654', 'tblTempUsageDetail_20' ) end [2025-03-19 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714654', 'tblTempVendorCDR_20' ) start [2025-03-19 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714654', 'tblTempVendorCDR_20' ) end [2025-03-19 09:42:19] Production.INFO: ProcessCDR(1,14714654,1,1,2) [2025-03-19 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714654', 'tblTempUsageDetail_20' ) start [2025-03-19 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714654', 'tblTempUsageDetail_20' ) end [2025-03-19 09:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:42:25] Production.INFO: ==7810== Releasing lock... [2025-03-19 09:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:42:25] Production.INFO: 40 MB #Memory Used# [2025-03-19 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:43:05 [end_date_ymd] => 2025-03-19 09:43:05 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:43:05' and `end` < '2025-03-19 09: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-03-19 09:43:18] Production.INFO: count ==1613 [2025-03-19 09:43:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:43:05 - End Time 2025-03-19 09:43:05 [2025-03-19 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714659', 'tblTempUsageDetail_20' ) start [2025-03-19 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714659', 'tblTempUsageDetail_20' ) end [2025-03-19 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714659', 'tblTempVendorCDR_20' ) start [2025-03-19 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714659', 'tblTempVendorCDR_20' ) end [2025-03-19 09:43:18] Production.INFO: ProcessCDR(1,14714659,1,1,2) [2025-03-19 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714659', 'tblTempUsageDetail_20' ) start [2025-03-19 09:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714659', 'tblTempUsageDetail_20' ) end [2025-03-19 09:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:43:23] Production.INFO: ==7892== Releasing lock... [2025-03-19 09:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:43:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-19 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:44:05 [end_date_ymd] => 2025-03-19 09:44:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:44:05' and `end` < '2025-03-19 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-03-19 09:44:18] Production.INFO: count ==1636 [2025-03-19 09:44:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:44:05 - End Time 2025-03-19 09:44:05 [2025-03-19 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714664', 'tblTempUsageDetail_20' ) start [2025-03-19 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714664', 'tblTempUsageDetail_20' ) end [2025-03-19 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714664', 'tblTempVendorCDR_20' ) start [2025-03-19 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714664', 'tblTempVendorCDR_20' ) end [2025-03-19 09:44:18] Production.INFO: ProcessCDR(1,14714664,1,1,2) [2025-03-19 09:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714664', 'tblTempUsageDetail_20' ) start [2025-03-19 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714664', 'tblTempUsageDetail_20' ) end [2025-03-19 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:44:24] Production.INFO: ==7979== Releasing lock... [2025-03-19 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:44:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-19 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:45:05 [end_date_ymd] => 2025-03-19 09:45:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:45:05' and `end` < '2025-03-19 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-03-19 09:45:17] Production.INFO: count ==1641 [2025-03-19 09:45:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:45:05 - End Time 2025-03-19 09:45:05 [2025-03-19 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714669', 'tblTempUsageDetail_20' ) start [2025-03-19 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714669', 'tblTempUsageDetail_20' ) end [2025-03-19 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714669', 'tblTempVendorCDR_20' ) start [2025-03-19 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714669', 'tblTempVendorCDR_20' ) end [2025-03-19 09:45:18] Production.INFO: ProcessCDR(1,14714669,1,1,2) [2025-03-19 09:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714669', 'tblTempUsageDetail_20' ) start [2025-03-19 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714669', 'tblTempUsageDetail_20' ) end [2025-03-19 09:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:45:23] Production.INFO: ==8071== Releasing lock... [2025-03-19 09:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:45:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-19 09:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:46:06 [end_date_ymd] => 2025-03-19 09:46:06 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:46:06' and `end` < '2025-03-19 09: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-03-19 09:46:18] Production.INFO: count ==1660 [2025-03-19 09:46:19] Production.ERROR: pbx CDR StartTime 2025-03-19 06:46:06 - End Time 2025-03-19 09:46:06 [2025-03-19 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714674', 'tblTempUsageDetail_20' ) start [2025-03-19 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714674', 'tblTempUsageDetail_20' ) end [2025-03-19 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714674', 'tblTempVendorCDR_20' ) start [2025-03-19 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714674', 'tblTempVendorCDR_20' ) end [2025-03-19 09:46:19] Production.INFO: ProcessCDR(1,14714674,1,1,2) [2025-03-19 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714674', 'tblTempUsageDetail_20' ) start [2025-03-19 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714674', 'tblTempUsageDetail_20' ) end [2025-03-19 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:46:24] Production.INFO: ==8199== Releasing lock... [2025-03-19 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:46:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-19 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:47:05 [end_date_ymd] => 2025-03-19 09:47:05 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:47:05' and `end` < '2025-03-19 09: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-03-19 09:47:17] Production.INFO: count ==1668 [2025-03-19 09:47:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:47:05 - End Time 2025-03-19 09:47:05 [2025-03-19 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714679', 'tblTempUsageDetail_20' ) start [2025-03-19 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714679', 'tblTempUsageDetail_20' ) end [2025-03-19 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714679', 'tblTempVendorCDR_20' ) start [2025-03-19 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714679', 'tblTempVendorCDR_20' ) end [2025-03-19 09:47:18] Production.INFO: ProcessCDR(1,14714679,1,1,2) [2025-03-19 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714679', 'tblTempUsageDetail_20' ) start [2025-03-19 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714679', 'tblTempUsageDetail_20' ) end [2025-03-19 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:47:23] Production.INFO: ==8278== Releasing lock... [2025-03-19 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:47:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-19 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:48:04 [end_date_ymd] => 2025-03-19 09:48:04 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:48:04' and `end` < '2025-03-19 09: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-03-19 09:48:17] Production.INFO: count ==1689 [2025-03-19 09:48:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:48:04 - End Time 2025-03-19 09:48:04 [2025-03-19 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714684', 'tblTempUsageDetail_20' ) start [2025-03-19 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714684', 'tblTempUsageDetail_20' ) end [2025-03-19 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714684', 'tblTempVendorCDR_20' ) start [2025-03-19 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714684', 'tblTempVendorCDR_20' ) end [2025-03-19 09:48:18] Production.INFO: ProcessCDR(1,14714684,1,1,2) [2025-03-19 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714684', 'tblTempUsageDetail_20' ) start [2025-03-19 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714684', 'tblTempUsageDetail_20' ) end [2025-03-19 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:48:23] Production.INFO: ==8363== Releasing lock... [2025-03-19 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:48:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-19 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:49:05 [end_date_ymd] => 2025-03-19 09:49:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:49:05' and `end` < '2025-03-19 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-03-19 09:49:17] Production.INFO: count ==1701 [2025-03-19 09:49:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:49:05 - End Time 2025-03-19 09:49:05 [2025-03-19 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714689', 'tblTempUsageDetail_20' ) start [2025-03-19 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714689', 'tblTempUsageDetail_20' ) end [2025-03-19 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714689', 'tblTempVendorCDR_20' ) start [2025-03-19 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714689', 'tblTempVendorCDR_20' ) end [2025-03-19 09:49:18] Production.INFO: ProcessCDR(1,14714689,1,1,2) [2025-03-19 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714689', 'tblTempUsageDetail_20' ) start [2025-03-19 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714689', 'tblTempUsageDetail_20' ) end [2025-03-19 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:49:23] Production.INFO: ==8448== Releasing lock... [2025-03-19 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:49:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-19 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:50:06 [end_date_ymd] => 2025-03-19 09:50:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:50:06' and `end` < '2025-03-19 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-03-19 09:50:18] Production.INFO: count ==1716 [2025-03-19 09:50:19] Production.ERROR: pbx CDR StartTime 2025-03-19 06:50:06 - End Time 2025-03-19 09:50:06 [2025-03-19 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714695', 'tblTempUsageDetail_20' ) start [2025-03-19 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714695', 'tblTempUsageDetail_20' ) end [2025-03-19 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714695', 'tblTempVendorCDR_20' ) start [2025-03-19 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714695', 'tblTempVendorCDR_20' ) end [2025-03-19 09:50:19] Production.INFO: ProcessCDR(1,14714695,1,1,2) [2025-03-19 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714695', 'tblTempUsageDetail_20' ) start [2025-03-19 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714695', 'tblTempUsageDetail_20' ) end [2025-03-19 09:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:50:24] Production.INFO: ==8536== Releasing lock... [2025-03-19 09:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:50:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-19 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:51:06 [end_date_ymd] => 2025-03-19 09:51:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:51:06' and `end` < '2025-03-19 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-03-19 09:51:18] Production.INFO: count ==1790 [2025-03-19 09:51:19] Production.ERROR: pbx CDR StartTime 2025-03-19 06:51:06 - End Time 2025-03-19 09:51:06 [2025-03-19 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714700', 'tblTempUsageDetail_20' ) start [2025-03-19 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714700', 'tblTempUsageDetail_20' ) end [2025-03-19 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714700', 'tblTempVendorCDR_20' ) start [2025-03-19 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714700', 'tblTempVendorCDR_20' ) end [2025-03-19 09:51:19] Production.INFO: ProcessCDR(1,14714700,1,1,2) [2025-03-19 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714700', 'tblTempUsageDetail_20' ) start [2025-03-19 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714700', 'tblTempUsageDetail_20' ) end [2025-03-19 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:51:24] Production.INFO: ==8626== Releasing lock... [2025-03-19 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:51:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-19 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:52:06 [end_date_ymd] => 2025-03-19 09:52:06 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:52:06' and `end` < '2025-03-19 09: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-03-19 09:52:19] Production.INFO: count ==1791 [2025-03-19 09:52:19] Production.ERROR: pbx CDR StartTime 2025-03-19 06:52:06 - End Time 2025-03-19 09:52:06 [2025-03-19 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714705', 'tblTempUsageDetail_20' ) start [2025-03-19 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714705', 'tblTempUsageDetail_20' ) end [2025-03-19 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714705', 'tblTempVendorCDR_20' ) start [2025-03-19 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714705', 'tblTempVendorCDR_20' ) end [2025-03-19 09:52:19] Production.INFO: ProcessCDR(1,14714705,1,1,2) [2025-03-19 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714705', 'tblTempUsageDetail_20' ) start [2025-03-19 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714705', 'tblTempUsageDetail_20' ) end [2025-03-19 09:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:52:25] Production.INFO: ==8710== Releasing lock... [2025-03-19 09:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:52:25] Production.INFO: 41.75 MB #Memory Used# [2025-03-19 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:53:05 [end_date_ymd] => 2025-03-19 09:53:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:53:05' and `end` < '2025-03-19 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-03-19 09:53:18] Production.INFO: count ==1799 [2025-03-19 09:53:19] Production.ERROR: pbx CDR StartTime 2025-03-19 06:53:05 - End Time 2025-03-19 09:53:05 [2025-03-19 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714710', 'tblTempUsageDetail_20' ) start [2025-03-19 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714710', 'tblTempUsageDetail_20' ) end [2025-03-19 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714710', 'tblTempVendorCDR_20' ) start [2025-03-19 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714710', 'tblTempVendorCDR_20' ) end [2025-03-19 09:53:19] Production.INFO: ProcessCDR(1,14714710,1,1,2) [2025-03-19 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714710', 'tblTempUsageDetail_20' ) start [2025-03-19 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714710', 'tblTempUsageDetail_20' ) end [2025-03-19 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:53:24] Production.INFO: ==8792== Releasing lock... [2025-03-19 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:53:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-19 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:54:06 [end_date_ymd] => 2025-03-19 09:54:06 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:54:06' and `end` < '2025-03-19 09: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-03-19 09:54:19] Production.INFO: count ==1813 [2025-03-19 09:54:19] Production.ERROR: pbx CDR StartTime 2025-03-19 06:54:06 - End Time 2025-03-19 09:54:06 [2025-03-19 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714715', 'tblTempUsageDetail_20' ) start [2025-03-19 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714715', 'tblTempUsageDetail_20' ) end [2025-03-19 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714715', 'tblTempVendorCDR_20' ) start [2025-03-19 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714715', 'tblTempVendorCDR_20' ) end [2025-03-19 09:54:19] Production.INFO: ProcessCDR(1,14714715,1,1,2) [2025-03-19 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714715', 'tblTempUsageDetail_20' ) start [2025-03-19 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714715', 'tblTempUsageDetail_20' ) end [2025-03-19 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:54:25] Production.INFO: ==8880== Releasing lock... [2025-03-19 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:54:25] Production.INFO: 41.75 MB #Memory Used# [2025-03-19 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:55:06 [end_date_ymd] => 2025-03-19 09:55:06 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:55:06' and `end` < '2025-03-19 09: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-03-19 09:55:18] Production.INFO: count ==1818 [2025-03-19 09:55:19] Production.ERROR: pbx CDR StartTime 2025-03-19 06:55:06 - End Time 2025-03-19 09:55:06 [2025-03-19 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714720', 'tblTempUsageDetail_20' ) start [2025-03-19 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714720', 'tblTempUsageDetail_20' ) end [2025-03-19 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714720', 'tblTempVendorCDR_20' ) start [2025-03-19 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714720', 'tblTempVendorCDR_20' ) end [2025-03-19 09:55:19] Production.INFO: ProcessCDR(1,14714720,1,1,2) [2025-03-19 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714720', 'tblTempUsageDetail_20' ) start [2025-03-19 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714720', 'tblTempUsageDetail_20' ) end [2025-03-19 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:55:25] Production.INFO: ==8955== Releasing lock... [2025-03-19 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:55:25] Production.INFO: 42 MB #Memory Used# [2025-03-19 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:56:05 [end_date_ymd] => 2025-03-19 09:56:05 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:56:05' and `end` < '2025-03-19 09: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-03-19 09:56:18] Production.INFO: count ==1838 [2025-03-19 09:56:19] Production.ERROR: pbx CDR StartTime 2025-03-19 06:56:05 - End Time 2025-03-19 09:56:05 [2025-03-19 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714725', 'tblTempUsageDetail_20' ) start [2025-03-19 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714725', 'tblTempUsageDetail_20' ) end [2025-03-19 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714725', 'tblTempVendorCDR_20' ) start [2025-03-19 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714725', 'tblTempVendorCDR_20' ) end [2025-03-19 09:56:19] Production.INFO: ProcessCDR(1,14714725,1,1,2) [2025-03-19 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714725', 'tblTempUsageDetail_20' ) start [2025-03-19 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714725', 'tblTempUsageDetail_20' ) end [2025-03-19 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:56:24] Production.INFO: ==9037== Releasing lock... [2025-03-19 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:56:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-19 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:57:06 [end_date_ymd] => 2025-03-19 09:57:06 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:57:06' and `end` < '2025-03-19 09: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-03-19 09:57:19] Production.INFO: count ==1848 [2025-03-19 09:57:19] Production.ERROR: pbx CDR StartTime 2025-03-19 06:57:06 - End Time 2025-03-19 09:57:06 [2025-03-19 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714730', 'tblTempUsageDetail_20' ) start [2025-03-19 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714730', 'tblTempUsageDetail_20' ) end [2025-03-19 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714730', 'tblTempVendorCDR_20' ) start [2025-03-19 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714730', 'tblTempVendorCDR_20' ) end [2025-03-19 09:57:19] Production.INFO: ProcessCDR(1,14714730,1,1,2) [2025-03-19 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714730', 'tblTempUsageDetail_20' ) start [2025-03-19 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714730', 'tblTempUsageDetail_20' ) end [2025-03-19 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:57:24] Production.INFO: ==9117== Releasing lock... [2025-03-19 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:57:24] Production.INFO: 42 MB #Memory Used# [2025-03-19 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:58:05 [end_date_ymd] => 2025-03-19 09:58:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 06:58:05' and `end` < '2025-03-19 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-03-19 09:58:18] Production.INFO: count ==1865 [2025-03-19 09:58:18] Production.ERROR: pbx CDR StartTime 2025-03-19 06:58:05 - End Time 2025-03-19 09:58:05 [2025-03-19 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714735', 'tblTempUsageDetail_20' ) start [2025-03-19 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714735', 'tblTempUsageDetail_20' ) end [2025-03-19 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714735', 'tblTempVendorCDR_20' ) start [2025-03-19 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714735', 'tblTempVendorCDR_20' ) end [2025-03-19 09:58:18] Production.INFO: ProcessCDR(1,14714735,1,1,2) [2025-03-19 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714735', 'tblTempUsageDetail_20' ) start [2025-03-19 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714735', 'tblTempUsageDetail_20' ) end [2025-03-19 09:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:58:23] Production.INFO: ==9195== Releasing lock... [2025-03-19 09:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:58:23] Production.INFO: 42 MB #Memory Used# [2025-03-19 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 06:59:05 [end_date_ymd] => 2025-03-19 09:59:05 [RateCDR] => 1 ) [2025-03-19 09: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-03-19 06:59:05' and `end` < '2025-03-19 09: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-03-19 09:59:18] Production.INFO: count ==1882 [2025-03-19 09:59:19] Production.ERROR: pbx CDR StartTime 2025-03-19 06:59:05 - End Time 2025-03-19 09:59:05 [2025-03-19 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714740', 'tblTempUsageDetail_20' ) start [2025-03-19 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714740', 'tblTempUsageDetail_20' ) end [2025-03-19 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714740', 'tblTempVendorCDR_20' ) start [2025-03-19 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714740', 'tblTempVendorCDR_20' ) end [2025-03-19 09:59:19] Production.INFO: ProcessCDR(1,14714740,1,1,2) [2025-03-19 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714740', 'tblTempUsageDetail_20' ) start [2025-03-19 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714740', 'tblTempUsageDetail_20' ) end [2025-03-19 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 09:59:24] Production.INFO: ==9286== Releasing lock... [2025-03-19 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 09:59:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-19 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:00:07 [end_date_ymd] => 2025-03-19 10:00:07 [RateCDR] => 1 ) [2025-03-19 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 07:00:07' and `end` < '2025-03-19 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 10:00:19] Production.INFO: count ==1886 [2025-03-19 10:00:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:00:07 - End Time 2025-03-19 10:00:07 [2025-03-19 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714746', 'tblTempUsageDetail_20' ) start [2025-03-19 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714746', 'tblTempUsageDetail_20' ) end [2025-03-19 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714746', 'tblTempVendorCDR_20' ) start [2025-03-19 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714746', 'tblTempVendorCDR_20' ) end [2025-03-19 10:00:20] Production.INFO: ProcessCDR(1,14714746,1,1,2) [2025-03-19 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714746', 'tblTempUsageDetail_20' ) start [2025-03-19 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714746', 'tblTempUsageDetail_20' ) end [2025-03-19 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:00:25] Production.INFO: ==9367== Releasing lock... [2025-03-19 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:00:25] Production.INFO: 42.25 MB #Memory Used# [2025-03-19 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:01:05 [end_date_ymd] => 2025-03-19 10:01:05 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:01:05' and `end` < '2025-03-19 10: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-03-19 10:01:18] Production.INFO: count ==2005 [2025-03-19 10:01:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:01:05 - End Time 2025-03-19 10:01:05 [2025-03-19 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714751', 'tblTempUsageDetail_20' ) start [2025-03-19 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714751', 'tblTempUsageDetail_20' ) end [2025-03-19 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714751', 'tblTempVendorCDR_20' ) start [2025-03-19 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714751', 'tblTempVendorCDR_20' ) end [2025-03-19 10:01:19] Production.INFO: ProcessCDR(1,14714751,1,1,2) [2025-03-19 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714751', 'tblTempUsageDetail_20' ) start [2025-03-19 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714751', 'tblTempUsageDetail_20' ) end [2025-03-19 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:01:24] Production.INFO: ==9503== Releasing lock... [2025-03-19 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:01:24] Production.INFO: 43 MB #Memory Used# [2025-03-19 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:02:06 [end_date_ymd] => 2025-03-19 10:02:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:02:06' and `end` < '2025-03-19 10: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-03-19 10:02:19] Production.INFO: count ==2006 [2025-03-19 10:02:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:02:06 - End Time 2025-03-19 10:02:06 [2025-03-19 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714756', 'tblTempUsageDetail_20' ) start [2025-03-19 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714756', 'tblTempUsageDetail_20' ) end [2025-03-19 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714756', 'tblTempVendorCDR_20' ) start [2025-03-19 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714756', 'tblTempVendorCDR_20' ) end [2025-03-19 10:02:20] Production.INFO: ProcessCDR(1,14714756,1,1,2) [2025-03-19 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714756', 'tblTempUsageDetail_20' ) start [2025-03-19 10:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714756', 'tblTempUsageDetail_20' ) end [2025-03-19 10:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:02:26] Production.INFO: ==9582== Releasing lock... [2025-03-19 10:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:02:26] Production.INFO: 43 MB #Memory Used# [2025-03-19 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:03:06 [end_date_ymd] => 2025-03-19 10:03:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:03:06' and `end` < '2025-03-19 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-03-19 10:03:18] Production.INFO: count ==2024 [2025-03-19 10:03:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:03:06 - End Time 2025-03-19 10:03:06 [2025-03-19 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714761', 'tblTempUsageDetail_20' ) start [2025-03-19 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714761', 'tblTempUsageDetail_20' ) end [2025-03-19 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714761', 'tblTempVendorCDR_20' ) start [2025-03-19 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714761', 'tblTempVendorCDR_20' ) end [2025-03-19 10:03:19] Production.INFO: ProcessCDR(1,14714761,1,1,2) [2025-03-19 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714761', 'tblTempUsageDetail_20' ) start [2025-03-19 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714761', 'tblTempUsageDetail_20' ) end [2025-03-19 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:03:25] Production.INFO: ==9658== Releasing lock... [2025-03-19 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:03:25] Production.INFO: 43.5 MB #Memory Used# [2025-03-19 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:04:05 [end_date_ymd] => 2025-03-19 10:04:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:04:05' and `end` < '2025-03-19 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-03-19 10:04:18] Production.INFO: count ==2042 [2025-03-19 10:04:18] Production.ERROR: pbx CDR StartTime 2025-03-19 07:04:05 - End Time 2025-03-19 10:04:05 [2025-03-19 10:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714766', 'tblTempUsageDetail_20' ) start [2025-03-19 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714766', 'tblTempUsageDetail_20' ) end [2025-03-19 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714766', 'tblTempVendorCDR_20' ) start [2025-03-19 10:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714766', 'tblTempVendorCDR_20' ) end [2025-03-19 10:04:18] Production.INFO: ProcessCDR(1,14714766,1,1,2) [2025-03-19 10:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714766', 'tblTempUsageDetail_20' ) start [2025-03-19 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714766', 'tblTempUsageDetail_20' ) end [2025-03-19 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:04:24] Production.INFO: ==9747== Releasing lock... [2025-03-19 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:04:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-19 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:05:06 [end_date_ymd] => 2025-03-19 10:05:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:05:06' and `end` < '2025-03-19 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-03-19 10:05:18] Production.INFO: count ==2046 [2025-03-19 10:05:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:05:06 - End Time 2025-03-19 10:05:06 [2025-03-19 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714771', 'tblTempUsageDetail_20' ) start [2025-03-19 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714771', 'tblTempUsageDetail_20' ) end [2025-03-19 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714771', 'tblTempVendorCDR_20' ) start [2025-03-19 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714771', 'tblTempVendorCDR_20' ) end [2025-03-19 10:05:19] Production.INFO: ProcessCDR(1,14714771,1,1,2) [2025-03-19 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714771', 'tblTempUsageDetail_20' ) start [2025-03-19 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714771', 'tblTempUsageDetail_20' ) end [2025-03-19 10:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:05:23] Production.INFO: ==9834== Releasing lock... [2025-03-19 10:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:05:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-19 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:06:06 [end_date_ymd] => 2025-03-19 10:06:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:06:06' and `end` < '2025-03-19 10: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-03-19 10:06:18] Production.INFO: count ==2049 [2025-03-19 10:06:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:06:06 - End Time 2025-03-19 10:06:06 [2025-03-19 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714776', 'tblTempUsageDetail_20' ) start [2025-03-19 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714776', 'tblTempUsageDetail_20' ) end [2025-03-19 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714776', 'tblTempVendorCDR_20' ) start [2025-03-19 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714776', 'tblTempVendorCDR_20' ) end [2025-03-19 10:06:20] Production.INFO: ProcessCDR(1,14714776,1,1,2) [2025-03-19 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714776', 'tblTempUsageDetail_20' ) start [2025-03-19 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714776', 'tblTempUsageDetail_20' ) end [2025-03-19 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:06:25] Production.INFO: ==9922== Releasing lock... [2025-03-19 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:06:25] Production.INFO: 43.5 MB #Memory Used# [2025-03-19 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:07:05 [end_date_ymd] => 2025-03-19 10:07:05 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:07:05' and `end` < '2025-03-19 10: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-03-19 10:07:18] Production.INFO: count ==2057 [2025-03-19 10:07:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:07:05 - End Time 2025-03-19 10:07:05 [2025-03-19 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714781', 'tblTempUsageDetail_20' ) start [2025-03-19 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714781', 'tblTempUsageDetail_20' ) end [2025-03-19 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714781', 'tblTempVendorCDR_20' ) start [2025-03-19 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714781', 'tblTempVendorCDR_20' ) end [2025-03-19 10:07:19] Production.INFO: ProcessCDR(1,14714781,1,1,2) [2025-03-19 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714781', 'tblTempUsageDetail_20' ) start [2025-03-19 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714781', 'tblTempUsageDetail_20' ) end [2025-03-19 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:07:25] Production.INFO: ==10008== Releasing lock... [2025-03-19 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:07:25] Production.INFO: 43.5 MB #Memory Used# [2025-03-19 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:08:05 [end_date_ymd] => 2025-03-19 10:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:08:05' and `end` < '2025-03-19 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-03-19 10:08:18] Production.INFO: count ==2091 [2025-03-19 10:08:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:08:05 - End Time 2025-03-19 10:08:05 [2025-03-19 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714786', 'tblTempUsageDetail_20' ) start [2025-03-19 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714786', 'tblTempUsageDetail_20' ) end [2025-03-19 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714786', 'tblTempVendorCDR_20' ) start [2025-03-19 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714786', 'tblTempVendorCDR_20' ) end [2025-03-19 10:08:19] Production.INFO: ProcessCDR(1,14714786,1,1,2) [2025-03-19 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714786', 'tblTempUsageDetail_20' ) start [2025-03-19 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714786', 'tblTempUsageDetail_20' ) end [2025-03-19 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:08:25] Production.INFO: ==10084== Releasing lock... [2025-03-19 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:08:25] Production.INFO: 43.75 MB #Memory Used# [2025-03-19 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:09:05 [end_date_ymd] => 2025-03-19 10:09:05 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:09:05' and `end` < '2025-03-19 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-03-19 10:09:18] Production.INFO: count ==2115 [2025-03-19 10:09:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:09:05 - End Time 2025-03-19 10:09:05 [2025-03-19 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714791', 'tblTempUsageDetail_20' ) start [2025-03-19 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714791', 'tblTempUsageDetail_20' ) end [2025-03-19 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714791', 'tblTempVendorCDR_20' ) start [2025-03-19 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714791', 'tblTempVendorCDR_20' ) end [2025-03-19 10:09:19] Production.INFO: ProcessCDR(1,14714791,1,1,2) [2025-03-19 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714791', 'tblTempUsageDetail_20' ) start [2025-03-19 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714791', 'tblTempUsageDetail_20' ) end [2025-03-19 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:09:25] Production.INFO: ==10173== Releasing lock... [2025-03-19 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:09:25] Production.INFO: 44 MB #Memory Used# [2025-03-19 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:10:07 [end_date_ymd] => 2025-03-19 10:10:07 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:10:07' and `end` < '2025-03-19 10: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-03-19 10:10:19] Production.INFO: count ==2175 [2025-03-19 10:10:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:10:07 - End Time 2025-03-19 10:10:07 [2025-03-19 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714797', 'tblTempUsageDetail_20' ) start [2025-03-19 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714797', 'tblTempUsageDetail_20' ) end [2025-03-19 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714797', 'tblTempVendorCDR_20' ) start [2025-03-19 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714797', 'tblTempVendorCDR_20' ) end [2025-03-19 10:10:20] Production.INFO: ProcessCDR(1,14714797,1,1,2) [2025-03-19 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714797', 'tblTempUsageDetail_20' ) start [2025-03-19 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714797', 'tblTempUsageDetail_20' ) end [2025-03-19 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:10:26] Production.INFO: ==10252== Releasing lock... [2025-03-19 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:10:26] Production.INFO: 44.75 MB #Memory Used# [2025-03-19 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:11:06 [end_date_ymd] => 2025-03-19 10:11:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:11:06' and `end` < '2025-03-19 10: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-03-19 10:11:18] Production.INFO: count ==2239 [2025-03-19 10:11:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:11:06 - End Time 2025-03-19 10:11:06 [2025-03-19 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714802', 'tblTempUsageDetail_20' ) start [2025-03-19 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714802', 'tblTempUsageDetail_20' ) end [2025-03-19 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714802', 'tblTempVendorCDR_20' ) start [2025-03-19 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714802', 'tblTempVendorCDR_20' ) end [2025-03-19 10:11:19] Production.INFO: ProcessCDR(1,14714802,1,1,2) [2025-03-19 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714802', 'tblTempUsageDetail_20' ) start [2025-03-19 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714802', 'tblTempUsageDetail_20' ) end [2025-03-19 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:11:25] Production.INFO: ==10336== Releasing lock... [2025-03-19 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:11:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-19 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:12:05 [end_date_ymd] => 2025-03-19 10:12:05 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:12:05' and `end` < '2025-03-19 10: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-03-19 10:12:18] Production.INFO: count ==2257 [2025-03-19 10:12:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:12:05 - End Time 2025-03-19 10:12:05 [2025-03-19 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714807', 'tblTempUsageDetail_20' ) start [2025-03-19 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714807', 'tblTempUsageDetail_20' ) end [2025-03-19 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714807', 'tblTempVendorCDR_20' ) start [2025-03-19 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714807', 'tblTempVendorCDR_20' ) end [2025-03-19 10:12:19] Production.INFO: ProcessCDR(1,14714807,1,1,2) [2025-03-19 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714807', 'tblTempUsageDetail_20' ) start [2025-03-19 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714807', 'tblTempUsageDetail_20' ) end [2025-03-19 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:12:25] Production.INFO: ==10424== Releasing lock... [2025-03-19 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:12:25] Production.INFO: 45 MB #Memory Used# [2025-03-19 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:13:05 [end_date_ymd] => 2025-03-19 10:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:13:05' and `end` < '2025-03-19 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-03-19 10:13:18] Production.INFO: count ==2277 [2025-03-19 10:13:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:13:05 - End Time 2025-03-19 10:13:05 [2025-03-19 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714812', 'tblTempUsageDetail_20' ) start [2025-03-19 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714812', 'tblTempUsageDetail_20' ) end [2025-03-19 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714812', 'tblTempVendorCDR_20' ) start [2025-03-19 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714812', 'tblTempVendorCDR_20' ) end [2025-03-19 10:13:19] Production.INFO: ProcessCDR(1,14714812,1,1,2) [2025-03-19 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714812', 'tblTempUsageDetail_20' ) start [2025-03-19 10:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714812', 'tblTempUsageDetail_20' ) end [2025-03-19 10:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:13:23] Production.INFO: ==10511== Releasing lock... [2025-03-19 10:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:13:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-19 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:14:06 [end_date_ymd] => 2025-03-19 10:14:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:14:06' and `end` < '2025-03-19 10: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-03-19 10:14:19] Production.INFO: count ==2320 [2025-03-19 10:14:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:14:06 - End Time 2025-03-19 10:14:06 [2025-03-19 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714817', 'tblTempUsageDetail_20' ) start [2025-03-19 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714817', 'tblTempUsageDetail_20' ) end [2025-03-19 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714817', 'tblTempVendorCDR_20' ) start [2025-03-19 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714817', 'tblTempVendorCDR_20' ) end [2025-03-19 10:14:20] Production.INFO: ProcessCDR(1,14714817,1,1,2) [2025-03-19 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714817', 'tblTempUsageDetail_20' ) start [2025-03-19 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714817', 'tblTempUsageDetail_20' ) end [2025-03-19 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:14:26] Production.INFO: ==10598== Releasing lock... [2025-03-19 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:14:26] Production.INFO: 45.5 MB #Memory Used# [2025-03-19 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:15:06 [end_date_ymd] => 2025-03-19 10:15:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:15:06' and `end` < '2025-03-19 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-03-19 10:15:19] Production.INFO: count ==2331 [2025-03-19 10:15:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:15:06 - End Time 2025-03-19 10:15:06 [2025-03-19 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714822', 'tblTempUsageDetail_20' ) start [2025-03-19 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714822', 'tblTempUsageDetail_20' ) end [2025-03-19 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714822', 'tblTempVendorCDR_20' ) start [2025-03-19 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714822', 'tblTempVendorCDR_20' ) end [2025-03-19 10:15:20] Production.INFO: ProcessCDR(1,14714822,1,1,2) [2025-03-19 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714822', 'tblTempUsageDetail_20' ) start [2025-03-19 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714822', 'tblTempUsageDetail_20' ) end [2025-03-19 10:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:15:26] Production.INFO: ==10692== Releasing lock... [2025-03-19 10:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:15:26] Production.INFO: 45.5 MB #Memory Used# [2025-03-19 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:16:05 [end_date_ymd] => 2025-03-19 10:16:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:16:05' and `end` < '2025-03-19 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-03-19 10:16:18] Production.INFO: count ==2351 [2025-03-19 10:16:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:16:05 - End Time 2025-03-19 10:16:05 [2025-03-19 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714827', 'tblTempUsageDetail_20' ) start [2025-03-19 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714827', 'tblTempUsageDetail_20' ) end [2025-03-19 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714827', 'tblTempVendorCDR_20' ) start [2025-03-19 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714827', 'tblTempVendorCDR_20' ) end [2025-03-19 10:16:19] Production.INFO: ProcessCDR(1,14714827,1,1,2) [2025-03-19 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714827', 'tblTempUsageDetail_20' ) start [2025-03-19 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714827', 'tblTempUsageDetail_20' ) end [2025-03-19 10:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:16:24] Production.INFO: ==10832== Releasing lock... [2025-03-19 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:16:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-19 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:17:06 [end_date_ymd] => 2025-03-19 10:17:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:17:06' and `end` < '2025-03-19 10: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-03-19 10:17:19] Production.INFO: count ==2365 [2025-03-19 10:17:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:17:06 - End Time 2025-03-19 10:17:06 [2025-03-19 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714832', 'tblTempUsageDetail_20' ) start [2025-03-19 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714832', 'tblTempUsageDetail_20' ) end [2025-03-19 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714832', 'tblTempVendorCDR_20' ) start [2025-03-19 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714832', 'tblTempVendorCDR_20' ) end [2025-03-19 10:17:20] Production.INFO: ProcessCDR(1,14714832,1,1,2) [2025-03-19 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714832', 'tblTempUsageDetail_20' ) start [2025-03-19 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714832', 'tblTempUsageDetail_20' ) end [2025-03-19 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:17:25] Production.INFO: ==10923== Releasing lock... [2025-03-19 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:17:25] Production.INFO: 45.75 MB #Memory Used# [2025-03-19 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:18:05 [end_date_ymd] => 2025-03-19 10:18:05 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:18:05' and `end` < '2025-03-19 10: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-03-19 10:18:17] Production.INFO: count ==2369 [2025-03-19 10:18:18] Production.ERROR: pbx CDR StartTime 2025-03-19 07:18:05 - End Time 2025-03-19 10:18:05 [2025-03-19 10:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714837', 'tblTempUsageDetail_20' ) start [2025-03-19 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714837', 'tblTempUsageDetail_20' ) end [2025-03-19 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714837', 'tblTempVendorCDR_20' ) start [2025-03-19 10:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714837', 'tblTempVendorCDR_20' ) end [2025-03-19 10:18:18] Production.INFO: ProcessCDR(1,14714837,1,1,2) [2025-03-19 10:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714837', 'tblTempUsageDetail_20' ) start [2025-03-19 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714837', 'tblTempUsageDetail_20' ) end [2025-03-19 10:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:18:24] Production.INFO: ==11007== Releasing lock... [2025-03-19 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:18:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-19 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:19:06 [end_date_ymd] => 2025-03-19 10:19:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:19:06' and `end` < '2025-03-19 10: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-03-19 10:19:19] Production.INFO: count ==2386 [2025-03-19 10:19:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:19:06 - End Time 2025-03-19 10:19:06 [2025-03-19 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714842', 'tblTempUsageDetail_20' ) start [2025-03-19 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714842', 'tblTempUsageDetail_20' ) end [2025-03-19 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714842', 'tblTempVendorCDR_20' ) start [2025-03-19 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714842', 'tblTempVendorCDR_20' ) end [2025-03-19 10:19:20] Production.INFO: ProcessCDR(1,14714842,1,1,2) [2025-03-19 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714842', 'tblTempUsageDetail_20' ) start [2025-03-19 10:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714842', 'tblTempUsageDetail_20' ) end [2025-03-19 10:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:19:26] Production.INFO: ==11103== Releasing lock... [2025-03-19 10:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:19:26] Production.INFO: 46 MB #Memory Used# [2025-03-19 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:20:06 [end_date_ymd] => 2025-03-19 10:20:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:20:06' and `end` < '2025-03-19 10: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-03-19 10:20:19] Production.INFO: count ==2406 [2025-03-19 10:20:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:20:06 - End Time 2025-03-19 10:20:06 [2025-03-19 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714848', 'tblTempUsageDetail_20' ) start [2025-03-19 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714848', 'tblTempUsageDetail_20' ) end [2025-03-19 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714848', 'tblTempVendorCDR_20' ) start [2025-03-19 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714848', 'tblTempVendorCDR_20' ) end [2025-03-19 10:20:20] Production.INFO: ProcessCDR(1,14714848,1,1,2) [2025-03-19 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714848', 'tblTempUsageDetail_20' ) start [2025-03-19 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714848', 'tblTempUsageDetail_20' ) end [2025-03-19 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:20:25] Production.INFO: ==11185== Releasing lock... [2025-03-19 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:20:25] Production.INFO: 46 MB #Memory Used# [2025-03-19 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:21:06 [end_date_ymd] => 2025-03-19 10:21:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:21:06' and `end` < '2025-03-19 10: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-03-19 10:21:19] Production.INFO: count ==2499 [2025-03-19 10:21:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:21:06 - End Time 2025-03-19 10:21:06 [2025-03-19 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714853', 'tblTempUsageDetail_20' ) start [2025-03-19 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714853', 'tblTempUsageDetail_20' ) end [2025-03-19 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714853', 'tblTempVendorCDR_20' ) start [2025-03-19 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714853', 'tblTempVendorCDR_20' ) end [2025-03-19 10:21:20] Production.INFO: ProcessCDR(1,14714853,1,1,2) [2025-03-19 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714853', 'tblTempUsageDetail_20' ) start [2025-03-19 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714853', 'tblTempUsageDetail_20' ) end [2025-03-19 10:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:21:26] Production.INFO: ==11278== Releasing lock... [2025-03-19 10:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:21:26] Production.INFO: 46.75 MB #Memory Used# [2025-03-19 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:22:05 [end_date_ymd] => 2025-03-19 10:22:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:22:05' and `end` < '2025-03-19 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-03-19 10:22:18] Production.INFO: count ==2507 [2025-03-19 10:22:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:22:05 - End Time 2025-03-19 10:22:05 [2025-03-19 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714857', 'tblTempUsageDetail_20' ) start [2025-03-19 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714857', 'tblTempUsageDetail_20' ) end [2025-03-19 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714857', 'tblTempVendorCDR_20' ) start [2025-03-19 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714857', 'tblTempVendorCDR_20' ) end [2025-03-19 10:22:19] Production.INFO: ProcessCDR(1,14714857,1,1,2) [2025-03-19 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714857', 'tblTempUsageDetail_20' ) start [2025-03-19 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714857', 'tblTempUsageDetail_20' ) end [2025-03-19 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:22:25] Production.INFO: ==11364== Releasing lock... [2025-03-19 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:22:25] Production.INFO: 47 MB #Memory Used# [2025-03-19 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:23:06 [end_date_ymd] => 2025-03-19 10:23:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:23:06' and `end` < '2025-03-19 10: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-03-19 10:23:18] Production.INFO: count ==2518 [2025-03-19 10:23:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:23:06 - End Time 2025-03-19 10:23:06 [2025-03-19 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714863', 'tblTempUsageDetail_20' ) start [2025-03-19 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714863', 'tblTempUsageDetail_20' ) end [2025-03-19 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714863', 'tblTempVendorCDR_20' ) start [2025-03-19 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714863', 'tblTempVendorCDR_20' ) end [2025-03-19 10:23:20] Production.INFO: ProcessCDR(1,14714863,1,1,2) [2025-03-19 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714863', 'tblTempUsageDetail_20' ) start [2025-03-19 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714863', 'tblTempUsageDetail_20' ) end [2025-03-19 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:23:25] Production.INFO: ==11449== Releasing lock... [2025-03-19 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:23:25] Production.INFO: 47 MB #Memory Used# [2025-03-19 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:24:05 [end_date_ymd] => 2025-03-19 10:24:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:24:05' and `end` < '2025-03-19 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-03-19 10:24:18] Production.INFO: count ==2539 [2025-03-19 10:24:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:24:05 - End Time 2025-03-19 10:24:05 [2025-03-19 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714868', 'tblTempUsageDetail_20' ) start [2025-03-19 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714868', 'tblTempUsageDetail_20' ) end [2025-03-19 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714868', 'tblTempVendorCDR_20' ) start [2025-03-19 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714868', 'tblTempVendorCDR_20' ) end [2025-03-19 10:24:19] Production.INFO: ProcessCDR(1,14714868,1,1,2) [2025-03-19 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714868', 'tblTempUsageDetail_20' ) start [2025-03-19 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714868', 'tblTempUsageDetail_20' ) end [2025-03-19 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:24:25] Production.INFO: ==11525== Releasing lock... [2025-03-19 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:24:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-19 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:25:06 [end_date_ymd] => 2025-03-19 10:25:06 [RateCDR] => 1 ) [2025-03-19 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 07:25:06' and `end` < '2025-03-19 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 10:25:18] Production.INFO: count ==2550 [2025-03-19 10:25:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:25:06 - End Time 2025-03-19 10:25:06 [2025-03-19 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714873', 'tblTempUsageDetail_20' ) start [2025-03-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714873', 'tblTempUsageDetail_20' ) end [2025-03-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714873', 'tblTempVendorCDR_20' ) start [2025-03-19 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714873', 'tblTempVendorCDR_20' ) end [2025-03-19 10:25:20] Production.INFO: ProcessCDR(1,14714873,1,1,2) [2025-03-19 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714873', 'tblTempUsageDetail_20' ) start [2025-03-19 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714873', 'tblTempUsageDetail_20' ) end [2025-03-19 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:25:25] Production.INFO: ==11606== Releasing lock... [2025-03-19 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:25:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-19 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:26:05 [end_date_ymd] => 2025-03-19 10:26:05 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:26:05' and `end` < '2025-03-19 10: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-03-19 10:26:18] Production.INFO: count ==2562 [2025-03-19 10:26:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:26:05 - End Time 2025-03-19 10:26:05 [2025-03-19 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714878', 'tblTempUsageDetail_20' ) start [2025-03-19 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714878', 'tblTempUsageDetail_20' ) end [2025-03-19 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714878', 'tblTempVendorCDR_20' ) start [2025-03-19 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714878', 'tblTempVendorCDR_20' ) end [2025-03-19 10:26:19] Production.INFO: ProcessCDR(1,14714878,1,1,2) [2025-03-19 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714878', 'tblTempUsageDetail_20' ) start [2025-03-19 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714878', 'tblTempUsageDetail_20' ) end [2025-03-19 10:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:26:26] Production.INFO: ==11692== Releasing lock... [2025-03-19 10:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:26:26] Production.INFO: 47.5 MB #Memory Used# [2025-03-19 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:27:06 [end_date_ymd] => 2025-03-19 10:27:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:27:06' and `end` < '2025-03-19 10: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-03-19 10:27:19] Production.INFO: count ==2606 [2025-03-19 10:27:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:27:06 - End Time 2025-03-19 10:27:06 [2025-03-19 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714883', 'tblTempUsageDetail_20' ) start [2025-03-19 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714883', 'tblTempUsageDetail_20' ) end [2025-03-19 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714883', 'tblTempVendorCDR_20' ) start [2025-03-19 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714883', 'tblTempVendorCDR_20' ) end [2025-03-19 10:27:20] Production.INFO: ProcessCDR(1,14714883,1,1,2) [2025-03-19 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714883', 'tblTempUsageDetail_20' ) start [2025-03-19 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714883', 'tblTempUsageDetail_20' ) end [2025-03-19 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:27:24] Production.INFO: ==11774== Releasing lock... [2025-03-19 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:27:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-19 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:28:05 [end_date_ymd] => 2025-03-19 10:28:05 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:28:05' and `end` < '2025-03-19 10: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-03-19 10:28:18] Production.INFO: count ==2618 [2025-03-19 10:28:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:28:05 - End Time 2025-03-19 10:28:05 [2025-03-19 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714888', 'tblTempUsageDetail_20' ) start [2025-03-19 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714888', 'tblTempUsageDetail_20' ) end [2025-03-19 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714888', 'tblTempVendorCDR_20' ) start [2025-03-19 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714888', 'tblTempVendorCDR_20' ) end [2025-03-19 10:28:19] Production.INFO: ProcessCDR(1,14714888,1,1,2) [2025-03-19 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714888', 'tblTempUsageDetail_20' ) start [2025-03-19 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714888', 'tblTempUsageDetail_20' ) end [2025-03-19 10:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:28:24] Production.INFO: ==11855== Releasing lock... [2025-03-19 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:28:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-19 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:29:06 [end_date_ymd] => 2025-03-19 10:29:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:29:06' and `end` < '2025-03-19 10: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-03-19 10:29:18] Production.INFO: count ==2625 [2025-03-19 10:29:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:29:06 - End Time 2025-03-19 10:29:06 [2025-03-19 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714893', 'tblTempUsageDetail_20' ) start [2025-03-19 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714893', 'tblTempUsageDetail_20' ) end [2025-03-19 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714893', 'tblTempVendorCDR_20' ) start [2025-03-19 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714893', 'tblTempVendorCDR_20' ) end [2025-03-19 10:29:20] Production.INFO: ProcessCDR(1,14714893,1,1,2) [2025-03-19 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714893', 'tblTempUsageDetail_20' ) start [2025-03-19 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714893', 'tblTempUsageDetail_20' ) end [2025-03-19 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:29:25] Production.INFO: ==11934== Releasing lock... [2025-03-19 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:29:25] Production.INFO: 47.75 MB #Memory Used# [2025-03-19 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:30:06 [end_date_ymd] => 2025-03-19 10:30:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:30:06' and `end` < '2025-03-19 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-03-19 10:30:19] Production.INFO: count ==2647 [2025-03-19 10:30:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:30:06 - End Time 2025-03-19 10:30:06 [2025-03-19 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714899', 'tblTempUsageDetail_20' ) start [2025-03-19 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714899', 'tblTempUsageDetail_20' ) end [2025-03-19 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714899', 'tblTempVendorCDR_20' ) start [2025-03-19 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714899', 'tblTempVendorCDR_20' ) end [2025-03-19 10:30:20] Production.INFO: ProcessCDR(1,14714899,1,1,2) [2025-03-19 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714899', 'tblTempUsageDetail_20' ) start [2025-03-19 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714899', 'tblTempUsageDetail_20' ) end [2025-03-19 10:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:30:25] Production.INFO: ==12018== Releasing lock... [2025-03-19 10:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:30:25] Production.INFO: 48 MB #Memory Used# [2025-03-19 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:31:05 [end_date_ymd] => 2025-03-19 10:31:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:31:05' and `end` < '2025-03-19 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-03-19 10:31:18] Production.INFO: count ==2777 [2025-03-19 10:31:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:31:05 - End Time 2025-03-19 10:31:05 [2025-03-19 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714904', 'tblTempUsageDetail_20' ) start [2025-03-19 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714904', 'tblTempUsageDetail_20' ) end [2025-03-19 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714904', 'tblTempVendorCDR_20' ) start [2025-03-19 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714904', 'tblTempVendorCDR_20' ) end [2025-03-19 10:31:19] Production.INFO: ProcessCDR(1,14714904,1,1,2) [2025-03-19 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714904', 'tblTempUsageDetail_20' ) start [2025-03-19 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714904', 'tblTempUsageDetail_20' ) end [2025-03-19 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:31:25] Production.INFO: ==12106== Releasing lock... [2025-03-19 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:31:25] Production.INFO: 49 MB #Memory Used# [2025-03-19 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:32:05 [end_date_ymd] => 2025-03-19 10:32:05 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:32:05' and `end` < '2025-03-19 10: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-03-19 10:32:18] Production.INFO: count ==2835 [2025-03-19 10:32:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:32:05 - End Time 2025-03-19 10:32:05 [2025-03-19 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714909', 'tblTempUsageDetail_20' ) start [2025-03-19 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714909', 'tblTempUsageDetail_20' ) end [2025-03-19 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714909', 'tblTempVendorCDR_20' ) start [2025-03-19 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714909', 'tblTempVendorCDR_20' ) end [2025-03-19 10:32:19] Production.INFO: ProcessCDR(1,14714909,1,1,2) [2025-03-19 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714909', 'tblTempUsageDetail_20' ) start [2025-03-19 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714909', 'tblTempUsageDetail_20' ) end [2025-03-19 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:32:25] Production.INFO: ==12223== Releasing lock... [2025-03-19 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:32:25] Production.INFO: 49.25 MB #Memory Used# [2025-03-19 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:33:06 [end_date_ymd] => 2025-03-19 10:33:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:33:06' and `end` < '2025-03-19 10: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-03-19 10:33:18] Production.INFO: count ==2851 [2025-03-19 10:33:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:33:06 - End Time 2025-03-19 10:33:06 [2025-03-19 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714914', 'tblTempUsageDetail_20' ) start [2025-03-19 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714914', 'tblTempUsageDetail_20' ) end [2025-03-19 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714914', 'tblTempVendorCDR_20' ) start [2025-03-19 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714914', 'tblTempVendorCDR_20' ) end [2025-03-19 10:33:20] Production.INFO: ProcessCDR(1,14714914,1,1,2) [2025-03-19 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714914', 'tblTempUsageDetail_20' ) start [2025-03-19 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714914', 'tblTempUsageDetail_20' ) end [2025-03-19 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:33:25] Production.INFO: ==12309== Releasing lock... [2025-03-19 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:33:25] Production.INFO: 49.25 MB #Memory Used# [2025-03-19 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:34:05 [end_date_ymd] => 2025-03-19 10:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:34:05' and `end` < '2025-03-19 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-03-19 10:34:18] Production.INFO: count ==2872 [2025-03-19 10:34:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:34:05 - End Time 2025-03-19 10:34:05 [2025-03-19 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714919', 'tblTempUsageDetail_20' ) start [2025-03-19 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714919', 'tblTempUsageDetail_20' ) end [2025-03-19 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714919', 'tblTempVendorCDR_20' ) start [2025-03-19 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714919', 'tblTempVendorCDR_20' ) end [2025-03-19 10:34:19] Production.INFO: ProcessCDR(1,14714919,1,1,2) [2025-03-19 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714919', 'tblTempUsageDetail_20' ) start [2025-03-19 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714919', 'tblTempUsageDetail_20' ) end [2025-03-19 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:34:24] Production.INFO: ==12395== Releasing lock... [2025-03-19 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:34:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-19 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:35:05 [end_date_ymd] => 2025-03-19 10:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:35:05' and `end` < '2025-03-19 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-03-19 10:35:18] Production.INFO: count ==2899 [2025-03-19 10:35:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:35:05 - End Time 2025-03-19 10:35:05 [2025-03-19 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714923', 'tblTempUsageDetail_20' ) start [2025-03-19 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714923', 'tblTempUsageDetail_20' ) end [2025-03-19 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714923', 'tblTempVendorCDR_20' ) start [2025-03-19 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714923', 'tblTempVendorCDR_20' ) end [2025-03-19 10:35:19] Production.INFO: ProcessCDR(1,14714923,1,1,2) [2025-03-19 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714923', 'tblTempUsageDetail_20' ) start [2025-03-19 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714923', 'tblTempUsageDetail_20' ) end [2025-03-19 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:35:25] Production.INFO: ==12473== Releasing lock... [2025-03-19 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:35:25] Production.INFO: 49.5 MB #Memory Used# [2025-03-19 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:36:05 [end_date_ymd] => 2025-03-19 10:36:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:36:05' and `end` < '2025-03-19 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-03-19 10:36:18] Production.INFO: count ==2927 [2025-03-19 10:36:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:36:05 - End Time 2025-03-19 10:36:05 [2025-03-19 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714929', 'tblTempUsageDetail_20' ) start [2025-03-19 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714929', 'tblTempUsageDetail_20' ) end [2025-03-19 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714929', 'tblTempVendorCDR_20' ) start [2025-03-19 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714929', 'tblTempVendorCDR_20' ) end [2025-03-19 10:36:19] Production.INFO: ProcessCDR(1,14714929,1,1,2) [2025-03-19 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714929', 'tblTempUsageDetail_20' ) start [2025-03-19 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714929', 'tblTempUsageDetail_20' ) end [2025-03-19 10:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:36:24] Production.INFO: ==12554== Releasing lock... [2025-03-19 10:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:36:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-19 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:37:06 [end_date_ymd] => 2025-03-19 10:37:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:37:06' and `end` < '2025-03-19 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-03-19 10:37:18] Production.INFO: count ==2940 [2025-03-19 10:37:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:37:06 - End Time 2025-03-19 10:37:06 [2025-03-19 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714934', 'tblTempUsageDetail_20' ) start [2025-03-19 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714934', 'tblTempUsageDetail_20' ) end [2025-03-19 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714934', 'tblTempVendorCDR_20' ) start [2025-03-19 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714934', 'tblTempVendorCDR_20' ) end [2025-03-19 10:37:20] Production.INFO: ProcessCDR(1,14714934,1,1,2) [2025-03-19 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714934', 'tblTempUsageDetail_20' ) start [2025-03-19 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714934', 'tblTempUsageDetail_20' ) end [2025-03-19 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:37:25] Production.INFO: ==12636== Releasing lock... [2025-03-19 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:37:25] Production.INFO: 50 MB #Memory Used# [2025-03-19 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:38:05 [end_date_ymd] => 2025-03-19 10:38:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:38:05' and `end` < '2025-03-19 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-03-19 10:38:18] Production.INFO: count ==2950 [2025-03-19 10:38:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:38:05 - End Time 2025-03-19 10:38:05 [2025-03-19 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714939', 'tblTempUsageDetail_20' ) start [2025-03-19 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714939', 'tblTempUsageDetail_20' ) end [2025-03-19 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714939', 'tblTempVendorCDR_20' ) start [2025-03-19 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714939', 'tblTempVendorCDR_20' ) end [2025-03-19 10:38:19] Production.INFO: ProcessCDR(1,14714939,1,1,2) [2025-03-19 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714939', 'tblTempUsageDetail_20' ) start [2025-03-19 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714939', 'tblTempUsageDetail_20' ) end [2025-03-19 10:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:38:24] Production.INFO: ==12719== Releasing lock... [2025-03-19 10:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:38:24] Production.INFO: 50.5 MB #Memory Used# [2025-03-19 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:39:05 [end_date_ymd] => 2025-03-19 10:39:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:39:05' and `end` < '2025-03-19 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-03-19 10:39:18] Production.INFO: count ==2961 [2025-03-19 10:39:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:39:05 - End Time 2025-03-19 10:39:05 [2025-03-19 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714944', 'tblTempUsageDetail_20' ) start [2025-03-19 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714944', 'tblTempUsageDetail_20' ) end [2025-03-19 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714944', 'tblTempVendorCDR_20' ) start [2025-03-19 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714944', 'tblTempVendorCDR_20' ) end [2025-03-19 10:39:20] Production.INFO: ProcessCDR(1,14714944,1,1,2) [2025-03-19 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714944', 'tblTempUsageDetail_20' ) start [2025-03-19 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714944', 'tblTempUsageDetail_20' ) end [2025-03-19 10:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:39:25] Production.INFO: ==12799== Releasing lock... [2025-03-19 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:39:25] Production.INFO: 50 MB #Memory Used# [2025-03-19 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:40:06 [end_date_ymd] => 2025-03-19 10:40:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:40:06' and `end` < '2025-03-19 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-03-19 10:40:19] Production.INFO: count ==2986 [2025-03-19 10:40:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:40:06 - End Time 2025-03-19 10:40:06 [2025-03-19 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714950', 'tblTempUsageDetail_20' ) start [2025-03-19 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714950', 'tblTempUsageDetail_20' ) end [2025-03-19 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714950', 'tblTempVendorCDR_20' ) start [2025-03-19 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714950', 'tblTempVendorCDR_20' ) end [2025-03-19 10:40:20] Production.INFO: ProcessCDR(1,14714950,1,1,2) [2025-03-19 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714950', 'tblTempUsageDetail_20' ) start [2025-03-19 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714950', 'tblTempUsageDetail_20' ) end [2025-03-19 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:40:26] Production.INFO: ==12879== Releasing lock... [2025-03-19 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:40:26] Production.INFO: 50.5 MB #Memory Used# [2025-03-19 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:41:05 [end_date_ymd] => 2025-03-19 10:41:05 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:41:05' and `end` < '2025-03-19 10: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-03-19 10:41:18] Production.INFO: count ==3066 [2025-03-19 10:41:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:41:05 - End Time 2025-03-19 10:41:05 [2025-03-19 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714955', 'tblTempUsageDetail_20' ) start [2025-03-19 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714955', 'tblTempUsageDetail_20' ) end [2025-03-19 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714955', 'tblTempVendorCDR_20' ) start [2025-03-19 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714955', 'tblTempVendorCDR_20' ) end [2025-03-19 10:41:19] Production.INFO: ProcessCDR(1,14714955,1,1,2) [2025-03-19 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714955', 'tblTempUsageDetail_20' ) start [2025-03-19 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714955', 'tblTempUsageDetail_20' ) end [2025-03-19 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:41:25] Production.INFO: ==12967== Releasing lock... [2025-03-19 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:41:25] Production.INFO: 52 MB #Memory Used# [2025-03-19 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:42:05 [end_date_ymd] => 2025-03-19 10:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:42:05' and `end` < '2025-03-19 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-03-19 10:42:18] Production.INFO: count ==3084 [2025-03-19 10:42:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:42:05 - End Time 2025-03-19 10:42:05 [2025-03-19 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714960', 'tblTempUsageDetail_20' ) start [2025-03-19 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714960', 'tblTempUsageDetail_20' ) end [2025-03-19 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714960', 'tblTempVendorCDR_20' ) start [2025-03-19 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714960', 'tblTempVendorCDR_20' ) end [2025-03-19 10:42:19] Production.INFO: ProcessCDR(1,14714960,1,1,2) [2025-03-19 10:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714960', 'tblTempUsageDetail_20' ) start [2025-03-19 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714960', 'tblTempUsageDetail_20' ) end [2025-03-19 10:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:42:24] Production.INFO: ==13042== Releasing lock... [2025-03-19 10:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:42:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-19 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:43:05 [end_date_ymd] => 2025-03-19 10:43:05 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:43:05' and `end` < '2025-03-19 10: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-03-19 10:43:18] Production.INFO: count ==3094 [2025-03-19 10:43:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:43:05 - End Time 2025-03-19 10:43:05 [2025-03-19 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714965', 'tblTempUsageDetail_20' ) start [2025-03-19 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714965', 'tblTempUsageDetail_20' ) end [2025-03-19 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714965', 'tblTempVendorCDR_20' ) start [2025-03-19 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714965', 'tblTempVendorCDR_20' ) end [2025-03-19 10:43:20] Production.INFO: ProcessCDR(1,14714965,1,1,2) [2025-03-19 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714965', 'tblTempUsageDetail_20' ) start [2025-03-19 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714965', 'tblTempUsageDetail_20' ) end [2025-03-19 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:43:25] Production.INFO: ==13118== Releasing lock... [2025-03-19 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:43:25] Production.INFO: 51 MB #Memory Used# [2025-03-19 10:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:44:04 [end_date_ymd] => 2025-03-19 10:44:04 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:44:04' and `end` < '2025-03-19 10: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-03-19 10:44:17] Production.INFO: count ==3120 [2025-03-19 10:44:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:44:04 - End Time 2025-03-19 10:44:04 [2025-03-19 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714970', 'tblTempUsageDetail_20' ) start [2025-03-19 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714970', 'tblTempUsageDetail_20' ) end [2025-03-19 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714970', 'tblTempVendorCDR_20' ) start [2025-03-19 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714970', 'tblTempVendorCDR_20' ) end [2025-03-19 10:44:19] Production.INFO: ProcessCDR(1,14714970,1,1,2) [2025-03-19 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714970', 'tblTempUsageDetail_20' ) start [2025-03-19 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714970', 'tblTempUsageDetail_20' ) end [2025-03-19 10:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:44:24] Production.INFO: ==13198== Releasing lock... [2025-03-19 10:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:44:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-19 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:45:05 [end_date_ymd] => 2025-03-19 10:45:05 [RateCDR] => 1 ) [2025-03-19 10:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 07:45:05' and `end` < '2025-03-19 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-03-19 10:45:18] Production.INFO: count ==3122 [2025-03-19 10:45:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:45:05 - End Time 2025-03-19 10:45:05 [2025-03-19 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714975', 'tblTempUsageDetail_20' ) start [2025-03-19 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714975', 'tblTempUsageDetail_20' ) end [2025-03-19 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714975', 'tblTempVendorCDR_20' ) start [2025-03-19 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714975', 'tblTempVendorCDR_20' ) end [2025-03-19 10:45:20] Production.INFO: ProcessCDR(1,14714975,1,1,2) [2025-03-19 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714975', 'tblTempUsageDetail_20' ) start [2025-03-19 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714975', 'tblTempUsageDetail_20' ) end [2025-03-19 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:45:25] Production.INFO: ==13276== Releasing lock... [2025-03-19 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:45:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-19 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:46:06 [end_date_ymd] => 2025-03-19 10:46:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:46:06' and `end` < '2025-03-19 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-03-19 10:46:19] Production.INFO: count ==3122 [2025-03-19 10:46:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:46:06 - End Time 2025-03-19 10:46:06 [2025-03-19 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714980', 'tblTempUsageDetail_20' ) start [2025-03-19 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714980', 'tblTempUsageDetail_20' ) end [2025-03-19 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714980', 'tblTempVendorCDR_20' ) start [2025-03-19 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714980', 'tblTempVendorCDR_20' ) end [2025-03-19 10:46:20] Production.INFO: ProcessCDR(1,14714980,1,1,2) [2025-03-19 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714980', 'tblTempUsageDetail_20' ) start [2025-03-19 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714980', 'tblTempUsageDetail_20' ) end [2025-03-19 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:46:25] Production.INFO: ==13358== Releasing lock... [2025-03-19 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:46:25] Production.INFO: 51.75 MB #Memory Used# [2025-03-19 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:47:06 [end_date_ymd] => 2025-03-19 10:47:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:47:06' and `end` < '2025-03-19 10: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-03-19 10:47:19] Production.INFO: count ==3120 [2025-03-19 10:47:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:47:06 - End Time 2025-03-19 10:47:06 [2025-03-19 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714985', 'tblTempUsageDetail_20' ) start [2025-03-19 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714985', 'tblTempUsageDetail_20' ) end [2025-03-19 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714985', 'tblTempVendorCDR_20' ) start [2025-03-19 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714985', 'tblTempVendorCDR_20' ) end [2025-03-19 10:47:20] Production.INFO: ProcessCDR(1,14714985,1,1,2) [2025-03-19 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714985', 'tblTempUsageDetail_20' ) start [2025-03-19 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714985', 'tblTempUsageDetail_20' ) end [2025-03-19 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:47:26] Production.INFO: ==13473== Releasing lock... [2025-03-19 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:47:26] Production.INFO: 51.5 MB #Memory Used# [2025-03-19 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:48:06 [end_date_ymd] => 2025-03-19 10:48:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:48:06' and `end` < '2025-03-19 10: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-03-19 10:48:19] Production.INFO: count ==3133 [2025-03-19 10:48:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:48:06 - End Time 2025-03-19 10:48:06 [2025-03-19 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714990', 'tblTempUsageDetail_20' ) start [2025-03-19 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714990', 'tblTempUsageDetail_20' ) end [2025-03-19 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714990', 'tblTempVendorCDR_20' ) start [2025-03-19 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714990', 'tblTempVendorCDR_20' ) end [2025-03-19 10:48:20] Production.INFO: ProcessCDR(1,14714990,1,1,2) [2025-03-19 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714990', 'tblTempUsageDetail_20' ) start [2025-03-19 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714990', 'tblTempUsageDetail_20' ) end [2025-03-19 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:48:25] Production.INFO: ==13548== Releasing lock... [2025-03-19 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:48:25] Production.INFO: 51.5 MB #Memory Used# [2025-03-19 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:49:05 [end_date_ymd] => 2025-03-19 10:49:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:49:05' and `end` < '2025-03-19 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-03-19 10:49:18] Production.INFO: count ==3156 [2025-03-19 10:49:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:49:05 - End Time 2025-03-19 10:49:05 [2025-03-19 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714995', 'tblTempUsageDetail_20' ) start [2025-03-19 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14714995', 'tblTempUsageDetail_20' ) end [2025-03-19 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714995', 'tblTempVendorCDR_20' ) start [2025-03-19 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14714995', 'tblTempVendorCDR_20' ) end [2025-03-19 10:49:20] Production.INFO: ProcessCDR(1,14714995,1,1,2) [2025-03-19 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14714995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14714995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14714995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14714995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714995', 'tblTempUsageDetail_20' ) start [2025-03-19 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14714995', 'tblTempUsageDetail_20' ) end [2025-03-19 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:49:25] Production.INFO: ==13632== Releasing lock... [2025-03-19 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:49:25] Production.INFO: 51.75 MB #Memory Used# [2025-03-19 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:50:06 [end_date_ymd] => 2025-03-19 10:50:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:50:06' and `end` < '2025-03-19 10: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-03-19 10:50:19] Production.INFO: count ==3177 [2025-03-19 10:50:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:50:06 - End Time 2025-03-19 10:50:06 [2025-03-19 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715001', 'tblTempUsageDetail_20' ) start [2025-03-19 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715001', 'tblTempUsageDetail_20' ) end [2025-03-19 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715001', 'tblTempVendorCDR_20' ) start [2025-03-19 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715001', 'tblTempVendorCDR_20' ) end [2025-03-19 10:50:20] Production.INFO: ProcessCDR(1,14715001,1,1,2) [2025-03-19 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715001', 'tblTempUsageDetail_20' ) start [2025-03-19 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715001', 'tblTempUsageDetail_20' ) end [2025-03-19 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:50:25] Production.INFO: ==13712== Releasing lock... [2025-03-19 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:50:25] Production.INFO: 52 MB #Memory Used# [2025-03-19 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:51:05 [end_date_ymd] => 2025-03-19 10:51:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:51:05' and `end` < '2025-03-19 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-03-19 10:51:17] Production.INFO: count ==3325 [2025-03-19 10:51:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:51:05 - End Time 2025-03-19 10:51:05 [2025-03-19 10:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715006', 'tblTempUsageDetail_20' ) start [2025-03-19 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715006', 'tblTempUsageDetail_20' ) end [2025-03-19 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715006', 'tblTempVendorCDR_20' ) start [2025-03-19 10:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715006', 'tblTempVendorCDR_20' ) end [2025-03-19 10:51:19] Production.INFO: ProcessCDR(1,14715006,1,1,2) [2025-03-19 10:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715006', 'tblTempUsageDetail_20' ) start [2025-03-19 10:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715006', 'tblTempUsageDetail_20' ) end [2025-03-19 10:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:51:24] Production.INFO: ==13795== Releasing lock... [2025-03-19 10:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:51:24] Production.INFO: 53 MB #Memory Used# [2025-03-19 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:52:06 [end_date_ymd] => 2025-03-19 10:52:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:52:06' and `end` < '2025-03-19 10: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-03-19 10:52:18] Production.INFO: count ==3367 [2025-03-19 10:52:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:52:06 - End Time 2025-03-19 10:52:06 [2025-03-19 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715011', 'tblTempUsageDetail_20' ) start [2025-03-19 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715011', 'tblTempUsageDetail_20' ) end [2025-03-19 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715011', 'tblTempVendorCDR_20' ) start [2025-03-19 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715011', 'tblTempVendorCDR_20' ) end [2025-03-19 10:52:20] Production.INFO: ProcessCDR(1,14715011,1,1,2) [2025-03-19 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715011', 'tblTempUsageDetail_20' ) start [2025-03-19 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715011', 'tblTempUsageDetail_20' ) end [2025-03-19 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:52:25] Production.INFO: ==13876== Releasing lock... [2025-03-19 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:52:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-19 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:53:05 [end_date_ymd] => 2025-03-19 10:53:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:53:05' and `end` < '2025-03-19 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-03-19 10:53:18] Production.INFO: count ==3384 [2025-03-19 10:53:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:53:05 - End Time 2025-03-19 10:53:05 [2025-03-19 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715016', 'tblTempUsageDetail_20' ) start [2025-03-19 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715016', 'tblTempUsageDetail_20' ) end [2025-03-19 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715016', 'tblTempVendorCDR_20' ) start [2025-03-19 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715016', 'tblTempVendorCDR_20' ) end [2025-03-19 10:53:19] Production.INFO: ProcessCDR(1,14715016,1,1,2) [2025-03-19 10:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715016', 'tblTempUsageDetail_20' ) start [2025-03-19 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715016', 'tblTempUsageDetail_20' ) end [2025-03-19 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:53:25] Production.INFO: ==13949== Releasing lock... [2025-03-19 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:53:25] Production.INFO: 53.75 MB #Memory Used# [2025-03-19 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:54:06 [end_date_ymd] => 2025-03-19 10:54:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:54:06' and `end` < '2025-03-19 10: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-03-19 10:54:18] Production.INFO: count ==3397 [2025-03-19 10:54:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:54:06 - End Time 2025-03-19 10:54:06 [2025-03-19 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715021', 'tblTempUsageDetail_20' ) start [2025-03-19 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715021', 'tblTempUsageDetail_20' ) end [2025-03-19 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715021', 'tblTempVendorCDR_20' ) start [2025-03-19 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715021', 'tblTempVendorCDR_20' ) end [2025-03-19 10:54:20] Production.INFO: ProcessCDR(1,14715021,1,1,2) [2025-03-19 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715021', 'tblTempUsageDetail_20' ) start [2025-03-19 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715021', 'tblTempUsageDetail_20' ) end [2025-03-19 10:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:54:23] Production.INFO: ==14025== Releasing lock... [2025-03-19 10:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:54:23] Production.INFO: 53.75 MB #Memory Used# [2025-03-19 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:55:05 [end_date_ymd] => 2025-03-19 10:55:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:55:05' and `end` < '2025-03-19 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-03-19 10:55:18] Production.INFO: count ==3431 [2025-03-19 10:55:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:55:05 - End Time 2025-03-19 10:55:05 [2025-03-19 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715026', 'tblTempUsageDetail_20' ) start [2025-03-19 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715026', 'tblTempUsageDetail_20' ) end [2025-03-19 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715026', 'tblTempVendorCDR_20' ) start [2025-03-19 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715026', 'tblTempVendorCDR_20' ) end [2025-03-19 10:55:20] Production.INFO: ProcessCDR(1,14715026,1,1,2) [2025-03-19 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715026', 'tblTempUsageDetail_20' ) start [2025-03-19 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715026', 'tblTempUsageDetail_20' ) end [2025-03-19 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:55:25] Production.INFO: ==14103== Releasing lock... [2025-03-19 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:55:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-19 10:56:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:56:07 [end_date_ymd] => 2025-03-19 10:56:07 [RateCDR] => 1 ) [2025-03-19 10:56: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-03-19 07:56:07' and `end` < '2025-03-19 10:56: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-03-19 10:56:19] Production.INFO: count ==3446 [2025-03-19 10:56:21] Production.ERROR: pbx CDR StartTime 2025-03-19 07:56:07 - End Time 2025-03-19 10:56:07 [2025-03-19 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715031', 'tblTempUsageDetail_20' ) start [2025-03-19 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715031', 'tblTempUsageDetail_20' ) end [2025-03-19 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715031', 'tblTempVendorCDR_20' ) start [2025-03-19 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715031', 'tblTempVendorCDR_20' ) end [2025-03-19 10:56:21] Production.INFO: ProcessCDR(1,14715031,1,1,2) [2025-03-19 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715031', 'tblTempUsageDetail_20' ) start [2025-03-19 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715031', 'tblTempUsageDetail_20' ) end [2025-03-19 10:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:56:27] Production.INFO: ==14175== Releasing lock... [2025-03-19 10:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:56:27] Production.INFO: 53.75 MB #Memory Used# [2025-03-19 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:57:05 [end_date_ymd] => 2025-03-19 10:57:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:57:05' and `end` < '2025-03-19 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-03-19 10:57:18] Production.INFO: count ==3455 [2025-03-19 10:57:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:57:05 - End Time 2025-03-19 10:57:05 [2025-03-19 10:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715036', 'tblTempUsageDetail_20' ) start [2025-03-19 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715036', 'tblTempUsageDetail_20' ) end [2025-03-19 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715036', 'tblTempVendorCDR_20' ) start [2025-03-19 10:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715036', 'tblTempVendorCDR_20' ) end [2025-03-19 10:57:19] Production.INFO: ProcessCDR(1,14715036,1,1,2) [2025-03-19 10:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715036', 'tblTempUsageDetail_20' ) start [2025-03-19 10:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715036', 'tblTempUsageDetail_20' ) end [2025-03-19 10:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:57:24] Production.INFO: ==14249== Releasing lock... [2025-03-19 10:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:57:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-19 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:58:06 [end_date_ymd] => 2025-03-19 10:58:06 [RateCDR] => 1 ) [2025-03-19 10: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-03-19 07:58:06' and `end` < '2025-03-19 10: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-03-19 10:58:18] Production.INFO: count ==3473 [2025-03-19 10:58:20] Production.ERROR: pbx CDR StartTime 2025-03-19 07:58:06 - End Time 2025-03-19 10:58:06 [2025-03-19 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715041', 'tblTempUsageDetail_20' ) start [2025-03-19 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715041', 'tblTempUsageDetail_20' ) end [2025-03-19 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715041', 'tblTempVendorCDR_20' ) start [2025-03-19 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715041', 'tblTempVendorCDR_20' ) end [2025-03-19 10:58:20] Production.INFO: ProcessCDR(1,14715041,1,1,2) [2025-03-19 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715041', 'tblTempUsageDetail_20' ) start [2025-03-19 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715041', 'tblTempUsageDetail_20' ) end [2025-03-19 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:58:25] Production.INFO: ==14324== Releasing lock... [2025-03-19 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:58:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-19 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 07:59:05 [end_date_ymd] => 2025-03-19 10:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 07:59:05' and `end` < '2025-03-19 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-03-19 10:59:18] Production.INFO: count ==3487 [2025-03-19 10:59:19] Production.ERROR: pbx CDR StartTime 2025-03-19 07:59:05 - End Time 2025-03-19 10:59:05 [2025-03-19 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715046', 'tblTempUsageDetail_20' ) start [2025-03-19 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715046', 'tblTempUsageDetail_20' ) end [2025-03-19 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715046', 'tblTempVendorCDR_20' ) start [2025-03-19 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715046', 'tblTempVendorCDR_20' ) end [2025-03-19 10:59:20] Production.INFO: ProcessCDR(1,14715046,1,1,2) [2025-03-19 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715046', 'tblTempUsageDetail_20' ) start [2025-03-19 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715046', 'tblTempUsageDetail_20' ) end [2025-03-19 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 10:59:25] Production.INFO: ==14396== Releasing lock... [2025-03-19 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 10:59:25] Production.INFO: 54.25 MB #Memory Used# [2025-03-19 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:00:06 [end_date_ymd] => 2025-03-19 11:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:00:06' and `end` < '2025-03-19 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-03-19 11:00:19] Production.INFO: count ==3508 [2025-03-19 11:00:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:00:06 - End Time 2025-03-19 11:00:06 [2025-03-19 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715051', 'tblTempUsageDetail_20' ) start [2025-03-19 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715051', 'tblTempUsageDetail_20' ) end [2025-03-19 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715051', 'tblTempVendorCDR_20' ) start [2025-03-19 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715051', 'tblTempVendorCDR_20' ) end [2025-03-19 11:00:20] Production.INFO: ProcessCDR(1,14715051,1,1,2) [2025-03-19 11:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715051', 'tblTempUsageDetail_20' ) start [2025-03-19 11:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715051', 'tblTempUsageDetail_20' ) end [2025-03-19 11:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:00:26] Production.INFO: ==14476== Releasing lock... [2025-03-19 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:00:26] Production.INFO: 54.75 MB #Memory Used# [2025-03-19 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:01:05 [end_date_ymd] => 2025-03-19 11:01:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:01:05' and `end` < '2025-03-19 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-03-19 11:01:18] Production.INFO: count ==3611 [2025-03-19 11:01:19] Production.ERROR: pbx CDR StartTime 2025-03-19 08:01:05 - End Time 2025-03-19 11:01:05 [2025-03-19 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715057', 'tblTempUsageDetail_20' ) start [2025-03-19 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715057', 'tblTempUsageDetail_20' ) end [2025-03-19 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715057', 'tblTempVendorCDR_20' ) start [2025-03-19 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715057', 'tblTempVendorCDR_20' ) end [2025-03-19 11:01:19] Production.INFO: ProcessCDR(1,14715057,1,1,2) [2025-03-19 11:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715057', 'tblTempUsageDetail_20' ) start [2025-03-19 11:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715057', 'tblTempUsageDetail_20' ) end [2025-03-19 11:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:01:24] Production.INFO: ==14651== Releasing lock... [2025-03-19 11:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:01:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-19 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:02:05 [end_date_ymd] => 2025-03-19 11:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:02:05' and `end` < '2025-03-19 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-03-19 11:02:18] Production.INFO: count ==3613 [2025-03-19 11:02:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:02:05 - End Time 2025-03-19 11:02:05 [2025-03-19 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715062', 'tblTempUsageDetail_20' ) start [2025-03-19 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715062', 'tblTempUsageDetail_20' ) end [2025-03-19 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715062', 'tblTempVendorCDR_20' ) start [2025-03-19 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715062', 'tblTempVendorCDR_20' ) end [2025-03-19 11:02:20] Production.INFO: ProcessCDR(1,14715062,1,1,2) [2025-03-19 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715062', 'tblTempUsageDetail_20' ) start [2025-03-19 11:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715062', 'tblTempUsageDetail_20' ) end [2025-03-19 11:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:02:25] Production.INFO: ==14726== Releasing lock... [2025-03-19 11:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:02:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-19 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:03:05 [end_date_ymd] => 2025-03-19 11:03:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:03:05' and `end` < '2025-03-19 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-03-19 11:03:18] Production.INFO: count ==3603 [2025-03-19 11:03:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:03:05 - End Time 2025-03-19 11:03:05 [2025-03-19 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715067', 'tblTempUsageDetail_20' ) start [2025-03-19 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715067', 'tblTempUsageDetail_20' ) end [2025-03-19 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715067', 'tblTempVendorCDR_20' ) start [2025-03-19 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715067', 'tblTempVendorCDR_20' ) end [2025-03-19 11:03:20] Production.INFO: ProcessCDR(1,14715067,1,1,2) [2025-03-19 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715067', 'tblTempUsageDetail_20' ) start [2025-03-19 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715067', 'tblTempUsageDetail_20' ) end [2025-03-19 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:03:26] Production.INFO: ==14840== Releasing lock... [2025-03-19 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:03:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-19 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:04:05 [end_date_ymd] => 2025-03-19 11:04:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:04:05' and `end` < '2025-03-19 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-03-19 11:04:18] Production.INFO: count ==3597 [2025-03-19 11:04:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:04:05 - End Time 2025-03-19 11:04:05 [2025-03-19 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715072', 'tblTempUsageDetail_20' ) start [2025-03-19 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715072', 'tblTempUsageDetail_20' ) end [2025-03-19 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715072', 'tblTempVendorCDR_20' ) start [2025-03-19 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715072', 'tblTempVendorCDR_20' ) end [2025-03-19 11:04:20] Production.INFO: ProcessCDR(1,14715072,1,1,2) [2025-03-19 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715072', 'tblTempUsageDetail_20' ) start [2025-03-19 11:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715072', 'tblTempUsageDetail_20' ) end [2025-03-19 11:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:04:23] Production.INFO: ==14919== Releasing lock... [2025-03-19 11:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:04:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-19 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:05:05 [end_date_ymd] => 2025-03-19 11:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:05:05' and `end` < '2025-03-19 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-03-19 11:05:18] Production.INFO: count ==3607 [2025-03-19 11:05:19] Production.ERROR: pbx CDR StartTime 2025-03-19 08:05:05 - End Time 2025-03-19 11:05:05 [2025-03-19 11:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715077', 'tblTempUsageDetail_20' ) start [2025-03-19 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715077', 'tblTempUsageDetail_20' ) end [2025-03-19 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715077', 'tblTempVendorCDR_20' ) start [2025-03-19 11:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715077', 'tblTempVendorCDR_20' ) end [2025-03-19 11:05:19] Production.INFO: ProcessCDR(1,14715077,1,1,2) [2025-03-19 11:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715077', 'tblTempUsageDetail_20' ) start [2025-03-19 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715077', 'tblTempUsageDetail_20' ) end [2025-03-19 11:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:05:25] Production.INFO: ==15075== Releasing lock... [2025-03-19 11:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:05:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-19 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:06:05 [end_date_ymd] => 2025-03-19 11:06:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:06:05' and `end` < '2025-03-19 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-03-19 11:06:18] Production.INFO: count ==3618 [2025-03-19 11:06:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:06:05 - End Time 2025-03-19 11:06:05 [2025-03-19 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715082', 'tblTempUsageDetail_20' ) start [2025-03-19 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715082', 'tblTempUsageDetail_20' ) end [2025-03-19 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715082', 'tblTempVendorCDR_20' ) start [2025-03-19 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715082', 'tblTempVendorCDR_20' ) end [2025-03-19 11:06:20] Production.INFO: ProcessCDR(1,14715082,1,1,2) [2025-03-19 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715082', 'tblTempUsageDetail_20' ) start [2025-03-19 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715082', 'tblTempUsageDetail_20' ) end [2025-03-19 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:06:25] Production.INFO: ==15148== Releasing lock... [2025-03-19 11:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:06:25] Production.INFO: 55 MB #Memory Used# [2025-03-19 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:07:05 [end_date_ymd] => 2025-03-19 11:07:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:07:05' and `end` < '2025-03-19 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-03-19 11:07:18] Production.INFO: count ==3614 [2025-03-19 11:07:19] Production.ERROR: pbx CDR StartTime 2025-03-19 08:07:05 - End Time 2025-03-19 11:07:05 [2025-03-19 11:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715087', 'tblTempUsageDetail_20' ) start [2025-03-19 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715087', 'tblTempUsageDetail_20' ) end [2025-03-19 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715087', 'tblTempVendorCDR_20' ) start [2025-03-19 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715087', 'tblTempVendorCDR_20' ) end [2025-03-19 11:07:19] Production.INFO: ProcessCDR(1,14715087,1,1,2) [2025-03-19 11:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715087', 'tblTempUsageDetail_20' ) start [2025-03-19 11:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715087', 'tblTempUsageDetail_20' ) end [2025-03-19 11:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:07:24] Production.INFO: ==15222== Releasing lock... [2025-03-19 11:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:07:24] Production.INFO: 55.25 MB #Memory Used# [2025-03-19 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:08:05 [end_date_ymd] => 2025-03-19 11:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:08:05' and `end` < '2025-03-19 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-03-19 11:08:18] Production.INFO: count ==3631 [2025-03-19 11:08:19] Production.ERROR: pbx CDR StartTime 2025-03-19 08:08:05 - End Time 2025-03-19 11:08:05 [2025-03-19 11:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715092', 'tblTempUsageDetail_20' ) start [2025-03-19 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715092', 'tblTempUsageDetail_20' ) end [2025-03-19 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715092', 'tblTempVendorCDR_20' ) start [2025-03-19 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715092', 'tblTempVendorCDR_20' ) end [2025-03-19 11:08:19] Production.INFO: ProcessCDR(1,14715092,1,1,2) [2025-03-19 11:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715092', 'tblTempUsageDetail_20' ) start [2025-03-19 11:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715092', 'tblTempUsageDetail_20' ) end [2025-03-19 11:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:08:25] Production.INFO: ==15378== Releasing lock... [2025-03-19 11:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:08:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-19 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:09:06 [end_date_ymd] => 2025-03-19 11:09:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:09:06' and `end` < '2025-03-19 11: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-03-19 11:09:19] Production.INFO: count ==3645 [2025-03-19 11:09:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:09:06 - End Time 2025-03-19 11:09:06 [2025-03-19 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715097', 'tblTempUsageDetail_20' ) start [2025-03-19 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715097', 'tblTempUsageDetail_20' ) end [2025-03-19 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715097', 'tblTempVendorCDR_20' ) start [2025-03-19 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715097', 'tblTempVendorCDR_20' ) end [2025-03-19 11:09:20] Production.INFO: ProcessCDR(1,14715097,1,1,2) [2025-03-19 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715097', 'tblTempUsageDetail_20' ) start [2025-03-19 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715097', 'tblTempUsageDetail_20' ) end [2025-03-19 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:09:26] Production.INFO: ==15449== Releasing lock... [2025-03-19 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:09:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-19 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:10:06 [end_date_ymd] => 2025-03-19 11:10:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:10:06' and `end` < '2025-03-19 11: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-03-19 11:10:19] Production.INFO: count ==3654 [2025-03-19 11:10:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:10:06 - End Time 2025-03-19 11:10:06 [2025-03-19 11:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715102', 'tblTempUsageDetail_20' ) start [2025-03-19 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715102', 'tblTempUsageDetail_20' ) end [2025-03-19 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715102', 'tblTempVendorCDR_20' ) start [2025-03-19 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715102', 'tblTempVendorCDR_20' ) end [2025-03-19 11:10:21] Production.INFO: ProcessCDR(1,14715102,1,1,2) [2025-03-19 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715102', 'tblTempUsageDetail_20' ) start [2025-03-19 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715102', 'tblTempUsageDetail_20' ) end [2025-03-19 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:10:26] Production.INFO: ==15525== Releasing lock... [2025-03-19 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:10:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-19 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:11:05 [end_date_ymd] => 2025-03-19 11:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:11:05' and `end` < '2025-03-19 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-03-19 11:11:18] Production.INFO: count ==3755 [2025-03-19 11:11:19] Production.ERROR: pbx CDR StartTime 2025-03-19 08:11:05 - End Time 2025-03-19 11:11:05 [2025-03-19 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715108', 'tblTempUsageDetail_20' ) start [2025-03-19 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715108', 'tblTempUsageDetail_20' ) end [2025-03-19 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715108', 'tblTempVendorCDR_20' ) start [2025-03-19 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715108', 'tblTempVendorCDR_20' ) end [2025-03-19 11:11:20] Production.INFO: ProcessCDR(1,14715108,1,1,2) [2025-03-19 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715108', 'tblTempUsageDetail_20' ) start [2025-03-19 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715108', 'tblTempUsageDetail_20' ) end [2025-03-19 11:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:11:23] Production.INFO: ==15606== Releasing lock... [2025-03-19 11:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:11:23] Production.INFO: 56.75 MB #Memory Used# [2025-03-19 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:12:06 [end_date_ymd] => 2025-03-19 11:12:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:12:06' and `end` < '2025-03-19 11: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-03-19 11:12:19] Production.INFO: count ==3781 [2025-03-19 11:12:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:12:06 - End Time 2025-03-19 11:12:06 [2025-03-19 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715113', 'tblTempUsageDetail_20' ) start [2025-03-19 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715113', 'tblTempUsageDetail_20' ) end [2025-03-19 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715113', 'tblTempVendorCDR_20' ) start [2025-03-19 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715113', 'tblTempVendorCDR_20' ) end [2025-03-19 11:12:21] Production.INFO: ProcessCDR(1,14715113,1,1,2) [2025-03-19 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715113', 'tblTempUsageDetail_20' ) start [2025-03-19 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715113', 'tblTempUsageDetail_20' ) end [2025-03-19 11:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:12:27] Production.INFO: ==15757== Releasing lock... [2025-03-19 11:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:12:27] Production.INFO: 56.25 MB #Memory Used# [2025-03-19 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:13:05 [end_date_ymd] => 2025-03-19 11:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:13:05' and `end` < '2025-03-19 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-03-19 11:13:18] Production.INFO: count ==3787 [2025-03-19 11:13:19] Production.ERROR: pbx CDR StartTime 2025-03-19 08:13:05 - End Time 2025-03-19 11:13:05 [2025-03-19 11:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715118', 'tblTempUsageDetail_20' ) start [2025-03-19 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715118', 'tblTempUsageDetail_20' ) end [2025-03-19 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715118', 'tblTempVendorCDR_20' ) start [2025-03-19 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715118', 'tblTempVendorCDR_20' ) end [2025-03-19 11:13:20] Production.INFO: ProcessCDR(1,14715118,1,1,2) [2025-03-19 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715118', 'tblTempUsageDetail_20' ) start [2025-03-19 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715118', 'tblTempUsageDetail_20' ) end [2025-03-19 11:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:13:25] Production.INFO: ==15830== Releasing lock... [2025-03-19 11:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:13:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-19 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:14:06 [end_date_ymd] => 2025-03-19 11:14:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:14:06' and `end` < '2025-03-19 11: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-03-19 11:14:19] Production.INFO: count ==3802 [2025-03-19 11:14:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:14:06 - End Time 2025-03-19 11:14:06 [2025-03-19 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715123', 'tblTempUsageDetail_20' ) start [2025-03-19 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715123', 'tblTempUsageDetail_20' ) end [2025-03-19 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715123', 'tblTempVendorCDR_20' ) start [2025-03-19 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715123', 'tblTempVendorCDR_20' ) end [2025-03-19 11:14:20] Production.INFO: ProcessCDR(1,14715123,1,1,2) [2025-03-19 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715123', 'tblTempUsageDetail_20' ) start [2025-03-19 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715123', 'tblTempUsageDetail_20' ) end [2025-03-19 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:14:26] Production.INFO: ==15911== Releasing lock... [2025-03-19 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:14:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-19 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:15:05 [end_date_ymd] => 2025-03-19 11:15:05 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:15:05' and `end` < '2025-03-19 11: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-03-19 11:15:18] Production.INFO: count ==3832 [2025-03-19 11:15:19] Production.ERROR: pbx CDR StartTime 2025-03-19 08:15:05 - End Time 2025-03-19 11:15:05 [2025-03-19 11:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715128', 'tblTempUsageDetail_20' ) start [2025-03-19 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715128', 'tblTempUsageDetail_20' ) end [2025-03-19 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715128', 'tblTempVendorCDR_20' ) start [2025-03-19 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715128', 'tblTempVendorCDR_20' ) end [2025-03-19 11:15:20] Production.INFO: ProcessCDR(1,14715128,1,1,2) [2025-03-19 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715128', 'tblTempUsageDetail_20' ) start [2025-03-19 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715128', 'tblTempUsageDetail_20' ) end [2025-03-19 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:15:25] Production.INFO: ==16062== Releasing lock... [2025-03-19 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:15:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-19 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:16:05 [end_date_ymd] => 2025-03-19 11:16:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:16:05' and `end` < '2025-03-19 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-03-19 11:16:18] Production.INFO: count ==3843 [2025-03-19 11:16:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:16:05 - End Time 2025-03-19 11:16:05 [2025-03-19 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715133', 'tblTempUsageDetail_20' ) start [2025-03-19 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715133', 'tblTempUsageDetail_20' ) end [2025-03-19 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715133', 'tblTempVendorCDR_20' ) start [2025-03-19 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715133', 'tblTempVendorCDR_20' ) end [2025-03-19 11:16:20] Production.INFO: ProcessCDR(1,14715133,1,1,2) [2025-03-19 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715133', 'tblTempUsageDetail_20' ) start [2025-03-19 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715133', 'tblTempUsageDetail_20' ) end [2025-03-19 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:16:26] Production.INFO: ==16142== Releasing lock... [2025-03-19 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:16:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-19 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:17:05 [end_date_ymd] => 2025-03-19 11:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:17:05' and `end` < '2025-03-19 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-03-19 11:17:18] Production.INFO: count ==3872 [2025-03-19 11:17:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:17:05 - End Time 2025-03-19 11:17:05 [2025-03-19 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715138', 'tblTempUsageDetail_20' ) start [2025-03-19 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715138', 'tblTempUsageDetail_20' ) end [2025-03-19 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715138', 'tblTempVendorCDR_20' ) start [2025-03-19 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715138', 'tblTempVendorCDR_20' ) end [2025-03-19 11:17:20] Production.INFO: ProcessCDR(1,14715138,1,1,2) [2025-03-19 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715138', 'tblTempUsageDetail_20' ) start [2025-03-19 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715138', 'tblTempUsageDetail_20' ) end [2025-03-19 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:17:26] Production.INFO: ==16220== Releasing lock... [2025-03-19 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:17:26] Production.INFO: 57 MB #Memory Used# [2025-03-19 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:18:06 [end_date_ymd] => 2025-03-19 11:18:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:18:06' and `end` < '2025-03-19 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-03-19 11:18:18] Production.INFO: count ==3872 [2025-03-19 11:18:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:18:06 - End Time 2025-03-19 11:18:06 [2025-03-19 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715143', 'tblTempUsageDetail_20' ) start [2025-03-19 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715143', 'tblTempUsageDetail_20' ) end [2025-03-19 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715143', 'tblTempVendorCDR_20' ) start [2025-03-19 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715143', 'tblTempVendorCDR_20' ) end [2025-03-19 11:18:20] Production.INFO: ProcessCDR(1,14715143,1,1,2) [2025-03-19 11:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715143', 'tblTempUsageDetail_20' ) start [2025-03-19 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715143', 'tblTempUsageDetail_20' ) end [2025-03-19 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:18:26] Production.INFO: ==16346== Releasing lock... [2025-03-19 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:18:26] Production.INFO: 57 MB #Memory Used# [2025-03-19 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:19:05 [end_date_ymd] => 2025-03-19 11:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:19:05' and `end` < '2025-03-19 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-03-19 11:19:18] Production.INFO: count ==3880 [2025-03-19 11:19:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:19:05 - End Time 2025-03-19 11:19:05 [2025-03-19 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715148', 'tblTempUsageDetail_20' ) start [2025-03-19 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715148', 'tblTempUsageDetail_20' ) end [2025-03-19 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715148', 'tblTempVendorCDR_20' ) start [2025-03-19 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715148', 'tblTempVendorCDR_20' ) end [2025-03-19 11:19:20] Production.INFO: ProcessCDR(1,14715148,1,1,2) [2025-03-19 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715148', 'tblTempUsageDetail_20' ) start [2025-03-19 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715148', 'tblTempUsageDetail_20' ) end [2025-03-19 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:19:25] Production.INFO: ==16432== Releasing lock... [2025-03-19 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:19:25] Production.INFO: 57 MB #Memory Used# [2025-03-19 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:20:07 [end_date_ymd] => 2025-03-19 11:20:07 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:20:07' and `end` < '2025-03-19 11: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-03-19 11:20:20] Production.INFO: count ==3908 [2025-03-19 11:20:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:20:07 - End Time 2025-03-19 11:20:07 [2025-03-19 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715154', 'tblTempUsageDetail_20' ) start [2025-03-19 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715154', 'tblTempUsageDetail_20' ) end [2025-03-19 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715154', 'tblTempVendorCDR_20' ) start [2025-03-19 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715154', 'tblTempVendorCDR_20' ) end [2025-03-19 11:20:21] Production.INFO: ProcessCDR(1,14715154,1,1,2) [2025-03-19 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715154', 'tblTempUsageDetail_20' ) start [2025-03-19 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715154', 'tblTempUsageDetail_20' ) end [2025-03-19 11:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:20:27] Production.INFO: ==16510== Releasing lock... [2025-03-19 11:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:20:27] Production.INFO: 57.25 MB #Memory Used# [2025-03-19 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:21:05 [end_date_ymd] => 2025-03-19 11:21:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:21:05' and `end` < '2025-03-19 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-03-19 11:21:18] Production.INFO: count ==4006 [2025-03-19 11:21:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:21:05 - End Time 2025-03-19 11:21:05 [2025-03-19 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715159', 'tblTempUsageDetail_20' ) start [2025-03-19 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715159', 'tblTempUsageDetail_20' ) end [2025-03-19 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715159', 'tblTempVendorCDR_20' ) start [2025-03-19 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715159', 'tblTempVendorCDR_20' ) end [2025-03-19 11:21:20] Production.INFO: ProcessCDR(1,14715159,1,1,2) [2025-03-19 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715159', 'tblTempUsageDetail_20' ) start [2025-03-19 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715159', 'tblTempUsageDetail_20' ) end [2025-03-19 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:21:25] Production.INFO: ==16592== Releasing lock... [2025-03-19 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:21:25] Production.INFO: 58 MB #Memory Used# [2025-03-19 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:22:06 [end_date_ymd] => 2025-03-19 11:22:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:22:06' and `end` < '2025-03-19 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-03-19 11:22:19] Production.INFO: count ==4030 [2025-03-19 11:22:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:22:06 - End Time 2025-03-19 11:22:06 [2025-03-19 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715164', 'tblTempUsageDetail_20' ) start [2025-03-19 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715164', 'tblTempUsageDetail_20' ) end [2025-03-19 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715164', 'tblTempVendorCDR_20' ) start [2025-03-19 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715164', 'tblTempVendorCDR_20' ) end [2025-03-19 11:22:20] Production.INFO: ProcessCDR(1,14715164,1,1,2) [2025-03-19 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715164', 'tblTempUsageDetail_20' ) start [2025-03-19 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715164', 'tblTempUsageDetail_20' ) end [2025-03-19 11:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:22:26] Production.INFO: ==16675== Releasing lock... [2025-03-19 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:22:26] Production.INFO: 58 MB #Memory Used# [2025-03-19 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:23:05 [end_date_ymd] => 2025-03-19 11:23:05 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:23:05' and `end` < '2025-03-19 11: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-03-19 11:23:18] Production.INFO: count ==4045 [2025-03-19 11:23:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:23:05 - End Time 2025-03-19 11:23:05 [2025-03-19 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715169', 'tblTempUsageDetail_20' ) start [2025-03-19 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715169', 'tblTempUsageDetail_20' ) end [2025-03-19 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715169', 'tblTempVendorCDR_20' ) start [2025-03-19 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715169', 'tblTempVendorCDR_20' ) end [2025-03-19 11:23:20] Production.INFO: ProcessCDR(1,14715169,1,1,2) [2025-03-19 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715169', 'tblTempUsageDetail_20' ) start [2025-03-19 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715169', 'tblTempUsageDetail_20' ) end [2025-03-19 11:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:23:25] Production.INFO: ==16752== Releasing lock... [2025-03-19 11:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:23:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-19 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:24:05 [end_date_ymd] => 2025-03-19 11:24:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:24:05' and `end` < '2025-03-19 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-03-19 11:24:18] Production.INFO: count ==4074 [2025-03-19 11:24:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:24:05 - End Time 2025-03-19 11:24:05 [2025-03-19 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715174', 'tblTempUsageDetail_20' ) start [2025-03-19 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715174', 'tblTempUsageDetail_20' ) end [2025-03-19 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715174', 'tblTempVendorCDR_20' ) start [2025-03-19 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715174', 'tblTempVendorCDR_20' ) end [2025-03-19 11:24:20] Production.INFO: ProcessCDR(1,14715174,1,1,2) [2025-03-19 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715174', 'tblTempUsageDetail_20' ) start [2025-03-19 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715174', 'tblTempUsageDetail_20' ) end [2025-03-19 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:24:26] Production.INFO: ==16832== Releasing lock... [2025-03-19 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:24:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-19 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:25:05 [end_date_ymd] => 2025-03-19 11:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:25:05' and `end` < '2025-03-19 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-03-19 11:25:18] Production.INFO: count ==4097 [2025-03-19 11:25:19] Production.ERROR: pbx CDR StartTime 2025-03-19 08:25:05 - End Time 2025-03-19 11:25:05 [2025-03-19 11:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715179', 'tblTempUsageDetail_20' ) start [2025-03-19 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715179', 'tblTempUsageDetail_20' ) end [2025-03-19 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715179', 'tblTempVendorCDR_20' ) start [2025-03-19 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715179', 'tblTempVendorCDR_20' ) end [2025-03-19 11:25:19] Production.INFO: ProcessCDR(1,14715179,1,1,2) [2025-03-19 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715179', 'tblTempUsageDetail_20' ) start [2025-03-19 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715179', 'tblTempUsageDetail_20' ) end [2025-03-19 11:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:25:24] Production.INFO: ==16908== Releasing lock... [2025-03-19 11:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:25:24] Production.INFO: 58.75 MB #Memory Used# [2025-03-19 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:26:05 [end_date_ymd] => 2025-03-19 11:26:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:26:05' and `end` < '2025-03-19 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-03-19 11:26:18] Production.INFO: count ==4113 [2025-03-19 11:26:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:26:05 - End Time 2025-03-19 11:26:05 [2025-03-19 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715184', 'tblTempUsageDetail_20' ) start [2025-03-19 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715184', 'tblTempUsageDetail_20' ) end [2025-03-19 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715184', 'tblTempVendorCDR_20' ) start [2025-03-19 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715184', 'tblTempVendorCDR_20' ) end [2025-03-19 11:26:20] Production.INFO: ProcessCDR(1,14715184,1,1,2) [2025-03-19 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715184', 'tblTempUsageDetail_20' ) start [2025-03-19 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715184', 'tblTempUsageDetail_20' ) end [2025-03-19 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:26:26] Production.INFO: ==16985== Releasing lock... [2025-03-19 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:26:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-19 11:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:27:04 [end_date_ymd] => 2025-03-19 11:27:04 [RateCDR] => 1 ) [2025-03-19 11:27: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-03-19 08:27:04' and `end` < '2025-03-19 11:27: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-03-19 11:27:17] Production.INFO: count ==4115 [2025-03-19 11:27:19] Production.ERROR: pbx CDR StartTime 2025-03-19 08:27:04 - End Time 2025-03-19 11:27:04 [2025-03-19 11:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715189', 'tblTempUsageDetail_20' ) start [2025-03-19 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715189', 'tblTempUsageDetail_20' ) end [2025-03-19 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715189', 'tblTempVendorCDR_20' ) start [2025-03-19 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715189', 'tblTempVendorCDR_20' ) end [2025-03-19 11:27:19] Production.INFO: ProcessCDR(1,14715189,1,1,2) [2025-03-19 11:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715189', 'tblTempUsageDetail_20' ) start [2025-03-19 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715189', 'tblTempUsageDetail_20' ) end [2025-03-19 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:27:25] Production.INFO: ==17066== Releasing lock... [2025-03-19 11:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:27:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-19 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:28:06 [end_date_ymd] => 2025-03-19 11:28:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:28:06' and `end` < '2025-03-19 11: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-03-19 11:28:19] Production.INFO: count ==4124 [2025-03-19 11:28:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:28:06 - End Time 2025-03-19 11:28:06 [2025-03-19 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715194', 'tblTempUsageDetail_20' ) start [2025-03-19 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715194', 'tblTempUsageDetail_20' ) end [2025-03-19 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715194', 'tblTempVendorCDR_20' ) start [2025-03-19 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715194', 'tblTempVendorCDR_20' ) end [2025-03-19 11:28:21] Production.INFO: ProcessCDR(1,14715194,1,1,2) [2025-03-19 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715194', 'tblTempUsageDetail_20' ) start [2025-03-19 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715194', 'tblTempUsageDetail_20' ) end [2025-03-19 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:28:26] Production.INFO: ==17144== Releasing lock... [2025-03-19 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:28:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-19 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:29:05 [end_date_ymd] => 2025-03-19 11:29:05 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:29:05' and `end` < '2025-03-19 11: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-03-19 11:29:18] Production.INFO: count ==4147 [2025-03-19 11:29:19] Production.ERROR: pbx CDR StartTime 2025-03-19 08:29:05 - End Time 2025-03-19 11:29:05 [2025-03-19 11:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715199', 'tblTempUsageDetail_20' ) start [2025-03-19 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715199', 'tblTempUsageDetail_20' ) end [2025-03-19 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715199', 'tblTempVendorCDR_20' ) start [2025-03-19 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715199', 'tblTempVendorCDR_20' ) end [2025-03-19 11:29:19] Production.INFO: ProcessCDR(1,14715199,1,1,2) [2025-03-19 11:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715199', 'tblTempUsageDetail_20' ) start [2025-03-19 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715199', 'tblTempUsageDetail_20' ) end [2025-03-19 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:29:25] Production.INFO: ==17221== Releasing lock... [2025-03-19 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:29:25] Production.INFO: 59 MB #Memory Used# [2025-03-19 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:30:06 [end_date_ymd] => 2025-03-19 11:30:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:30:06' and `end` < '2025-03-19 11: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-03-19 11:30:19] Production.INFO: count ==4147 [2025-03-19 11:30:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:30:06 - End Time 2025-03-19 11:30:06 [2025-03-19 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715205', 'tblTempUsageDetail_20' ) start [2025-03-19 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715205', 'tblTempUsageDetail_20' ) end [2025-03-19 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715205', 'tblTempVendorCDR_20' ) start [2025-03-19 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715205', 'tblTempVendorCDR_20' ) end [2025-03-19 11:30:21] Production.INFO: ProcessCDR(1,14715205,1,1,2) [2025-03-19 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715205', 'tblTempUsageDetail_20' ) start [2025-03-19 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715205', 'tblTempUsageDetail_20' ) end [2025-03-19 11:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:30:26] Production.INFO: ==17312== Releasing lock... [2025-03-19 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:30:26] Production.INFO: 59 MB #Memory Used# [2025-03-19 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:31:05 [end_date_ymd] => 2025-03-19 11:31:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:31:05' and `end` < '2025-03-19 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-03-19 11:31:18] Production.INFO: count ==4272 [2025-03-19 11:31:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:31:05 - End Time 2025-03-19 11:31:05 [2025-03-19 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715210', 'tblTempUsageDetail_20' ) start [2025-03-19 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715210', 'tblTempUsageDetail_20' ) end [2025-03-19 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715210', 'tblTempVendorCDR_20' ) start [2025-03-19 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715210', 'tblTempVendorCDR_20' ) end [2025-03-19 11:31:20] Production.INFO: ProcessCDR(1,14715210,1,1,2) [2025-03-19 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715210', 'tblTempUsageDetail_20' ) start [2025-03-19 11:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715210', 'tblTempUsageDetail_20' ) end [2025-03-19 11:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:31:26] Production.INFO: ==17395== Releasing lock... [2025-03-19 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:31:26] Production.INFO: 60 MB #Memory Used# [2025-03-19 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:32:05 [end_date_ymd] => 2025-03-19 11:32:05 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:32:05' and `end` < '2025-03-19 11: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-03-19 11:32:18] Production.INFO: count ==4291 [2025-03-19 11:32:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:32:05 - End Time 2025-03-19 11:32:05 [2025-03-19 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715215', 'tblTempUsageDetail_20' ) start [2025-03-19 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715215', 'tblTempUsageDetail_20' ) end [2025-03-19 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715215', 'tblTempVendorCDR_20' ) start [2025-03-19 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715215', 'tblTempVendorCDR_20' ) end [2025-03-19 11:32:20] Production.INFO: ProcessCDR(1,14715215,1,1,2) [2025-03-19 11:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715215', 'tblTempUsageDetail_20' ) start [2025-03-19 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715215', 'tblTempUsageDetail_20' ) end [2025-03-19 11:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:32:25] Production.INFO: ==17476== Releasing lock... [2025-03-19 11:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:32:25] Production.INFO: 60 MB #Memory Used# [2025-03-19 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:33:05 [end_date_ymd] => 2025-03-19 11:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:33:05' and `end` < '2025-03-19 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-03-19 11:33:18] Production.INFO: count ==4288 [2025-03-19 11:33:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:33:05 - End Time 2025-03-19 11:33:05 [2025-03-19 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715220', 'tblTempUsageDetail_20' ) start [2025-03-19 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715220', 'tblTempUsageDetail_20' ) end [2025-03-19 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715220', 'tblTempVendorCDR_20' ) start [2025-03-19 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715220', 'tblTempVendorCDR_20' ) end [2025-03-19 11:33:20] Production.INFO: ProcessCDR(1,14715220,1,1,2) [2025-03-19 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715220', 'tblTempUsageDetail_20' ) start [2025-03-19 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715220', 'tblTempUsageDetail_20' ) end [2025-03-19 11:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:33:25] Production.INFO: ==17552== Releasing lock... [2025-03-19 11:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:33:25] Production.INFO: 60 MB #Memory Used# [2025-03-19 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:34:05 [end_date_ymd] => 2025-03-19 11:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:34:05' and `end` < '2025-03-19 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-03-19 11:34:19] Production.INFO: count ==4304 [2025-03-19 11:34:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:34:05 - End Time 2025-03-19 11:34:05 [2025-03-19 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715225', 'tblTempUsageDetail_20' ) start [2025-03-19 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715225', 'tblTempUsageDetail_20' ) end [2025-03-19 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715225', 'tblTempVendorCDR_20' ) start [2025-03-19 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715225', 'tblTempVendorCDR_20' ) end [2025-03-19 11:34:21] Production.INFO: ProcessCDR(1,14715225,1,1,2) [2025-03-19 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715225', 'tblTempUsageDetail_20' ) start [2025-03-19 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715225', 'tblTempUsageDetail_20' ) end [2025-03-19 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:34:26] Production.INFO: ==17679== Releasing lock... [2025-03-19 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:34:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-19 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:35:06 [end_date_ymd] => 2025-03-19 11:35:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:35:06' and `end` < '2025-03-19 11: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-03-19 11:35:19] Production.INFO: count ==4327 [2025-03-19 11:35:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:35:06 - End Time 2025-03-19 11:35:06 [2025-03-19 11:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715230', 'tblTempUsageDetail_20' ) start [2025-03-19 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715230', 'tblTempUsageDetail_20' ) end [2025-03-19 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715230', 'tblTempVendorCDR_20' ) start [2025-03-19 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715230', 'tblTempVendorCDR_20' ) end [2025-03-19 11:35:21] Production.INFO: ProcessCDR(1,14715230,1,1,2) [2025-03-19 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715230', 'tblTempUsageDetail_20' ) start [2025-03-19 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715230', 'tblTempUsageDetail_20' ) end [2025-03-19 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:35:26] Production.INFO: ==17754== Releasing lock... [2025-03-19 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:35:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-19 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:36:05 [end_date_ymd] => 2025-03-19 11:36:05 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:36:05' and `end` < '2025-03-19 11: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-03-19 11:36:18] Production.INFO: count ==4338 [2025-03-19 11:36:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:36:05 - End Time 2025-03-19 11:36:05 [2025-03-19 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715235', 'tblTempUsageDetail_20' ) start [2025-03-19 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715235', 'tblTempUsageDetail_20' ) end [2025-03-19 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715235', 'tblTempVendorCDR_20' ) start [2025-03-19 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715235', 'tblTempVendorCDR_20' ) end [2025-03-19 11:36:20] Production.INFO: ProcessCDR(1,14715235,1,1,2) [2025-03-19 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715235', 'tblTempUsageDetail_20' ) start [2025-03-19 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715235', 'tblTempUsageDetail_20' ) end [2025-03-19 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:36:26] Production.INFO: ==17833== Releasing lock... [2025-03-19 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:36:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-19 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:37:06 [end_date_ymd] => 2025-03-19 11:37:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:37:06' and `end` < '2025-03-19 11: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-03-19 11:37:19] Production.INFO: count ==4374 [2025-03-19 11:37:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:37:06 - End Time 2025-03-19 11:37:06 [2025-03-19 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715240', 'tblTempUsageDetail_20' ) start [2025-03-19 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715240', 'tblTempUsageDetail_20' ) end [2025-03-19 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715240', 'tblTempVendorCDR_20' ) start [2025-03-19 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715240', 'tblTempVendorCDR_20' ) end [2025-03-19 11:37:21] Production.INFO: ProcessCDR(1,14715240,1,1,2) [2025-03-19 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715240', 'tblTempUsageDetail_20' ) start [2025-03-19 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715240', 'tblTempUsageDetail_20' ) end [2025-03-19 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:37:26] Production.INFO: ==17923== Releasing lock... [2025-03-19 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:37:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-19 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:38:05 [end_date_ymd] => 2025-03-19 11:38:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:38:05' and `end` < '2025-03-19 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-03-19 11:38:18] Production.INFO: count ==4386 [2025-03-19 11:38:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:38:05 - End Time 2025-03-19 11:38:05 [2025-03-19 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715245', 'tblTempUsageDetail_20' ) start [2025-03-19 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715245', 'tblTempUsageDetail_20' ) end [2025-03-19 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715245', 'tblTempVendorCDR_20' ) start [2025-03-19 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715245', 'tblTempVendorCDR_20' ) end [2025-03-19 11:38:20] Production.INFO: ProcessCDR(1,14715245,1,1,2) [2025-03-19 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715245', 'tblTempUsageDetail_20' ) start [2025-03-19 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715245', 'tblTempUsageDetail_20' ) end [2025-03-19 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:38:25] Production.INFO: ==17996== Releasing lock... [2025-03-19 11:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:38:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-19 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:39:05 [end_date_ymd] => 2025-03-19 11:39:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:39:05' and `end` < '2025-03-19 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-03-19 11:39:18] Production.INFO: count ==4450 [2025-03-19 11:39:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:39:05 - End Time 2025-03-19 11:39:05 [2025-03-19 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715250', 'tblTempUsageDetail_20' ) start [2025-03-19 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715250', 'tblTempUsageDetail_20' ) end [2025-03-19 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715250', 'tblTempVendorCDR_20' ) start [2025-03-19 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715250', 'tblTempVendorCDR_20' ) end [2025-03-19 11:39:20] Production.INFO: ProcessCDR(1,14715250,1,1,2) [2025-03-19 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715250', 'tblTempUsageDetail_20' ) start [2025-03-19 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715250', 'tblTempUsageDetail_20' ) end [2025-03-19 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:39:26] Production.INFO: ==18075== Releasing lock... [2025-03-19 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:39:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-19 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:40:06 [end_date_ymd] => 2025-03-19 11:40:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:40:06' and `end` < '2025-03-19 11: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-03-19 11:40:19] Production.INFO: count ==4467 [2025-03-19 11:40:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:40:06 - End Time 2025-03-19 11:40:06 [2025-03-19 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715256', 'tblTempUsageDetail_20' ) start [2025-03-19 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715256', 'tblTempUsageDetail_20' ) end [2025-03-19 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715256', 'tblTempVendorCDR_20' ) start [2025-03-19 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715256', 'tblTempVendorCDR_20' ) end [2025-03-19 11:40:21] Production.INFO: ProcessCDR(1,14715256,1,1,2) [2025-03-19 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715256', 'tblTempUsageDetail_20' ) start [2025-03-19 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715256', 'tblTempUsageDetail_20' ) end [2025-03-19 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:40:27] Production.INFO: ==18158== Releasing lock... [2025-03-19 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:40:27] Production.INFO: 61.5 MB #Memory Used# [2025-03-19 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:41:06 [end_date_ymd] => 2025-03-19 11:41:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:41:06' and `end` < '2025-03-19 11: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-03-19 11:41:18] Production.INFO: count ==4543 [2025-03-19 11:41:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:41:06 - End Time 2025-03-19 11:41:06 [2025-03-19 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715261', 'tblTempUsageDetail_20' ) start [2025-03-19 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715261', 'tblTempUsageDetail_20' ) end [2025-03-19 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715261', 'tblTempVendorCDR_20' ) start [2025-03-19 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715261', 'tblTempVendorCDR_20' ) end [2025-03-19 11:41:21] Production.INFO: ProcessCDR(1,14715261,1,1,2) [2025-03-19 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715261', 'tblTempUsageDetail_20' ) start [2025-03-19 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715261', 'tblTempUsageDetail_20' ) end [2025-03-19 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:41:26] Production.INFO: ==18234== Releasing lock... [2025-03-19 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:41:26] Production.INFO: 62 MB #Memory Used# [2025-03-19 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:42:05 [end_date_ymd] => 2025-03-19 11:42:05 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:42:05' and `end` < '2025-03-19 11: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-03-19 11:42:19] Production.INFO: count ==4558 [2025-03-19 11:42:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:42:05 - End Time 2025-03-19 11:42:05 [2025-03-19 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715266', 'tblTempUsageDetail_20' ) start [2025-03-19 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715266', 'tblTempUsageDetail_20' ) end [2025-03-19 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715266', 'tblTempVendorCDR_20' ) start [2025-03-19 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715266', 'tblTempVendorCDR_20' ) end [2025-03-19 11:42:21] Production.INFO: ProcessCDR(1,14715266,1,1,2) [2025-03-19 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715266', 'tblTempUsageDetail_20' ) start [2025-03-19 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715266', 'tblTempUsageDetail_20' ) end [2025-03-19 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:42:26] Production.INFO: ==18310== Releasing lock... [2025-03-19 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:42:26] Production.INFO: 62 MB #Memory Used# [2025-03-19 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:43:06 [end_date_ymd] => 2025-03-19 11:43:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:43:06' and `end` < '2025-03-19 11: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-03-19 11:43:19] Production.INFO: count ==4575 [2025-03-19 11:43:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:43:06 - End Time 2025-03-19 11:43:06 [2025-03-19 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715271', 'tblTempUsageDetail_20' ) start [2025-03-19 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715271', 'tblTempUsageDetail_20' ) end [2025-03-19 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715271', 'tblTempVendorCDR_20' ) start [2025-03-19 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715271', 'tblTempVendorCDR_20' ) end [2025-03-19 11:43:21] Production.INFO: ProcessCDR(1,14715271,1,1,2) [2025-03-19 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715271', 'tblTempUsageDetail_20' ) start [2025-03-19 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715271', 'tblTempUsageDetail_20' ) end [2025-03-19 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:43:26] Production.INFO: ==18393== Releasing lock... [2025-03-19 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:43:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-19 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:44:05 [end_date_ymd] => 2025-03-19 11:44:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:44:05' and `end` < '2025-03-19 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-03-19 11:44:19] Production.INFO: count ==4619 [2025-03-19 11:44:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:44:05 - End Time 2025-03-19 11:44:05 [2025-03-19 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715276', 'tblTempUsageDetail_20' ) start [2025-03-19 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715276', 'tblTempUsageDetail_20' ) end [2025-03-19 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715276', 'tblTempVendorCDR_20' ) start [2025-03-19 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715276', 'tblTempVendorCDR_20' ) end [2025-03-19 11:44:21] Production.INFO: ProcessCDR(1,14715276,1,1,2) [2025-03-19 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715276', 'tblTempUsageDetail_20' ) start [2025-03-19 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715276', 'tblTempUsageDetail_20' ) end [2025-03-19 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:44:26] Production.INFO: ==18473== Releasing lock... [2025-03-19 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:44:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-19 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:45:06 [end_date_ymd] => 2025-03-19 11:45:06 [RateCDR] => 1 ) [2025-03-19 11:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 08:45:06' and `end` < '2025-03-19 11:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 11:45:19] Production.INFO: count ==4644 [2025-03-19 11:45:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:45:06 - End Time 2025-03-19 11:45:06 [2025-03-19 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715281', 'tblTempUsageDetail_20' ) start [2025-03-19 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715281', 'tblTempUsageDetail_20' ) end [2025-03-19 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715281', 'tblTempVendorCDR_20' ) start [2025-03-19 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715281', 'tblTempVendorCDR_20' ) end [2025-03-19 11:45:21] Production.INFO: ProcessCDR(1,14715281,1,1,2) [2025-03-19 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715281', 'tblTempUsageDetail_20' ) start [2025-03-19 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715281', 'tblTempUsageDetail_20' ) end [2025-03-19 11:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:45:27] Production.INFO: ==18558== Releasing lock... [2025-03-19 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:45:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-19 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:46:05 [end_date_ymd] => 2025-03-19 11:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:46:05' and `end` < '2025-03-19 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-03-19 11:46:19] Production.INFO: count ==4650 [2025-03-19 11:46:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:46:05 - End Time 2025-03-19 11:46:05 [2025-03-19 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715286', 'tblTempUsageDetail_20' ) start [2025-03-19 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715286', 'tblTempUsageDetail_20' ) end [2025-03-19 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715286', 'tblTempVendorCDR_20' ) start [2025-03-19 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715286', 'tblTempVendorCDR_20' ) end [2025-03-19 11:46:21] Production.INFO: ProcessCDR(1,14715286,1,1,2) [2025-03-19 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715286', 'tblTempUsageDetail_20' ) start [2025-03-19 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715286', 'tblTempUsageDetail_20' ) end [2025-03-19 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:46:26] Production.INFO: ==18636== Releasing lock... [2025-03-19 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:46:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-19 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:47:06 [end_date_ymd] => 2025-03-19 11:47:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:47:06' and `end` < '2025-03-19 11: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-03-19 11:47:19] Production.INFO: count ==4650 [2025-03-19 11:47:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:47:06 - End Time 2025-03-19 11:47:06 [2025-03-19 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715291', 'tblTempUsageDetail_20' ) start [2025-03-19 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715291', 'tblTempUsageDetail_20' ) end [2025-03-19 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715291', 'tblTempVendorCDR_20' ) start [2025-03-19 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715291', 'tblTempVendorCDR_20' ) end [2025-03-19 11:47:21] Production.INFO: ProcessCDR(1,14715291,1,1,2) [2025-03-19 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715291', 'tblTempUsageDetail_20' ) start [2025-03-19 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715291', 'tblTempUsageDetail_20' ) end [2025-03-19 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:47:26] Production.INFO: ==18722== Releasing lock... [2025-03-19 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:47:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-19 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:48:05 [end_date_ymd] => 2025-03-19 11:48:05 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:48:05' and `end` < '2025-03-19 11: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-03-19 11:48:18] Production.INFO: count ==4654 [2025-03-19 11:48:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:48:05 - End Time 2025-03-19 11:48:05 [2025-03-19 11:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715296', 'tblTempUsageDetail_20' ) start [2025-03-19 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715296', 'tblTempUsageDetail_20' ) end [2025-03-19 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715296', 'tblTempVendorCDR_20' ) start [2025-03-19 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715296', 'tblTempVendorCDR_20' ) end [2025-03-19 11:48:20] Production.INFO: ProcessCDR(1,14715296,1,1,2) [2025-03-19 11:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715296', 'tblTempUsageDetail_20' ) start [2025-03-19 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715296', 'tblTempUsageDetail_20' ) end [2025-03-19 11:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:48:25] Production.INFO: ==18819== Releasing lock... [2025-03-19 11:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:48:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-19 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:49:06 [end_date_ymd] => 2025-03-19 11:49:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:49:06' and `end` < '2025-03-19 11: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-03-19 11:49:19] Production.INFO: count ==4660 [2025-03-19 11:49:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:49:06 - End Time 2025-03-19 11:49:06 [2025-03-19 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715301', 'tblTempUsageDetail_20' ) start [2025-03-19 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715301', 'tblTempUsageDetail_20' ) end [2025-03-19 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715301', 'tblTempVendorCDR_20' ) start [2025-03-19 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715301', 'tblTempVendorCDR_20' ) end [2025-03-19 11:49:21] Production.INFO: ProcessCDR(1,14715301,1,1,2) [2025-03-19 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715301', 'tblTempUsageDetail_20' ) start [2025-03-19 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715301', 'tblTempUsageDetail_20' ) end [2025-03-19 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:49:26] Production.INFO: ==18939== Releasing lock... [2025-03-19 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:49:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-19 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:50:07 [end_date_ymd] => 2025-03-19 11:50:07 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:50:07' and `end` < '2025-03-19 11: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-03-19 11:50:20] Production.INFO: count ==4674 [2025-03-19 11:50:22] Production.ERROR: pbx CDR StartTime 2025-03-19 08:50:07 - End Time 2025-03-19 11:50:07 [2025-03-19 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715307', 'tblTempUsageDetail_20' ) start [2025-03-19 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715307', 'tblTempUsageDetail_20' ) end [2025-03-19 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715307', 'tblTempVendorCDR_20' ) start [2025-03-19 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715307', 'tblTempVendorCDR_20' ) end [2025-03-19 11:50:22] Production.INFO: ProcessCDR(1,14715307,1,1,2) [2025-03-19 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715307', 'tblTempUsageDetail_20' ) start [2025-03-19 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715307', 'tblTempUsageDetail_20' ) end [2025-03-19 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:50:27] Production.INFO: ==19026== Releasing lock... [2025-03-19 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:50:27] Production.INFO: 63 MB #Memory Used# [2025-03-19 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:51:05 [end_date_ymd] => 2025-03-19 11:51:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:51:05' and `end` < '2025-03-19 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-03-19 11:51:18] Production.INFO: count ==4786 [2025-03-19 11:51:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:51:05 - End Time 2025-03-19 11:51:05 [2025-03-19 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715312', 'tblTempUsageDetail_20' ) start [2025-03-19 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715312', 'tblTempUsageDetail_20' ) end [2025-03-19 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715312', 'tblTempVendorCDR_20' ) start [2025-03-19 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715312', 'tblTempVendorCDR_20' ) end [2025-03-19 11:51:21] Production.INFO: ProcessCDR(1,14715312,1,1,2) [2025-03-19 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715312', 'tblTempUsageDetail_20' ) start [2025-03-19 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715312', 'tblTempUsageDetail_20' ) end [2025-03-19 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:51:26] Production.INFO: ==19110== Releasing lock... [2025-03-19 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:51:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-19 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:52:06 [end_date_ymd] => 2025-03-19 11:52:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:52:06' and `end` < '2025-03-19 11: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-03-19 11:52:19] Production.INFO: count ==4798 [2025-03-19 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:52:06 - End Time 2025-03-19 11:52:06 [2025-03-19 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715317', 'tblTempUsageDetail_20' ) start [2025-03-19 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715317', 'tblTempUsageDetail_20' ) end [2025-03-19 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715317', 'tblTempVendorCDR_20' ) start [2025-03-19 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715317', 'tblTempVendorCDR_20' ) end [2025-03-19 11:52:21] Production.INFO: ProcessCDR(1,14715317,1,1,2) [2025-03-19 11:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715317', 'tblTempUsageDetail_20' ) start [2025-03-19 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715317', 'tblTempUsageDetail_20' ) end [2025-03-19 11:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:52:26] Production.INFO: ==19190== Releasing lock... [2025-03-19 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:52:26] Production.INFO: 64 MB #Memory Used# [2025-03-19 11:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:53:06 [end_date_ymd] => 2025-03-19 11:53:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:53:06' and `end` < '2025-03-19 11: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-03-19 11:53:19] Production.INFO: count ==4811 [2025-03-19 11:53:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:53:06 - End Time 2025-03-19 11:53:06 [2025-03-19 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715322', 'tblTempUsageDetail_20' ) start [2025-03-19 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715322', 'tblTempUsageDetail_20' ) end [2025-03-19 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715322', 'tblTempVendorCDR_20' ) start [2025-03-19 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715322', 'tblTempVendorCDR_20' ) end [2025-03-19 11:53:21] Production.INFO: ProcessCDR(1,14715322,1,1,2) [2025-03-19 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715322', 'tblTempUsageDetail_20' ) start [2025-03-19 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715322', 'tblTempUsageDetail_20' ) end [2025-03-19 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:53:26] Production.INFO: ==19271== Releasing lock... [2025-03-19 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:53:26] Production.INFO: 64 MB #Memory Used# [2025-03-19 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:54:06 [end_date_ymd] => 2025-03-19 11:54:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:54:06' and `end` < '2025-03-19 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-03-19 11:54:19] Production.INFO: count ==4818 [2025-03-19 11:54:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:54:06 - End Time 2025-03-19 11:54:06 [2025-03-19 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715327', 'tblTempUsageDetail_20' ) start [2025-03-19 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715327', 'tblTempUsageDetail_20' ) end [2025-03-19 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715327', 'tblTempVendorCDR_20' ) start [2025-03-19 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715327', 'tblTempVendorCDR_20' ) end [2025-03-19 11:54:21] Production.INFO: ProcessCDR(1,14715327,1,1,2) [2025-03-19 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715327', 'tblTempUsageDetail_20' ) start [2025-03-19 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715327', 'tblTempUsageDetail_20' ) end [2025-03-19 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:54:26] Production.INFO: ==19346== Releasing lock... [2025-03-19 11:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:54:26] Production.INFO: 64 MB #Memory Used# [2025-03-19 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:55:05 [end_date_ymd] => 2025-03-19 11:55:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:55:05' and `end` < '2025-03-19 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-03-19 11:55:18] Production.INFO: count ==4819 [2025-03-19 11:55:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:55:05 - End Time 2025-03-19 11:55:05 [2025-03-19 11:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715332', 'tblTempUsageDetail_20' ) start [2025-03-19 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715332', 'tblTempUsageDetail_20' ) end [2025-03-19 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715332', 'tblTempVendorCDR_20' ) start [2025-03-19 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715332', 'tblTempVendorCDR_20' ) end [2025-03-19 11:55:21] Production.INFO: ProcessCDR(1,14715332,1,1,2) [2025-03-19 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715332', 'tblTempUsageDetail_20' ) start [2025-03-19 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715332', 'tblTempUsageDetail_20' ) end [2025-03-19 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:55:26] Production.INFO: ==19422== Releasing lock... [2025-03-19 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:55:26] Production.INFO: 64 MB #Memory Used# [2025-03-19 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:56:06 [end_date_ymd] => 2025-03-19 11:56:06 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:56:06' and `end` < '2025-03-19 11: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-03-19 11:56:19] Production.INFO: count ==4828 [2025-03-19 11:56:21] Production.ERROR: pbx CDR StartTime 2025-03-19 08:56:06 - End Time 2025-03-19 11:56:06 [2025-03-19 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715337', 'tblTempUsageDetail_20' ) start [2025-03-19 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715337', 'tblTempUsageDetail_20' ) end [2025-03-19 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715337', 'tblTempVendorCDR_20' ) start [2025-03-19 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715337', 'tblTempVendorCDR_20' ) end [2025-03-19 11:56:21] Production.INFO: ProcessCDR(1,14715337,1,1,2) [2025-03-19 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715337', 'tblTempUsageDetail_20' ) start [2025-03-19 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715337', 'tblTempUsageDetail_20' ) end [2025-03-19 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:56:26] Production.INFO: ==19503== Releasing lock... [2025-03-19 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:56:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-19 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:57:05 [end_date_ymd] => 2025-03-19 11:57:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:57:05' and `end` < '2025-03-19 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-03-19 11:57:18] Production.INFO: count ==4855 [2025-03-19 11:57:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:57:05 - End Time 2025-03-19 11:57:05 [2025-03-19 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715342', 'tblTempUsageDetail_20' ) start [2025-03-19 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715342', 'tblTempUsageDetail_20' ) end [2025-03-19 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715342', 'tblTempVendorCDR_20' ) start [2025-03-19 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715342', 'tblTempVendorCDR_20' ) end [2025-03-19 11:57:20] Production.INFO: ProcessCDR(1,14715342,1,1,2) [2025-03-19 11:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715342', 'tblTempUsageDetail_20' ) start [2025-03-19 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715342', 'tblTempUsageDetail_20' ) end [2025-03-19 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:57:26] Production.INFO: ==19578== Releasing lock... [2025-03-19 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:57:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-19 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:58:05 [end_date_ymd] => 2025-03-19 11:58:05 [RateCDR] => 1 ) [2025-03-19 11: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-03-19 08:58:05' and `end` < '2025-03-19 11: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-03-19 11:58:18] Production.INFO: count ==4871 [2025-03-19 11:58:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:58:05 - End Time 2025-03-19 11:58:05 [2025-03-19 11:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715347', 'tblTempUsageDetail_20' ) start [2025-03-19 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715347', 'tblTempUsageDetail_20' ) end [2025-03-19 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715347', 'tblTempVendorCDR_20' ) start [2025-03-19 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715347', 'tblTempVendorCDR_20' ) end [2025-03-19 11:58:20] Production.INFO: ProcessCDR(1,14715347,1,1,2) [2025-03-19 11:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715347', 'tblTempUsageDetail_20' ) start [2025-03-19 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715347', 'tblTempUsageDetail_20' ) end [2025-03-19 11:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:58:25] Production.INFO: ==19657== Releasing lock... [2025-03-19 11:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:58:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-19 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 08:59:05 [end_date_ymd] => 2025-03-19 11:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 08:59:05' and `end` < '2025-03-19 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-03-19 11:59:18] Production.INFO: count ==4874 [2025-03-19 11:59:20] Production.ERROR: pbx CDR StartTime 2025-03-19 08:59:05 - End Time 2025-03-19 11:59:05 [2025-03-19 11:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715352', 'tblTempUsageDetail_20' ) start [2025-03-19 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715352', 'tblTempUsageDetail_20' ) end [2025-03-19 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715352', 'tblTempVendorCDR_20' ) start [2025-03-19 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715352', 'tblTempVendorCDR_20' ) end [2025-03-19 11:59:20] Production.INFO: ProcessCDR(1,14715352,1,1,2) [2025-03-19 11:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715352', 'tblTempUsageDetail_20' ) start [2025-03-19 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715352', 'tblTempUsageDetail_20' ) end [2025-03-19 11:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 11:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 11:59:25] Production.INFO: ==19743== Releasing lock... [2025-03-19 11:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 11:59:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-19 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:00:06 [end_date_ymd] => 2025-03-19 12:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:00:06' and `end` < '2025-03-19 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-03-19 12:00:19] Production.INFO: count ==4879 [2025-03-19 12:00:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:00:06 - End Time 2025-03-19 12:00:06 [2025-03-19 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715358', 'tblTempUsageDetail_20' ) start [2025-03-19 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715358', 'tblTempUsageDetail_20' ) end [2025-03-19 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715358', 'tblTempVendorCDR_20' ) start [2025-03-19 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715358', 'tblTempVendorCDR_20' ) end [2025-03-19 12:00:21] Production.INFO: ProcessCDR(1,14715358,1,1,2) [2025-03-19 12:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715358', 'tblTempUsageDetail_20' ) start [2025-03-19 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715358', 'tblTempUsageDetail_20' ) end [2025-03-19 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:00:27] Production.INFO: ==19826== Releasing lock... [2025-03-19 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:00:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-19 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:01:05 [end_date_ymd] => 2025-03-19 12:01:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:01:05' and `end` < '2025-03-19 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-03-19 12:01:18] Production.INFO: count ==4961 [2025-03-19 12:01:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:01:05 - End Time 2025-03-19 12:01:05 [2025-03-19 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715363', 'tblTempUsageDetail_20' ) start [2025-03-19 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715363', 'tblTempUsageDetail_20' ) end [2025-03-19 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715363', 'tblTempVendorCDR_20' ) start [2025-03-19 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715363', 'tblTempVendorCDR_20' ) end [2025-03-19 12:01:20] Production.INFO: ProcessCDR(1,14715363,1,1,2) [2025-03-19 12:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715363', 'tblTempUsageDetail_20' ) start [2025-03-19 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715363', 'tblTempUsageDetail_20' ) end [2025-03-19 12:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:01:25] Production.INFO: ==19923== Releasing lock... [2025-03-19 12:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:01:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:02:06 [end_date_ymd] => 2025-03-19 12:02:06 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:02:06' and `end` < '2025-03-19 12: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-03-19 12:02:19] Production.INFO: count ==4960 [2025-03-19 12:02:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:02:06 - End Time 2025-03-19 12:02:06 [2025-03-19 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715368', 'tblTempUsageDetail_20' ) start [2025-03-19 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715368', 'tblTempUsageDetail_20' ) end [2025-03-19 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715368', 'tblTempVendorCDR_20' ) start [2025-03-19 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715368', 'tblTempVendorCDR_20' ) end [2025-03-19 12:02:21] Production.INFO: ProcessCDR(1,14715368,1,1,2) [2025-03-19 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715368', 'tblTempUsageDetail_20' ) start [2025-03-19 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715368', 'tblTempUsageDetail_20' ) end [2025-03-19 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:02:27] Production.INFO: ==20003== Releasing lock... [2025-03-19 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:02:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:03:05 [end_date_ymd] => 2025-03-19 12:03:05 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:03:05' and `end` < '2025-03-19 12: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-03-19 12:03:18] Production.INFO: count ==4976 [2025-03-19 12:03:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:03:05 - End Time 2025-03-19 12:03:05 [2025-03-19 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715373', 'tblTempUsageDetail_20' ) start [2025-03-19 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715373', 'tblTempUsageDetail_20' ) end [2025-03-19 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715373', 'tblTempVendorCDR_20' ) start [2025-03-19 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715373', 'tblTempVendorCDR_20' ) end [2025-03-19 12:03:20] Production.INFO: ProcessCDR(1,14715373,1,1,2) [2025-03-19 12:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715373', 'tblTempUsageDetail_20' ) start [2025-03-19 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715373', 'tblTempUsageDetail_20' ) end [2025-03-19 12:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:03:25] Production.INFO: ==20080== Releasing lock... [2025-03-19 12:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:03:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:04:06 [end_date_ymd] => 2025-03-19 12:04:06 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:04:06' and `end` < '2025-03-19 12: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-03-19 12:04:19] Production.INFO: count ==4984 [2025-03-19 12:04:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:04:06 - End Time 2025-03-19 12:04:06 [2025-03-19 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715378', 'tblTempUsageDetail_20' ) start [2025-03-19 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715378', 'tblTempUsageDetail_20' ) end [2025-03-19 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715378', 'tblTempVendorCDR_20' ) start [2025-03-19 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715378', 'tblTempVendorCDR_20' ) end [2025-03-19 12:04:21] Production.INFO: ProcessCDR(1,14715378,1,1,2) [2025-03-19 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715378', 'tblTempUsageDetail_20' ) start [2025-03-19 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715378', 'tblTempUsageDetail_20' ) end [2025-03-19 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:04:27] Production.INFO: ==20156== Releasing lock... [2025-03-19 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:04:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:05:05 [end_date_ymd] => 2025-03-19 12:05:05 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:05:05' and `end` < '2025-03-19 12: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-03-19 12:05:18] Production.INFO: count ==4977 [2025-03-19 12:05:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:05:05 - End Time 2025-03-19 12:05:05 [2025-03-19 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715383', 'tblTempUsageDetail_20' ) start [2025-03-19 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715383', 'tblTempUsageDetail_20' ) end [2025-03-19 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715383', 'tblTempVendorCDR_20' ) start [2025-03-19 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715383', 'tblTempVendorCDR_20' ) end [2025-03-19 12:05:20] Production.INFO: ProcessCDR(1,14715383,1,1,2) [2025-03-19 12:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715383', 'tblTempUsageDetail_20' ) start [2025-03-19 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715383', 'tblTempUsageDetail_20' ) end [2025-03-19 12:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:05:25] Production.INFO: ==20271== Releasing lock... [2025-03-19 12:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:05:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:06:06 [end_date_ymd] => 2025-03-19 12:06:06 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:06:06' and `end` < '2025-03-19 12: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-03-19 12:06:19] Production.INFO: count ==4990 [2025-03-19 12:06:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:06:06 - End Time 2025-03-19 12:06:06 [2025-03-19 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715388', 'tblTempUsageDetail_20' ) start [2025-03-19 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715388', 'tblTempUsageDetail_20' ) end [2025-03-19 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715388', 'tblTempVendorCDR_20' ) start [2025-03-19 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715388', 'tblTempVendorCDR_20' ) end [2025-03-19 12:06:21] Production.INFO: ProcessCDR(1,14715388,1,1,2) [2025-03-19 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715388', 'tblTempUsageDetail_20' ) start [2025-03-19 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715388', 'tblTempUsageDetail_20' ) end [2025-03-19 12:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:06:26] Production.INFO: ==20344== Releasing lock... [2025-03-19 12:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:06:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:07:05 [end_date_ymd] => 2025-03-19 12:07:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:07:05' and `end` < '2025-03-19 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-03-19 12:07:18] Production.INFO: count ==4961 [2025-03-19 12:07:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:07:05 - End Time 2025-03-19 12:07:05 [2025-03-19 12:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715393', 'tblTempUsageDetail_20' ) start [2025-03-19 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715393', 'tblTempUsageDetail_20' ) end [2025-03-19 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715393', 'tblTempVendorCDR_20' ) start [2025-03-19 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715393', 'tblTempVendorCDR_20' ) end [2025-03-19 12:07:20] Production.INFO: ProcessCDR(1,14715393,1,1,2) [2025-03-19 12:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715393', 'tblTempUsageDetail_20' ) start [2025-03-19 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715393', 'tblTempUsageDetail_20' ) end [2025-03-19 12:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:07:25] Production.INFO: ==20420== Releasing lock... [2025-03-19 12:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:07:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:08:06 [end_date_ymd] => 2025-03-19 12:08:06 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:08:06' and `end` < '2025-03-19 12: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-03-19 12:08:19] Production.INFO: count ==4956 [2025-03-19 12:08:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:08:06 - End Time 2025-03-19 12:08:06 [2025-03-19 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715398', 'tblTempUsageDetail_20' ) start [2025-03-19 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715398', 'tblTempUsageDetail_20' ) end [2025-03-19 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715398', 'tblTempVendorCDR_20' ) start [2025-03-19 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715398', 'tblTempVendorCDR_20' ) end [2025-03-19 12:08:21] Production.INFO: ProcessCDR(1,14715398,1,1,2) [2025-03-19 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715398', 'tblTempUsageDetail_20' ) start [2025-03-19 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715398', 'tblTempUsageDetail_20' ) end [2025-03-19 12:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:08:26] Production.INFO: ==20504== Releasing lock... [2025-03-19 12:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:08:26] Production.INFO: 65 MB #Memory Used# [2025-03-19 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:09:05 [end_date_ymd] => 2025-03-19 12:09:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:09:05' and `end` < '2025-03-19 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-03-19 12:09:19] Production.INFO: count ==4975 [2025-03-19 12:09:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:09:05 - End Time 2025-03-19 12:09:05 [2025-03-19 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715403', 'tblTempUsageDetail_20' ) start [2025-03-19 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715403', 'tblTempUsageDetail_20' ) end [2025-03-19 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715403', 'tblTempVendorCDR_20' ) start [2025-03-19 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715403', 'tblTempVendorCDR_20' ) end [2025-03-19 12:09:21] Production.INFO: ProcessCDR(1,14715403,1,1,2) [2025-03-19 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715403', 'tblTempUsageDetail_20' ) start [2025-03-19 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715403', 'tblTempUsageDetail_20' ) end [2025-03-19 12:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:09:27] Production.INFO: ==20581== Releasing lock... [2025-03-19 12:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:09:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:10:06 [end_date_ymd] => 2025-03-19 12:10:06 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:10:06' and `end` < '2025-03-19 12: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-03-19 12:10:19] Production.INFO: count ==4969 [2025-03-19 12:10:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:10:06 - End Time 2025-03-19 12:10:06 [2025-03-19 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715409', 'tblTempUsageDetail_20' ) start [2025-03-19 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715409', 'tblTempUsageDetail_20' ) end [2025-03-19 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715409', 'tblTempVendorCDR_20' ) start [2025-03-19 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715409', 'tblTempVendorCDR_20' ) end [2025-03-19 12:10:21] Production.INFO: ProcessCDR(1,14715409,1,1,2) [2025-03-19 12:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715409', 'tblTempUsageDetail_20' ) start [2025-03-19 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715409', 'tblTempUsageDetail_20' ) end [2025-03-19 12:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:10:26] Production.INFO: ==20661== Releasing lock... [2025-03-19 12:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:10:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:11:05 [end_date_ymd] => 2025-03-19 12:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:11:05' and `end` < '2025-03-19 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-03-19 12:11:18] Production.INFO: count ==5033 [2025-03-19 12:11:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:11:05 - End Time 2025-03-19 12:11:05 [2025-03-19 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715414', 'tblTempUsageDetail_20' ) start [2025-03-19 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715414', 'tblTempUsageDetail_20' ) end [2025-03-19 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715414', 'tblTempVendorCDR_20' ) start [2025-03-19 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715414', 'tblTempVendorCDR_20' ) end [2025-03-19 12:11:21] Production.INFO: ProcessCDR(1,14715414,1,1,2) [2025-03-19 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715414', 'tblTempUsageDetail_20' ) start [2025-03-19 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715414', 'tblTempUsageDetail_20' ) end [2025-03-19 12:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:11:25] Production.INFO: ==20741== Releasing lock... [2025-03-19 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:11:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:12:05 [end_date_ymd] => 2025-03-19 12:12:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:12:05' and `end` < '2025-03-19 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-03-19 12:12:19] Production.INFO: count ==5043 [2025-03-19 12:12:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:12:05 - End Time 2025-03-19 12:12:05 [2025-03-19 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715419', 'tblTempUsageDetail_20' ) start [2025-03-19 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715419', 'tblTempUsageDetail_20' ) end [2025-03-19 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715419', 'tblTempVendorCDR_20' ) start [2025-03-19 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715419', 'tblTempVendorCDR_20' ) end [2025-03-19 12:12:21] Production.INFO: ProcessCDR(1,14715419,1,1,2) [2025-03-19 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715419', 'tblTempUsageDetail_20' ) start [2025-03-19 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715419', 'tblTempUsageDetail_20' ) end [2025-03-19 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:12:26] Production.INFO: ==20814== Releasing lock... [2025-03-19 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:12:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:13:05 [end_date_ymd] => 2025-03-19 12:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:13:05' and `end` < '2025-03-19 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-03-19 12:13:18] Production.INFO: count ==5044 [2025-03-19 12:13:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:13:05 - End Time 2025-03-19 12:13:05 [2025-03-19 12:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715424', 'tblTempUsageDetail_20' ) start [2025-03-19 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715424', 'tblTempUsageDetail_20' ) end [2025-03-19 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715424', 'tblTempVendorCDR_20' ) start [2025-03-19 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715424', 'tblTempVendorCDR_20' ) end [2025-03-19 12:13:20] Production.INFO: ProcessCDR(1,14715424,1,1,2) [2025-03-19 12:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715424', 'tblTempUsageDetail_20' ) start [2025-03-19 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715424', 'tblTempUsageDetail_20' ) end [2025-03-19 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:13:26] Production.INFO: ==20886== Releasing lock... [2025-03-19 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:13:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:14:05 [end_date_ymd] => 2025-03-19 12:14:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:14:05' and `end` < '2025-03-19 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-03-19 12:14:19] Production.INFO: count ==5050 [2025-03-19 12:14:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:14:05 - End Time 2025-03-19 12:14:05 [2025-03-19 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715429', 'tblTempUsageDetail_20' ) start [2025-03-19 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715429', 'tblTempUsageDetail_20' ) end [2025-03-19 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715429', 'tblTempVendorCDR_20' ) start [2025-03-19 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715429', 'tblTempVendorCDR_20' ) end [2025-03-19 12:14:21] Production.INFO: ProcessCDR(1,14715429,1,1,2) [2025-03-19 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715429', 'tblTempUsageDetail_20' ) start [2025-03-19 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715429', 'tblTempUsageDetail_20' ) end [2025-03-19 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:14:26] Production.INFO: ==20959== Releasing lock... [2025-03-19 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:14:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:15:05 [end_date_ymd] => 2025-03-19 12:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:15:05' and `end` < '2025-03-19 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-03-19 12:15:18] Production.INFO: count ==5051 [2025-03-19 12:15:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:15:05 - End Time 2025-03-19 12:15:05 [2025-03-19 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715434', 'tblTempUsageDetail_20' ) start [2025-03-19 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715434', 'tblTempUsageDetail_20' ) end [2025-03-19 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715434', 'tblTempVendorCDR_20' ) start [2025-03-19 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715434', 'tblTempVendorCDR_20' ) end [2025-03-19 12:15:21] Production.INFO: ProcessCDR(1,14715434,1,1,2) [2025-03-19 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715434', 'tblTempUsageDetail_20' ) start [2025-03-19 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715434', 'tblTempUsageDetail_20' ) end [2025-03-19 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:15:26] Production.INFO: ==21034== Releasing lock... [2025-03-19 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:15:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:16:05 [end_date_ymd] => 2025-03-19 12:16:05 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:16:05' and `end` < '2025-03-19 12: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-03-19 12:16:18] Production.INFO: count ==5036 [2025-03-19 12:16:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:16:05 - End Time 2025-03-19 12:16:05 [2025-03-19 12:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715439', 'tblTempUsageDetail_20' ) start [2025-03-19 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715439', 'tblTempUsageDetail_20' ) end [2025-03-19 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715439', 'tblTempVendorCDR_20' ) start [2025-03-19 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715439', 'tblTempVendorCDR_20' ) end [2025-03-19 12:16:20] Production.INFO: ProcessCDR(1,14715439,1,1,2) [2025-03-19 12:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715439', 'tblTempUsageDetail_20' ) start [2025-03-19 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715439', 'tblTempUsageDetail_20' ) end [2025-03-19 12:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:16:25] Production.INFO: ==21109== Releasing lock... [2025-03-19 12:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:16:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:17:05 [end_date_ymd] => 2025-03-19 12:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:17:05' and `end` < '2025-03-19 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-03-19 12:17:18] Production.INFO: count ==5050 [2025-03-19 12:17:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:17:05 - End Time 2025-03-19 12:17:05 [2025-03-19 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715444', 'tblTempUsageDetail_20' ) start [2025-03-19 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715444', 'tblTempUsageDetail_20' ) end [2025-03-19 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715444', 'tblTempVendorCDR_20' ) start [2025-03-19 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715444', 'tblTempVendorCDR_20' ) end [2025-03-19 12:17:21] Production.INFO: ProcessCDR(1,14715444,1,1,2) [2025-03-19 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715444', 'tblTempUsageDetail_20' ) start [2025-03-19 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715444', 'tblTempUsageDetail_20' ) end [2025-03-19 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:17:26] Production.INFO: ==21191== Releasing lock... [2025-03-19 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:17:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:18:06 [end_date_ymd] => 2025-03-19 12:18:06 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:18:06' and `end` < '2025-03-19 12: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-03-19 12:18:19] Production.INFO: count ==5050 [2025-03-19 12:18:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:18:06 - End Time 2025-03-19 12:18:06 [2025-03-19 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715449', 'tblTempUsageDetail_20' ) start [2025-03-19 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715449', 'tblTempUsageDetail_20' ) end [2025-03-19 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715449', 'tblTempVendorCDR_20' ) start [2025-03-19 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715449', 'tblTempVendorCDR_20' ) end [2025-03-19 12:18:21] Production.INFO: ProcessCDR(1,14715449,1,1,2) [2025-03-19 12:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715449', 'tblTempUsageDetail_20' ) start [2025-03-19 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715449', 'tblTempUsageDetail_20' ) end [2025-03-19 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:18:27] Production.INFO: ==21263== Releasing lock... [2025-03-19 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:18:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:19:05 [end_date_ymd] => 2025-03-19 12:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:19:05' and `end` < '2025-03-19 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-03-19 12:19:18] Production.INFO: count ==5060 [2025-03-19 12:19:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:19:05 - End Time 2025-03-19 12:19:05 [2025-03-19 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715454', 'tblTempUsageDetail_20' ) start [2025-03-19 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715454', 'tblTempUsageDetail_20' ) end [2025-03-19 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715454', 'tblTempVendorCDR_20' ) start [2025-03-19 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715454', 'tblTempVendorCDR_20' ) end [2025-03-19 12:19:21] Production.INFO: ProcessCDR(1,14715454,1,1,2) [2025-03-19 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715454', 'tblTempUsageDetail_20' ) start [2025-03-19 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715454', 'tblTempUsageDetail_20' ) end [2025-03-19 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:19:27] Production.INFO: ==21338== Releasing lock... [2025-03-19 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:19:27] Production.INFO: 66 MB #Memory Used# [2025-03-19 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:20:06 [end_date_ymd] => 2025-03-19 12:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:20:06' and `end` < '2025-03-19 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-03-19 12:20:19] Production.INFO: count ==5063 [2025-03-19 12:20:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:20:06 - End Time 2025-03-19 12:20:06 [2025-03-19 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715460', 'tblTempUsageDetail_20' ) start [2025-03-19 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715460', 'tblTempUsageDetail_20' ) end [2025-03-19 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715460', 'tblTempVendorCDR_20' ) start [2025-03-19 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715460', 'tblTempVendorCDR_20' ) end [2025-03-19 12:20:22] Production.INFO: ProcessCDR(1,14715460,1,1,2) [2025-03-19 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715460', 'tblTempUsageDetail_20' ) start [2025-03-19 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715460', 'tblTempUsageDetail_20' ) end [2025-03-19 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:20:27] Production.INFO: ==21452== Releasing lock... [2025-03-19 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:20:27] Production.INFO: 66 MB #Memory Used# [2025-03-19 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:21:05 [end_date_ymd] => 2025-03-19 12:21:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:21:05' and `end` < '2025-03-19 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-03-19 12:21:18] Production.INFO: count ==5137 [2025-03-19 12:21:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:21:05 - End Time 2025-03-19 12:21:05 [2025-03-19 12:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715465', 'tblTempUsageDetail_20' ) start [2025-03-19 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715465', 'tblTempUsageDetail_20' ) end [2025-03-19 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715465', 'tblTempVendorCDR_20' ) start [2025-03-19 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715465', 'tblTempVendorCDR_20' ) end [2025-03-19 12:21:20] Production.INFO: ProcessCDR(1,14715465,1,1,2) [2025-03-19 12:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715465', 'tblTempUsageDetail_20' ) start [2025-03-19 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715465', 'tblTempUsageDetail_20' ) end [2025-03-19 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:21:26] Production.INFO: ==21527== Releasing lock... [2025-03-19 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:21:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-19 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:22:05 [end_date_ymd] => 2025-03-19 12:22:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:22:05' and `end` < '2025-03-19 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-03-19 12:22:19] Production.INFO: count ==5171 [2025-03-19 12:22:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:22:05 - End Time 2025-03-19 12:22:05 [2025-03-19 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715470', 'tblTempUsageDetail_20' ) start [2025-03-19 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715470', 'tblTempUsageDetail_20' ) end [2025-03-19 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715470', 'tblTempVendorCDR_20' ) start [2025-03-19 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715470', 'tblTempVendorCDR_20' ) end [2025-03-19 12:22:21] Production.INFO: ProcessCDR(1,14715470,1,1,2) [2025-03-19 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715470', 'tblTempUsageDetail_20' ) start [2025-03-19 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715470', 'tblTempUsageDetail_20' ) end [2025-03-19 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:22:26] Production.INFO: ==21599== Releasing lock... [2025-03-19 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:22:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-19 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:23:05 [end_date_ymd] => 2025-03-19 12:23:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:23:05' and `end` < '2025-03-19 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-03-19 12:23:18] Production.INFO: count ==5159 [2025-03-19 12:23:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:23:05 - End Time 2025-03-19 12:23:05 [2025-03-19 12:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715475', 'tblTempUsageDetail_20' ) start [2025-03-19 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715475', 'tblTempUsageDetail_20' ) end [2025-03-19 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715475', 'tblTempVendorCDR_20' ) start [2025-03-19 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715475', 'tblTempVendorCDR_20' ) end [2025-03-19 12:23:20] Production.INFO: ProcessCDR(1,14715475,1,1,2) [2025-03-19 12:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715475', 'tblTempUsageDetail_20' ) start [2025-03-19 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715475', 'tblTempUsageDetail_20' ) end [2025-03-19 12:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:23:25] Production.INFO: ==21675== Releasing lock... [2025-03-19 12:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:23:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-19 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:24:06 [end_date_ymd] => 2025-03-19 12:24:06 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:24:06' and `end` < '2025-03-19 12: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-03-19 12:24:19] Production.INFO: count ==5134 [2025-03-19 12:24:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:24:06 - End Time 2025-03-19 12:24:06 [2025-03-19 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715480', 'tblTempUsageDetail_20' ) start [2025-03-19 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715480', 'tblTempUsageDetail_20' ) end [2025-03-19 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715480', 'tblTempVendorCDR_20' ) start [2025-03-19 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715480', 'tblTempVendorCDR_20' ) end [2025-03-19 12:24:21] Production.INFO: ProcessCDR(1,14715480,1,1,2) [2025-03-19 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715480', 'tblTempUsageDetail_20' ) start [2025-03-19 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715480', 'tblTempUsageDetail_20' ) end [2025-03-19 12:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:24:26] Production.INFO: ==21747== Releasing lock... [2025-03-19 12:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:24:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-19 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:25:04 [end_date_ymd] => 2025-03-19 12:25:04 [RateCDR] => 1 ) [2025-03-19 12:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 09:25:04' and `end` < '2025-03-19 12:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 12:25:18] Production.INFO: count ==5140 [2025-03-19 12:25:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:25:04 - End Time 2025-03-19 12:25:04 [2025-03-19 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715485', 'tblTempUsageDetail_20' ) start [2025-03-19 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715485', 'tblTempUsageDetail_20' ) end [2025-03-19 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715485', 'tblTempVendorCDR_20' ) start [2025-03-19 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715485', 'tblTempVendorCDR_20' ) end [2025-03-19 12:25:20] Production.INFO: ProcessCDR(1,14715485,1,1,2) [2025-03-19 12:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715485', 'tblTempUsageDetail_20' ) start [2025-03-19 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715485', 'tblTempUsageDetail_20' ) end [2025-03-19 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:25:25] Production.INFO: ==21820== Releasing lock... [2025-03-19 12:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:25:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-19 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:26:05 [end_date_ymd] => 2025-03-19 12:26:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:26:05' and `end` < '2025-03-19 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-03-19 12:26:18] Production.INFO: count ==5145 [2025-03-19 12:26:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:26:05 - End Time 2025-03-19 12:26:05 [2025-03-19 12:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715490', 'tblTempUsageDetail_20' ) start [2025-03-19 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715490', 'tblTempUsageDetail_20' ) end [2025-03-19 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715490', 'tblTempVendorCDR_20' ) start [2025-03-19 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715490', 'tblTempVendorCDR_20' ) end [2025-03-19 12:26:20] Production.INFO: ProcessCDR(1,14715490,1,1,2) [2025-03-19 12:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715490', 'tblTempUsageDetail_20' ) start [2025-03-19 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715490', 'tblTempUsageDetail_20' ) end [2025-03-19 12:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:26:26] Production.INFO: ==21898== Releasing lock... [2025-03-19 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:26:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-19 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:27:06 [end_date_ymd] => 2025-03-19 12:27:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:27:06' and `end` < '2025-03-19 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-03-19 12:27:19] Production.INFO: count ==5156 [2025-03-19 12:27:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:27:06 - End Time 2025-03-19 12:27:06 [2025-03-19 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715495', 'tblTempUsageDetail_20' ) start [2025-03-19 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715495', 'tblTempUsageDetail_20' ) end [2025-03-19 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715495', 'tblTempVendorCDR_20' ) start [2025-03-19 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715495', 'tblTempVendorCDR_20' ) end [2025-03-19 12:27:21] Production.INFO: ProcessCDR(1,14715495,1,1,2) [2025-03-19 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715495', 'tblTempUsageDetail_20' ) start [2025-03-19 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715495', 'tblTempUsageDetail_20' ) end [2025-03-19 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:27:26] Production.INFO: ==21971== Releasing lock... [2025-03-19 12:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:27:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-19 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:28:06 [end_date_ymd] => 2025-03-19 12:28:06 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:28:06' and `end` < '2025-03-19 12: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-03-19 12:28:19] Production.INFO: count ==5160 [2025-03-19 12:28:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:28:06 - End Time 2025-03-19 12:28:06 [2025-03-19 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715500', 'tblTempUsageDetail_20' ) start [2025-03-19 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715500', 'tblTempUsageDetail_20' ) end [2025-03-19 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715500', 'tblTempVendorCDR_20' ) start [2025-03-19 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715500', 'tblTempVendorCDR_20' ) end [2025-03-19 12:28:21] Production.INFO: ProcessCDR(1,14715500,1,1,2) [2025-03-19 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715500', 'tblTempUsageDetail_20' ) start [2025-03-19 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715500', 'tblTempUsageDetail_20' ) end [2025-03-19 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:28:26] Production.INFO: ==22045== Releasing lock... [2025-03-19 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:28:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-19 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:29:05 [end_date_ymd] => 2025-03-19 12:29:05 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:29:05' and `end` < '2025-03-19 12: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-03-19 12:29:18] Production.INFO: count ==5146 [2025-03-19 12:29:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:29:05 - End Time 2025-03-19 12:29:05 [2025-03-19 12:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715505', 'tblTempUsageDetail_20' ) start [2025-03-19 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715505', 'tblTempUsageDetail_20' ) end [2025-03-19 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715505', 'tblTempVendorCDR_20' ) start [2025-03-19 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715505', 'tblTempVendorCDR_20' ) end [2025-03-19 12:29:21] Production.INFO: ProcessCDR(1,14715505,1,1,2) [2025-03-19 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715505', 'tblTempUsageDetail_20' ) start [2025-03-19 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715505', 'tblTempUsageDetail_20' ) end [2025-03-19 12:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:29:26] Production.INFO: ==22121== Releasing lock... [2025-03-19 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:29:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-19 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:30:06 [end_date_ymd] => 2025-03-19 12:30:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:30:06' and `end` < '2025-03-19 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-03-19 12:30:20] Production.INFO: count ==5119 [2025-03-19 12:30:22] Production.ERROR: pbx CDR StartTime 2025-03-19 09:30:06 - End Time 2025-03-19 12:30:06 [2025-03-19 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715511', 'tblTempUsageDetail_20' ) start [2025-03-19 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715511', 'tblTempUsageDetail_20' ) end [2025-03-19 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715511', 'tblTempVendorCDR_20' ) start [2025-03-19 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715511', 'tblTempVendorCDR_20' ) end [2025-03-19 12:30:22] Production.INFO: ProcessCDR(1,14715511,1,1,2) [2025-03-19 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715511', 'tblTempUsageDetail_20' ) start [2025-03-19 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715511', 'tblTempUsageDetail_20' ) end [2025-03-19 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:30:27] Production.INFO: ==22207== Releasing lock... [2025-03-19 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:30:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-19 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:31:05 [end_date_ymd] => 2025-03-19 12:31:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:31:05' and `end` < '2025-03-19 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-03-19 12:31:18] Production.INFO: count ==5132 [2025-03-19 12:31:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:31:05 - End Time 2025-03-19 12:31:05 [2025-03-19 12:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715516', 'tblTempUsageDetail_20' ) start [2025-03-19 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715516', 'tblTempUsageDetail_20' ) end [2025-03-19 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715516', 'tblTempVendorCDR_20' ) start [2025-03-19 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715516', 'tblTempVendorCDR_20' ) end [2025-03-19 12:31:20] Production.INFO: ProcessCDR(1,14715516,1,1,2) [2025-03-19 12:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715516', 'tblTempUsageDetail_20' ) start [2025-03-19 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715516', 'tblTempUsageDetail_20' ) end [2025-03-19 12:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:31:25] Production.INFO: ==22282== Releasing lock... [2025-03-19 12:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:31:25] Production.INFO: 66.5 MB #Memory Used# [2025-03-19 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:32:05 [end_date_ymd] => 2025-03-19 12:32:05 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:32:05' and `end` < '2025-03-19 12: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-03-19 12:32:19] Production.INFO: count ==5140 [2025-03-19 12:32:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:32:05 - End Time 2025-03-19 12:32:05 [2025-03-19 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715521', 'tblTempUsageDetail_20' ) start [2025-03-19 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715521', 'tblTempUsageDetail_20' ) end [2025-03-19 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715521', 'tblTempVendorCDR_20' ) start [2025-03-19 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715521', 'tblTempVendorCDR_20' ) end [2025-03-19 12:32:21] Production.INFO: ProcessCDR(1,14715521,1,1,2) [2025-03-19 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715521', 'tblTempUsageDetail_20' ) start [2025-03-19 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715521', 'tblTempUsageDetail_20' ) end [2025-03-19 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:32:26] Production.INFO: ==22354== Releasing lock... [2025-03-19 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:32:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-19 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:33:06 [end_date_ymd] => 2025-03-19 12:33:06 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:33:06' and `end` < '2025-03-19 12: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-03-19 12:33:19] Production.INFO: count ==5161 [2025-03-19 12:33:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:33:06 - End Time 2025-03-19 12:33:06 [2025-03-19 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715526', 'tblTempUsageDetail_20' ) start [2025-03-19 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715526', 'tblTempUsageDetail_20' ) end [2025-03-19 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715526', 'tblTempVendorCDR_20' ) start [2025-03-19 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715526', 'tblTempVendorCDR_20' ) end [2025-03-19 12:33:22] Production.INFO: ProcessCDR(1,14715526,1,1,2) [2025-03-19 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715526', 'tblTempUsageDetail_20' ) start [2025-03-19 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715526', 'tblTempUsageDetail_20' ) end [2025-03-19 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:33:27] Production.INFO: ==22429== Releasing lock... [2025-03-19 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:33:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-19 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:34:05 [end_date_ymd] => 2025-03-19 12:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:34:05' and `end` < '2025-03-19 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-03-19 12:34:18] Production.INFO: count ==5184 [2025-03-19 12:34:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:34:05 - End Time 2025-03-19 12:34:05 [2025-03-19 12:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715531', 'tblTempUsageDetail_20' ) start [2025-03-19 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715531', 'tblTempUsageDetail_20' ) end [2025-03-19 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715531', 'tblTempVendorCDR_20' ) start [2025-03-19 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715531', 'tblTempVendorCDR_20' ) end [2025-03-19 12:34:20] Production.INFO: ProcessCDR(1,14715531,1,1,2) [2025-03-19 12:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715531', 'tblTempUsageDetail_20' ) start [2025-03-19 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715531', 'tblTempUsageDetail_20' ) end [2025-03-19 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:34:26] Production.INFO: ==22502== Releasing lock... [2025-03-19 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:34:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-19 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:35:06 [end_date_ymd] => 2025-03-19 12:35:06 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:35:06' and `end` < '2025-03-19 12: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-03-19 12:35:19] Production.INFO: count ==5193 [2025-03-19 12:35:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:35:06 - End Time 2025-03-19 12:35:06 [2025-03-19 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715536', 'tblTempUsageDetail_20' ) start [2025-03-19 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715536', 'tblTempUsageDetail_20' ) end [2025-03-19 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715536', 'tblTempVendorCDR_20' ) start [2025-03-19 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715536', 'tblTempVendorCDR_20' ) end [2025-03-19 12:35:21] Production.INFO: ProcessCDR(1,14715536,1,1,2) [2025-03-19 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715536', 'tblTempUsageDetail_20' ) start [2025-03-19 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715536', 'tblTempUsageDetail_20' ) end [2025-03-19 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:35:26] Production.INFO: ==22614== Releasing lock... [2025-03-19 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:35:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-19 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:36:05 [end_date_ymd] => 2025-03-19 12:36:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:36:05' and `end` < '2025-03-19 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-03-19 12:36:18] Production.INFO: count ==5197 [2025-03-19 12:36:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:36:05 - End Time 2025-03-19 12:36:05 [2025-03-19 12:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715541', 'tblTempUsageDetail_20' ) start [2025-03-19 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715541', 'tblTempUsageDetail_20' ) end [2025-03-19 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715541', 'tblTempVendorCDR_20' ) start [2025-03-19 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715541', 'tblTempVendorCDR_20' ) end [2025-03-19 12:36:20] Production.INFO: ProcessCDR(1,14715541,1,1,2) [2025-03-19 12:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715541', 'tblTempUsageDetail_20' ) start [2025-03-19 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715541', 'tblTempUsageDetail_20' ) end [2025-03-19 12:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:36:25] Production.INFO: ==22693== Releasing lock... [2025-03-19 12:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:36:25] Production.INFO: 67 MB #Memory Used# [2025-03-19 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:37:05 [end_date_ymd] => 2025-03-19 12:37:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:37:05' and `end` < '2025-03-19 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-03-19 12:37:19] Production.INFO: count ==5216 [2025-03-19 12:37:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:37:05 - End Time 2025-03-19 12:37:05 [2025-03-19 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715546', 'tblTempUsageDetail_20' ) start [2025-03-19 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715546', 'tblTempUsageDetail_20' ) end [2025-03-19 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715546', 'tblTempVendorCDR_20' ) start [2025-03-19 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715546', 'tblTempVendorCDR_20' ) end [2025-03-19 12:37:21] Production.INFO: ProcessCDR(1,14715546,1,1,2) [2025-03-19 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715546', 'tblTempUsageDetail_20' ) start [2025-03-19 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715546', 'tblTempUsageDetail_20' ) end [2025-03-19 12:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:37:27] Production.INFO: ==22764== Releasing lock... [2025-03-19 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:37:27] Production.INFO: 67 MB #Memory Used# [2025-03-19 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:38:05 [end_date_ymd] => 2025-03-19 12:38:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:38:05' and `end` < '2025-03-19 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-03-19 12:38:19] Production.INFO: count ==5232 [2025-03-19 12:38:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:38:05 - End Time 2025-03-19 12:38:05 [2025-03-19 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715551', 'tblTempUsageDetail_20' ) start [2025-03-19 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715551', 'tblTempUsageDetail_20' ) end [2025-03-19 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715551', 'tblTempVendorCDR_20' ) start [2025-03-19 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715551', 'tblTempVendorCDR_20' ) end [2025-03-19 12:38:21] Production.INFO: ProcessCDR(1,14715551,1,1,2) [2025-03-19 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715551', 'tblTempUsageDetail_20' ) start [2025-03-19 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715551', 'tblTempUsageDetail_20' ) end [2025-03-19 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:38:27] Production.INFO: ==22837== Releasing lock... [2025-03-19 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:38:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-19 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:39:06 [end_date_ymd] => 2025-03-19 12:39:06 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:39:06' and `end` < '2025-03-19 12: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-03-19 12:39:19] Production.INFO: count ==5244 [2025-03-19 12:39:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:39:06 - End Time 2025-03-19 12:39:06 [2025-03-19 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715556', 'tblTempUsageDetail_20' ) start [2025-03-19 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715556', 'tblTempUsageDetail_20' ) end [2025-03-19 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715556', 'tblTempVendorCDR_20' ) start [2025-03-19 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715556', 'tblTempVendorCDR_20' ) end [2025-03-19 12:39:21] Production.INFO: ProcessCDR(1,14715556,1,1,2) [2025-03-19 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715556', 'tblTempUsageDetail_20' ) start [2025-03-19 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715556', 'tblTempUsageDetail_20' ) end [2025-03-19 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:39:27] Production.INFO: ==22910== Releasing lock... [2025-03-19 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:39:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-19 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:40:06 [end_date_ymd] => 2025-03-19 12:40:06 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:40:06' and `end` < '2025-03-19 12: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-03-19 12:40:19] Production.INFO: count ==5258 [2025-03-19 12:40:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:40:06 - End Time 2025-03-19 12:40:06 [2025-03-19 12:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715561', 'tblTempUsageDetail_20' ) start [2025-03-19 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715561', 'tblTempUsageDetail_20' ) end [2025-03-19 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715561', 'tblTempVendorCDR_20' ) start [2025-03-19 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715561', 'tblTempVendorCDR_20' ) end [2025-03-19 12:40:22] Production.INFO: ProcessCDR(1,14715561,1,1,2) [2025-03-19 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715561', 'tblTempUsageDetail_20' ) start [2025-03-19 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715561', 'tblTempUsageDetail_20' ) end [2025-03-19 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:40:27] Production.INFO: ==22985== Releasing lock... [2025-03-19 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:40:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-19 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:41:05 [end_date_ymd] => 2025-03-19 12:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:41:05' and `end` < '2025-03-19 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-03-19 12:41:19] Production.INFO: count ==5314 [2025-03-19 12:41:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:41:05 - End Time 2025-03-19 12:41:05 [2025-03-19 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715567', 'tblTempUsageDetail_20' ) start [2025-03-19 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715567', 'tblTempUsageDetail_20' ) end [2025-03-19 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715567', 'tblTempVendorCDR_20' ) start [2025-03-19 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715567', 'tblTempVendorCDR_20' ) end [2025-03-19 12:41:21] Production.INFO: ProcessCDR(1,14715567,1,1,2) [2025-03-19 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715567', 'tblTempUsageDetail_20' ) start [2025-03-19 12:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715567', 'tblTempUsageDetail_20' ) end [2025-03-19 12:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:41:26] Production.INFO: ==23062== Releasing lock... [2025-03-19 12:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:41:26] Production.INFO: 67.75 MB #Memory Used# [2025-03-19 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:42:05 [end_date_ymd] => 2025-03-19 12:42:05 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:42:05' and `end` < '2025-03-19 12: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-03-19 12:42:18] Production.INFO: count ==5388 [2025-03-19 12:42:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:42:05 - End Time 2025-03-19 12:42:05 [2025-03-19 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715572', 'tblTempUsageDetail_20' ) start [2025-03-19 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715572', 'tblTempUsageDetail_20' ) end [2025-03-19 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715572', 'tblTempVendorCDR_20' ) start [2025-03-19 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715572', 'tblTempVendorCDR_20' ) end [2025-03-19 12:42:21] Production.INFO: ProcessCDR(1,14715572,1,1,2) [2025-03-19 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715572', 'tblTempUsageDetail_20' ) start [2025-03-19 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715572', 'tblTempUsageDetail_20' ) end [2025-03-19 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:42:26] Production.INFO: ==23134== Releasing lock... [2025-03-19 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:42:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-19 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:43:05 [end_date_ymd] => 2025-03-19 12:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:43:05' and `end` < '2025-03-19 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-03-19 12:43:18] Production.INFO: count ==5386 [2025-03-19 12:43:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:43:05 - End Time 2025-03-19 12:43:05 [2025-03-19 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715577', 'tblTempUsageDetail_20' ) start [2025-03-19 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715577', 'tblTempUsageDetail_20' ) end [2025-03-19 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715577', 'tblTempVendorCDR_20' ) start [2025-03-19 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715577', 'tblTempVendorCDR_20' ) end [2025-03-19 12:43:21] Production.INFO: ProcessCDR(1,14715577,1,1,2) [2025-03-19 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715577', 'tblTempUsageDetail_20' ) start [2025-03-19 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715577', 'tblTempUsageDetail_20' ) end [2025-03-19 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:43:26] Production.INFO: ==23210== Releasing lock... [2025-03-19 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:43:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-19 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:44:05 [end_date_ymd] => 2025-03-19 12:44:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:44:05' and `end` < '2025-03-19 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-03-19 12:44:18] Production.INFO: count ==5360 [2025-03-19 12:44:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:44:05 - End Time 2025-03-19 12:44:05 [2025-03-19 12:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715582', 'tblTempUsageDetail_20' ) start [2025-03-19 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715582', 'tblTempUsageDetail_20' ) end [2025-03-19 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715582', 'tblTempVendorCDR_20' ) start [2025-03-19 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715582', 'tblTempVendorCDR_20' ) end [2025-03-19 12:44:20] Production.INFO: ProcessCDR(1,14715582,1,1,2) [2025-03-19 12:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715582', 'tblTempUsageDetail_20' ) start [2025-03-19 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715582', 'tblTempUsageDetail_20' ) end [2025-03-19 12:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:44:26] Production.INFO: ==23287== Releasing lock... [2025-03-19 12:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:44:26] Production.INFO: 68 MB #Memory Used# [2025-03-19 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:45:05 [end_date_ymd] => 2025-03-19 12:45:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:45:05' and `end` < '2025-03-19 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-03-19 12:45:18] Production.INFO: count ==5376 [2025-03-19 12:45:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:45:05 - End Time 2025-03-19 12:45:05 [2025-03-19 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715587', 'tblTempUsageDetail_20' ) start [2025-03-19 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715587', 'tblTempUsageDetail_20' ) end [2025-03-19 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715587', 'tblTempVendorCDR_20' ) start [2025-03-19 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715587', 'tblTempVendorCDR_20' ) end [2025-03-19 12:45:21] Production.INFO: ProcessCDR(1,14715587,1,1,2) [2025-03-19 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715587', 'tblTempUsageDetail_20' ) start [2025-03-19 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715587', 'tblTempUsageDetail_20' ) end [2025-03-19 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:45:26] Production.INFO: ==23362== Releasing lock... [2025-03-19 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:45:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-19 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:46:05 [end_date_ymd] => 2025-03-19 12:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:46:05' and `end` < '2025-03-19 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-03-19 12:46:18] Production.INFO: count ==5379 [2025-03-19 12:46:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:46:05 - End Time 2025-03-19 12:46:05 [2025-03-19 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715592', 'tblTempUsageDetail_20' ) start [2025-03-19 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715592', 'tblTempUsageDetail_20' ) end [2025-03-19 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715592', 'tblTempVendorCDR_20' ) start [2025-03-19 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715592', 'tblTempVendorCDR_20' ) end [2025-03-19 12:46:21] Production.INFO: ProcessCDR(1,14715592,1,1,2) [2025-03-19 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715592', 'tblTempUsageDetail_20' ) start [2025-03-19 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715592', 'tblTempUsageDetail_20' ) end [2025-03-19 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:46:26] Production.INFO: ==23436== Releasing lock... [2025-03-19 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:46:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-19 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:47:06 [end_date_ymd] => 2025-03-19 12:47:06 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:47:06' and `end` < '2025-03-19 12: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-03-19 12:47:19] Production.INFO: count ==5397 [2025-03-19 12:47:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:47:06 - End Time 2025-03-19 12:47:06 [2025-03-19 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715597', 'tblTempUsageDetail_20' ) start [2025-03-19 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715597', 'tblTempUsageDetail_20' ) end [2025-03-19 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715597', 'tblTempVendorCDR_20' ) start [2025-03-19 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715597', 'tblTempVendorCDR_20' ) end [2025-03-19 12:47:21] Production.INFO: ProcessCDR(1,14715597,1,1,2) [2025-03-19 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715597', 'tblTempUsageDetail_20' ) start [2025-03-19 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715597', 'tblTempUsageDetail_20' ) end [2025-03-19 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:47:27] Production.INFO: ==23509== Releasing lock... [2025-03-19 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:47:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-19 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:48:05 [end_date_ymd] => 2025-03-19 12:48:05 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:48:05' and `end` < '2025-03-19 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-03-19 12:48:19] Production.INFO: count ==5421 [2025-03-19 12:48:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:48:05 - End Time 2025-03-19 12:48:05 [2025-03-19 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715602', 'tblTempUsageDetail_20' ) start [2025-03-19 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715602', 'tblTempUsageDetail_20' ) end [2025-03-19 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715602', 'tblTempVendorCDR_20' ) start [2025-03-19 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715602', 'tblTempVendorCDR_20' ) end [2025-03-19 12:48:21] Production.INFO: ProcessCDR(1,14715602,1,1,2) [2025-03-19 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715602', 'tblTempUsageDetail_20' ) start [2025-03-19 12:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715602', 'tblTempUsageDetail_20' ) end [2025-03-19 12:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:48:27] Production.INFO: ==23586== Releasing lock... [2025-03-19 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:48:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-19 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:49:05 [end_date_ymd] => 2025-03-19 12:49:05 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:49:05' and `end` < '2025-03-19 12: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-03-19 12:49:19] Production.INFO: count ==5445 [2025-03-19 12:49:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:49:05 - End Time 2025-03-19 12:49:05 [2025-03-19 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715607', 'tblTempUsageDetail_20' ) start [2025-03-19 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715607', 'tblTempUsageDetail_20' ) end [2025-03-19 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715607', 'tblTempVendorCDR_20' ) start [2025-03-19 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715607', 'tblTempVendorCDR_20' ) end [2025-03-19 12:49:21] Production.INFO: ProcessCDR(1,14715607,1,1,2) [2025-03-19 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715607', 'tblTempUsageDetail_20' ) start [2025-03-19 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715607', 'tblTempUsageDetail_20' ) end [2025-03-19 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:49:26] Production.INFO: ==23662== Releasing lock... [2025-03-19 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:49:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-19 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:50:06 [end_date_ymd] => 2025-03-19 12:50:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:50:06' and `end` < '2025-03-19 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-03-19 12:50:20] Production.INFO: count ==5541 [2025-03-19 12:50:22] Production.ERROR: pbx CDR StartTime 2025-03-19 09:50:06 - End Time 2025-03-19 12:50:06 [2025-03-19 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715613', 'tblTempUsageDetail_20' ) start [2025-03-19 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715613', 'tblTempUsageDetail_20' ) end [2025-03-19 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715613', 'tblTempVendorCDR_20' ) start [2025-03-19 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715613', 'tblTempVendorCDR_20' ) end [2025-03-19 12:50:22] Production.INFO: ProcessCDR(1,14715613,1,1,2) [2025-03-19 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715613', 'tblTempUsageDetail_20' ) start [2025-03-19 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715613', 'tblTempUsageDetail_20' ) end [2025-03-19 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:50:28] Production.INFO: ==23735== Releasing lock... [2025-03-19 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:50:28] Production.INFO: 69.5 MB #Memory Used# [2025-03-19 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:51:05 [end_date_ymd] => 2025-03-19 12:51:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:51:05' and `end` < '2025-03-19 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-03-19 12:51:19] Production.INFO: count ==5582 [2025-03-19 12:51:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:51:05 - End Time 2025-03-19 12:51:05 [2025-03-19 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715618', 'tblTempUsageDetail_20' ) start [2025-03-19 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715618', 'tblTempUsageDetail_20' ) end [2025-03-19 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715618', 'tblTempVendorCDR_20' ) start [2025-03-19 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715618', 'tblTempVendorCDR_20' ) end [2025-03-19 12:51:21] Production.INFO: ProcessCDR(1,14715618,1,1,2) [2025-03-19 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715618', 'tblTempUsageDetail_20' ) start [2025-03-19 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715618', 'tblTempUsageDetail_20' ) end [2025-03-19 12:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:51:27] Production.INFO: ==23850== Releasing lock... [2025-03-19 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:51:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-19 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:52:05 [end_date_ymd] => 2025-03-19 12:52:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:52:05' and `end` < '2025-03-19 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-03-19 12:52:18] Production.INFO: count ==5612 [2025-03-19 12:52:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:52:05 - End Time 2025-03-19 12:52:05 [2025-03-19 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715623', 'tblTempUsageDetail_20' ) start [2025-03-19 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715623', 'tblTempUsageDetail_20' ) end [2025-03-19 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715623', 'tblTempVendorCDR_20' ) start [2025-03-19 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715623', 'tblTempVendorCDR_20' ) end [2025-03-19 12:52:21] Production.INFO: ProcessCDR(1,14715623,1,1,2) [2025-03-19 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715623', 'tblTempUsageDetail_20' ) start [2025-03-19 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715623', 'tblTempUsageDetail_20' ) end [2025-03-19 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:52:26] Production.INFO: ==23925== Releasing lock... [2025-03-19 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:52:26] Production.INFO: 70 MB #Memory Used# [2025-03-19 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:53:06 [end_date_ymd] => 2025-03-19 12:53:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:53:06' and `end` < '2025-03-19 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-03-19 12:53:19] Production.INFO: count ==5628 [2025-03-19 12:53:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:53:06 - End Time 2025-03-19 12:53:06 [2025-03-19 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715628', 'tblTempUsageDetail_20' ) start [2025-03-19 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715628', 'tblTempUsageDetail_20' ) end [2025-03-19 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715628', 'tblTempVendorCDR_20' ) start [2025-03-19 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715628', 'tblTempVendorCDR_20' ) end [2025-03-19 12:53:22] Production.INFO: ProcessCDR(1,14715628,1,1,2) [2025-03-19 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715628', 'tblTempUsageDetail_20' ) start [2025-03-19 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715628', 'tblTempUsageDetail_20' ) end [2025-03-19 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:53:27] Production.INFO: ==24003== Releasing lock... [2025-03-19 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:53:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-19 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:54:05 [end_date_ymd] => 2025-03-19 12:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:54:05' and `end` < '2025-03-19 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-03-19 12:54:18] Production.INFO: count ==5634 [2025-03-19 12:54:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:54:05 - End Time 2025-03-19 12:54:05 [2025-03-19 12:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715633', 'tblTempUsageDetail_20' ) start [2025-03-19 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715633', 'tblTempUsageDetail_20' ) end [2025-03-19 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715633', 'tblTempVendorCDR_20' ) start [2025-03-19 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715633', 'tblTempVendorCDR_20' ) end [2025-03-19 12:54:21] Production.INFO: ProcessCDR(1,14715633,1,1,2) [2025-03-19 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715633', 'tblTempUsageDetail_20' ) start [2025-03-19 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715633', 'tblTempUsageDetail_20' ) end [2025-03-19 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:54:26] Production.INFO: ==24075== Releasing lock... [2025-03-19 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:54:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-19 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:55:06 [end_date_ymd] => 2025-03-19 12:55:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:55:06' and `end` < '2025-03-19 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-03-19 12:55:19] Production.INFO: count ==5653 [2025-03-19 12:55:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:55:06 - End Time 2025-03-19 12:55:06 [2025-03-19 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715638', 'tblTempUsageDetail_20' ) start [2025-03-19 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715638', 'tblTempUsageDetail_20' ) end [2025-03-19 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715638', 'tblTempVendorCDR_20' ) start [2025-03-19 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715638', 'tblTempVendorCDR_20' ) end [2025-03-19 12:55:21] Production.INFO: ProcessCDR(1,14715638,1,1,2) [2025-03-19 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715638', 'tblTempUsageDetail_20' ) start [2025-03-19 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715638', 'tblTempUsageDetail_20' ) end [2025-03-19 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:55:27] Production.INFO: ==24147== Releasing lock... [2025-03-19 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:55:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-19 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:56:05 [end_date_ymd] => 2025-03-19 12:56:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:56:05' and `end` < '2025-03-19 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-03-19 12:56:18] Production.INFO: count ==5737 [2025-03-19 12:56:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:56:05 - End Time 2025-03-19 12:56:05 [2025-03-19 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715643', 'tblTempUsageDetail_20' ) start [2025-03-19 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715643', 'tblTempUsageDetail_20' ) end [2025-03-19 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715643', 'tblTempVendorCDR_20' ) start [2025-03-19 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715643', 'tblTempVendorCDR_20' ) end [2025-03-19 12:56:21] Production.INFO: ProcessCDR(1,14715643,1,1,2) [2025-03-19 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715643', 'tblTempUsageDetail_20' ) start [2025-03-19 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715643', 'tblTempUsageDetail_20' ) end [2025-03-19 12:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:56:26] Production.INFO: ==24223== Releasing lock... [2025-03-19 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:56:26] Production.INFO: 71 MB #Memory Used# [2025-03-19 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:57:04 [end_date_ymd] => 2025-03-19 12:57:04 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:57:04' and `end` < '2025-03-19 12: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-03-19 12:57:18] Production.INFO: count ==5767 [2025-03-19 12:57:20] Production.ERROR: pbx CDR StartTime 2025-03-19 09:57:04 - End Time 2025-03-19 12:57:04 [2025-03-19 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715648', 'tblTempUsageDetail_20' ) start [2025-03-19 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715648', 'tblTempUsageDetail_20' ) end [2025-03-19 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715648', 'tblTempVendorCDR_20' ) start [2025-03-19 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715648', 'tblTempVendorCDR_20' ) end [2025-03-19 12:57:20] Production.INFO: ProcessCDR(1,14715648,1,1,2) [2025-03-19 12:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715648', 'tblTempUsageDetail_20' ) start [2025-03-19 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715648', 'tblTempUsageDetail_20' ) end [2025-03-19 12:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:57:25] Production.INFO: ==24298== Releasing lock... [2025-03-19 12:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:57:25] Production.INFO: 71.25 MB #Memory Used# [2025-03-19 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:58:06 [end_date_ymd] => 2025-03-19 12:58:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 09:58:06' and `end` < '2025-03-19 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-03-19 12:58:19] Production.INFO: count ==5796 [2025-03-19 12:58:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:58:06 - End Time 2025-03-19 12:58:06 [2025-03-19 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715653', 'tblTempUsageDetail_20' ) start [2025-03-19 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715653', 'tblTempUsageDetail_20' ) end [2025-03-19 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715653', 'tblTempVendorCDR_20' ) start [2025-03-19 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715653', 'tblTempVendorCDR_20' ) end [2025-03-19 12:58:22] Production.INFO: ProcessCDR(1,14715653,1,1,2) [2025-03-19 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715653', 'tblTempUsageDetail_20' ) start [2025-03-19 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715653', 'tblTempUsageDetail_20' ) end [2025-03-19 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:58:27] Production.INFO: ==24371== Releasing lock... [2025-03-19 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:58:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-19 12:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 09:59:06 [end_date_ymd] => 2025-03-19 12:59:06 [RateCDR] => 1 ) [2025-03-19 12: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-03-19 09:59:06' and `end` < '2025-03-19 12: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-03-19 12:59:19] Production.INFO: count ==5806 [2025-03-19 12:59:21] Production.ERROR: pbx CDR StartTime 2025-03-19 09:59:06 - End Time 2025-03-19 12:59:06 [2025-03-19 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715658', 'tblTempUsageDetail_20' ) start [2025-03-19 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715658', 'tblTempUsageDetail_20' ) end [2025-03-19 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715658', 'tblTempVendorCDR_20' ) start [2025-03-19 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715658', 'tblTempVendorCDR_20' ) end [2025-03-19 12:59:21] Production.INFO: ProcessCDR(1,14715658,1,1,2) [2025-03-19 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715658', 'tblTempUsageDetail_20' ) start [2025-03-19 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715658', 'tblTempUsageDetail_20' ) end [2025-03-19 12:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 12:59:27] Production.INFO: ==24445== Releasing lock... [2025-03-19 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 12:59:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-19 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:00:06 [end_date_ymd] => 2025-03-19 13:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:00:06' and `end` < '2025-03-19 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-03-19 13:00:20] Production.INFO: count ==5858 [2025-03-19 13:00:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:00:06 - End Time 2025-03-19 13:00:06 [2025-03-19 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715664', 'tblTempUsageDetail_20' ) start [2025-03-19 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715664', 'tblTempUsageDetail_20' ) end [2025-03-19 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715664', 'tblTempVendorCDR_20' ) start [2025-03-19 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715664', 'tblTempVendorCDR_20' ) end [2025-03-19 13:00:22] Production.INFO: ProcessCDR(1,14715664,1,1,2) [2025-03-19 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715664', 'tblTempUsageDetail_20' ) start [2025-03-19 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715664', 'tblTempUsageDetail_20' ) end [2025-03-19 13:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:00:28] Production.INFO: ==24524== Releasing lock... [2025-03-19 13:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:00:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:01:05 [end_date_ymd] => 2025-03-19 13:01:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:01:05' and `end` < '2025-03-19 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-03-19 13:01:19] Production.INFO: count ==5841 [2025-03-19 13:01:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:01:05 - End Time 2025-03-19 13:01:05 [2025-03-19 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715669', 'tblTempUsageDetail_20' ) start [2025-03-19 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715669', 'tblTempUsageDetail_20' ) end [2025-03-19 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715669', 'tblTempVendorCDR_20' ) start [2025-03-19 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715669', 'tblTempVendorCDR_20' ) end [2025-03-19 13:01:21] Production.INFO: ProcessCDR(1,14715669,1,1,2) [2025-03-19 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715669', 'tblTempUsageDetail_20' ) start [2025-03-19 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715669', 'tblTempUsageDetail_20' ) end [2025-03-19 13:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:01:27] Production.INFO: ==24611== Releasing lock... [2025-03-19 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:01:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:02:05 [end_date_ymd] => 2025-03-19 13:02:05 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:02:05' and `end` < '2025-03-19 13: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-03-19 13:02:19] Production.INFO: count ==5860 [2025-03-19 13:02:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:02:05 - End Time 2025-03-19 13:02:05 [2025-03-19 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715674', 'tblTempUsageDetail_20' ) start [2025-03-19 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715674', 'tblTempUsageDetail_20' ) end [2025-03-19 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715674', 'tblTempVendorCDR_20' ) start [2025-03-19 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715674', 'tblTempVendorCDR_20' ) end [2025-03-19 13:02:22] Production.INFO: ProcessCDR(1,14715674,1,1,2) [2025-03-19 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715674', 'tblTempUsageDetail_20' ) start [2025-03-19 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715674', 'tblTempUsageDetail_20' ) end [2025-03-19 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:02:27] Production.INFO: ==24687== Releasing lock... [2025-03-19 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:02:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:03:06 [end_date_ymd] => 2025-03-19 13:03:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:03:06' and `end` < '2025-03-19 13: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-03-19 13:03:19] Production.INFO: count ==5872 [2025-03-19 13:03:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:03:06 - End Time 2025-03-19 13:03:06 [2025-03-19 13:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715679', 'tblTempUsageDetail_20' ) start [2025-03-19 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715679', 'tblTempUsageDetail_20' ) end [2025-03-19 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715679', 'tblTempVendorCDR_20' ) start [2025-03-19 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715679', 'tblTempVendorCDR_20' ) end [2025-03-19 13:03:22] Production.INFO: ProcessCDR(1,14715679,1,1,2) [2025-03-19 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715679', 'tblTempUsageDetail_20' ) start [2025-03-19 13:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715679', 'tblTempUsageDetail_20' ) end [2025-03-19 13:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:03:28] Production.INFO: ==24758== Releasing lock... [2025-03-19 13:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:03:28] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:04:05 [end_date_ymd] => 2025-03-19 13:04:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:04:05' and `end` < '2025-03-19 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-03-19 13:04:19] Production.INFO: count ==5859 [2025-03-19 13:04:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:04:05 - End Time 2025-03-19 13:04:05 [2025-03-19 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715684', 'tblTempUsageDetail_20' ) start [2025-03-19 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715684', 'tblTempUsageDetail_20' ) end [2025-03-19 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715684', 'tblTempVendorCDR_20' ) start [2025-03-19 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715684', 'tblTempVendorCDR_20' ) end [2025-03-19 13:04:21] Production.INFO: ProcessCDR(1,14715684,1,1,2) [2025-03-19 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715684', 'tblTempUsageDetail_20' ) start [2025-03-19 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715684', 'tblTempUsageDetail_20' ) end [2025-03-19 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:04:27] Production.INFO: ==24833== Releasing lock... [2025-03-19 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:04:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:05:05 [end_date_ymd] => 2025-03-19 13:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:05:05' and `end` < '2025-03-19 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-03-19 13:05:18] Production.INFO: count ==5873 [2025-03-19 13:05:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:05:05 - End Time 2025-03-19 13:05:05 [2025-03-19 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715689', 'tblTempUsageDetail_20' ) start [2025-03-19 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715689', 'tblTempUsageDetail_20' ) end [2025-03-19 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715689', 'tblTempVendorCDR_20' ) start [2025-03-19 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715689', 'tblTempVendorCDR_20' ) end [2025-03-19 13:05:21] Production.INFO: ProcessCDR(1,14715689,1,1,2) [2025-03-19 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715689', 'tblTempUsageDetail_20' ) start [2025-03-19 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715689', 'tblTempUsageDetail_20' ) end [2025-03-19 13:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:05:27] Production.INFO: ==24905== Releasing lock... [2025-03-19 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:05:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:06:05 [end_date_ymd] => 2025-03-19 13:06:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:06:05' and `end` < '2025-03-19 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-03-19 13:06:18] Production.INFO: count ==5880 [2025-03-19 13:06:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:06:05 - End Time 2025-03-19 13:06:05 [2025-03-19 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715694', 'tblTempUsageDetail_20' ) start [2025-03-19 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715694', 'tblTempUsageDetail_20' ) end [2025-03-19 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715694', 'tblTempVendorCDR_20' ) start [2025-03-19 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715694', 'tblTempVendorCDR_20' ) end [2025-03-19 13:06:21] Production.INFO: ProcessCDR(1,14715694,1,1,2) [2025-03-19 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715694', 'tblTempUsageDetail_20' ) start [2025-03-19 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715694', 'tblTempUsageDetail_20' ) end [2025-03-19 13:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:06:26] Production.INFO: ==25015== Releasing lock... [2025-03-19 13:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:06:26] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:07:06 [end_date_ymd] => 2025-03-19 13:07:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:07:06' and `end` < '2025-03-19 13: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-03-19 13:07:19] Production.INFO: count ==5884 [2025-03-19 13:07:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:07:06 - End Time 2025-03-19 13:07:06 [2025-03-19 13:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715699', 'tblTempUsageDetail_20' ) start [2025-03-19 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715699', 'tblTempUsageDetail_20' ) end [2025-03-19 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715699', 'tblTempVendorCDR_20' ) start [2025-03-19 13:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715699', 'tblTempVendorCDR_20' ) end [2025-03-19 13:07:22] Production.INFO: ProcessCDR(1,14715699,1,1,2) [2025-03-19 13:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715699', 'tblTempUsageDetail_20' ) start [2025-03-19 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715699', 'tblTempUsageDetail_20' ) end [2025-03-19 13:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:07:28] Production.INFO: ==25089== Releasing lock... [2025-03-19 13:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:07:28] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:08:05 [end_date_ymd] => 2025-03-19 13:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:08:05' and `end` < '2025-03-19 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-03-19 13:08:18] Production.INFO: count ==5901 [2025-03-19 13:08:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:08:05 - End Time 2025-03-19 13:08:05 [2025-03-19 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715704', 'tblTempUsageDetail_20' ) start [2025-03-19 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715704', 'tblTempUsageDetail_20' ) end [2025-03-19 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715704', 'tblTempVendorCDR_20' ) start [2025-03-19 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715704', 'tblTempVendorCDR_20' ) end [2025-03-19 13:08:21] Production.INFO: ProcessCDR(1,14715704,1,1,2) [2025-03-19 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715704', 'tblTempUsageDetail_20' ) start [2025-03-19 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715704', 'tblTempUsageDetail_20' ) end [2025-03-19 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:08:26] Production.INFO: ==25169== Releasing lock... [2025-03-19 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:08:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:09:05 [end_date_ymd] => 2025-03-19 13:09:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:09:05' and `end` < '2025-03-19 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-03-19 13:09:18] Production.INFO: count ==5891 [2025-03-19 13:09:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:09:05 - End Time 2025-03-19 13:09:05 [2025-03-19 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715709', 'tblTempUsageDetail_20' ) start [2025-03-19 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715709', 'tblTempUsageDetail_20' ) end [2025-03-19 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715709', 'tblTempVendorCDR_20' ) start [2025-03-19 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715709', 'tblTempVendorCDR_20' ) end [2025-03-19 13:09:21] Production.INFO: ProcessCDR(1,14715709,1,1,2) [2025-03-19 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715709', 'tblTempUsageDetail_20' ) start [2025-03-19 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715709', 'tblTempUsageDetail_20' ) end [2025-03-19 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:09:26] Production.INFO: ==25241== Releasing lock... [2025-03-19 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:09:26] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:10:05 [end_date_ymd] => 2025-03-19 13:10:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:10:05' and `end` < '2025-03-19 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-03-19 13:10:19] Production.INFO: count ==5867 [2025-03-19 13:10:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:10:05 - End Time 2025-03-19 13:10:05 [2025-03-19 13:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715715', 'tblTempUsageDetail_20' ) start [2025-03-19 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715715', 'tblTempUsageDetail_20' ) end [2025-03-19 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715715', 'tblTempVendorCDR_20' ) start [2025-03-19 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715715', 'tblTempVendorCDR_20' ) end [2025-03-19 13:10:21] Production.INFO: ProcessCDR(1,14715715,1,1,2) [2025-03-19 13:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715715', 'tblTempUsageDetail_20' ) start [2025-03-19 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715715', 'tblTempUsageDetail_20' ) end [2025-03-19 13:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:10:27] Production.INFO: ==25314== Releasing lock... [2025-03-19 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:10:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:11:05 [end_date_ymd] => 2025-03-19 13:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:11:05' and `end` < '2025-03-19 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-03-19 13:11:19] Production.INFO: count ==5910 [2025-03-19 13:11:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:11:05 - End Time 2025-03-19 13:11:05 [2025-03-19 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715720', 'tblTempUsageDetail_20' ) start [2025-03-19 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715720', 'tblTempUsageDetail_20' ) end [2025-03-19 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715720', 'tblTempVendorCDR_20' ) start [2025-03-19 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715720', 'tblTempVendorCDR_20' ) end [2025-03-19 13:11:21] Production.INFO: ProcessCDR(1,14715720,1,1,2) [2025-03-19 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715720', 'tblTempUsageDetail_20' ) start [2025-03-19 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715720', 'tblTempUsageDetail_20' ) end [2025-03-19 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:11:27] Production.INFO: ==25395== Releasing lock... [2025-03-19 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:11:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:12:05 [end_date_ymd] => 2025-03-19 13:12:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:12:05' and `end` < '2025-03-19 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-03-19 13:12:18] Production.INFO: count ==5877 [2025-03-19 13:12:20] Production.ERROR: pbx CDR StartTime 2025-03-19 10:12:05 - End Time 2025-03-19 13:12:05 [2025-03-19 13:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715725', 'tblTempUsageDetail_20' ) start [2025-03-19 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715725', 'tblTempUsageDetail_20' ) end [2025-03-19 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715725', 'tblTempVendorCDR_20' ) start [2025-03-19 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715725', 'tblTempVendorCDR_20' ) end [2025-03-19 13:12:21] Production.INFO: ProcessCDR(1,14715725,1,1,2) [2025-03-19 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715725', 'tblTempUsageDetail_20' ) start [2025-03-19 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715725', 'tblTempUsageDetail_20' ) end [2025-03-19 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:12:26] Production.INFO: ==25467== Releasing lock... [2025-03-19 13:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:12:26] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:13:05 [end_date_ymd] => 2025-03-19 13:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:13:05' and `end` < '2025-03-19 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-03-19 13:13:18] Production.INFO: count ==5875 [2025-03-19 13:13:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:13:05 - End Time 2025-03-19 13:13:05 [2025-03-19 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715730', 'tblTempUsageDetail_20' ) start [2025-03-19 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715730', 'tblTempUsageDetail_20' ) end [2025-03-19 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715730', 'tblTempVendorCDR_20' ) start [2025-03-19 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715730', 'tblTempVendorCDR_20' ) end [2025-03-19 13:13:21] Production.INFO: ProcessCDR(1,14715730,1,1,2) [2025-03-19 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715730', 'tblTempUsageDetail_20' ) start [2025-03-19 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715730', 'tblTempUsageDetail_20' ) end [2025-03-19 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:13:26] Production.INFO: ==25539== Releasing lock... [2025-03-19 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:13:26] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:14:05 [end_date_ymd] => 2025-03-19 13:14:05 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:14:05' and `end` < '2025-03-19 13: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-03-19 13:14:18] Production.INFO: count ==5876 [2025-03-19 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:14:05 - End Time 2025-03-19 13:14:05 [2025-03-19 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715735', 'tblTempUsageDetail_20' ) start [2025-03-19 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715735', 'tblTempUsageDetail_20' ) end [2025-03-19 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715735', 'tblTempVendorCDR_20' ) start [2025-03-19 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715735', 'tblTempVendorCDR_20' ) end [2025-03-19 13:14:21] Production.INFO: ProcessCDR(1,14715735,1,1,2) [2025-03-19 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715735', 'tblTempUsageDetail_20' ) start [2025-03-19 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715735', 'tblTempUsageDetail_20' ) end [2025-03-19 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:14:27] Production.INFO: ==25610== Releasing lock... [2025-03-19 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:14:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:15:05 [end_date_ymd] => 2025-03-19 13:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:15:05' and `end` < '2025-03-19 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-03-19 13:15:19] Production.INFO: count ==5870 [2025-03-19 13:15:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:15:05 - End Time 2025-03-19 13:15:05 [2025-03-19 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715740', 'tblTempUsageDetail_20' ) start [2025-03-19 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715740', 'tblTempUsageDetail_20' ) end [2025-03-19 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715740', 'tblTempVendorCDR_20' ) start [2025-03-19 13:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715740', 'tblTempVendorCDR_20' ) end [2025-03-19 13:15:22] Production.INFO: ProcessCDR(1,14715740,1,1,2) [2025-03-19 13:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715740', 'tblTempUsageDetail_20' ) start [2025-03-19 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715740', 'tblTempUsageDetail_20' ) end [2025-03-19 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:15:27] Production.INFO: ==25687== Releasing lock... [2025-03-19 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:15:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:16:04 [end_date_ymd] => 2025-03-19 13:16:04 [RateCDR] => 1 ) [2025-03-19 13:16: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-03-19 10:16:04' and `end` < '2025-03-19 13:16: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-03-19 13:16:17] Production.INFO: count ==5858 [2025-03-19 13:16:20] Production.ERROR: pbx CDR StartTime 2025-03-19 10:16:04 - End Time 2025-03-19 13:16:04 [2025-03-19 13:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715745', 'tblTempUsageDetail_20' ) start [2025-03-19 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715745', 'tblTempUsageDetail_20' ) end [2025-03-19 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715745', 'tblTempVendorCDR_20' ) start [2025-03-19 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715745', 'tblTempVendorCDR_20' ) end [2025-03-19 13:16:20] Production.INFO: ProcessCDR(1,14715745,1,1,2) [2025-03-19 13:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715745', 'tblTempUsageDetail_20' ) start [2025-03-19 13:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715745', 'tblTempUsageDetail_20' ) end [2025-03-19 13:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:16:25] Production.INFO: ==25760== Releasing lock... [2025-03-19 13:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:16:25] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:17:05 [end_date_ymd] => 2025-03-19 13:17:05 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:17:05' and `end` < '2025-03-19 13: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-03-19 13:17:19] Production.INFO: count ==5869 [2025-03-19 13:17:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:17:05 - End Time 2025-03-19 13:17:05 [2025-03-19 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715750', 'tblTempUsageDetail_20' ) start [2025-03-19 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715750', 'tblTempUsageDetail_20' ) end [2025-03-19 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715750', 'tblTempVendorCDR_20' ) start [2025-03-19 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715750', 'tblTempVendorCDR_20' ) end [2025-03-19 13:17:21] Production.INFO: ProcessCDR(1,14715750,1,1,2) [2025-03-19 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715750', 'tblTempUsageDetail_20' ) start [2025-03-19 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715750', 'tblTempUsageDetail_20' ) end [2025-03-19 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:17:27] Production.INFO: ==25835== Releasing lock... [2025-03-19 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:17:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:18:05 [end_date_ymd] => 2025-03-19 13:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:18:05' and `end` < '2025-03-19 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-03-19 13:18:18] Production.INFO: count ==5871 [2025-03-19 13:18:20] Production.ERROR: pbx CDR StartTime 2025-03-19 10:18:05 - End Time 2025-03-19 13:18:05 [2025-03-19 13:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715755', 'tblTempUsageDetail_20' ) start [2025-03-19 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715755', 'tblTempUsageDetail_20' ) end [2025-03-19 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715755', 'tblTempVendorCDR_20' ) start [2025-03-19 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715755', 'tblTempVendorCDR_20' ) end [2025-03-19 13:18:21] Production.INFO: ProcessCDR(1,14715755,1,1,2) [2025-03-19 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715755', 'tblTempUsageDetail_20' ) start [2025-03-19 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715755', 'tblTempUsageDetail_20' ) end [2025-03-19 13:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:18:26] Production.INFO: ==25919== Releasing lock... [2025-03-19 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:18:26] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:19:06 [end_date_ymd] => 2025-03-19 13:19:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:19:06' and `end` < '2025-03-19 13: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-03-19 13:19:19] Production.INFO: count ==5865 [2025-03-19 13:19:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:19:06 - End Time 2025-03-19 13:19:06 [2025-03-19 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715760', 'tblTempUsageDetail_20' ) start [2025-03-19 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715760', 'tblTempUsageDetail_20' ) end [2025-03-19 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715760', 'tblTempVendorCDR_20' ) start [2025-03-19 13:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715760', 'tblTempVendorCDR_20' ) end [2025-03-19 13:19:22] Production.INFO: ProcessCDR(1,14715760,1,1,2) [2025-03-19 13:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715760', 'tblTempUsageDetail_20' ) start [2025-03-19 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715760', 'tblTempUsageDetail_20' ) end [2025-03-19 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:19:27] Production.INFO: ==25993== Releasing lock... [2025-03-19 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:19:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:20:06 [end_date_ymd] => 2025-03-19 13:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:20:06' and `end` < '2025-03-19 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-03-19 13:20:20] Production.INFO: count ==5868 [2025-03-19 13:20:23] Production.ERROR: pbx CDR StartTime 2025-03-19 10:20:06 - End Time 2025-03-19 13:20:06 [2025-03-19 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715766', 'tblTempUsageDetail_20' ) start [2025-03-19 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715766', 'tblTempUsageDetail_20' ) end [2025-03-19 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715766', 'tblTempVendorCDR_20' ) start [2025-03-19 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715766', 'tblTempVendorCDR_20' ) end [2025-03-19 13:20:23] Production.INFO: ProcessCDR(1,14715766,1,1,2) [2025-03-19 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715766', 'tblTempUsageDetail_20' ) start [2025-03-19 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715766', 'tblTempUsageDetail_20' ) end [2025-03-19 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:20:28] Production.INFO: ==26068== Releasing lock... [2025-03-19 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:20:28] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:21:05 [end_date_ymd] => 2025-03-19 13:21:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:21:05' and `end` < '2025-03-19 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-03-19 13:21:18] Production.INFO: count ==5908 [2025-03-19 13:21:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:21:05 - End Time 2025-03-19 13:21:05 [2025-03-19 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715771', 'tblTempUsageDetail_20' ) start [2025-03-19 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715771', 'tblTempUsageDetail_20' ) end [2025-03-19 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715771', 'tblTempVendorCDR_20' ) start [2025-03-19 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715771', 'tblTempVendorCDR_20' ) end [2025-03-19 13:21:21] Production.INFO: ProcessCDR(1,14715771,1,1,2) [2025-03-19 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715771', 'tblTempUsageDetail_20' ) start [2025-03-19 13:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715771', 'tblTempUsageDetail_20' ) end [2025-03-19 13:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:21:27] Production.INFO: ==26145== Releasing lock... [2025-03-19 13:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:21:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:22:06 [end_date_ymd] => 2025-03-19 13:22:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:22:06' and `end` < '2025-03-19 13: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-03-19 13:22:19] Production.INFO: count ==5921 [2025-03-19 13:22:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:22:06 - End Time 2025-03-19 13:22:06 [2025-03-19 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715776', 'tblTempUsageDetail_20' ) start [2025-03-19 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715776', 'tblTempUsageDetail_20' ) end [2025-03-19 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715776', 'tblTempVendorCDR_20' ) start [2025-03-19 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715776', 'tblTempVendorCDR_20' ) end [2025-03-19 13:22:22] Production.INFO: ProcessCDR(1,14715776,1,1,2) [2025-03-19 13:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715776', 'tblTempUsageDetail_20' ) start [2025-03-19 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715776', 'tblTempUsageDetail_20' ) end [2025-03-19 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:22:27] Production.INFO: ==26254== Releasing lock... [2025-03-19 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:22:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:23:05 [end_date_ymd] => 2025-03-19 13:23:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:23:05' and `end` < '2025-03-19 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-03-19 13:23:19] Production.INFO: count ==5924 [2025-03-19 13:23:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:23:05 - End Time 2025-03-19 13:23:05 [2025-03-19 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715781', 'tblTempUsageDetail_20' ) start [2025-03-19 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715781', 'tblTempUsageDetail_20' ) end [2025-03-19 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715781', 'tblTempVendorCDR_20' ) start [2025-03-19 13:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715781', 'tblTempVendorCDR_20' ) end [2025-03-19 13:23:22] Production.INFO: ProcessCDR(1,14715781,1,1,2) [2025-03-19 13:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715781', 'tblTempUsageDetail_20' ) start [2025-03-19 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715781', 'tblTempUsageDetail_20' ) end [2025-03-19 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:23:27] Production.INFO: ==26328== Releasing lock... [2025-03-19 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:23:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:24:06 [end_date_ymd] => 2025-03-19 13:24:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:24:06' and `end` < '2025-03-19 13: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-03-19 13:24:19] Production.INFO: count ==5912 [2025-03-19 13:24:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:24:06 - End Time 2025-03-19 13:24:06 [2025-03-19 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715786', 'tblTempUsageDetail_20' ) start [2025-03-19 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715786', 'tblTempUsageDetail_20' ) end [2025-03-19 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715786', 'tblTempVendorCDR_20' ) start [2025-03-19 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715786', 'tblTempVendorCDR_20' ) end [2025-03-19 13:24:22] Production.INFO: ProcessCDR(1,14715786,1,1,2) [2025-03-19 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715786', 'tblTempUsageDetail_20' ) start [2025-03-19 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715786', 'tblTempUsageDetail_20' ) end [2025-03-19 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:24:27] Production.INFO: ==26405== Releasing lock... [2025-03-19 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:24:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:25:06 [end_date_ymd] => 2025-03-19 13:25:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:25:06' and `end` < '2025-03-19 13: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-03-19 13:25:19] Production.INFO: count ==5910 [2025-03-19 13:25:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:25:06 - End Time 2025-03-19 13:25:06 [2025-03-19 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715791', 'tblTempUsageDetail_20' ) start [2025-03-19 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715791', 'tblTempUsageDetail_20' ) end [2025-03-19 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715791', 'tblTempVendorCDR_20' ) start [2025-03-19 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715791', 'tblTempVendorCDR_20' ) end [2025-03-19 13:25:22] Production.INFO: ProcessCDR(1,14715791,1,1,2) [2025-03-19 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715791', 'tblTempUsageDetail_20' ) start [2025-03-19 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715791', 'tblTempUsageDetail_20' ) end [2025-03-19 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:25:27] Production.INFO: ==26478== Releasing lock... [2025-03-19 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:25:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:26:06 [end_date_ymd] => 2025-03-19 13:26:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:26:06' and `end` < '2025-03-19 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-03-19 13:26:19] Production.INFO: count ==5907 [2025-03-19 13:26:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:26:06 - End Time 2025-03-19 13:26:06 [2025-03-19 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715796', 'tblTempUsageDetail_20' ) start [2025-03-19 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715796', 'tblTempUsageDetail_20' ) end [2025-03-19 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715796', 'tblTempVendorCDR_20' ) start [2025-03-19 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715796', 'tblTempVendorCDR_20' ) end [2025-03-19 13:26:22] Production.INFO: ProcessCDR(1,14715796,1,1,2) [2025-03-19 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715796', 'tblTempUsageDetail_20' ) start [2025-03-19 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715796', 'tblTempUsageDetail_20' ) end [2025-03-19 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:26:27] Production.INFO: ==26552== Releasing lock... [2025-03-19 13:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:26:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:27:06 [end_date_ymd] => 2025-03-19 13:27:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:27:06' and `end` < '2025-03-19 13: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-03-19 13:27:19] Production.INFO: count ==5895 [2025-03-19 13:27:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:27:06 - End Time 2025-03-19 13:27:06 [2025-03-19 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715801', 'tblTempUsageDetail_20' ) start [2025-03-19 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715801', 'tblTempUsageDetail_20' ) end [2025-03-19 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715801', 'tblTempVendorCDR_20' ) start [2025-03-19 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715801', 'tblTempVendorCDR_20' ) end [2025-03-19 13:27:22] Production.INFO: ProcessCDR(1,14715801,1,1,2) [2025-03-19 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715801', 'tblTempUsageDetail_20' ) start [2025-03-19 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715801', 'tblTempUsageDetail_20' ) end [2025-03-19 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:27:27] Production.INFO: ==26630== Releasing lock... [2025-03-19 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:27:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:28:05 [end_date_ymd] => 2025-03-19 13:28:05 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:28:05' and `end` < '2025-03-19 13: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-03-19 13:28:18] Production.INFO: count ==5917 [2025-03-19 13:28:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:28:05 - End Time 2025-03-19 13:28:05 [2025-03-19 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715806', 'tblTempUsageDetail_20' ) start [2025-03-19 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715806', 'tblTempUsageDetail_20' ) end [2025-03-19 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715806', 'tblTempVendorCDR_20' ) start [2025-03-19 13:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715806', 'tblTempVendorCDR_20' ) end [2025-03-19 13:28:22] Production.INFO: ProcessCDR(1,14715806,1,1,2) [2025-03-19 13:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715806', 'tblTempUsageDetail_20' ) start [2025-03-19 13:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715806', 'tblTempUsageDetail_20' ) end [2025-03-19 13:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:28:27] Production.INFO: ==26705== Releasing lock... [2025-03-19 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:28:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:29:06 [end_date_ymd] => 2025-03-19 13:29:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:29:06' and `end` < '2025-03-19 13: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-03-19 13:29:19] Production.INFO: count ==5930 [2025-03-19 13:29:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:29:06 - End Time 2025-03-19 13:29:06 [2025-03-19 13:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715811', 'tblTempUsageDetail_20' ) start [2025-03-19 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715811', 'tblTempUsageDetail_20' ) end [2025-03-19 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715811', 'tblTempVendorCDR_20' ) start [2025-03-19 13:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715811', 'tblTempVendorCDR_20' ) end [2025-03-19 13:29:22] Production.INFO: ProcessCDR(1,14715811,1,1,2) [2025-03-19 13:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715811', 'tblTempUsageDetail_20' ) start [2025-03-19 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715811', 'tblTempUsageDetail_20' ) end [2025-03-19 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:29:27] Production.INFO: ==26778== Releasing lock... [2025-03-19 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:29:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-19 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:30:06 [end_date_ymd] => 2025-03-19 13:30:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:30:06' and `end` < '2025-03-19 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-03-19 13:30:19] Production.INFO: count ==5887 [2025-03-19 13:30:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:30:06 - End Time 2025-03-19 13:30:06 [2025-03-19 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715817', 'tblTempUsageDetail_20' ) start [2025-03-19 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715817', 'tblTempUsageDetail_20' ) end [2025-03-19 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715817', 'tblTempVendorCDR_20' ) start [2025-03-19 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715817', 'tblTempVendorCDR_20' ) end [2025-03-19 13:30:22] Production.INFO: ProcessCDR(1,14715817,1,1,2) [2025-03-19 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715817', 'tblTempUsageDetail_20' ) start [2025-03-19 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715817', 'tblTempUsageDetail_20' ) end [2025-03-19 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:30:27] Production.INFO: ==26859== Releasing lock... [2025-03-19 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:30:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:31:05 [end_date_ymd] => 2025-03-19 13:31:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:31:05' and `end` < '2025-03-19 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-03-19 13:31:19] Production.INFO: count ==5841 [2025-03-19 13:31:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:31:05 - End Time 2025-03-19 13:31:05 [2025-03-19 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715822', 'tblTempUsageDetail_20' ) start [2025-03-19 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715822', 'tblTempUsageDetail_20' ) end [2025-03-19 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715822', 'tblTempVendorCDR_20' ) start [2025-03-19 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715822', 'tblTempVendorCDR_20' ) end [2025-03-19 13:31:21] Production.INFO: ProcessCDR(1,14715822,1,1,2) [2025-03-19 13:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715822', 'tblTempUsageDetail_20' ) start [2025-03-19 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715822', 'tblTempUsageDetail_20' ) end [2025-03-19 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:31:27] Production.INFO: ==26938== Releasing lock... [2025-03-19 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:31:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:32:06 [end_date_ymd] => 2025-03-19 13:32:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:32:06' and `end` < '2025-03-19 13: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-03-19 13:32:19] Production.INFO: count ==5810 [2025-03-19 13:32:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:32:06 - End Time 2025-03-19 13:32:06 [2025-03-19 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715827', 'tblTempUsageDetail_20' ) start [2025-03-19 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715827', 'tblTempUsageDetail_20' ) end [2025-03-19 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715827', 'tblTempVendorCDR_20' ) start [2025-03-19 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715827', 'tblTempVendorCDR_20' ) end [2025-03-19 13:32:22] Production.INFO: ProcessCDR(1,14715827,1,1,2) [2025-03-19 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715827', 'tblTempUsageDetail_20' ) start [2025-03-19 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715827', 'tblTempUsageDetail_20' ) end [2025-03-19 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:32:26] Production.INFO: ==27011== Releasing lock... [2025-03-19 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:32:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-19 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:33:06 [end_date_ymd] => 2025-03-19 13:33:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:33:06' and `end` < '2025-03-19 13: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-03-19 13:33:19] Production.INFO: count ==5796 [2025-03-19 13:33:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:33:06 - End Time 2025-03-19 13:33:06 [2025-03-19 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715832', 'tblTempUsageDetail_20' ) start [2025-03-19 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715832', 'tblTempUsageDetail_20' ) end [2025-03-19 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715832', 'tblTempVendorCDR_20' ) start [2025-03-19 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715832', 'tblTempVendorCDR_20' ) end [2025-03-19 13:33:22] Production.INFO: ProcessCDR(1,14715832,1,1,2) [2025-03-19 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715832', 'tblTempUsageDetail_20' ) start [2025-03-19 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715832', 'tblTempUsageDetail_20' ) end [2025-03-19 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:33:28] Production.INFO: ==27086== Releasing lock... [2025-03-19 13:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:33:28] Production.INFO: 71.5 MB #Memory Used# [2025-03-19 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:34:05 [end_date_ymd] => 2025-03-19 13:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:34:05' and `end` < '2025-03-19 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-03-19 13:34:19] Production.INFO: count ==5804 [2025-03-19 13:34:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:34:05 - End Time 2025-03-19 13:34:05 [2025-03-19 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715837', 'tblTempUsageDetail_20' ) start [2025-03-19 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715837', 'tblTempUsageDetail_20' ) end [2025-03-19 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715837', 'tblTempVendorCDR_20' ) start [2025-03-19 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715837', 'tblTempVendorCDR_20' ) end [2025-03-19 13:34:21] Production.INFO: ProcessCDR(1,14715837,1,1,2) [2025-03-19 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715837', 'tblTempUsageDetail_20' ) start [2025-03-19 13:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715837', 'tblTempUsageDetail_20' ) end [2025-03-19 13:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:34:27] Production.INFO: ==27173== Releasing lock... [2025-03-19 13:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:34:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-19 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:35:06 [end_date_ymd] => 2025-03-19 13:35:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:35:06' and `end` < '2025-03-19 13: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-03-19 13:35:19] Production.INFO: count ==5800 [2025-03-19 13:35:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:35:06 - End Time 2025-03-19 13:35:06 [2025-03-19 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715842', 'tblTempUsageDetail_20' ) start [2025-03-19 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715842', 'tblTempUsageDetail_20' ) end [2025-03-19 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715842', 'tblTempVendorCDR_20' ) start [2025-03-19 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715842', 'tblTempVendorCDR_20' ) end [2025-03-19 13:35:21] Production.INFO: ProcessCDR(1,14715842,1,1,2) [2025-03-19 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715842', 'tblTempUsageDetail_20' ) start [2025-03-19 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715842', 'tblTempUsageDetail_20' ) end [2025-03-19 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:35:27] Production.INFO: ==27258== Releasing lock... [2025-03-19 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:35:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-19 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:36:06 [end_date_ymd] => 2025-03-19 13:36:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:36:06' and `end` < '2025-03-19 13: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-03-19 13:36:19] Production.INFO: count ==5783 [2025-03-19 13:36:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:36:06 - End Time 2025-03-19 13:36:06 [2025-03-19 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715847', 'tblTempUsageDetail_20' ) start [2025-03-19 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715847', 'tblTempUsageDetail_20' ) end [2025-03-19 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715847', 'tblTempVendorCDR_20' ) start [2025-03-19 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715847', 'tblTempVendorCDR_20' ) end [2025-03-19 13:36:22] Production.INFO: ProcessCDR(1,14715847,1,1,2) [2025-03-19 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715847', 'tblTempUsageDetail_20' ) start [2025-03-19 13:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715847', 'tblTempUsageDetail_20' ) end [2025-03-19 13:36:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:36:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:36:28] Production.INFO: ==27351== Releasing lock... [2025-03-19 13:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:36:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-19 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:37:06 [end_date_ymd] => 2025-03-19 13:37:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:37:06' and `end` < '2025-03-19 13: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-03-19 13:37:20] Production.INFO: count ==5791 [2025-03-19 13:37:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:37:06 - End Time 2025-03-19 13:37:06 [2025-03-19 13:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715852', 'tblTempUsageDetail_20' ) start [2025-03-19 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715852', 'tblTempUsageDetail_20' ) end [2025-03-19 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715852', 'tblTempVendorCDR_20' ) start [2025-03-19 13:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715852', 'tblTempVendorCDR_20' ) end [2025-03-19 13:37:23] Production.INFO: ProcessCDR(1,14715852,1,1,2) [2025-03-19 13:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715852', 'tblTempUsageDetail_20' ) start [2025-03-19 13:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715852', 'tblTempUsageDetail_20' ) end [2025-03-19 13:37:29] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:37:29] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:37:29] Production.INFO: ==27474== Releasing lock... [2025-03-19 13:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:37:29] Production.INFO: 71.25 MB #Memory Used# [2025-03-19 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:38:06 [end_date_ymd] => 2025-03-19 13:38:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:38:06' and `end` < '2025-03-19 13: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-03-19 13:38:19] Production.INFO: count ==5804 [2025-03-19 13:38:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:38:06 - End Time 2025-03-19 13:38:06 [2025-03-19 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715857', 'tblTempUsageDetail_20' ) start [2025-03-19 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715857', 'tblTempUsageDetail_20' ) end [2025-03-19 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715857', 'tblTempVendorCDR_20' ) start [2025-03-19 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715857', 'tblTempVendorCDR_20' ) end [2025-03-19 13:38:21] Production.INFO: ProcessCDR(1,14715857,1,1,2) [2025-03-19 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715857', 'tblTempUsageDetail_20' ) start [2025-03-19 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715857', 'tblTempUsageDetail_20' ) end [2025-03-19 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:38:27] Production.INFO: ==27566== Releasing lock... [2025-03-19 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:38:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-19 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:39:06 [end_date_ymd] => 2025-03-19 13:39:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:39:06' and `end` < '2025-03-19 13: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-03-19 13:39:19] Production.INFO: count ==5819 [2025-03-19 13:39:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:39:06 - End Time 2025-03-19 13:39:06 [2025-03-19 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715862', 'tblTempUsageDetail_20' ) start [2025-03-19 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715862', 'tblTempUsageDetail_20' ) end [2025-03-19 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715862', 'tblTempVendorCDR_20' ) start [2025-03-19 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715862', 'tblTempVendorCDR_20' ) end [2025-03-19 13:39:22] Production.INFO: ProcessCDR(1,14715862,1,1,2) [2025-03-19 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715862', 'tblTempUsageDetail_20' ) start [2025-03-19 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715862', 'tblTempUsageDetail_20' ) end [2025-03-19 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:39:27] Production.INFO: ==27655== Releasing lock... [2025-03-19 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:39:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-19 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:40:07 [end_date_ymd] => 2025-03-19 13:40:07 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:40:07' and `end` < '2025-03-19 13: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-03-19 13:40:20] Production.INFO: count ==5857 [2025-03-19 13:40:23] Production.ERROR: pbx CDR StartTime 2025-03-19 10:40:07 - End Time 2025-03-19 13:40:07 [2025-03-19 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715868', 'tblTempUsageDetail_20' ) start [2025-03-19 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715868', 'tblTempUsageDetail_20' ) end [2025-03-19 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715868', 'tblTempVendorCDR_20' ) start [2025-03-19 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715868', 'tblTempVendorCDR_20' ) end [2025-03-19 13:40:23] Production.INFO: ProcessCDR(1,14715868,1,1,2) [2025-03-19 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715868', 'tblTempUsageDetail_20' ) start [2025-03-19 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715868', 'tblTempUsageDetail_20' ) end [2025-03-19 13:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:40:27] Production.INFO: ==27754== Releasing lock... [2025-03-19 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:40:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:41:06 [end_date_ymd] => 2025-03-19 13:41:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:41:06' and `end` < '2025-03-19 13: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-03-19 13:41:19] Production.INFO: count ==5896 [2025-03-19 13:41:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:41:06 - End Time 2025-03-19 13:41:06 [2025-03-19 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715873', 'tblTempUsageDetail_20' ) start [2025-03-19 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715873', 'tblTempUsageDetail_20' ) end [2025-03-19 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715873', 'tblTempVendorCDR_20' ) start [2025-03-19 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715873', 'tblTempVendorCDR_20' ) end [2025-03-19 13:41:22] Production.INFO: ProcessCDR(1,14715873,1,1,2) [2025-03-19 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715873', 'tblTempUsageDetail_20' ) start [2025-03-19 13:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715873', 'tblTempUsageDetail_20' ) end [2025-03-19 13:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:41:28] Production.INFO: ==27851== Releasing lock... [2025-03-19 13:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:41:28] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:42:05 [end_date_ymd] => 2025-03-19 13:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:42:05' and `end` < '2025-03-19 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-03-19 13:42:18] Production.INFO: count ==5900 [2025-03-19 13:42:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:42:05 - End Time 2025-03-19 13:42:05 [2025-03-19 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715878', 'tblTempUsageDetail_20' ) start [2025-03-19 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715878', 'tblTempUsageDetail_20' ) end [2025-03-19 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715878', 'tblTempVendorCDR_20' ) start [2025-03-19 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715878', 'tblTempVendorCDR_20' ) end [2025-03-19 13:42:21] Production.INFO: ProcessCDR(1,14715878,1,1,2) [2025-03-19 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715878', 'tblTempUsageDetail_20' ) start [2025-03-19 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715878', 'tblTempUsageDetail_20' ) end [2025-03-19 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:42:27] Production.INFO: ==27944== Releasing lock... [2025-03-19 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:42:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:43:05 [end_date_ymd] => 2025-03-19 13:43:05 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:43:05' and `end` < '2025-03-19 13: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-03-19 13:43:18] Production.INFO: count ==5912 [2025-03-19 13:43:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:43:05 - End Time 2025-03-19 13:43:05 [2025-03-19 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715883', 'tblTempUsageDetail_20' ) start [2025-03-19 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715883', 'tblTempUsageDetail_20' ) end [2025-03-19 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715883', 'tblTempVendorCDR_20' ) start [2025-03-19 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715883', 'tblTempVendorCDR_20' ) end [2025-03-19 13:43:21] Production.INFO: ProcessCDR(1,14715883,1,1,2) [2025-03-19 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715883', 'tblTempUsageDetail_20' ) start [2025-03-19 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715883', 'tblTempUsageDetail_20' ) end [2025-03-19 13:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:43:27] Production.INFO: ==28040== Releasing lock... [2025-03-19 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:43:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:44:05 [end_date_ymd] => 2025-03-19 13:44:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:44:05' and `end` < '2025-03-19 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-03-19 13:44:19] Production.INFO: count ==5921 [2025-03-19 13:44:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:44:05 - End Time 2025-03-19 13:44:05 [2025-03-19 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715888', 'tblTempUsageDetail_20' ) start [2025-03-19 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715888', 'tblTempUsageDetail_20' ) end [2025-03-19 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715888', 'tblTempVendorCDR_20' ) start [2025-03-19 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715888', 'tblTempVendorCDR_20' ) end [2025-03-19 13:44:22] Production.INFO: ProcessCDR(1,14715888,1,1,2) [2025-03-19 13:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715888', 'tblTempUsageDetail_20' ) start [2025-03-19 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715888', 'tblTempUsageDetail_20' ) end [2025-03-19 13:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:44:28] Production.INFO: ==28133== Releasing lock... [2025-03-19 13:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:44:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:45:06 [end_date_ymd] => 2025-03-19 13:45:06 [RateCDR] => 1 ) [2025-03-19 13:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 10:45:06' and `end` < '2025-03-19 13:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 13:45:19] Production.INFO: count ==5933 [2025-03-19 13:45:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:45:06 - End Time 2025-03-19 13:45:06 [2025-03-19 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715893', 'tblTempUsageDetail_20' ) start [2025-03-19 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715893', 'tblTempUsageDetail_20' ) end [2025-03-19 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715893', 'tblTempVendorCDR_20' ) start [2025-03-19 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715893', 'tblTempVendorCDR_20' ) end [2025-03-19 13:45:22] Production.INFO: ProcessCDR(1,14715893,1,1,2) [2025-03-19 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715893', 'tblTempUsageDetail_20' ) start [2025-03-19 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715893', 'tblTempUsageDetail_20' ) end [2025-03-19 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:45:27] Production.INFO: ==28225== Releasing lock... [2025-03-19 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:45:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-19 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:46:05 [end_date_ymd] => 2025-03-19 13:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:46:05' and `end` < '2025-03-19 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-03-19 13:46:18] Production.INFO: count ==5948 [2025-03-19 13:46:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:46:05 - End Time 2025-03-19 13:46:05 [2025-03-19 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715898', 'tblTempUsageDetail_20' ) start [2025-03-19 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715898', 'tblTempUsageDetail_20' ) end [2025-03-19 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715898', 'tblTempVendorCDR_20' ) start [2025-03-19 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715898', 'tblTempVendorCDR_20' ) end [2025-03-19 13:46:21] Production.INFO: ProcessCDR(1,14715898,1,1,2) [2025-03-19 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715898', 'tblTempUsageDetail_20' ) start [2025-03-19 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715898', 'tblTempUsageDetail_20' ) end [2025-03-19 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:46:27] Production.INFO: ==28331== Releasing lock... [2025-03-19 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:46:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-19 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:47:06 [end_date_ymd] => 2025-03-19 13:47:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:47:06' and `end` < '2025-03-19 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-03-19 13:47:19] Production.INFO: count ==6001 [2025-03-19 13:47:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:47:06 - End Time 2025-03-19 13:47:06 [2025-03-19 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715903', 'tblTempUsageDetail_20' ) start [2025-03-19 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715903', 'tblTempUsageDetail_20' ) end [2025-03-19 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715903', 'tblTempVendorCDR_20' ) start [2025-03-19 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715903', 'tblTempVendorCDR_20' ) end [2025-03-19 13:47:22] Production.INFO: ProcessCDR(1,14715903,1,1,2) [2025-03-19 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715903', 'tblTempUsageDetail_20' ) start [2025-03-19 13:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715903', 'tblTempUsageDetail_20' ) end [2025-03-19 13:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:47:28] Production.INFO: ==28425== Releasing lock... [2025-03-19 13:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:47:28] Production.INFO: 73 MB #Memory Used# [2025-03-19 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:48:05 [end_date_ymd] => 2025-03-19 13:48:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:48:05' and `end` < '2025-03-19 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-03-19 13:48:18] Production.INFO: count ==5994 [2025-03-19 13:48:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:48:05 - End Time 2025-03-19 13:48:05 [2025-03-19 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715908', 'tblTempUsageDetail_20' ) start [2025-03-19 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715908', 'tblTempUsageDetail_20' ) end [2025-03-19 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715908', 'tblTempVendorCDR_20' ) start [2025-03-19 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715908', 'tblTempVendorCDR_20' ) end [2025-03-19 13:48:21] Production.INFO: ProcessCDR(1,14715908,1,1,2) [2025-03-19 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715908', 'tblTempUsageDetail_20' ) start [2025-03-19 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715908', 'tblTempUsageDetail_20' ) end [2025-03-19 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:48:26] Production.INFO: ==28515== Releasing lock... [2025-03-19 13:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:48:26] Production.INFO: 72.75 MB #Memory Used# [2025-03-19 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:49:05 [end_date_ymd] => 2025-03-19 13:49:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 10:49:05' and `end` < '2025-03-19 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-03-19 13:49:19] Production.INFO: count ==5984 [2025-03-19 13:49:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:49:05 - End Time 2025-03-19 13:49:05 [2025-03-19 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715913', 'tblTempUsageDetail_20' ) start [2025-03-19 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715913', 'tblTempUsageDetail_20' ) end [2025-03-19 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715913', 'tblTempVendorCDR_20' ) start [2025-03-19 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715913', 'tblTempVendorCDR_20' ) end [2025-03-19 13:49:21] Production.INFO: ProcessCDR(1,14715913,1,1,2) [2025-03-19 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715913', 'tblTempUsageDetail_20' ) start [2025-03-19 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715913', 'tblTempUsageDetail_20' ) end [2025-03-19 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:49:27] Production.INFO: ==28608== Releasing lock... [2025-03-19 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:49:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-19 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:50:05 [end_date_ymd] => 2025-03-19 13:50:05 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:50:05' and `end` < '2025-03-19 13: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-03-19 13:50:19] Production.INFO: count ==5976 [2025-03-19 13:50:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:50:05 - End Time 2025-03-19 13:50:05 [2025-03-19 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715919', 'tblTempUsageDetail_20' ) start [2025-03-19 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715919', 'tblTempUsageDetail_20' ) end [2025-03-19 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715919', 'tblTempVendorCDR_20' ) start [2025-03-19 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715919', 'tblTempVendorCDR_20' ) end [2025-03-19 13:50:21] Production.INFO: ProcessCDR(1,14715919,1,1,2) [2025-03-19 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715919', 'tblTempUsageDetail_20' ) start [2025-03-19 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715919', 'tblTempUsageDetail_20' ) end [2025-03-19 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:50:27] Production.INFO: ==28706== Releasing lock... [2025-03-19 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:50:27] Production.INFO: 72.75 MB #Memory Used# [2025-03-19 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:51:05 [end_date_ymd] => 2025-03-19 13:51:05 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:51:05' and `end` < '2025-03-19 13: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-03-19 13:51:19] Production.INFO: count ==5908 [2025-03-19 13:51:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:51:05 - End Time 2025-03-19 13:51:05 [2025-03-19 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715924', 'tblTempUsageDetail_20' ) start [2025-03-19 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715924', 'tblTempUsageDetail_20' ) end [2025-03-19 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715924', 'tblTempVendorCDR_20' ) start [2025-03-19 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715924', 'tblTempVendorCDR_20' ) end [2025-03-19 13:51:21] Production.INFO: ProcessCDR(1,14715924,1,1,2) [2025-03-19 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715924', 'tblTempUsageDetail_20' ) start [2025-03-19 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715924', 'tblTempUsageDetail_20' ) end [2025-03-19 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:51:27] Production.INFO: ==28838== Releasing lock... [2025-03-19 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:51:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:52:05 [end_date_ymd] => 2025-03-19 13:52:05 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:52:05' and `end` < '2025-03-19 13: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-03-19 13:52:18] Production.INFO: count ==5898 [2025-03-19 13:52:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:52:05 - End Time 2025-03-19 13:52:05 [2025-03-19 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715929', 'tblTempUsageDetail_20' ) start [2025-03-19 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715929', 'tblTempUsageDetail_20' ) end [2025-03-19 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715929', 'tblTempVendorCDR_20' ) start [2025-03-19 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715929', 'tblTempVendorCDR_20' ) end [2025-03-19 13:52:21] Production.INFO: ProcessCDR(1,14715929,1,1,2) [2025-03-19 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715929', 'tblTempUsageDetail_20' ) start [2025-03-19 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715929', 'tblTempUsageDetail_20' ) end [2025-03-19 13:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:52:26] Production.INFO: ==28963== Releasing lock... [2025-03-19 13:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:52:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:53:06 [end_date_ymd] => 2025-03-19 13:53:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:53:06' and `end` < '2025-03-19 13: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-03-19 13:53:19] Production.INFO: count ==5913 [2025-03-19 13:53:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:53:06 - End Time 2025-03-19 13:53:06 [2025-03-19 13:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715934', 'tblTempUsageDetail_20' ) start [2025-03-19 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715934', 'tblTempUsageDetail_20' ) end [2025-03-19 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715934', 'tblTempVendorCDR_20' ) start [2025-03-19 13:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715934', 'tblTempVendorCDR_20' ) end [2025-03-19 13:53:22] Production.INFO: ProcessCDR(1,14715934,1,1,2) [2025-03-19 13:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715934', 'tblTempUsageDetail_20' ) start [2025-03-19 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715934', 'tblTempUsageDetail_20' ) end [2025-03-19 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:53:27] Production.INFO: ==29133== Releasing lock... [2025-03-19 13:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:53:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:54:05 [end_date_ymd] => 2025-03-19 13:54:05 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:54:05' and `end` < '2025-03-19 13: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-03-19 13:54:18] Production.INFO: count ==5884 [2025-03-19 13:54:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:54:05 - End Time 2025-03-19 13:54:05 [2025-03-19 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715939', 'tblTempUsageDetail_20' ) start [2025-03-19 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715939', 'tblTempUsageDetail_20' ) end [2025-03-19 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715939', 'tblTempVendorCDR_20' ) start [2025-03-19 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715939', 'tblTempVendorCDR_20' ) end [2025-03-19 13:54:21] Production.INFO: ProcessCDR(1,14715939,1,1,2) [2025-03-19 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715939', 'tblTempUsageDetail_20' ) start [2025-03-19 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715939', 'tblTempUsageDetail_20' ) end [2025-03-19 13:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:54:26] Production.INFO: ==29257== Releasing lock... [2025-03-19 13:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:54:26] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:55:06 [end_date_ymd] => 2025-03-19 13:55:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:55:06' and `end` < '2025-03-19 13: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-03-19 13:55:19] Production.INFO: count ==5872 [2025-03-19 13:55:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:55:06 - End Time 2025-03-19 13:55:06 [2025-03-19 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715944', 'tblTempUsageDetail_20' ) start [2025-03-19 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715944', 'tblTempUsageDetail_20' ) end [2025-03-19 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715944', 'tblTempVendorCDR_20' ) start [2025-03-19 13:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715944', 'tblTempVendorCDR_20' ) end [2025-03-19 13:55:22] Production.INFO: ProcessCDR(1,14715944,1,1,2) [2025-03-19 13:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715944', 'tblTempUsageDetail_20' ) start [2025-03-19 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715944', 'tblTempUsageDetail_20' ) end [2025-03-19 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:55:27] Production.INFO: ==29387== Releasing lock... [2025-03-19 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:55:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:56:05 [end_date_ymd] => 2025-03-19 13:56:05 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:56:05' and `end` < '2025-03-19 13: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-03-19 13:56:19] Production.INFO: count ==5873 [2025-03-19 13:56:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:56:05 - End Time 2025-03-19 13:56:05 [2025-03-19 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715949', 'tblTempUsageDetail_20' ) start [2025-03-19 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715949', 'tblTempUsageDetail_20' ) end [2025-03-19 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715949', 'tblTempVendorCDR_20' ) start [2025-03-19 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715949', 'tblTempVendorCDR_20' ) end [2025-03-19 13:56:21] Production.INFO: ProcessCDR(1,14715949,1,1,2) [2025-03-19 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715949', 'tblTempUsageDetail_20' ) start [2025-03-19 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715949', 'tblTempUsageDetail_20' ) end [2025-03-19 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:56:27] Production.INFO: ==29518== Releasing lock... [2025-03-19 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:56:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:57:06 [end_date_ymd] => 2025-03-19 13:57:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:57:06' and `end` < '2025-03-19 13: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-03-19 13:57:19] Production.INFO: count ==5870 [2025-03-19 13:57:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:57:06 - End Time 2025-03-19 13:57:06 [2025-03-19 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715954', 'tblTempUsageDetail_20' ) start [2025-03-19 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715954', 'tblTempUsageDetail_20' ) end [2025-03-19 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715954', 'tblTempVendorCDR_20' ) start [2025-03-19 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715954', 'tblTempVendorCDR_20' ) end [2025-03-19 13:57:22] Production.INFO: ProcessCDR(1,14715954,1,1,2) [2025-03-19 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715954', 'tblTempUsageDetail_20' ) start [2025-03-19 13:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715954', 'tblTempUsageDetail_20' ) end [2025-03-19 13:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:57:27] Production.INFO: ==29646== Releasing lock... [2025-03-19 13:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:57:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:58:05 [end_date_ymd] => 2025-03-19 13:58:05 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:58:05' and `end` < '2025-03-19 13: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-03-19 13:58:19] Production.INFO: count ==5861 [2025-03-19 13:58:21] Production.ERROR: pbx CDR StartTime 2025-03-19 10:58:05 - End Time 2025-03-19 13:58:05 [2025-03-19 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715959', 'tblTempUsageDetail_20' ) start [2025-03-19 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715959', 'tblTempUsageDetail_20' ) end [2025-03-19 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715959', 'tblTempVendorCDR_20' ) start [2025-03-19 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715959', 'tblTempVendorCDR_20' ) end [2025-03-19 13:58:21] Production.INFO: ProcessCDR(1,14715959,1,1,2) [2025-03-19 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715959', 'tblTempUsageDetail_20' ) start [2025-03-19 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715959', 'tblTempUsageDetail_20' ) end [2025-03-19 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:58:27] Production.INFO: ==29758== Releasing lock... [2025-03-19 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:58:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 10:59:06 [end_date_ymd] => 2025-03-19 13:59:06 [RateCDR] => 1 ) [2025-03-19 13: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-03-19 10:59:06' and `end` < '2025-03-19 13: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-03-19 13:59:19] Production.INFO: count ==5876 [2025-03-19 13:59:22] Production.ERROR: pbx CDR StartTime 2025-03-19 10:59:06 - End Time 2025-03-19 13:59:06 [2025-03-19 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715964', 'tblTempUsageDetail_20' ) start [2025-03-19 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715964', 'tblTempUsageDetail_20' ) end [2025-03-19 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715964', 'tblTempVendorCDR_20' ) start [2025-03-19 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715964', 'tblTempVendorCDR_20' ) end [2025-03-19 13:59:22] Production.INFO: ProcessCDR(1,14715964,1,1,2) [2025-03-19 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715964', 'tblTempUsageDetail_20' ) start [2025-03-19 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715964', 'tblTempUsageDetail_20' ) end [2025-03-19 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 13:59:27] Production.INFO: ==29873== Releasing lock... [2025-03-19 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 13:59:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:00:06 [end_date_ymd] => 2025-03-19 14:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:00:06' and `end` < '2025-03-19 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-03-19 14:00:20] Production.INFO: count ==5884 [2025-03-19 14:00:23] Production.ERROR: pbx CDR StartTime 2025-03-19 11:00:06 - End Time 2025-03-19 14:00:06 [2025-03-19 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715970', 'tblTempUsageDetail_20' ) start [2025-03-19 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715970', 'tblTempUsageDetail_20' ) end [2025-03-19 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715970', 'tblTempVendorCDR_20' ) start [2025-03-19 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715970', 'tblTempVendorCDR_20' ) end [2025-03-19 14:00:23] Production.INFO: ProcessCDR(1,14715970,1,1,2) [2025-03-19 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715970', 'tblTempUsageDetail_20' ) start [2025-03-19 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715970', 'tblTempUsageDetail_20' ) end [2025-03-19 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:00:29] Production.INFO: ==29995== Releasing lock... [2025-03-19 14:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:00:29] Production.INFO: 72 MB #Memory Used# [2025-03-19 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:01:06 [end_date_ymd] => 2025-03-19 14:01:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:01:06' and `end` < '2025-03-19 14: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-03-19 14:01:19] Production.INFO: count ==5866 [2025-03-19 14:01:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:01:06 - End Time 2025-03-19 14:01:06 [2025-03-19 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715975', 'tblTempUsageDetail_20' ) start [2025-03-19 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715975', 'tblTempUsageDetail_20' ) end [2025-03-19 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715975', 'tblTempVendorCDR_20' ) start [2025-03-19 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715975', 'tblTempVendorCDR_20' ) end [2025-03-19 14:01:22] Production.INFO: ProcessCDR(1,14715975,1,1,2) [2025-03-19 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715975', 'tblTempUsageDetail_20' ) start [2025-03-19 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715975', 'tblTempUsageDetail_20' ) end [2025-03-19 14:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:01:27] Production.INFO: ==30130== Releasing lock... [2025-03-19 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:01:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:02:05 [end_date_ymd] => 2025-03-19 14:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:02:05' and `end` < '2025-03-19 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-03-19 14:02:19] Production.INFO: count ==5884 [2025-03-19 14:02:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:02:05 - End Time 2025-03-19 14:02:05 [2025-03-19 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715980', 'tblTempUsageDetail_20' ) start [2025-03-19 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715980', 'tblTempUsageDetail_20' ) end [2025-03-19 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715980', 'tblTempVendorCDR_20' ) start [2025-03-19 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715980', 'tblTempVendorCDR_20' ) end [2025-03-19 14:02:22] Production.INFO: ProcessCDR(1,14715980,1,1,2) [2025-03-19 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715980', 'tblTempUsageDetail_20' ) start [2025-03-19 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715980', 'tblTempUsageDetail_20' ) end [2025-03-19 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:02:28] Production.INFO: ==30251== Releasing lock... [2025-03-19 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:02:28] Production.INFO: 72 MB #Memory Used# [2025-03-19 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:03:06 [end_date_ymd] => 2025-03-19 14:03:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:03:06' and `end` < '2025-03-19 14: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-03-19 14:03:19] Production.INFO: count ==5905 [2025-03-19 14:03:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:03:06 - End Time 2025-03-19 14:03:06 [2025-03-19 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715985', 'tblTempUsageDetail_20' ) start [2025-03-19 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715985', 'tblTempUsageDetail_20' ) end [2025-03-19 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715985', 'tblTempVendorCDR_20' ) start [2025-03-19 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715985', 'tblTempVendorCDR_20' ) end [2025-03-19 14:03:22] Production.INFO: ProcessCDR(1,14715985,1,1,2) [2025-03-19 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715985', 'tblTempUsageDetail_20' ) start [2025-03-19 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715985', 'tblTempUsageDetail_20' ) end [2025-03-19 14:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:03:28] Production.INFO: ==30387== Releasing lock... [2025-03-19 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:03:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:04:05 [end_date_ymd] => 2025-03-19 14:04:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:04:05' and `end` < '2025-03-19 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-03-19 14:04:19] Production.INFO: count ==5918 [2025-03-19 14:04:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:04:05 - End Time 2025-03-19 14:04:05 [2025-03-19 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715990', 'tblTempUsageDetail_20' ) start [2025-03-19 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715990', 'tblTempUsageDetail_20' ) end [2025-03-19 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715990', 'tblTempVendorCDR_20' ) start [2025-03-19 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715990', 'tblTempVendorCDR_20' ) end [2025-03-19 14:04:22] Production.INFO: ProcessCDR(1,14715990,1,1,2) [2025-03-19 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715990', 'tblTempUsageDetail_20' ) start [2025-03-19 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715990', 'tblTempUsageDetail_20' ) end [2025-03-19 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:04:27] Production.INFO: ==30511== Releasing lock... [2025-03-19 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:04:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:05:06 [end_date_ymd] => 2025-03-19 14:05:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:05:06' and `end` < '2025-03-19 14: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-03-19 14:05:19] Production.INFO: count ==5919 [2025-03-19 14:05:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:05:06 - End Time 2025-03-19 14:05:06 [2025-03-19 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715995', 'tblTempUsageDetail_20' ) start [2025-03-19 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14715995', 'tblTempUsageDetail_20' ) end [2025-03-19 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715995', 'tblTempVendorCDR_20' ) start [2025-03-19 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14715995', 'tblTempVendorCDR_20' ) end [2025-03-19 14:05:22] Production.INFO: ProcessCDR(1,14715995,1,1,2) [2025-03-19 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14715995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14715995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14715995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14715995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715995', 'tblTempUsageDetail_20' ) start [2025-03-19 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14715995', 'tblTempUsageDetail_20' ) end [2025-03-19 14:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:05:28] Production.INFO: ==30605== Releasing lock... [2025-03-19 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:05:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:06:05 [end_date_ymd] => 2025-03-19 14:06:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:06:05' and `end` < '2025-03-19 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-03-19 14:06:18] Production.INFO: count ==5952 [2025-03-19 14:06:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:06:05 - End Time 2025-03-19 14:06:05 [2025-03-19 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716000', 'tblTempUsageDetail_20' ) start [2025-03-19 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716000', 'tblTempUsageDetail_20' ) end [2025-03-19 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716000', 'tblTempVendorCDR_20' ) start [2025-03-19 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716000', 'tblTempVendorCDR_20' ) end [2025-03-19 14:06:21] Production.INFO: ProcessCDR(1,14716000,1,1,2) [2025-03-19 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716000', 'tblTempUsageDetail_20' ) start [2025-03-19 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716000', 'tblTempUsageDetail_20' ) end [2025-03-19 14:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:06:26] Production.INFO: ==30700== Releasing lock... [2025-03-19 14:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:06:26] Production.INFO: 72.5 MB #Memory Used# [2025-03-19 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:07:06 [end_date_ymd] => 2025-03-19 14:07:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:07:06' and `end` < '2025-03-19 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-03-19 14:07:20] Production.INFO: count ==5958 [2025-03-19 14:07:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:07:06 - End Time 2025-03-19 14:07:06 [2025-03-19 14:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716005', 'tblTempUsageDetail_20' ) start [2025-03-19 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716005', 'tblTempUsageDetail_20' ) end [2025-03-19 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716005', 'tblTempVendorCDR_20' ) start [2025-03-19 14:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716005', 'tblTempVendorCDR_20' ) end [2025-03-19 14:07:23] Production.INFO: ProcessCDR(1,14716005,1,1,2) [2025-03-19 14:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716005', 'tblTempUsageDetail_20' ) start [2025-03-19 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716005', 'tblTempUsageDetail_20' ) end [2025-03-19 14:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:07:28] Production.INFO: ==30792== Releasing lock... [2025-03-19 14:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:07:28] Production.INFO: 72.5 MB #Memory Used# [2025-03-19 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:08:06 [end_date_ymd] => 2025-03-19 14:08:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:08:06' and `end` < '2025-03-19 14: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-03-19 14:08:19] Production.INFO: count ==5954 [2025-03-19 14:08:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:08:06 - End Time 2025-03-19 14:08:06 [2025-03-19 14:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716010', 'tblTempUsageDetail_20' ) start [2025-03-19 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716010', 'tblTempUsageDetail_20' ) end [2025-03-19 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716010', 'tblTempVendorCDR_20' ) start [2025-03-19 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716010', 'tblTempVendorCDR_20' ) end [2025-03-19 14:08:22] Production.INFO: ProcessCDR(1,14716010,1,1,2) [2025-03-19 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716010', 'tblTempUsageDetail_20' ) start [2025-03-19 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716010', 'tblTempUsageDetail_20' ) end [2025-03-19 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:08:27] Production.INFO: ==30917== Releasing lock... [2025-03-19 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:08:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-19 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:09:06 [end_date_ymd] => 2025-03-19 14:09:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:09:06' and `end` < '2025-03-19 14: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-03-19 14:09:19] Production.INFO: count ==5936 [2025-03-19 14:09:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:09:06 - End Time 2025-03-19 14:09:06 [2025-03-19 14:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716015', 'tblTempUsageDetail_20' ) start [2025-03-19 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716015', 'tblTempUsageDetail_20' ) end [2025-03-19 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716015', 'tblTempVendorCDR_20' ) start [2025-03-19 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716015', 'tblTempVendorCDR_20' ) end [2025-03-19 14:09:22] Production.INFO: ProcessCDR(1,14716015,1,1,2) [2025-03-19 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716015', 'tblTempUsageDetail_20' ) start [2025-03-19 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716015', 'tblTempUsageDetail_20' ) end [2025-03-19 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:09:27] Production.INFO: ==31000== Releasing lock... [2025-03-19 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:09:27] Production.INFO: 72.5 MB #Memory Used# [2025-03-19 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:10:06 [end_date_ymd] => 2025-03-19 14:10:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:10:06' and `end` < '2025-03-19 14: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-03-19 14:10:20] Production.INFO: count ==5915 [2025-03-19 14:10:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:10:06 - End Time 2025-03-19 14:10:06 [2025-03-19 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716021', 'tblTempUsageDetail_20' ) start [2025-03-19 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716021', 'tblTempUsageDetail_20' ) end [2025-03-19 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716021', 'tblTempVendorCDR_20' ) start [2025-03-19 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716021', 'tblTempVendorCDR_20' ) end [2025-03-19 14:10:23] Production.INFO: ProcessCDR(1,14716021,1,1,2) [2025-03-19 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716021', 'tblTempUsageDetail_20' ) start [2025-03-19 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716021', 'tblTempUsageDetail_20' ) end [2025-03-19 14:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:10:28] Production.INFO: ==31090== Releasing lock... [2025-03-19 14:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:10:28] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:11:06 [end_date_ymd] => 2025-03-19 14:11:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:11:06' and `end` < '2025-03-19 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-03-19 14:11:19] Production.INFO: count ==5896 [2025-03-19 14:11:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:11:06 - End Time 2025-03-19 14:11:06 [2025-03-19 14:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716026', 'tblTempUsageDetail_20' ) start [2025-03-19 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716026', 'tblTempUsageDetail_20' ) end [2025-03-19 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716026', 'tblTempVendorCDR_20' ) start [2025-03-19 14:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716026', 'tblTempVendorCDR_20' ) end [2025-03-19 14:11:22] Production.INFO: ProcessCDR(1,14716026,1,1,2) [2025-03-19 14:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716026', 'tblTempUsageDetail_20' ) start [2025-03-19 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716026', 'tblTempUsageDetail_20' ) end [2025-03-19 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:11:27] Production.INFO: ==31177== Releasing lock... [2025-03-19 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:11:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:12:06 [end_date_ymd] => 2025-03-19 14:12:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:12:06' and `end` < '2025-03-19 14: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-03-19 14:12:19] Production.INFO: count ==5913 [2025-03-19 14:12:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:12:06 - End Time 2025-03-19 14:12:06 [2025-03-19 14:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716031', 'tblTempUsageDetail_20' ) start [2025-03-19 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716031', 'tblTempUsageDetail_20' ) end [2025-03-19 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716031', 'tblTempVendorCDR_20' ) start [2025-03-19 14:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716031', 'tblTempVendorCDR_20' ) end [2025-03-19 14:12:22] Production.INFO: ProcessCDR(1,14716031,1,1,2) [2025-03-19 14:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716031', 'tblTempUsageDetail_20' ) start [2025-03-19 14:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716031', 'tblTempUsageDetail_20' ) end [2025-03-19 14:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:12:27] Production.INFO: ==31257== Releasing lock... [2025-03-19 14:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:12:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 14:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:13:04 [end_date_ymd] => 2025-03-19 14:13:04 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:13:04' and `end` < '2025-03-19 14: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-03-19 14:13:18] Production.INFO: count ==5927 [2025-03-19 14:13:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:13:04 - End Time 2025-03-19 14:13:04 [2025-03-19 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716036', 'tblTempUsageDetail_20' ) start [2025-03-19 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716036', 'tblTempUsageDetail_20' ) end [2025-03-19 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716036', 'tblTempVendorCDR_20' ) start [2025-03-19 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716036', 'tblTempVendorCDR_20' ) end [2025-03-19 14:13:21] Production.INFO: ProcessCDR(1,14716036,1,1,2) [2025-03-19 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716036', 'tblTempUsageDetail_20' ) start [2025-03-19 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716036', 'tblTempUsageDetail_20' ) end [2025-03-19 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:13:26] Production.INFO: ==31341== Releasing lock... [2025-03-19 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:13:26] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:14:05 [end_date_ymd] => 2025-03-19 14:14:05 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:14:05' and `end` < '2025-03-19 14: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-03-19 14:14:19] Production.INFO: count ==5907 [2025-03-19 14:14:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:14:05 - End Time 2025-03-19 14:14:05 [2025-03-19 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716041', 'tblTempUsageDetail_20' ) start [2025-03-19 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716041', 'tblTempUsageDetail_20' ) end [2025-03-19 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716041', 'tblTempVendorCDR_20' ) start [2025-03-19 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716041', 'tblTempVendorCDR_20' ) end [2025-03-19 14:14:22] Production.INFO: ProcessCDR(1,14716041,1,1,2) [2025-03-19 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716041', 'tblTempUsageDetail_20' ) start [2025-03-19 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716041', 'tblTempUsageDetail_20' ) end [2025-03-19 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:14:27] Production.INFO: ==31420== Releasing lock... [2025-03-19 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:14:27] Production.INFO: 72.25 MB #Memory Used# [2025-03-19 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:15:05 [end_date_ymd] => 2025-03-19 14:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:15:05' and `end` < '2025-03-19 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-03-19 14:15:19] Production.INFO: count ==5881 [2025-03-19 14:15:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:15:05 - End Time 2025-03-19 14:15:05 [2025-03-19 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716046', 'tblTempUsageDetail_20' ) start [2025-03-19 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716046', 'tblTempUsageDetail_20' ) end [2025-03-19 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716046', 'tblTempVendorCDR_20' ) start [2025-03-19 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716046', 'tblTempVendorCDR_20' ) end [2025-03-19 14:15:21] Production.INFO: ProcessCDR(1,14716046,1,1,2) [2025-03-19 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716046', 'tblTempUsageDetail_20' ) start [2025-03-19 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716046', 'tblTempUsageDetail_20' ) end [2025-03-19 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:15:26] Production.INFO: ==31499== Releasing lock... [2025-03-19 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:15:26] Production.INFO: 72 MB #Memory Used# [2025-03-19 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:16:05 [end_date_ymd] => 2025-03-19 14:16:05 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:16:05' and `end` < '2025-03-19 14: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-03-19 14:16:18] Production.INFO: count ==5862 [2025-03-19 14:16:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:16:05 - End Time 2025-03-19 14:16:05 [2025-03-19 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716051', 'tblTempUsageDetail_20' ) start [2025-03-19 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716051', 'tblTempUsageDetail_20' ) end [2025-03-19 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716051', 'tblTempVendorCDR_20' ) start [2025-03-19 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716051', 'tblTempVendorCDR_20' ) end [2025-03-19 14:16:21] Production.INFO: ProcessCDR(1,14716051,1,1,2) [2025-03-19 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716051', 'tblTempUsageDetail_20' ) start [2025-03-19 14:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716051', 'tblTempUsageDetail_20' ) end [2025-03-19 14:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:16:26] Production.INFO: ==31584== Releasing lock... [2025-03-19 14:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:16:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:17:05 [end_date_ymd] => 2025-03-19 14:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:17:05' and `end` < '2025-03-19 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-03-19 14:17:19] Production.INFO: count ==5850 [2025-03-19 14:17:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:17:05 - End Time 2025-03-19 14:17:05 [2025-03-19 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716056', 'tblTempUsageDetail_20' ) start [2025-03-19 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716056', 'tblTempUsageDetail_20' ) end [2025-03-19 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716056', 'tblTempVendorCDR_20' ) start [2025-03-19 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716056', 'tblTempVendorCDR_20' ) end [2025-03-19 14:17:22] Production.INFO: ProcessCDR(1,14716056,1,1,2) [2025-03-19 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716056', 'tblTempUsageDetail_20' ) start [2025-03-19 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716056', 'tblTempUsageDetail_20' ) end [2025-03-19 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:17:27] Production.INFO: ==31664== Releasing lock... [2025-03-19 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:17:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:18:05 [end_date_ymd] => 2025-03-19 14:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:18:05' and `end` < '2025-03-19 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-03-19 14:18:18] Production.INFO: count ==5857 [2025-03-19 14:18:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:18:05 - End Time 2025-03-19 14:18:05 [2025-03-19 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716061', 'tblTempUsageDetail_20' ) start [2025-03-19 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716061', 'tblTempUsageDetail_20' ) end [2025-03-19 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716061', 'tblTempVendorCDR_20' ) start [2025-03-19 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716061', 'tblTempVendorCDR_20' ) end [2025-03-19 14:18:21] Production.INFO: ProcessCDR(1,14716061,1,1,2) [2025-03-19 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716061', 'tblTempUsageDetail_20' ) start [2025-03-19 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716061', 'tblTempUsageDetail_20' ) end [2025-03-19 14:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:18:26] Production.INFO: ==31747== Releasing lock... [2025-03-19 14:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:18:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:19:05 [end_date_ymd] => 2025-03-19 14:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:19:05' and `end` < '2025-03-19 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-03-19 14:19:18] Production.INFO: count ==5866 [2025-03-19 14:19:20] Production.ERROR: pbx CDR StartTime 2025-03-19 11:19:05 - End Time 2025-03-19 14:19:05 [2025-03-19 14:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716066', 'tblTempUsageDetail_20' ) start [2025-03-19 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716066', 'tblTempUsageDetail_20' ) end [2025-03-19 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716066', 'tblTempVendorCDR_20' ) start [2025-03-19 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716066', 'tblTempVendorCDR_20' ) end [2025-03-19 14:19:21] Production.INFO: ProcessCDR(1,14716066,1,1,2) [2025-03-19 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716066', 'tblTempUsageDetail_20' ) start [2025-03-19 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716066', 'tblTempUsageDetail_20' ) end [2025-03-19 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:19:26] Production.INFO: ==31827== Releasing lock... [2025-03-19 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:19:26] Production.INFO: 72 MB #Memory Used# [2025-03-19 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:20:06 [end_date_ymd] => 2025-03-19 14:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:20:06' and `end` < '2025-03-19 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-03-19 14:20:20] Production.INFO: count ==5866 [2025-03-19 14:20:23] Production.ERROR: pbx CDR StartTime 2025-03-19 11:20:06 - End Time 2025-03-19 14:20:06 [2025-03-19 14:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716072', 'tblTempUsageDetail_20' ) start [2025-03-19 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716072', 'tblTempUsageDetail_20' ) end [2025-03-19 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716072', 'tblTempVendorCDR_20' ) start [2025-03-19 14:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716072', 'tblTempVendorCDR_20' ) end [2025-03-19 14:20:23] Production.INFO: ProcessCDR(1,14716072,1,1,2) [2025-03-19 14:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716072', 'tblTempUsageDetail_20' ) start [2025-03-19 14:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716072', 'tblTempUsageDetail_20' ) end [2025-03-19 14:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:20:29] Production.INFO: ==31905== Releasing lock... [2025-03-19 14:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:20:29] Production.INFO: 72 MB #Memory Used# [2025-03-19 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:21:06 [end_date_ymd] => 2025-03-19 14:21:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:21:06' and `end` < '2025-03-19 14: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-03-19 14:21:20] Production.INFO: count ==5878 [2025-03-19 14:21:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:21:06 - End Time 2025-03-19 14:21:06 [2025-03-19 14:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716077', 'tblTempUsageDetail_20' ) start [2025-03-19 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716077', 'tblTempUsageDetail_20' ) end [2025-03-19 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716077', 'tblTempVendorCDR_20' ) start [2025-03-19 14:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716077', 'tblTempVendorCDR_20' ) end [2025-03-19 14:21:22] Production.INFO: ProcessCDR(1,14716077,1,1,2) [2025-03-19 14:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716077', 'tblTempUsageDetail_20' ) start [2025-03-19 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716077', 'tblTempUsageDetail_20' ) end [2025-03-19 14:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:21:28] Production.INFO: ==31980== Releasing lock... [2025-03-19 14:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:21:28] Production.INFO: 72 MB #Memory Used# [2025-03-19 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:22:05 [end_date_ymd] => 2025-03-19 14:22:05 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:22:05' and `end` < '2025-03-19 14: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-03-19 14:22:19] Production.INFO: count ==5848 [2025-03-19 14:22:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:22:05 - End Time 2025-03-19 14:22:05 [2025-03-19 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716082', 'tblTempUsageDetail_20' ) start [2025-03-19 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716082', 'tblTempUsageDetail_20' ) end [2025-03-19 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716082', 'tblTempVendorCDR_20' ) start [2025-03-19 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716082', 'tblTempVendorCDR_20' ) end [2025-03-19 14:22:21] Production.INFO: ProcessCDR(1,14716082,1,1,2) [2025-03-19 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716082', 'tblTempUsageDetail_20' ) start [2025-03-19 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716082', 'tblTempUsageDetail_20' ) end [2025-03-19 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:22:26] Production.INFO: ==32052== Releasing lock... [2025-03-19 14:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:22:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:23:06 [end_date_ymd] => 2025-03-19 14:23:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:23:06' and `end` < '2025-03-19 14: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-03-19 14:23:19] Production.INFO: count ==5830 [2025-03-19 14:23:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:23:06 - End Time 2025-03-19 14:23:06 [2025-03-19 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716087', 'tblTempUsageDetail_20' ) start [2025-03-19 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716087', 'tblTempUsageDetail_20' ) end [2025-03-19 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716087', 'tblTempVendorCDR_20' ) start [2025-03-19 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716087', 'tblTempVendorCDR_20' ) end [2025-03-19 14:23:22] Production.INFO: ProcessCDR(1,14716087,1,1,2) [2025-03-19 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716087', 'tblTempUsageDetail_20' ) start [2025-03-19 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716087', 'tblTempUsageDetail_20' ) end [2025-03-19 14:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:23:27] Production.INFO: ==32166== Releasing lock... [2025-03-19 14:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:23:27] Production.INFO: 72 MB #Memory Used# [2025-03-19 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:24:05 [end_date_ymd] => 2025-03-19 14:24:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:24:05' and `end` < '2025-03-19 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-03-19 14:24:18] Production.INFO: count ==5825 [2025-03-19 14:24:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:24:05 - End Time 2025-03-19 14:24:05 [2025-03-19 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716091', 'tblTempUsageDetail_20' ) start [2025-03-19 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716091', 'tblTempUsageDetail_20' ) end [2025-03-19 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716091', 'tblTempVendorCDR_20' ) start [2025-03-19 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716091', 'tblTempVendorCDR_20' ) end [2025-03-19 14:24:21] Production.INFO: ProcessCDR(1,14716091,1,1,2) [2025-03-19 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716091', 'tblTempUsageDetail_20' ) start [2025-03-19 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716091', 'tblTempUsageDetail_20' ) end [2025-03-19 14:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:24:26] Production.INFO: ==32238== Releasing lock... [2025-03-19 14:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:24:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-19 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:25:06 [end_date_ymd] => 2025-03-19 14:25:06 [RateCDR] => 1 ) [2025-03-19 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 11:25:06' and `end` < '2025-03-19 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 14:25:19] Production.INFO: count ==5822 [2025-03-19 14:25:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:25:06 - End Time 2025-03-19 14:25:06 [2025-03-19 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716097', 'tblTempUsageDetail_20' ) start [2025-03-19 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716097', 'tblTempUsageDetail_20' ) end [2025-03-19 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716097', 'tblTempVendorCDR_20' ) start [2025-03-19 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716097', 'tblTempVendorCDR_20' ) end [2025-03-19 14:25:22] Production.INFO: ProcessCDR(1,14716097,1,1,2) [2025-03-19 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716097', 'tblTempUsageDetail_20' ) start [2025-03-19 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716097', 'tblTempUsageDetail_20' ) end [2025-03-19 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:25:27] Production.INFO: ==32315== Releasing lock... [2025-03-19 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:25:27] Production.INFO: 71.5 MB #Memory Used# [2025-03-19 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:26:05 [end_date_ymd] => 2025-03-19 14:26:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:26:05' and `end` < '2025-03-19 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-03-19 14:26:18] Production.INFO: count ==5829 [2025-03-19 14:26:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:26:05 - End Time 2025-03-19 14:26:05 [2025-03-19 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716102', 'tblTempUsageDetail_20' ) start [2025-03-19 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716102', 'tblTempUsageDetail_20' ) end [2025-03-19 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716102', 'tblTempVendorCDR_20' ) start [2025-03-19 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716102', 'tblTempVendorCDR_20' ) end [2025-03-19 14:26:21] Production.INFO: ProcessCDR(1,14716102,1,1,2) [2025-03-19 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716102', 'tblTempUsageDetail_20' ) start [2025-03-19 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716102', 'tblTempUsageDetail_20' ) end [2025-03-19 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:26:26] Production.INFO: ==32388== Releasing lock... [2025-03-19 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:26:26] Production.INFO: 72 MB #Memory Used# [2025-03-19 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:27:05 [end_date_ymd] => 2025-03-19 14:27:05 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:27:05' and `end` < '2025-03-19 14: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-03-19 14:27:19] Production.INFO: count ==5830 [2025-03-19 14:27:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:27:05 - End Time 2025-03-19 14:27:05 [2025-03-19 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716107', 'tblTempUsageDetail_20' ) start [2025-03-19 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716107', 'tblTempUsageDetail_20' ) end [2025-03-19 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716107', 'tblTempVendorCDR_20' ) start [2025-03-19 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716107', 'tblTempVendorCDR_20' ) end [2025-03-19 14:27:21] Production.INFO: ProcessCDR(1,14716107,1,1,2) [2025-03-19 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716107', 'tblTempUsageDetail_20' ) start [2025-03-19 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716107', 'tblTempUsageDetail_20' ) end [2025-03-19 14:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:27:26] Production.INFO: ==32464== Releasing lock... [2025-03-19 14:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:27:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:28:05 [end_date_ymd] => 2025-03-19 14:28:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:28:05' and `end` < '2025-03-19 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-03-19 14:28:18] Production.INFO: count ==5831 [2025-03-19 14:28:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:28:05 - End Time 2025-03-19 14:28:05 [2025-03-19 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716112', 'tblTempUsageDetail_20' ) start [2025-03-19 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716112', 'tblTempUsageDetail_20' ) end [2025-03-19 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716112', 'tblTempVendorCDR_20' ) start [2025-03-19 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716112', 'tblTempVendorCDR_20' ) end [2025-03-19 14:28:21] Production.INFO: ProcessCDR(1,14716112,1,1,2) [2025-03-19 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716112', 'tblTempUsageDetail_20' ) start [2025-03-19 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716112', 'tblTempUsageDetail_20' ) end [2025-03-19 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:28:26] Production.INFO: ==32536== Releasing lock... [2025-03-19 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:28:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:29:05 [end_date_ymd] => 2025-03-19 14:29:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:29:05' and `end` < '2025-03-19 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-03-19 14:29:19] Production.INFO: count ==5818 [2025-03-19 14:29:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:29:05 - End Time 2025-03-19 14:29:05 [2025-03-19 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716117', 'tblTempUsageDetail_20' ) start [2025-03-19 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716117', 'tblTempUsageDetail_20' ) end [2025-03-19 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716117', 'tblTempVendorCDR_20' ) start [2025-03-19 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716117', 'tblTempVendorCDR_20' ) end [2025-03-19 14:29:21] Production.INFO: ProcessCDR(1,14716117,1,1,2) [2025-03-19 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716117', 'tblTempUsageDetail_20' ) start [2025-03-19 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716117', 'tblTempUsageDetail_20' ) end [2025-03-19 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:29:26] Production.INFO: ==32612== Releasing lock... [2025-03-19 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:29:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-19 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:30:06 [end_date_ymd] => 2025-03-19 14:30:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:30:06' and `end` < '2025-03-19 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-03-19 14:30:19] Production.INFO: count ==5838 [2025-03-19 14:30:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:30:06 - End Time 2025-03-19 14:30:06 [2025-03-19 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716123', 'tblTempUsageDetail_20' ) start [2025-03-19 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716123', 'tblTempUsageDetail_20' ) end [2025-03-19 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716123', 'tblTempVendorCDR_20' ) start [2025-03-19 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716123', 'tblTempVendorCDR_20' ) end [2025-03-19 14:30:22] Production.INFO: ProcessCDR(1,14716123,1,1,2) [2025-03-19 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716123', 'tblTempUsageDetail_20' ) start [2025-03-19 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716123', 'tblTempUsageDetail_20' ) end [2025-03-19 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:30:28] Production.INFO: ==32705== Releasing lock... [2025-03-19 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:30:28] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:31:06 [end_date_ymd] => 2025-03-19 14:31:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:31:06' and `end` < '2025-03-19 14: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-03-19 14:31:19] Production.INFO: count ==5848 [2025-03-19 14:31:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:31:06 - End Time 2025-03-19 14:31:06 [2025-03-19 14:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716128', 'tblTempUsageDetail_20' ) start [2025-03-19 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716128', 'tblTempUsageDetail_20' ) end [2025-03-19 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716128', 'tblTempVendorCDR_20' ) start [2025-03-19 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716128', 'tblTempVendorCDR_20' ) end [2025-03-19 14:31:22] Production.INFO: ProcessCDR(1,14716128,1,1,2) [2025-03-19 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716128', 'tblTempUsageDetail_20' ) start [2025-03-19 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716128', 'tblTempUsageDetail_20' ) end [2025-03-19 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:31:27] Production.INFO: ==322== Releasing lock... [2025-03-19 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:31:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:32:06 [end_date_ymd] => 2025-03-19 14:32:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:32:06' and `end` < '2025-03-19 14: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-03-19 14:32:19] Production.INFO: count ==5858 [2025-03-19 14:32:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:32:06 - End Time 2025-03-19 14:32:06 [2025-03-19 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716133', 'tblTempUsageDetail_20' ) start [2025-03-19 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716133', 'tblTempUsageDetail_20' ) end [2025-03-19 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716133', 'tblTempVendorCDR_20' ) start [2025-03-19 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716133', 'tblTempVendorCDR_20' ) end [2025-03-19 14:32:22] Production.INFO: ProcessCDR(1,14716133,1,1,2) [2025-03-19 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716133', 'tblTempUsageDetail_20' ) start [2025-03-19 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716133', 'tblTempUsageDetail_20' ) end [2025-03-19 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:32:27] Production.INFO: ==408== Releasing lock... [2025-03-19 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:32:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:33:05 [end_date_ymd] => 2025-03-19 14:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:33:05' and `end` < '2025-03-19 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-03-19 14:33:18] Production.INFO: count ==5859 [2025-03-19 14:33:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:33:05 - End Time 2025-03-19 14:33:05 [2025-03-19 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716138', 'tblTempUsageDetail_20' ) start [2025-03-19 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716138', 'tblTempUsageDetail_20' ) end [2025-03-19 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716138', 'tblTempVendorCDR_20' ) start [2025-03-19 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716138', 'tblTempVendorCDR_20' ) end [2025-03-19 14:33:21] Production.INFO: ProcessCDR(1,14716138,1,1,2) [2025-03-19 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716138', 'tblTempUsageDetail_20' ) start [2025-03-19 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716138', 'tblTempUsageDetail_20' ) end [2025-03-19 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:33:26] Production.INFO: ==482== Releasing lock... [2025-03-19 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:33:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:34:05 [end_date_ymd] => 2025-03-19 14:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:34:05' and `end` < '2025-03-19 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-03-19 14:34:18] Production.INFO: count ==5851 [2025-03-19 14:34:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:34:05 - End Time 2025-03-19 14:34:05 [2025-03-19 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716143', 'tblTempUsageDetail_20' ) start [2025-03-19 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716143', 'tblTempUsageDetail_20' ) end [2025-03-19 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716143', 'tblTempVendorCDR_20' ) start [2025-03-19 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716143', 'tblTempVendorCDR_20' ) end [2025-03-19 14:34:21] Production.INFO: ProcessCDR(1,14716143,1,1,2) [2025-03-19 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716143', 'tblTempUsageDetail_20' ) start [2025-03-19 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716143', 'tblTempUsageDetail_20' ) end [2025-03-19 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:34:27] Production.INFO: ==556== Releasing lock... [2025-03-19 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:34:27] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:35:05 [end_date_ymd] => 2025-03-19 14:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:35:05' and `end` < '2025-03-19 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-03-19 14:35:19] Production.INFO: count ==5840 [2025-03-19 14:35:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:35:05 - End Time 2025-03-19 14:35:05 [2025-03-19 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716148', 'tblTempUsageDetail_20' ) start [2025-03-19 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716148', 'tblTempUsageDetail_20' ) end [2025-03-19 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716148', 'tblTempVendorCDR_20' ) start [2025-03-19 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716148', 'tblTempVendorCDR_20' ) end [2025-03-19 14:35:21] Production.INFO: ProcessCDR(1,14716148,1,1,2) [2025-03-19 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716148', 'tblTempUsageDetail_20' ) start [2025-03-19 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716148', 'tblTempUsageDetail_20' ) end [2025-03-19 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:35:26] Production.INFO: ==642== Releasing lock... [2025-03-19 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:35:26] Production.INFO: 71.75 MB #Memory Used# [2025-03-19 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:36:05 [end_date_ymd] => 2025-03-19 14:36:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:36:05' and `end` < '2025-03-19 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-03-19 14:36:19] Production.INFO: count ==5827 [2025-03-19 14:36:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:36:05 - End Time 2025-03-19 14:36:05 [2025-03-19 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716153', 'tblTempUsageDetail_20' ) start [2025-03-19 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716153', 'tblTempUsageDetail_20' ) end [2025-03-19 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716153', 'tblTempVendorCDR_20' ) start [2025-03-19 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716153', 'tblTempVendorCDR_20' ) end [2025-03-19 14:36:21] Production.INFO: ProcessCDR(1,14716153,1,1,2) [2025-03-19 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716153', 'tblTempUsageDetail_20' ) start [2025-03-19 14:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716153', 'tblTempUsageDetail_20' ) end [2025-03-19 14:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:36:25] Production.INFO: ==737== Releasing lock... [2025-03-19 14:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:36:25] Production.INFO: 71.5 MB #Memory Used# [2025-03-19 14:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:37:04 [end_date_ymd] => 2025-03-19 14:37:04 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:37:04' and `end` < '2025-03-19 14: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-03-19 14:37:18] Production.INFO: count ==5816 [2025-03-19 14:37:20] Production.ERROR: pbx CDR StartTime 2025-03-19 11:37:04 - End Time 2025-03-19 14:37:04 [2025-03-19 14:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716158', 'tblTempUsageDetail_20' ) start [2025-03-19 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716158', 'tblTempUsageDetail_20' ) end [2025-03-19 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716158', 'tblTempVendorCDR_20' ) start [2025-03-19 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716158', 'tblTempVendorCDR_20' ) end [2025-03-19 14:37:20] Production.INFO: ProcessCDR(1,14716158,1,1,2) [2025-03-19 14:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716158', 'tblTempUsageDetail_20' ) start [2025-03-19 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716158', 'tblTempUsageDetail_20' ) end [2025-03-19 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:37:26] Production.INFO: ==811== Releasing lock... [2025-03-19 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:37:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-19 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:38:05 [end_date_ymd] => 2025-03-19 14:38:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:38:05' and `end` < '2025-03-19 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-03-19 14:38:18] Production.INFO: count ==5815 [2025-03-19 14:38:20] Production.ERROR: pbx CDR StartTime 2025-03-19 11:38:05 - End Time 2025-03-19 14:38:05 [2025-03-19 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716163', 'tblTempUsageDetail_20' ) start [2025-03-19 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716163', 'tblTempUsageDetail_20' ) end [2025-03-19 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716163', 'tblTempVendorCDR_20' ) start [2025-03-19 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716163', 'tblTempVendorCDR_20' ) end [2025-03-19 14:38:21] Production.INFO: ProcessCDR(1,14716163,1,1,2) [2025-03-19 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716163', 'tblTempUsageDetail_20' ) start [2025-03-19 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716163', 'tblTempUsageDetail_20' ) end [2025-03-19 14:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:38:26] Production.INFO: ==885== Releasing lock... [2025-03-19 14:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:38:26] Production.INFO: 71.5 MB #Memory Used# [2025-03-19 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:39:06 [end_date_ymd] => 2025-03-19 14:39:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:39:06' and `end` < '2025-03-19 14: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-03-19 14:39:19] Production.INFO: count ==5775 [2025-03-19 14:39:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:39:06 - End Time 2025-03-19 14:39:06 [2025-03-19 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716168', 'tblTempUsageDetail_20' ) start [2025-03-19 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716168', 'tblTempUsageDetail_20' ) end [2025-03-19 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716168', 'tblTempVendorCDR_20' ) start [2025-03-19 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716168', 'tblTempVendorCDR_20' ) end [2025-03-19 14:39:21] Production.INFO: ProcessCDR(1,14716168,1,1,2) [2025-03-19 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716168', 'tblTempUsageDetail_20' ) start [2025-03-19 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716168', 'tblTempUsageDetail_20' ) end [2025-03-19 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:39:26] Production.INFO: ==998== Releasing lock... [2025-03-19 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:39:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-19 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:40:06 [end_date_ymd] => 2025-03-19 14:40:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:40:06' and `end` < '2025-03-19 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-03-19 14:40:19] Production.INFO: count ==5753 [2025-03-19 14:40:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:40:06 - End Time 2025-03-19 14:40:06 [2025-03-19 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716173', 'tblTempUsageDetail_20' ) start [2025-03-19 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716173', 'tblTempUsageDetail_20' ) end [2025-03-19 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716173', 'tblTempVendorCDR_20' ) start [2025-03-19 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716173', 'tblTempVendorCDR_20' ) end [2025-03-19 14:40:22] Production.INFO: ProcessCDR(1,14716173,1,1,2) [2025-03-19 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716173', 'tblTempUsageDetail_20' ) start [2025-03-19 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716173', 'tblTempUsageDetail_20' ) end [2025-03-19 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:40:27] Production.INFO: ==1072== Releasing lock... [2025-03-19 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:40:27] Production.INFO: 71 MB #Memory Used# [2025-03-19 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:41:06 [end_date_ymd] => 2025-03-19 14:41:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:41:06' and `end` < '2025-03-19 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-03-19 14:41:19] Production.INFO: count ==5727 [2025-03-19 14:41:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:41:06 - End Time 2025-03-19 14:41:06 [2025-03-19 14:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716179', 'tblTempUsageDetail_20' ) start [2025-03-19 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716179', 'tblTempUsageDetail_20' ) end [2025-03-19 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716179', 'tblTempVendorCDR_20' ) start [2025-03-19 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716179', 'tblTempVendorCDR_20' ) end [2025-03-19 14:41:22] Production.INFO: ProcessCDR(1,14716179,1,1,2) [2025-03-19 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716179', 'tblTempUsageDetail_20' ) start [2025-03-19 14:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716179', 'tblTempUsageDetail_20' ) end [2025-03-19 14:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:41:28] Production.INFO: ==1151== Releasing lock... [2025-03-19 14:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:41:28] Production.INFO: 70.75 MB #Memory Used# [2025-03-19 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:42:05 [end_date_ymd] => 2025-03-19 14:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:42:05' and `end` < '2025-03-19 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-03-19 14:42:19] Production.INFO: count ==5702 [2025-03-19 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:42:05 - End Time 2025-03-19 14:42:05 [2025-03-19 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716184', 'tblTempUsageDetail_20' ) start [2025-03-19 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716184', 'tblTempUsageDetail_20' ) end [2025-03-19 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716184', 'tblTempVendorCDR_20' ) start [2025-03-19 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716184', 'tblTempVendorCDR_20' ) end [2025-03-19 14:42:21] Production.INFO: ProcessCDR(1,14716184,1,1,2) [2025-03-19 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716184', 'tblTempUsageDetail_20' ) start [2025-03-19 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716184', 'tblTempUsageDetail_20' ) end [2025-03-19 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:42:27] Production.INFO: ==1227== Releasing lock... [2025-03-19 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:42:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-19 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:43:05 [end_date_ymd] => 2025-03-19 14:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:43:05' and `end` < '2025-03-19 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-03-19 14:43:18] Production.INFO: count ==5671 [2025-03-19 14:43:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:43:05 - End Time 2025-03-19 14:43:05 [2025-03-19 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716189', 'tblTempUsageDetail_20' ) start [2025-03-19 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716189', 'tblTempUsageDetail_20' ) end [2025-03-19 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716189', 'tblTempVendorCDR_20' ) start [2025-03-19 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716189', 'tblTempVendorCDR_20' ) end [2025-03-19 14:43:21] Production.INFO: ProcessCDR(1,14716189,1,1,2) [2025-03-19 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716189', 'tblTempUsageDetail_20' ) start [2025-03-19 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716189', 'tblTempUsageDetail_20' ) end [2025-03-19 14:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:43:26] Production.INFO: ==1316== Releasing lock... [2025-03-19 14:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:43:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-19 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:44:05 [end_date_ymd] => 2025-03-19 14:44:05 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:44:05' and `end` < '2025-03-19 14: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-03-19 14:44:18] Production.INFO: count ==5644 [2025-03-19 14:44:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:44:05 - End Time 2025-03-19 14:44:05 [2025-03-19 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716194', 'tblTempUsageDetail_20' ) start [2025-03-19 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716194', 'tblTempUsageDetail_20' ) end [2025-03-19 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716194', 'tblTempVendorCDR_20' ) start [2025-03-19 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716194', 'tblTempVendorCDR_20' ) end [2025-03-19 14:44:21] Production.INFO: ProcessCDR(1,14716194,1,1,2) [2025-03-19 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716194', 'tblTempUsageDetail_20' ) start [2025-03-19 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716194', 'tblTempUsageDetail_20' ) end [2025-03-19 14:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:44:26] Production.INFO: ==1393== Releasing lock... [2025-03-19 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:44:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-19 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:45:06 [end_date_ymd] => 2025-03-19 14:45:06 [RateCDR] => 1 ) [2025-03-19 14:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 11:45:06' and `end` < '2025-03-19 14:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 14:45:19] Production.INFO: count ==5633 [2025-03-19 14:45:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:45:06 - End Time 2025-03-19 14:45:06 [2025-03-19 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716199', 'tblTempUsageDetail_20' ) start [2025-03-19 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716199', 'tblTempUsageDetail_20' ) end [2025-03-19 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716199', 'tblTempVendorCDR_20' ) start [2025-03-19 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716199', 'tblTempVendorCDR_20' ) end [2025-03-19 14:45:22] Production.INFO: ProcessCDR(1,14716199,1,1,2) [2025-03-19 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716199', 'tblTempUsageDetail_20' ) start [2025-03-19 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716199', 'tblTempUsageDetail_20' ) end [2025-03-19 14:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:45:28] Production.INFO: ==1468== Releasing lock... [2025-03-19 14:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:45:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-19 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:46:05 [end_date_ymd] => 2025-03-19 14:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:46:05' and `end` < '2025-03-19 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-03-19 14:46:18] Production.INFO: count ==5644 [2025-03-19 14:46:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:46:05 - End Time 2025-03-19 14:46:05 [2025-03-19 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716204', 'tblTempUsageDetail_20' ) start [2025-03-19 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716204', 'tblTempUsageDetail_20' ) end [2025-03-19 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716204', 'tblTempVendorCDR_20' ) start [2025-03-19 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716204', 'tblTempVendorCDR_20' ) end [2025-03-19 14:46:21] Production.INFO: ProcessCDR(1,14716204,1,1,2) [2025-03-19 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716204', 'tblTempUsageDetail_20' ) start [2025-03-19 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716204', 'tblTempUsageDetail_20' ) end [2025-03-19 14:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:46:27] Production.INFO: ==1579== Releasing lock... [2025-03-19 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:46:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-19 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:47:06 [end_date_ymd] => 2025-03-19 14:47:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:47:06' and `end` < '2025-03-19 14: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-03-19 14:47:19] Production.INFO: count ==5632 [2025-03-19 14:47:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:47:06 - End Time 2025-03-19 14:47:06 [2025-03-19 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716209', 'tblTempUsageDetail_20' ) start [2025-03-19 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716209', 'tblTempUsageDetail_20' ) end [2025-03-19 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716209', 'tblTempVendorCDR_20' ) start [2025-03-19 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716209', 'tblTempVendorCDR_20' ) end [2025-03-19 14:47:22] Production.INFO: ProcessCDR(1,14716209,1,1,2) [2025-03-19 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716209', 'tblTempUsageDetail_20' ) start [2025-03-19 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716209', 'tblTempUsageDetail_20' ) end [2025-03-19 14:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:47:28] Production.INFO: ==1650== Releasing lock... [2025-03-19 14:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:47:28] Production.INFO: 70.25 MB #Memory Used# [2025-03-19 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:48:05 [end_date_ymd] => 2025-03-19 14:48:05 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:48:05' and `end` < '2025-03-19 14: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-03-19 14:48:18] Production.INFO: count ==5646 [2025-03-19 14:48:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:48:05 - End Time 2025-03-19 14:48:05 [2025-03-19 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716214', 'tblTempUsageDetail_20' ) start [2025-03-19 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716214', 'tblTempUsageDetail_20' ) end [2025-03-19 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716214', 'tblTempVendorCDR_20' ) start [2025-03-19 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716214', 'tblTempVendorCDR_20' ) end [2025-03-19 14:48:21] Production.INFO: ProcessCDR(1,14716214,1,1,2) [2025-03-19 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716214', 'tblTempUsageDetail_20' ) start [2025-03-19 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716214', 'tblTempUsageDetail_20' ) end [2025-03-19 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:48:27] Production.INFO: ==1722== Releasing lock... [2025-03-19 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:48:27] Production.INFO: 70.25 MB #Memory Used# [2025-03-19 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:49:06 [end_date_ymd] => 2025-03-19 14:49:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:49:06' and `end` < '2025-03-19 14: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-03-19 14:49:19] Production.INFO: count ==5666 [2025-03-19 14:49:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:49:06 - End Time 2025-03-19 14:49:06 [2025-03-19 14:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716219', 'tblTempUsageDetail_20' ) start [2025-03-19 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716219', 'tblTempUsageDetail_20' ) end [2025-03-19 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716219', 'tblTempVendorCDR_20' ) start [2025-03-19 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716219', 'tblTempVendorCDR_20' ) end [2025-03-19 14:49:22] Production.INFO: ProcessCDR(1,14716219,1,1,2) [2025-03-19 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716219', 'tblTempUsageDetail_20' ) start [2025-03-19 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716219', 'tblTempUsageDetail_20' ) end [2025-03-19 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:49:27] Production.INFO: ==1796== Releasing lock... [2025-03-19 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:49:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-19 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:50:06 [end_date_ymd] => 2025-03-19 14:50:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:50:06' and `end` < '2025-03-19 14: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-03-19 14:50:20] Production.INFO: count ==5676 [2025-03-19 14:50:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:50:06 - End Time 2025-03-19 14:50:06 [2025-03-19 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716224', 'tblTempUsageDetail_20' ) start [2025-03-19 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716224', 'tblTempUsageDetail_20' ) end [2025-03-19 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716224', 'tblTempVendorCDR_20' ) start [2025-03-19 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716224', 'tblTempVendorCDR_20' ) end [2025-03-19 14:50:22] Production.INFO: ProcessCDR(1,14716224,1,1,2) [2025-03-19 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716224', 'tblTempUsageDetail_20' ) start [2025-03-19 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716224', 'tblTempUsageDetail_20' ) end [2025-03-19 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:50:28] Production.INFO: ==1875== Releasing lock... [2025-03-19 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:50:28] Production.INFO: 70.5 MB #Memory Used# [2025-03-19 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:51:05 [end_date_ymd] => 2025-03-19 14:51:05 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:51:05' and `end` < '2025-03-19 14: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-03-19 14:51:18] Production.INFO: count ==5690 [2025-03-19 14:51:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:51:05 - End Time 2025-03-19 14:51:05 [2025-03-19 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716230', 'tblTempUsageDetail_20' ) start [2025-03-19 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716230', 'tblTempUsageDetail_20' ) end [2025-03-19 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716230', 'tblTempVendorCDR_20' ) start [2025-03-19 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716230', 'tblTempVendorCDR_20' ) end [2025-03-19 14:51:21] Production.INFO: ProcessCDR(1,14716230,1,1,2) [2025-03-19 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716230', 'tblTempUsageDetail_20' ) start [2025-03-19 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716230', 'tblTempUsageDetail_20' ) end [2025-03-19 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:51:26] Production.INFO: ==1950== Releasing lock... [2025-03-19 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:51:26] Production.INFO: 70.5 MB #Memory Used# [2025-03-19 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:52:05 [end_date_ymd] => 2025-03-19 14:52:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:52:05' and `end` < '2025-03-19 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-03-19 14:52:18] Production.INFO: count ==5709 [2025-03-19 14:52:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:52:05 - End Time 2025-03-19 14:52:05 [2025-03-19 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716235', 'tblTempUsageDetail_20' ) start [2025-03-19 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716235', 'tblTempUsageDetail_20' ) end [2025-03-19 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716235', 'tblTempVendorCDR_20' ) start [2025-03-19 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716235', 'tblTempVendorCDR_20' ) end [2025-03-19 14:52:21] Production.INFO: ProcessCDR(1,14716235,1,1,2) [2025-03-19 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716235', 'tblTempUsageDetail_20' ) start [2025-03-19 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716235', 'tblTempUsageDetail_20' ) end [2025-03-19 14:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:52:26] Production.INFO: ==2023== Releasing lock... [2025-03-19 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:52:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-19 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:53:05 [end_date_ymd] => 2025-03-19 14:53:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:53:05' and `end` < '2025-03-19 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-03-19 14:53:19] Production.INFO: count ==5704 [2025-03-19 14:53:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:53:05 - End Time 2025-03-19 14:53:05 [2025-03-19 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716240', 'tblTempUsageDetail_20' ) start [2025-03-19 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716240', 'tblTempUsageDetail_20' ) end [2025-03-19 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716240', 'tblTempVendorCDR_20' ) start [2025-03-19 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716240', 'tblTempVendorCDR_20' ) end [2025-03-19 14:53:21] Production.INFO: ProcessCDR(1,14716240,1,1,2) [2025-03-19 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716240', 'tblTempUsageDetail_20' ) start [2025-03-19 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716240', 'tblTempUsageDetail_20' ) end [2025-03-19 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:53:27] Production.INFO: ==2098== Releasing lock... [2025-03-19 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:53:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-19 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:54:05 [end_date_ymd] => 2025-03-19 14:54:05 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:54:05' and `end` < '2025-03-19 14: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-03-19 14:54:19] Production.INFO: count ==5744 [2025-03-19 14:54:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:54:05 - End Time 2025-03-19 14:54:05 [2025-03-19 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716245', 'tblTempUsageDetail_20' ) start [2025-03-19 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716245', 'tblTempUsageDetail_20' ) end [2025-03-19 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716245', 'tblTempVendorCDR_20' ) start [2025-03-19 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716245', 'tblTempVendorCDR_20' ) end [2025-03-19 14:54:21] Production.INFO: ProcessCDR(1,14716245,1,1,2) [2025-03-19 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716245', 'tblTempUsageDetail_20' ) start [2025-03-19 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716245', 'tblTempUsageDetail_20' ) end [2025-03-19 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:54:27] Production.INFO: ==2209== Releasing lock... [2025-03-19 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:54:27] Production.INFO: 71 MB #Memory Used# [2025-03-19 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:55:05 [end_date_ymd] => 2025-03-19 14:55:05 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:55:05' and `end` < '2025-03-19 14: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-03-19 14:55:19] Production.INFO: count ==5763 [2025-03-19 14:55:22] Production.ERROR: pbx CDR StartTime 2025-03-19 11:55:05 - End Time 2025-03-19 14:55:05 [2025-03-19 14:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716250', 'tblTempUsageDetail_20' ) start [2025-03-19 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716250', 'tblTempUsageDetail_20' ) end [2025-03-19 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716250', 'tblTempVendorCDR_20' ) start [2025-03-19 14:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716250', 'tblTempVendorCDR_20' ) end [2025-03-19 14:55:22] Production.INFO: ProcessCDR(1,14716250,1,1,2) [2025-03-19 14:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716250', 'tblTempUsageDetail_20' ) start [2025-03-19 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716250', 'tblTempUsageDetail_20' ) end [2025-03-19 14:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:55:27] Production.INFO: ==2281== Releasing lock... [2025-03-19 14:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:55:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-19 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:56:05 [end_date_ymd] => 2025-03-19 14:56:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:56:05' and `end` < '2025-03-19 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-03-19 14:56:18] Production.INFO: count ==5786 [2025-03-19 14:56:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:56:05 - End Time 2025-03-19 14:56:05 [2025-03-19 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716255', 'tblTempUsageDetail_20' ) start [2025-03-19 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716255', 'tblTempUsageDetail_20' ) end [2025-03-19 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716255', 'tblTempVendorCDR_20' ) start [2025-03-19 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716255', 'tblTempVendorCDR_20' ) end [2025-03-19 14:56:21] Production.INFO: ProcessCDR(1,14716255,1,1,2) [2025-03-19 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716255', 'tblTempUsageDetail_20' ) start [2025-03-19 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716255', 'tblTempUsageDetail_20' ) end [2025-03-19 14:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:56:26] Production.INFO: ==2358== Releasing lock... [2025-03-19 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:56:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-19 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:57:05 [end_date_ymd] => 2025-03-19 14:57:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:57:05' and `end` < '2025-03-19 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-03-19 14:57:18] Production.INFO: count ==5778 [2025-03-19 14:57:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:57:05 - End Time 2025-03-19 14:57:05 [2025-03-19 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716260', 'tblTempUsageDetail_20' ) start [2025-03-19 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716260', 'tblTempUsageDetail_20' ) end [2025-03-19 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716260', 'tblTempVendorCDR_20' ) start [2025-03-19 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716260', 'tblTempVendorCDR_20' ) end [2025-03-19 14:57:21] Production.INFO: ProcessCDR(1,14716260,1,1,2) [2025-03-19 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716260', 'tblTempUsageDetail_20' ) start [2025-03-19 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716260', 'tblTempUsageDetail_20' ) end [2025-03-19 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:57:26] Production.INFO: ==2431== Releasing lock... [2025-03-19 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:57:26] Production.INFO: 71.25 MB #Memory Used# [2025-03-19 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:58:05 [end_date_ymd] => 2025-03-19 14:58:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 11:58:05' and `end` < '2025-03-19 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-03-19 14:58:19] Production.INFO: count ==5775 [2025-03-19 14:58:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:58:05 - End Time 2025-03-19 14:58:05 [2025-03-19 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716265', 'tblTempUsageDetail_20' ) start [2025-03-19 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716265', 'tblTempUsageDetail_20' ) end [2025-03-19 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716265', 'tblTempVendorCDR_20' ) start [2025-03-19 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716265', 'tblTempVendorCDR_20' ) end [2025-03-19 14:58:21] Production.INFO: ProcessCDR(1,14716265,1,1,2) [2025-03-19 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716265', 'tblTempUsageDetail_20' ) start [2025-03-19 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716265', 'tblTempUsageDetail_20' ) end [2025-03-19 14:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:58:27] Production.INFO: ==2503== Releasing lock... [2025-03-19 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:58:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-19 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 11:59:06 [end_date_ymd] => 2025-03-19 14:59:06 [RateCDR] => 1 ) [2025-03-19 14: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-03-19 11:59:06' and `end` < '2025-03-19 14: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-03-19 14:59:19] Production.INFO: count ==5790 [2025-03-19 14:59:21] Production.ERROR: pbx CDR StartTime 2025-03-19 11:59:06 - End Time 2025-03-19 14:59:06 [2025-03-19 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716270', 'tblTempUsageDetail_20' ) start [2025-03-19 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716270', 'tblTempUsageDetail_20' ) end [2025-03-19 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716270', 'tblTempVendorCDR_20' ) start [2025-03-19 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716270', 'tblTempVendorCDR_20' ) end [2025-03-19 14:59:22] Production.INFO: ProcessCDR(1,14716270,1,1,2) [2025-03-19 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716270', 'tblTempUsageDetail_20' ) start [2025-03-19 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716270', 'tblTempUsageDetail_20' ) end [2025-03-19 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 14:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 14:59:28] Production.INFO: ==2578== Releasing lock... [2025-03-19 14:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 14:59:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-19 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:00:06 [end_date_ymd] => 2025-03-19 15:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:00:06' and `end` < '2025-03-19 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-03-19 15:00:19] Production.INFO: count ==5785 [2025-03-19 15:00:22] Production.ERROR: pbx CDR StartTime 2025-03-19 12:00:06 - End Time 2025-03-19 15:00:06 [2025-03-19 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716275', 'tblTempUsageDetail_20' ) start [2025-03-19 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716275', 'tblTempUsageDetail_20' ) end [2025-03-19 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716275', 'tblTempVendorCDR_20' ) start [2025-03-19 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716275', 'tblTempVendorCDR_20' ) end [2025-03-19 15:00:22] Production.INFO: ProcessCDR(1,14716275,1,1,2) [2025-03-19 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716275', 'tblTempUsageDetail_20' ) start [2025-03-19 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716275', 'tblTempUsageDetail_20' ) end [2025-03-19 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:00:28] Production.INFO: ==2655== Releasing lock... [2025-03-19 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:00:28] Production.INFO: 71.25 MB #Memory Used# [2025-03-19 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:01:06 [end_date_ymd] => 2025-03-19 15:01:06 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:01:06' and `end` < '2025-03-19 15: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-03-19 15:01:19] Production.INFO: count ==5766 [2025-03-19 15:01:22] Production.ERROR: pbx CDR StartTime 2025-03-19 12:01:06 - End Time 2025-03-19 15:01:06 [2025-03-19 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716281', 'tblTempUsageDetail_20' ) start [2025-03-19 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716281', 'tblTempUsageDetail_20' ) end [2025-03-19 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716281', 'tblTempVendorCDR_20' ) start [2025-03-19 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716281', 'tblTempVendorCDR_20' ) end [2025-03-19 15:01:22] Production.INFO: ProcessCDR(1,14716281,1,1,2) [2025-03-19 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716281', 'tblTempUsageDetail_20' ) start [2025-03-19 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716281', 'tblTempUsageDetail_20' ) end [2025-03-19 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:01:27] Production.INFO: ==2746== Releasing lock... [2025-03-19 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:01:27] Production.INFO: 71.25 MB #Memory Used# [2025-03-19 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:02:05 [end_date_ymd] => 2025-03-19 15:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:02:05' and `end` < '2025-03-19 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-03-19 15:02:19] Production.INFO: count ==5751 [2025-03-19 15:02:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:02:05 - End Time 2025-03-19 15:02:05 [2025-03-19 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716286', 'tblTempUsageDetail_20' ) start [2025-03-19 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716286', 'tblTempUsageDetail_20' ) end [2025-03-19 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716286', 'tblTempVendorCDR_20' ) start [2025-03-19 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716286', 'tblTempVendorCDR_20' ) end [2025-03-19 15:02:21] Production.INFO: ProcessCDR(1,14716286,1,1,2) [2025-03-19 15:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716286', 'tblTempUsageDetail_20' ) start [2025-03-19 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716286', 'tblTempUsageDetail_20' ) end [2025-03-19 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:02:27] Production.INFO: ==2900== Releasing lock... [2025-03-19 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:02:27] Production.INFO: 71 MB #Memory Used# [2025-03-19 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:03:06 [end_date_ymd] => 2025-03-19 15:03:06 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:03:06' and `end` < '2025-03-19 15: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-03-19 15:03:20] Production.INFO: count ==5750 [2025-03-19 15:03:22] Production.ERROR: pbx CDR StartTime 2025-03-19 12:03:06 - End Time 2025-03-19 15:03:06 [2025-03-19 15:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716291', 'tblTempUsageDetail_20' ) start [2025-03-19 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716291', 'tblTempUsageDetail_20' ) end [2025-03-19 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716291', 'tblTempVendorCDR_20' ) start [2025-03-19 15:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716291', 'tblTempVendorCDR_20' ) end [2025-03-19 15:03:22] Production.INFO: ProcessCDR(1,14716291,1,1,2) [2025-03-19 15:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716291', 'tblTempUsageDetail_20' ) start [2025-03-19 15:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716291', 'tblTempUsageDetail_20' ) end [2025-03-19 15:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:03:28] Production.INFO: ==2971== Releasing lock... [2025-03-19 15:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:03:28] Production.INFO: 71 MB #Memory Used# [2025-03-19 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:04:05 [end_date_ymd] => 2025-03-19 15:04:05 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:04:05' and `end` < '2025-03-19 15: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-03-19 15:04:19] Production.INFO: count ==5760 [2025-03-19 15:04:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:04:05 - End Time 2025-03-19 15:04:05 [2025-03-19 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716296', 'tblTempUsageDetail_20' ) start [2025-03-19 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716296', 'tblTempUsageDetail_20' ) end [2025-03-19 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716296', 'tblTempVendorCDR_20' ) start [2025-03-19 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716296', 'tblTempVendorCDR_20' ) end [2025-03-19 15:04:22] Production.INFO: ProcessCDR(1,14716296,1,1,2) [2025-03-19 15:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716296', 'tblTempUsageDetail_20' ) start [2025-03-19 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716296', 'tblTempUsageDetail_20' ) end [2025-03-19 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:04:28] Production.INFO: ==3051== Releasing lock... [2025-03-19 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:04:28] Production.INFO: 71 MB #Memory Used# [2025-03-19 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:05:06 [end_date_ymd] => 2025-03-19 15:05:06 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:05:06' and `end` < '2025-03-19 15: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-03-19 15:05:19] Production.INFO: count ==5752 [2025-03-19 15:05:22] Production.ERROR: pbx CDR StartTime 2025-03-19 12:05:06 - End Time 2025-03-19 15:05:06 [2025-03-19 15:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716301', 'tblTempUsageDetail_20' ) start [2025-03-19 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716301', 'tblTempUsageDetail_20' ) end [2025-03-19 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716301', 'tblTempVendorCDR_20' ) start [2025-03-19 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716301', 'tblTempVendorCDR_20' ) end [2025-03-19 15:05:22] Production.INFO: ProcessCDR(1,14716301,1,1,2) [2025-03-19 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716301', 'tblTempUsageDetail_20' ) start [2025-03-19 15:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716301', 'tblTempUsageDetail_20' ) end [2025-03-19 15:05:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:05:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:05:28] Production.INFO: ==3203== Releasing lock... [2025-03-19 15:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:05:28] Production.INFO: 71 MB #Memory Used# [2025-03-19 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:06:05 [end_date_ymd] => 2025-03-19 15:06:05 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:06:05' and `end` < '2025-03-19 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-03-19 15:06:19] Production.INFO: count ==5742 [2025-03-19 15:06:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:06:05 - End Time 2025-03-19 15:06:05 [2025-03-19 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716306', 'tblTempUsageDetail_20' ) start [2025-03-19 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716306', 'tblTempUsageDetail_20' ) end [2025-03-19 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716306', 'tblTempVendorCDR_20' ) start [2025-03-19 15:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716306', 'tblTempVendorCDR_20' ) end [2025-03-19 15:06:22] Production.INFO: ProcessCDR(1,14716306,1,1,2) [2025-03-19 15:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716306', 'tblTempUsageDetail_20' ) start [2025-03-19 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716306', 'tblTempUsageDetail_20' ) end [2025-03-19 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:06:27] Production.INFO: ==3273== Releasing lock... [2025-03-19 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:06:27] Production.INFO: 71 MB #Memory Used# [2025-03-19 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:07:06 [end_date_ymd] => 2025-03-19 15:07:06 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:07:06' and `end` < '2025-03-19 15: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-03-19 15:07:19] Production.INFO: count ==5733 [2025-03-19 15:07:22] Production.ERROR: pbx CDR StartTime 2025-03-19 12:07:06 - End Time 2025-03-19 15:07:06 [2025-03-19 15:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716311', 'tblTempUsageDetail_20' ) start [2025-03-19 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716311', 'tblTempUsageDetail_20' ) end [2025-03-19 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716311', 'tblTempVendorCDR_20' ) start [2025-03-19 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716311', 'tblTempVendorCDR_20' ) end [2025-03-19 15:07:22] Production.INFO: ProcessCDR(1,14716311,1,1,2) [2025-03-19 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716311', 'tblTempUsageDetail_20' ) start [2025-03-19 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716311', 'tblTempUsageDetail_20' ) end [2025-03-19 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:07:27] Production.INFO: ==3348== Releasing lock... [2025-03-19 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:07:27] Production.INFO: 71 MB #Memory Used# [2025-03-19 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:08:05 [end_date_ymd] => 2025-03-19 15:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:08:05' and `end` < '2025-03-19 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-03-19 15:08:18] Production.INFO: count ==5723 [2025-03-19 15:08:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:08:05 - End Time 2025-03-19 15:08:05 [2025-03-19 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716316', 'tblTempUsageDetail_20' ) start [2025-03-19 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716316', 'tblTempUsageDetail_20' ) end [2025-03-19 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716316', 'tblTempVendorCDR_20' ) start [2025-03-19 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716316', 'tblTempVendorCDR_20' ) end [2025-03-19 15:08:21] Production.INFO: ProcessCDR(1,14716316,1,1,2) [2025-03-19 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716316', 'tblTempUsageDetail_20' ) start [2025-03-19 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716316', 'tblTempUsageDetail_20' ) end [2025-03-19 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:08:26] Production.INFO: ==3421== Releasing lock... [2025-03-19 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:08:26] Production.INFO: 70.75 MB #Memory Used# [2025-03-19 15:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:09:04 [end_date_ymd] => 2025-03-19 15:09:04 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:09:04' and `end` < '2025-03-19 15: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-03-19 15:09:18] Production.INFO: count ==5699 [2025-03-19 15:09:20] Production.ERROR: pbx CDR StartTime 2025-03-19 12:09:04 - End Time 2025-03-19 15:09:04 [2025-03-19 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716321', 'tblTempUsageDetail_20' ) start [2025-03-19 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716321', 'tblTempUsageDetail_20' ) end [2025-03-19 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716321', 'tblTempVendorCDR_20' ) start [2025-03-19 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716321', 'tblTempVendorCDR_20' ) end [2025-03-19 15:09:20] Production.INFO: ProcessCDR(1,14716321,1,1,2) [2025-03-19 15:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716321', 'tblTempUsageDetail_20' ) start [2025-03-19 15:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716321', 'tblTempUsageDetail_20' ) end [2025-03-19 15:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:09:25] Production.INFO: ==3578== Releasing lock... [2025-03-19 15:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:09:25] Production.INFO: 70.75 MB #Memory Used# [2025-03-19 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:10:06 [end_date_ymd] => 2025-03-19 15:10:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:10:06' and `end` < '2025-03-19 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-03-19 15:10:19] Production.INFO: count ==5700 [2025-03-19 15:10:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:10:06 - End Time 2025-03-19 15:10:06 [2025-03-19 15:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716327', 'tblTempUsageDetail_20' ) start [2025-03-19 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716327', 'tblTempUsageDetail_20' ) end [2025-03-19 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716327', 'tblTempVendorCDR_20' ) start [2025-03-19 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716327', 'tblTempVendorCDR_20' ) end [2025-03-19 15:10:22] Production.INFO: ProcessCDR(1,14716327,1,1,2) [2025-03-19 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716327', 'tblTempUsageDetail_20' ) start [2025-03-19 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716327', 'tblTempUsageDetail_20' ) end [2025-03-19 15:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:10:27] Production.INFO: ==3711== Releasing lock... [2025-03-19 15:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:10:27] Production.INFO: 70.75 MB #Memory Used# [2025-03-19 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:11:05 [end_date_ymd] => 2025-03-19 15:11:05 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:11:05' and `end` < '2025-03-19 15: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-03-19 15:11:19] Production.INFO: count ==5686 [2025-03-19 15:11:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:11:05 - End Time 2025-03-19 15:11:05 [2025-03-19 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716332', 'tblTempUsageDetail_20' ) start [2025-03-19 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716332', 'tblTempUsageDetail_20' ) end [2025-03-19 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716332', 'tblTempVendorCDR_20' ) start [2025-03-19 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716332', 'tblTempVendorCDR_20' ) end [2025-03-19 15:11:21] Production.INFO: ProcessCDR(1,14716332,1,1,2) [2025-03-19 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716332', 'tblTempUsageDetail_20' ) start [2025-03-19 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716332', 'tblTempUsageDetail_20' ) end [2025-03-19 15:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:11:27] Production.INFO: ==3788== Releasing lock... [2025-03-19 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:11:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-19 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:12:05 [end_date_ymd] => 2025-03-19 15:12:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:12:05' and `end` < '2025-03-19 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-03-19 15:12:19] Production.INFO: count ==5655 [2025-03-19 15:12:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:12:05 - End Time 2025-03-19 15:12:05 [2025-03-19 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716337', 'tblTempUsageDetail_20' ) start [2025-03-19 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716337', 'tblTempUsageDetail_20' ) end [2025-03-19 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716337', 'tblTempVendorCDR_20' ) start [2025-03-19 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716337', 'tblTempVendorCDR_20' ) end [2025-03-19 15:12:21] Production.INFO: ProcessCDR(1,14716337,1,1,2) [2025-03-19 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716337', 'tblTempUsageDetail_20' ) start [2025-03-19 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716337', 'tblTempUsageDetail_20' ) end [2025-03-19 15:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:12:26] Production.INFO: ==3945== Releasing lock... [2025-03-19 15:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:12:26] Production.INFO: 70.25 MB #Memory Used# [2025-03-19 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:13:06 [end_date_ymd] => 2025-03-19 15:13:06 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:13:06' and `end` < '2025-03-19 15:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 15:13:19] Production.INFO: count ==5631 [2025-03-19 15:13:22] Production.ERROR: pbx CDR StartTime 2025-03-19 12:13:06 - End Time 2025-03-19 15:13:06 [2025-03-19 15:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716342', 'tblTempUsageDetail_20' ) start [2025-03-19 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716342', 'tblTempUsageDetail_20' ) end [2025-03-19 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716342', 'tblTempVendorCDR_20' ) start [2025-03-19 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716342', 'tblTempVendorCDR_20' ) end [2025-03-19 15:13:22] Production.INFO: ProcessCDR(1,14716342,1,1,2) [2025-03-19 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716342', 'tblTempUsageDetail_20' ) start [2025-03-19 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716342', 'tblTempUsageDetail_20' ) end [2025-03-19 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:13:27] Production.INFO: ==4057== Releasing lock... [2025-03-19 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:13:27] Production.INFO: 70.5 MB #Memory Used# [2025-03-19 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:14:06 [end_date_ymd] => 2025-03-19 15:14:06 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:14:06' and `end` < '2025-03-19 15: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-03-19 15:14:19] Production.INFO: count ==5625 [2025-03-19 15:14:22] Production.ERROR: pbx CDR StartTime 2025-03-19 12:14:06 - End Time 2025-03-19 15:14:06 [2025-03-19 15:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716347', 'tblTempUsageDetail_20' ) start [2025-03-19 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716347', 'tblTempUsageDetail_20' ) end [2025-03-19 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716347', 'tblTempVendorCDR_20' ) start [2025-03-19 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716347', 'tblTempVendorCDR_20' ) end [2025-03-19 15:14:22] Production.INFO: ProcessCDR(1,14716347,1,1,2) [2025-03-19 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716347', 'tblTempUsageDetail_20' ) start [2025-03-19 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716347', 'tblTempUsageDetail_20' ) end [2025-03-19 15:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:14:28] Production.INFO: ==4172== Releasing lock... [2025-03-19 15:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:14:28] Production.INFO: 70 MB #Memory Used# [2025-03-19 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:15:06 [end_date_ymd] => 2025-03-19 15:15:06 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:15:06' and `end` < '2025-03-19 15: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-03-19 15:15:19] Production.INFO: count ==5618 [2025-03-19 15:15:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:15:06 - End Time 2025-03-19 15:15:06 [2025-03-19 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716352', 'tblTempUsageDetail_20' ) start [2025-03-19 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716352', 'tblTempUsageDetail_20' ) end [2025-03-19 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716352', 'tblTempVendorCDR_20' ) start [2025-03-19 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716352', 'tblTempVendorCDR_20' ) end [2025-03-19 15:15:21] Production.INFO: ProcessCDR(1,14716352,1,1,2) [2025-03-19 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716352', 'tblTempUsageDetail_20' ) start [2025-03-19 15:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716352', 'tblTempUsageDetail_20' ) end [2025-03-19 15:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:15:25] Production.INFO: ==4329== Releasing lock... [2025-03-19 15:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:15:25] Production.INFO: 70 MB #Memory Used# [2025-03-19 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:16:05 [end_date_ymd] => 2025-03-19 15:16:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:16:05' and `end` < '2025-03-19 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-03-19 15:16:19] Production.INFO: count ==5625 [2025-03-19 15:16:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:16:05 - End Time 2025-03-19 15:16:05 [2025-03-19 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716357', 'tblTempUsageDetail_20' ) start [2025-03-19 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716357', 'tblTempUsageDetail_20' ) end [2025-03-19 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716357', 'tblTempVendorCDR_20' ) start [2025-03-19 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716357', 'tblTempVendorCDR_20' ) end [2025-03-19 15:16:21] Production.INFO: ProcessCDR(1,14716357,1,1,2) [2025-03-19 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716357', 'tblTempUsageDetail_20' ) start [2025-03-19 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716357', 'tblTempUsageDetail_20' ) end [2025-03-19 15:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:16:26] Production.INFO: ==4480== Releasing lock... [2025-03-19 15:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:16:26] Production.INFO: 70 MB #Memory Used# [2025-03-19 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:17:05 [end_date_ymd] => 2025-03-19 15:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:17:05' and `end` < '2025-03-19 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-03-19 15:17:18] Production.INFO: count ==5613 [2025-03-19 15:17:20] Production.ERROR: pbx CDR StartTime 2025-03-19 12:17:05 - End Time 2025-03-19 15:17:05 [2025-03-19 15:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716362', 'tblTempUsageDetail_20' ) start [2025-03-19 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716362', 'tblTempUsageDetail_20' ) end [2025-03-19 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716362', 'tblTempVendorCDR_20' ) start [2025-03-19 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716362', 'tblTempVendorCDR_20' ) end [2025-03-19 15:17:21] Production.INFO: ProcessCDR(1,14716362,1,1,2) [2025-03-19 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716362', 'tblTempUsageDetail_20' ) start [2025-03-19 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716362', 'tblTempUsageDetail_20' ) end [2025-03-19 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:17:26] Production.INFO: ==4599== Releasing lock... [2025-03-19 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:17:26] Production.INFO: 70 MB #Memory Used# [2025-03-19 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:18:05 [end_date_ymd] => 2025-03-19 15:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:18:05' and `end` < '2025-03-19 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-03-19 15:18:18] Production.INFO: count ==5610 [2025-03-19 15:18:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:18:05 - End Time 2025-03-19 15:18:05 [2025-03-19 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716367', 'tblTempUsageDetail_20' ) start [2025-03-19 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716367', 'tblTempUsageDetail_20' ) end [2025-03-19 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716367', 'tblTempVendorCDR_20' ) start [2025-03-19 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716367', 'tblTempVendorCDR_20' ) end [2025-03-19 15:18:21] Production.INFO: ProcessCDR(1,14716367,1,1,2) [2025-03-19 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716367', 'tblTempUsageDetail_20' ) start [2025-03-19 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716367', 'tblTempUsageDetail_20' ) end [2025-03-19 15:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:18:26] Production.INFO: ==4714== Releasing lock... [2025-03-19 15:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:18:26] Production.INFO: 70 MB #Memory Used# [2025-03-19 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:19:05 [end_date_ymd] => 2025-03-19 15:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:19:05' and `end` < '2025-03-19 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-03-19 15:19:19] Production.INFO: count ==5595 [2025-03-19 15:19:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:19:05 - End Time 2025-03-19 15:19:05 [2025-03-19 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716372', 'tblTempUsageDetail_20' ) start [2025-03-19 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716372', 'tblTempUsageDetail_20' ) end [2025-03-19 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716372', 'tblTempVendorCDR_20' ) start [2025-03-19 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716372', 'tblTempVendorCDR_20' ) end [2025-03-19 15:19:21] Production.INFO: ProcessCDR(1,14716372,1,1,2) [2025-03-19 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716372', 'tblTempUsageDetail_20' ) start [2025-03-19 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716372', 'tblTempUsageDetail_20' ) end [2025-03-19 15:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:19:27] Production.INFO: ==4829== Releasing lock... [2025-03-19 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:19:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-19 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:20:06 [end_date_ymd] => 2025-03-19 15:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:20:06' and `end` < '2025-03-19 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-03-19 15:20:19] Production.INFO: count ==5582 [2025-03-19 15:20:22] Production.ERROR: pbx CDR StartTime 2025-03-19 12:20:06 - End Time 2025-03-19 15:20:06 [2025-03-19 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716378', 'tblTempUsageDetail_20' ) start [2025-03-19 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716378', 'tblTempUsageDetail_20' ) end [2025-03-19 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716378', 'tblTempVendorCDR_20' ) start [2025-03-19 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716378', 'tblTempVendorCDR_20' ) end [2025-03-19 15:20:22] Production.INFO: ProcessCDR(1,14716378,1,1,2) [2025-03-19 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716378', 'tblTempUsageDetail_20' ) start [2025-03-19 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716378', 'tblTempUsageDetail_20' ) end [2025-03-19 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:20:27] Production.INFO: ==4944== Releasing lock... [2025-03-19 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:20:27] Production.INFO: 69.75 MB #Memory Used# [2025-03-19 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:21:05 [end_date_ymd] => 2025-03-19 15:21:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:21:05' and `end` < '2025-03-19 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-03-19 15:21:19] Production.INFO: count ==5547 [2025-03-19 15:21:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:21:05 - End Time 2025-03-19 15:21:05 [2025-03-19 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716383', 'tblTempUsageDetail_20' ) start [2025-03-19 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716383', 'tblTempUsageDetail_20' ) end [2025-03-19 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716383', 'tblTempVendorCDR_20' ) start [2025-03-19 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716383', 'tblTempVendorCDR_20' ) end [2025-03-19 15:21:21] Production.INFO: ProcessCDR(1,14716383,1,1,2) [2025-03-19 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716383', 'tblTempUsageDetail_20' ) start [2025-03-19 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716383', 'tblTempUsageDetail_20' ) end [2025-03-19 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:21:27] Production.INFO: ==5060== Releasing lock... [2025-03-19 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:21:27] Production.INFO: 69.5 MB #Memory Used# [2025-03-19 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:22:05 [end_date_ymd] => 2025-03-19 15:22:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:22:05' and `end` < '2025-03-19 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-03-19 15:22:18] Production.INFO: count ==5514 [2025-03-19 15:22:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:22:05 - End Time 2025-03-19 15:22:05 [2025-03-19 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716388', 'tblTempUsageDetail_20' ) start [2025-03-19 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716388', 'tblTempUsageDetail_20' ) end [2025-03-19 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716388', 'tblTempVendorCDR_20' ) start [2025-03-19 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716388', 'tblTempVendorCDR_20' ) end [2025-03-19 15:22:21] Production.INFO: ProcessCDR(1,14716388,1,1,2) [2025-03-19 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716388', 'tblTempUsageDetail_20' ) start [2025-03-19 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716388', 'tblTempUsageDetail_20' ) end [2025-03-19 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:22:26] Production.INFO: ==5174== Releasing lock... [2025-03-19 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:22:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-19 15:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:23:05 [end_date_ymd] => 2025-03-19 15:23:05 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:23:05' and `end` < '2025-03-19 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-03-19 15:23:19] Production.INFO: count ==5514 [2025-03-19 15:23:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:23:05 - End Time 2025-03-19 15:23:05 [2025-03-19 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716393', 'tblTempUsageDetail_20' ) start [2025-03-19 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716393', 'tblTempUsageDetail_20' ) end [2025-03-19 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716393', 'tblTempVendorCDR_20' ) start [2025-03-19 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716393', 'tblTempVendorCDR_20' ) end [2025-03-19 15:23:21] Production.INFO: ProcessCDR(1,14716393,1,1,2) [2025-03-19 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716393', 'tblTempUsageDetail_20' ) start [2025-03-19 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716393', 'tblTempUsageDetail_20' ) end [2025-03-19 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:23:27] Production.INFO: ==5299== Releasing lock... [2025-03-19 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:23:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-19 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:24:05 [end_date_ymd] => 2025-03-19 15:24:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:24:05' and `end` < '2025-03-19 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-03-19 15:24:18] Production.INFO: count ==5517 [2025-03-19 15:24:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:24:05 - End Time 2025-03-19 15:24:05 [2025-03-19 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716398', 'tblTempUsageDetail_20' ) start [2025-03-19 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716398', 'tblTempUsageDetail_20' ) end [2025-03-19 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716398', 'tblTempVendorCDR_20' ) start [2025-03-19 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716398', 'tblTempVendorCDR_20' ) end [2025-03-19 15:24:21] Production.INFO: ProcessCDR(1,14716398,1,1,2) [2025-03-19 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716398', 'tblTempUsageDetail_20' ) start [2025-03-19 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716398', 'tblTempUsageDetail_20' ) end [2025-03-19 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:24:27] Production.INFO: ==5416== Releasing lock... [2025-03-19 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:24:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-19 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:25:05 [end_date_ymd] => 2025-03-19 15:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:25:05' and `end` < '2025-03-19 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-03-19 15:25:19] Production.INFO: count ==5519 [2025-03-19 15:25:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:25:05 - End Time 2025-03-19 15:25:05 [2025-03-19 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716403', 'tblTempUsageDetail_20' ) start [2025-03-19 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716403', 'tblTempUsageDetail_20' ) end [2025-03-19 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716403', 'tblTempVendorCDR_20' ) start [2025-03-19 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716403', 'tblTempVendorCDR_20' ) end [2025-03-19 15:25:21] Production.INFO: ProcessCDR(1,14716403,1,1,2) [2025-03-19 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716403', 'tblTempUsageDetail_20' ) start [2025-03-19 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716403', 'tblTempUsageDetail_20' ) end [2025-03-19 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:25:26] Production.INFO: ==5576== Releasing lock... [2025-03-19 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:25:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-19 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:26:05 [end_date_ymd] => 2025-03-19 15:26:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:26:05' and `end` < '2025-03-19 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-03-19 15:26:18] Production.INFO: count ==5519 [2025-03-19 15:26:20] Production.ERROR: pbx CDR StartTime 2025-03-19 12:26:05 - End Time 2025-03-19 15:26:05 [2025-03-19 15:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716408', 'tblTempUsageDetail_20' ) start [2025-03-19 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716408', 'tblTempUsageDetail_20' ) end [2025-03-19 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716408', 'tblTempVendorCDR_20' ) start [2025-03-19 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716408', 'tblTempVendorCDR_20' ) end [2025-03-19 15:26:20] Production.INFO: ProcessCDR(1,14716408,1,1,2) [2025-03-19 15:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716408', 'tblTempUsageDetail_20' ) start [2025-03-19 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716408', 'tblTempUsageDetail_20' ) end [2025-03-19 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:26:26] Production.INFO: ==5689== Releasing lock... [2025-03-19 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:26:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-19 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:27:05 [end_date_ymd] => 2025-03-19 15:27:05 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:27:05' and `end` < '2025-03-19 15: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-03-19 15:27:18] Production.INFO: count ==5524 [2025-03-19 15:27:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:27:05 - End Time 2025-03-19 15:27:05 [2025-03-19 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716413', 'tblTempUsageDetail_20' ) start [2025-03-19 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716413', 'tblTempUsageDetail_20' ) end [2025-03-19 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716413', 'tblTempVendorCDR_20' ) start [2025-03-19 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716413', 'tblTempVendorCDR_20' ) end [2025-03-19 15:27:21] Production.INFO: ProcessCDR(1,14716413,1,1,2) [2025-03-19 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716413', 'tblTempUsageDetail_20' ) start [2025-03-19 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716413', 'tblTempUsageDetail_20' ) end [2025-03-19 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:27:26] Production.INFO: ==5800== Releasing lock... [2025-03-19 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:27:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-19 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:28:06 [end_date_ymd] => 2025-03-19 15:28:06 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:28:06' and `end` < '2025-03-19 15: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-03-19 15:28:19] Production.INFO: count ==5507 [2025-03-19 15:28:22] Production.ERROR: pbx CDR StartTime 2025-03-19 12:28:06 - End Time 2025-03-19 15:28:06 [2025-03-19 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716418', 'tblTempUsageDetail_20' ) start [2025-03-19 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716418', 'tblTempUsageDetail_20' ) end [2025-03-19 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716418', 'tblTempVendorCDR_20' ) start [2025-03-19 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716418', 'tblTempVendorCDR_20' ) end [2025-03-19 15:28:22] Production.INFO: ProcessCDR(1,14716418,1,1,2) [2025-03-19 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716418', 'tblTempUsageDetail_20' ) start [2025-03-19 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716418', 'tblTempUsageDetail_20' ) end [2025-03-19 15:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:28:26] Production.INFO: ==5916== Releasing lock... [2025-03-19 15:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:28:26] Production.INFO: 69.25 MB #Memory Used# [2025-03-19 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:29:05 [end_date_ymd] => 2025-03-19 15:29:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:29:05' and `end` < '2025-03-19 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-03-19 15:29:19] Production.INFO: count ==5509 [2025-03-19 15:29:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:29:05 - End Time 2025-03-19 15:29:05 [2025-03-19 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716423', 'tblTempUsageDetail_20' ) start [2025-03-19 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716423', 'tblTempUsageDetail_20' ) end [2025-03-19 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716423', 'tblTempVendorCDR_20' ) start [2025-03-19 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716423', 'tblTempVendorCDR_20' ) end [2025-03-19 15:29:21] Production.INFO: ProcessCDR(1,14716423,1,1,2) [2025-03-19 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716423', 'tblTempUsageDetail_20' ) start [2025-03-19 15:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716423', 'tblTempUsageDetail_20' ) end [2025-03-19 15:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:29:27] Production.INFO: ==6030== Releasing lock... [2025-03-19 15:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:29:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-19 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:30:05 [end_date_ymd] => 2025-03-19 15:30:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:30:05' and `end` < '2025-03-19 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-03-19 15:30:19] Production.INFO: count ==5500 [2025-03-19 15:30:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:30:05 - End Time 2025-03-19 15:30:05 [2025-03-19 15:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716429', 'tblTempUsageDetail_20' ) start [2025-03-19 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716429', 'tblTempUsageDetail_20' ) end [2025-03-19 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716429', 'tblTempVendorCDR_20' ) start [2025-03-19 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716429', 'tblTempVendorCDR_20' ) end [2025-03-19 15:30:21] Production.INFO: ProcessCDR(1,14716429,1,1,2) [2025-03-19 15:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716429', 'tblTempUsageDetail_20' ) start [2025-03-19 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716429', 'tblTempUsageDetail_20' ) end [2025-03-19 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:30:27] Production.INFO: ==6146== Releasing lock... [2025-03-19 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:30:27] Production.INFO: 69.25 MB #Memory Used# [2025-03-19 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:31:05 [end_date_ymd] => 2025-03-19 15:31:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:31:05' and `end` < '2025-03-19 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-03-19 15:31:18] Production.INFO: count ==5500 [2025-03-19 15:31:20] Production.ERROR: pbx CDR StartTime 2025-03-19 12:31:05 - End Time 2025-03-19 15:31:05 [2025-03-19 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716434', 'tblTempUsageDetail_20' ) start [2025-03-19 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716434', 'tblTempUsageDetail_20' ) end [2025-03-19 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716434', 'tblTempVendorCDR_20' ) start [2025-03-19 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716434', 'tblTempVendorCDR_20' ) end [2025-03-19 15:31:21] Production.INFO: ProcessCDR(1,14716434,1,1,2) [2025-03-19 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716434', 'tblTempUsageDetail_20' ) start [2025-03-19 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716434', 'tblTempUsageDetail_20' ) end [2025-03-19 15:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:31:25] Production.INFO: ==6266== Releasing lock... [2025-03-19 15:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:31:25] Production.INFO: 69.25 MB #Memory Used# [2025-03-19 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:32:06 [end_date_ymd] => 2025-03-19 15:32:06 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:32:06' and `end` < '2025-03-19 15: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-03-19 15:32:19] Production.INFO: count ==5488 [2025-03-19 15:32:22] Production.ERROR: pbx CDR StartTime 2025-03-19 12:32:06 - End Time 2025-03-19 15:32:06 [2025-03-19 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716439', 'tblTempUsageDetail_20' ) start [2025-03-19 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716439', 'tblTempUsageDetail_20' ) end [2025-03-19 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716439', 'tblTempVendorCDR_20' ) start [2025-03-19 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716439', 'tblTempVendorCDR_20' ) end [2025-03-19 15:32:22] Production.INFO: ProcessCDR(1,14716439,1,1,2) [2025-03-19 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716439', 'tblTempUsageDetail_20' ) start [2025-03-19 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716439', 'tblTempUsageDetail_20' ) end [2025-03-19 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:32:28] Production.INFO: ==6379== Releasing lock... [2025-03-19 15:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:32:28] Production.INFO: 69 MB #Memory Used# [2025-03-19 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:33:05 [end_date_ymd] => 2025-03-19 15:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:33:05' and `end` < '2025-03-19 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-03-19 15:33:19] Production.INFO: count ==5483 [2025-03-19 15:33:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:33:05 - End Time 2025-03-19 15:33:05 [2025-03-19 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716444', 'tblTempUsageDetail_20' ) start [2025-03-19 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716444', 'tblTempUsageDetail_20' ) end [2025-03-19 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716444', 'tblTempVendorCDR_20' ) start [2025-03-19 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716444', 'tblTempVendorCDR_20' ) end [2025-03-19 15:33:21] Production.INFO: ProcessCDR(1,14716444,1,1,2) [2025-03-19 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716444', 'tblTempUsageDetail_20' ) start [2025-03-19 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716444', 'tblTempUsageDetail_20' ) end [2025-03-19 15:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:33:26] Production.INFO: ==6491== Releasing lock... [2025-03-19 15:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:33:26] Production.INFO: 69 MB #Memory Used# [2025-03-19 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:34:06 [end_date_ymd] => 2025-03-19 15:34:06 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:34:06' and `end` < '2025-03-19 15: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-03-19 15:34:20] Production.INFO: count ==5480 [2025-03-19 15:34:22] Production.ERROR: pbx CDR StartTime 2025-03-19 12:34:06 - End Time 2025-03-19 15:34:06 [2025-03-19 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716449', 'tblTempUsageDetail_20' ) start [2025-03-19 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716449', 'tblTempUsageDetail_20' ) end [2025-03-19 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716449', 'tblTempVendorCDR_20' ) start [2025-03-19 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716449', 'tblTempVendorCDR_20' ) end [2025-03-19 15:34:22] Production.INFO: ProcessCDR(1,14716449,1,1,2) [2025-03-19 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716449', 'tblTempUsageDetail_20' ) start [2025-03-19 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716449', 'tblTempUsageDetail_20' ) end [2025-03-19 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:34:28] Production.INFO: ==6605== Releasing lock... [2025-03-19 15:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:34:28] Production.INFO: 69 MB #Memory Used# [2025-03-19 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:35:05 [end_date_ymd] => 2025-03-19 15:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:35:05' and `end` < '2025-03-19 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-03-19 15:35:18] Production.INFO: count ==5477 [2025-03-19 15:35:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:35:05 - End Time 2025-03-19 15:35:05 [2025-03-19 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716454', 'tblTempUsageDetail_20' ) start [2025-03-19 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716454', 'tblTempUsageDetail_20' ) end [2025-03-19 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716454', 'tblTempVendorCDR_20' ) start [2025-03-19 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716454', 'tblTempVendorCDR_20' ) end [2025-03-19 15:35:21] Production.INFO: ProcessCDR(1,14716454,1,1,2) [2025-03-19 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716454', 'tblTempUsageDetail_20' ) start [2025-03-19 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716454', 'tblTempUsageDetail_20' ) end [2025-03-19 15:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:35:26] Production.INFO: ==6729== Releasing lock... [2025-03-19 15:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:35:26] Production.INFO: 69 MB #Memory Used# [2025-03-19 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:36:06 [end_date_ymd] => 2025-03-19 15:36:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:36:06' and `end` < '2025-03-19 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-03-19 15:36:19] Production.INFO: count ==5494 [2025-03-19 15:36:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:36:06 - End Time 2025-03-19 15:36:06 [2025-03-19 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716459', 'tblTempUsageDetail_20' ) start [2025-03-19 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716459', 'tblTempUsageDetail_20' ) end [2025-03-19 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716459', 'tblTempVendorCDR_20' ) start [2025-03-19 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716459', 'tblTempVendorCDR_20' ) end [2025-03-19 15:36:22] Production.INFO: ProcessCDR(1,14716459,1,1,2) [2025-03-19 15:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716459', 'tblTempUsageDetail_20' ) start [2025-03-19 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716459', 'tblTempUsageDetail_20' ) end [2025-03-19 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:36:27] Production.INFO: ==6851== Releasing lock... [2025-03-19 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:36:27] Production.INFO: 69 MB #Memory Used# [2025-03-19 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:37:05 [end_date_ymd] => 2025-03-19 15:37:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:37:05' and `end` < '2025-03-19 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-03-19 15:37:18] Production.INFO: count ==5452 [2025-03-19 15:37:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:37:05 - End Time 2025-03-19 15:37:05 [2025-03-19 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716464', 'tblTempUsageDetail_20' ) start [2025-03-19 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716464', 'tblTempUsageDetail_20' ) end [2025-03-19 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716464', 'tblTempVendorCDR_20' ) start [2025-03-19 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716464', 'tblTempVendorCDR_20' ) end [2025-03-19 15:37:21] Production.INFO: ProcessCDR(1,14716464,1,1,2) [2025-03-19 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716464', 'tblTempUsageDetail_20' ) start [2025-03-19 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716464', 'tblTempUsageDetail_20' ) end [2025-03-19 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:37:26] Production.INFO: ==6933== Releasing lock... [2025-03-19 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:37:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-19 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:38:05 [end_date_ymd] => 2025-03-19 15:38:05 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:38:05' and `end` < '2025-03-19 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-03-19 15:38:19] Production.INFO: count ==5452 [2025-03-19 15:38:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:38:05 - End Time 2025-03-19 15:38:05 [2025-03-19 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716469', 'tblTempUsageDetail_20' ) start [2025-03-19 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716469', 'tblTempUsageDetail_20' ) end [2025-03-19 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716469', 'tblTempVendorCDR_20' ) start [2025-03-19 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716469', 'tblTempVendorCDR_20' ) end [2025-03-19 15:38:21] Production.INFO: ProcessCDR(1,14716469,1,1,2) [2025-03-19 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716469', 'tblTempUsageDetail_20' ) start [2025-03-19 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716469', 'tblTempUsageDetail_20' ) end [2025-03-19 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:38:26] Production.INFO: ==7008== Releasing lock... [2025-03-19 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:38:26] Production.INFO: 68.75 MB #Memory Used# [2025-03-19 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:39:06 [end_date_ymd] => 2025-03-19 15:39:06 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:39:06' and `end` < '2025-03-19 15: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-03-19 15:39:19] Production.INFO: count ==5425 [2025-03-19 15:39:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:39:06 - End Time 2025-03-19 15:39:06 [2025-03-19 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716474', 'tblTempUsageDetail_20' ) start [2025-03-19 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716474', 'tblTempUsageDetail_20' ) end [2025-03-19 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716474', 'tblTempVendorCDR_20' ) start [2025-03-19 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716474', 'tblTempVendorCDR_20' ) end [2025-03-19 15:39:21] Production.INFO: ProcessCDR(1,14716474,1,1,2) [2025-03-19 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716474', 'tblTempUsageDetail_20' ) start [2025-03-19 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716474', 'tblTempUsageDetail_20' ) end [2025-03-19 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:39:26] Production.INFO: ==7080== Releasing lock... [2025-03-19 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:39:26] Production.INFO: 68.5 MB #Memory Used# [2025-03-19 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:40:06 [end_date_ymd] => 2025-03-19 15:40:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:40:06' and `end` < '2025-03-19 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-03-19 15:40:19] Production.INFO: count ==5402 [2025-03-19 15:40:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:40:06 - End Time 2025-03-19 15:40:06 [2025-03-19 15:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716480', 'tblTempUsageDetail_20' ) start [2025-03-19 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716480', 'tblTempUsageDetail_20' ) end [2025-03-19 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716480', 'tblTempVendorCDR_20' ) start [2025-03-19 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716480', 'tblTempVendorCDR_20' ) end [2025-03-19 15:40:22] Production.INFO: ProcessCDR(1,14716480,1,1,2) [2025-03-19 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716480', 'tblTempUsageDetail_20' ) start [2025-03-19 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716480', 'tblTempUsageDetail_20' ) end [2025-03-19 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:40:27] Production.INFO: ==7157== Releasing lock... [2025-03-19 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:40:27] Production.INFO: 68.5 MB #Memory Used# [2025-03-19 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:41:05 [end_date_ymd] => 2025-03-19 15:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:41:05' and `end` < '2025-03-19 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-03-19 15:41:18] Production.INFO: count ==5372 [2025-03-19 15:41:20] Production.ERROR: pbx CDR StartTime 2025-03-19 12:41:05 - End Time 2025-03-19 15:41:05 [2025-03-19 15:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716485', 'tblTempUsageDetail_20' ) start [2025-03-19 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716485', 'tblTempUsageDetail_20' ) end [2025-03-19 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716485', 'tblTempVendorCDR_20' ) start [2025-03-19 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716485', 'tblTempVendorCDR_20' ) end [2025-03-19 15:41:21] Production.INFO: ProcessCDR(1,14716485,1,1,2) [2025-03-19 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716485', 'tblTempUsageDetail_20' ) start [2025-03-19 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716485', 'tblTempUsageDetail_20' ) end [2025-03-19 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:41:26] Production.INFO: ==7272== Releasing lock... [2025-03-19 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:41:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-19 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:42:05 [end_date_ymd] => 2025-03-19 15:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:42:05' and `end` < '2025-03-19 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-03-19 15:42:19] Production.INFO: count ==5360 [2025-03-19 15:42:22] Production.ERROR: pbx CDR StartTime 2025-03-19 12:42:05 - End Time 2025-03-19 15:42:05 [2025-03-19 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716490', 'tblTempUsageDetail_20' ) start [2025-03-19 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716490', 'tblTempUsageDetail_20' ) end [2025-03-19 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716490', 'tblTempVendorCDR_20' ) start [2025-03-19 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716490', 'tblTempVendorCDR_20' ) end [2025-03-19 15:42:22] Production.INFO: ProcessCDR(1,14716490,1,1,2) [2025-03-19 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716490', 'tblTempUsageDetail_20' ) start [2025-03-19 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716490', 'tblTempUsageDetail_20' ) end [2025-03-19 15:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:42:27] Production.INFO: ==7349== Releasing lock... [2025-03-19 15:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:42:27] Production.INFO: 68 MB #Memory Used# [2025-03-19 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:43:05 [end_date_ymd] => 2025-03-19 15:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:43:05' and `end` < '2025-03-19 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-03-19 15:43:19] Production.INFO: count ==5361 [2025-03-19 15:43:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:43:05 - End Time 2025-03-19 15:43:05 [2025-03-19 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716495', 'tblTempUsageDetail_20' ) start [2025-03-19 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716495', 'tblTempUsageDetail_20' ) end [2025-03-19 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716495', 'tblTempVendorCDR_20' ) start [2025-03-19 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716495', 'tblTempVendorCDR_20' ) end [2025-03-19 15:43:21] Production.INFO: ProcessCDR(1,14716495,1,1,2) [2025-03-19 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716495', 'tblTempUsageDetail_20' ) start [2025-03-19 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716495', 'tblTempUsageDetail_20' ) end [2025-03-19 15:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:43:27] Production.INFO: ==7424== Releasing lock... [2025-03-19 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:43:27] Production.INFO: 68 MB #Memory Used# [2025-03-19 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:44:05 [end_date_ymd] => 2025-03-19 15:44:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:44:05' and `end` < '2025-03-19 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-03-19 15:44:18] Production.INFO: count ==5386 [2025-03-19 15:44:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:44:05 - End Time 2025-03-19 15:44:05 [2025-03-19 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716500', 'tblTempUsageDetail_20' ) start [2025-03-19 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716500', 'tblTempUsageDetail_20' ) end [2025-03-19 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716500', 'tblTempVendorCDR_20' ) start [2025-03-19 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716500', 'tblTempVendorCDR_20' ) end [2025-03-19 15:44:21] Production.INFO: ProcessCDR(1,14716500,1,1,2) [2025-03-19 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716500', 'tblTempUsageDetail_20' ) start [2025-03-19 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716500', 'tblTempUsageDetail_20' ) end [2025-03-19 15:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:44:26] Production.INFO: ==7497== Releasing lock... [2025-03-19 15:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:44:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-19 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:45:05 [end_date_ymd] => 2025-03-19 15:45:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:45:05' and `end` < '2025-03-19 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-03-19 15:45:18] Production.INFO: count ==5390 [2025-03-19 15:45:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:45:05 - End Time 2025-03-19 15:45:05 [2025-03-19 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716505', 'tblTempUsageDetail_20' ) start [2025-03-19 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716505', 'tblTempUsageDetail_20' ) end [2025-03-19 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716505', 'tblTempVendorCDR_20' ) start [2025-03-19 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716505', 'tblTempVendorCDR_20' ) end [2025-03-19 15:45:21] Production.INFO: ProcessCDR(1,14716505,1,1,2) [2025-03-19 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716505', 'tblTempUsageDetail_20' ) start [2025-03-19 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716505', 'tblTempUsageDetail_20' ) end [2025-03-19 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:45:26] Production.INFO: ==7570== Releasing lock... [2025-03-19 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:45:26] Production.INFO: 68.25 MB #Memory Used# [2025-03-19 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:46:05 [end_date_ymd] => 2025-03-19 15:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:46:05' and `end` < '2025-03-19 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-03-19 15:46:19] Production.INFO: count ==5372 [2025-03-19 15:46:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:46:05 - End Time 2025-03-19 15:46:05 [2025-03-19 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716510', 'tblTempUsageDetail_20' ) start [2025-03-19 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716510', 'tblTempUsageDetail_20' ) end [2025-03-19 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716510', 'tblTempVendorCDR_20' ) start [2025-03-19 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716510', 'tblTempVendorCDR_20' ) end [2025-03-19 15:46:21] Production.INFO: ProcessCDR(1,14716510,1,1,2) [2025-03-19 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716510', 'tblTempUsageDetail_20' ) start [2025-03-19 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716510', 'tblTempUsageDetail_20' ) end [2025-03-19 15:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:46:27] Production.INFO: ==7642== Releasing lock... [2025-03-19 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:46:27] Production.INFO: 68.25 MB #Memory Used# [2025-03-19 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:47:05 [end_date_ymd] => 2025-03-19 15:47:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:47:05' and `end` < '2025-03-19 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-03-19 15:47:18] Production.INFO: count ==5341 [2025-03-19 15:47:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:47:05 - End Time 2025-03-19 15:47:05 [2025-03-19 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716515', 'tblTempUsageDetail_20' ) start [2025-03-19 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716515', 'tblTempUsageDetail_20' ) end [2025-03-19 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716515', 'tblTempVendorCDR_20' ) start [2025-03-19 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716515', 'tblTempVendorCDR_20' ) end [2025-03-19 15:47:21] Production.INFO: ProcessCDR(1,14716515,1,1,2) [2025-03-19 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716515', 'tblTempUsageDetail_20' ) start [2025-03-19 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716515', 'tblTempUsageDetail_20' ) end [2025-03-19 15:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:47:26] Production.INFO: ==7717== Releasing lock... [2025-03-19 15:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:47:26] Production.INFO: 68 MB #Memory Used# [2025-03-19 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:48:05 [end_date_ymd] => 2025-03-19 15:48:05 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:48:05' and `end` < '2025-03-19 15: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-03-19 15:48:19] Production.INFO: count ==5292 [2025-03-19 15:48:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:48:05 - End Time 2025-03-19 15:48:05 [2025-03-19 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716520', 'tblTempUsageDetail_20' ) start [2025-03-19 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716520', 'tblTempUsageDetail_20' ) end [2025-03-19 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716520', 'tblTempVendorCDR_20' ) start [2025-03-19 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716520', 'tblTempVendorCDR_20' ) end [2025-03-19 15:48:21] Production.INFO: ProcessCDR(1,14716520,1,1,2) [2025-03-19 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716520', 'tblTempUsageDetail_20' ) start [2025-03-19 15:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716520', 'tblTempUsageDetail_20' ) end [2025-03-19 15:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:48:26] Production.INFO: ==7790== Releasing lock... [2025-03-19 15:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:48:26] Production.INFO: 67.5 MB #Memory Used# [2025-03-19 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:49:05 [end_date_ymd] => 2025-03-19 15:49:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:49:05' and `end` < '2025-03-19 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-03-19 15:49:18] Production.INFO: count ==5265 [2025-03-19 15:49:20] Production.ERROR: pbx CDR StartTime 2025-03-19 12:49:05 - End Time 2025-03-19 15:49:05 [2025-03-19 15:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716525', 'tblTempUsageDetail_20' ) start [2025-03-19 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716525', 'tblTempUsageDetail_20' ) end [2025-03-19 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716525', 'tblTempVendorCDR_20' ) start [2025-03-19 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716525', 'tblTempVendorCDR_20' ) end [2025-03-19 15:49:20] Production.INFO: ProcessCDR(1,14716525,1,1,2) [2025-03-19 15:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716525', 'tblTempUsageDetail_20' ) start [2025-03-19 15:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716525', 'tblTempUsageDetail_20' ) end [2025-03-19 15:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:49:25] Production.INFO: ==7871== Releasing lock... [2025-03-19 15:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:49:25] Production.INFO: 67.5 MB #Memory Used# [2025-03-19 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:50:06 [end_date_ymd] => 2025-03-19 15:50:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:50:06' and `end` < '2025-03-19 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-03-19 15:50:19] Production.INFO: count ==5245 [2025-03-19 15:50:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:50:06 - End Time 2025-03-19 15:50:06 [2025-03-19 15:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716531', 'tblTempUsageDetail_20' ) start [2025-03-19 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716531', 'tblTempUsageDetail_20' ) end [2025-03-19 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716531', 'tblTempVendorCDR_20' ) start [2025-03-19 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716531', 'tblTempVendorCDR_20' ) end [2025-03-19 15:50:22] Production.INFO: ProcessCDR(1,14716531,1,1,2) [2025-03-19 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716531', 'tblTempUsageDetail_20' ) start [2025-03-19 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716531', 'tblTempUsageDetail_20' ) end [2025-03-19 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:50:27] Production.INFO: ==7952== Releasing lock... [2025-03-19 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:50:27] Production.INFO: 67.25 MB #Memory Used# [2025-03-19 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:51:06 [end_date_ymd] => 2025-03-19 15:51:06 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:51:06' and `end` < '2025-03-19 15: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-03-19 15:51:19] Production.INFO: count ==5210 [2025-03-19 15:51:22] Production.ERROR: pbx CDR StartTime 2025-03-19 12:51:06 - End Time 2025-03-19 15:51:06 [2025-03-19 15:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716536', 'tblTempUsageDetail_20' ) start [2025-03-19 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716536', 'tblTempUsageDetail_20' ) end [2025-03-19 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716536', 'tblTempVendorCDR_20' ) start [2025-03-19 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716536', 'tblTempVendorCDR_20' ) end [2025-03-19 15:51:22] Production.INFO: ProcessCDR(1,14716536,1,1,2) [2025-03-19 15:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716536', 'tblTempUsageDetail_20' ) start [2025-03-19 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716536', 'tblTempUsageDetail_20' ) end [2025-03-19 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:51:27] Production.INFO: ==8029== Releasing lock... [2025-03-19 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:51:27] Production.INFO: 67 MB #Memory Used# [2025-03-19 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:52:05 [end_date_ymd] => 2025-03-19 15:52:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:52:05' and `end` < '2025-03-19 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-03-19 15:52:19] Production.INFO: count ==5204 [2025-03-19 15:52:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:52:05 - End Time 2025-03-19 15:52:05 [2025-03-19 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716541', 'tblTempUsageDetail_20' ) start [2025-03-19 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716541', 'tblTempUsageDetail_20' ) end [2025-03-19 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716541', 'tblTempVendorCDR_20' ) start [2025-03-19 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716541', 'tblTempVendorCDR_20' ) end [2025-03-19 15:52:21] Production.INFO: ProcessCDR(1,14716541,1,1,2) [2025-03-19 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716541', 'tblTempUsageDetail_20' ) start [2025-03-19 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716541', 'tblTempUsageDetail_20' ) end [2025-03-19 15:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:52:26] Production.INFO: ==8100== Releasing lock... [2025-03-19 15:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:52:26] Production.INFO: 67 MB #Memory Used# [2025-03-19 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:53:05 [end_date_ymd] => 2025-03-19 15:53:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:53:05' and `end` < '2025-03-19 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-03-19 15:53:18] Production.INFO: count ==5208 [2025-03-19 15:53:20] Production.ERROR: pbx CDR StartTime 2025-03-19 12:53:05 - End Time 2025-03-19 15:53:05 [2025-03-19 15:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716546', 'tblTempUsageDetail_20' ) start [2025-03-19 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716546', 'tblTempUsageDetail_20' ) end [2025-03-19 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716546', 'tblTempVendorCDR_20' ) start [2025-03-19 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716546', 'tblTempVendorCDR_20' ) end [2025-03-19 15:53:20] Production.INFO: ProcessCDR(1,14716546,1,1,2) [2025-03-19 15:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716546', 'tblTempUsageDetail_20' ) start [2025-03-19 15:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716546', 'tblTempUsageDetail_20' ) end [2025-03-19 15:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:53:25] Production.INFO: ==8179== Releasing lock... [2025-03-19 15:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:53:25] Production.INFO: 67 MB #Memory Used# [2025-03-19 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:54:05 [end_date_ymd] => 2025-03-19 15:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:54:05' and `end` < '2025-03-19 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-03-19 15:54:18] Production.INFO: count ==5170 [2025-03-19 15:54:20] Production.ERROR: pbx CDR StartTime 2025-03-19 12:54:05 - End Time 2025-03-19 15:54:05 [2025-03-19 15:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716551', 'tblTempUsageDetail_20' ) start [2025-03-19 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716551', 'tblTempUsageDetail_20' ) end [2025-03-19 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716551', 'tblTempVendorCDR_20' ) start [2025-03-19 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716551', 'tblTempVendorCDR_20' ) end [2025-03-19 15:54:21] Production.INFO: ProcessCDR(1,14716551,1,1,2) [2025-03-19 15:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716551', 'tblTempUsageDetail_20' ) start [2025-03-19 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716551', 'tblTempUsageDetail_20' ) end [2025-03-19 15:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:54:26] Production.INFO: ==8253== Releasing lock... [2025-03-19 15:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:54:26] Production.INFO: 66.75 MB #Memory Used# [2025-03-19 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:55:06 [end_date_ymd] => 2025-03-19 15:55:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:55:06' and `end` < '2025-03-19 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-03-19 15:55:19] Production.INFO: count ==5139 [2025-03-19 15:55:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:55:06 - End Time 2025-03-19 15:55:06 [2025-03-19 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716556', 'tblTempUsageDetail_20' ) start [2025-03-19 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716556', 'tblTempUsageDetail_20' ) end [2025-03-19 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716556', 'tblTempVendorCDR_20' ) start [2025-03-19 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716556', 'tblTempVendorCDR_20' ) end [2025-03-19 15:55:21] Production.INFO: ProcessCDR(1,14716556,1,1,2) [2025-03-19 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716556', 'tblTempUsageDetail_20' ) start [2025-03-19 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716556', 'tblTempUsageDetail_20' ) end [2025-03-19 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:55:26] Production.INFO: ==8327== Releasing lock... [2025-03-19 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:55:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-19 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:56:05 [end_date_ymd] => 2025-03-19 15:56:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:56:05' and `end` < '2025-03-19 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-03-19 15:56:18] Production.INFO: count ==5123 [2025-03-19 15:56:20] Production.ERROR: pbx CDR StartTime 2025-03-19 12:56:05 - End Time 2025-03-19 15:56:05 [2025-03-19 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716561', 'tblTempUsageDetail_20' ) start [2025-03-19 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716561', 'tblTempUsageDetail_20' ) end [2025-03-19 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716561', 'tblTempVendorCDR_20' ) start [2025-03-19 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716561', 'tblTempVendorCDR_20' ) end [2025-03-19 15:56:20] Production.INFO: ProcessCDR(1,14716561,1,1,2) [2025-03-19 15:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716561', 'tblTempUsageDetail_20' ) start [2025-03-19 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716561', 'tblTempUsageDetail_20' ) end [2025-03-19 15:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:56:25] Production.INFO: ==8441== Releasing lock... [2025-03-19 15:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:56:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-19 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:57:05 [end_date_ymd] => 2025-03-19 15:57:05 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:57:05' and `end` < '2025-03-19 15: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-03-19 15:57:19] Production.INFO: count ==5098 [2025-03-19 15:57:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:57:05 - End Time 2025-03-19 15:57:05 [2025-03-19 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716566', 'tblTempUsageDetail_20' ) start [2025-03-19 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716566', 'tblTempUsageDetail_20' ) end [2025-03-19 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716566', 'tblTempVendorCDR_20' ) start [2025-03-19 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716566', 'tblTempVendorCDR_20' ) end [2025-03-19 15:57:21] Production.INFO: ProcessCDR(1,14716566,1,1,2) [2025-03-19 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716566', 'tblTempUsageDetail_20' ) start [2025-03-19 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716566', 'tblTempUsageDetail_20' ) end [2025-03-19 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:57:26] Production.INFO: ==8518== Releasing lock... [2025-03-19 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:57:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-19 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:58:05 [end_date_ymd] => 2025-03-19 15:58:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 12:58:05' and `end` < '2025-03-19 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-03-19 15:58:18] Production.INFO: count ==5082 [2025-03-19 15:58:20] Production.ERROR: pbx CDR StartTime 2025-03-19 12:58:05 - End Time 2025-03-19 15:58:05 [2025-03-19 15:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716571', 'tblTempUsageDetail_20' ) start [2025-03-19 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716571', 'tblTempUsageDetail_20' ) end [2025-03-19 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716571', 'tblTempVendorCDR_20' ) start [2025-03-19 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716571', 'tblTempVendorCDR_20' ) end [2025-03-19 15:58:20] Production.INFO: ProcessCDR(1,14716571,1,1,2) [2025-03-19 15:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716571', 'tblTempUsageDetail_20' ) start [2025-03-19 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716571', 'tblTempUsageDetail_20' ) end [2025-03-19 15:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:58:25] Production.INFO: ==8591== Releasing lock... [2025-03-19 15:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:58:25] Production.INFO: 66 MB #Memory Used# [2025-03-19 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 12:59:06 [end_date_ymd] => 2025-03-19 15:59:06 [RateCDR] => 1 ) [2025-03-19 15: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-03-19 12:59:06' and `end` < '2025-03-19 15: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-03-19 15:59:19] Production.INFO: count ==5041 [2025-03-19 15:59:21] Production.ERROR: pbx CDR StartTime 2025-03-19 12:59:06 - End Time 2025-03-19 15:59:06 [2025-03-19 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716576', 'tblTempUsageDetail_20' ) start [2025-03-19 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716576', 'tblTempUsageDetail_20' ) end [2025-03-19 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716576', 'tblTempVendorCDR_20' ) start [2025-03-19 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716576', 'tblTempVendorCDR_20' ) end [2025-03-19 15:59:21] Production.INFO: ProcessCDR(1,14716576,1,1,2) [2025-03-19 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716576', 'tblTempUsageDetail_20' ) start [2025-03-19 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716576', 'tblTempUsageDetail_20' ) end [2025-03-19 15:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 15:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 15:59:26] Production.INFO: ==8667== Releasing lock... [2025-03-19 15:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 15:59:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:00:05 [end_date_ymd] => 2025-03-19 16:00:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:00:05' and `end` < '2025-03-19 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-03-19 16:00:19] Production.INFO: count ==5033 [2025-03-19 16:00:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:00:05 - End Time 2025-03-19 16:00:05 [2025-03-19 16:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716582', 'tblTempUsageDetail_20' ) start [2025-03-19 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716582', 'tblTempUsageDetail_20' ) end [2025-03-19 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716582', 'tblTempVendorCDR_20' ) start [2025-03-19 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716582', 'tblTempVendorCDR_20' ) end [2025-03-19 16:00:21] Production.INFO: ProcessCDR(1,14716582,1,1,2) [2025-03-19 16:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716582', 'tblTempUsageDetail_20' ) start [2025-03-19 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716582', 'tblTempUsageDetail_20' ) end [2025-03-19 16:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:00:27] Production.INFO: ==8747== Releasing lock... [2025-03-19 16:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:00:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:01:06 [end_date_ymd] => 2025-03-19 16:01:06 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:01:06' and `end` < '2025-03-19 16: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-03-19 16:01:19] Production.INFO: count ==5044 [2025-03-19 16:01:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:01:06 - End Time 2025-03-19 16:01:06 [2025-03-19 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716587', 'tblTempUsageDetail_20' ) start [2025-03-19 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716587', 'tblTempUsageDetail_20' ) end [2025-03-19 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716587', 'tblTempVendorCDR_20' ) start [2025-03-19 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716587', 'tblTempVendorCDR_20' ) end [2025-03-19 16:01:21] Production.INFO: ProcessCDR(1,14716587,1,1,2) [2025-03-19 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716587', 'tblTempUsageDetail_20' ) start [2025-03-19 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716587', 'tblTempUsageDetail_20' ) end [2025-03-19 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:01:27] Production.INFO: ==8836== Releasing lock... [2025-03-19 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:01:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:02:05 [end_date_ymd] => 2025-03-19 16:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:02:05' and `end` < '2025-03-19 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-03-19 16:02:18] Production.INFO: count ==5046 [2025-03-19 16:02:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:02:05 - End Time 2025-03-19 16:02:05 [2025-03-19 16:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716592', 'tblTempUsageDetail_20' ) start [2025-03-19 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716592', 'tblTempUsageDetail_20' ) end [2025-03-19 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716592', 'tblTempVendorCDR_20' ) start [2025-03-19 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716592', 'tblTempVendorCDR_20' ) end [2025-03-19 16:02:21] Production.INFO: ProcessCDR(1,14716592,1,1,2) [2025-03-19 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716592', 'tblTempUsageDetail_20' ) start [2025-03-19 16:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716592', 'tblTempUsageDetail_20' ) end [2025-03-19 16:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:02:26] Production.INFO: ==8924== Releasing lock... [2025-03-19 16:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:02:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:03:05 [end_date_ymd] => 2025-03-19 16:03:05 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:03:05' and `end` < '2025-03-19 16: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-03-19 16:03:18] Production.INFO: count ==5033 [2025-03-19 16:03:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:03:05 - End Time 2025-03-19 16:03:05 [2025-03-19 16:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716597', 'tblTempUsageDetail_20' ) start [2025-03-19 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716597', 'tblTempUsageDetail_20' ) end [2025-03-19 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716597', 'tblTempVendorCDR_20' ) start [2025-03-19 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716597', 'tblTempVendorCDR_20' ) end [2025-03-19 16:03:21] Production.INFO: ProcessCDR(1,14716597,1,1,2) [2025-03-19 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716597', 'tblTempUsageDetail_20' ) start [2025-03-19 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716597', 'tblTempUsageDetail_20' ) end [2025-03-19 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:03:26] Production.INFO: ==9004== Releasing lock... [2025-03-19 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:03:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:04:05 [end_date_ymd] => 2025-03-19 16:04:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:04:05' and `end` < '2025-03-19 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-03-19 16:04:18] Production.INFO: count ==5036 [2025-03-19 16:04:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:04:05 - End Time 2025-03-19 16:04:05 [2025-03-19 16:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716602', 'tblTempUsageDetail_20' ) start [2025-03-19 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716602', 'tblTempUsageDetail_20' ) end [2025-03-19 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716602', 'tblTempVendorCDR_20' ) start [2025-03-19 16:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716602', 'tblTempVendorCDR_20' ) end [2025-03-19 16:04:20] Production.INFO: ProcessCDR(1,14716602,1,1,2) [2025-03-19 16:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716602', 'tblTempUsageDetail_20' ) start [2025-03-19 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716602', 'tblTempUsageDetail_20' ) end [2025-03-19 16:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:04:26] Production.INFO: ==9092== Releasing lock... [2025-03-19 16:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:04:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:05:05 [end_date_ymd] => 2025-03-19 16:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:05:05' and `end` < '2025-03-19 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-03-19 16:05:19] Production.INFO: count ==5051 [2025-03-19 16:05:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:05:05 - End Time 2025-03-19 16:05:05 [2025-03-19 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716607', 'tblTempUsageDetail_20' ) start [2025-03-19 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716607', 'tblTempUsageDetail_20' ) end [2025-03-19 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716607', 'tblTempVendorCDR_20' ) start [2025-03-19 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716607', 'tblTempVendorCDR_20' ) end [2025-03-19 16:05:21] Production.INFO: ProcessCDR(1,14716607,1,1,2) [2025-03-19 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716607', 'tblTempUsageDetail_20' ) start [2025-03-19 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716607', 'tblTempUsageDetail_20' ) end [2025-03-19 16:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:05:26] Production.INFO: ==9175== Releasing lock... [2025-03-19 16:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:05:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:06:05 [end_date_ymd] => 2025-03-19 16:06:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:06:05' and `end` < '2025-03-19 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-03-19 16:06:18] Production.INFO: count ==5048 [2025-03-19 16:06:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:06:05 - End Time 2025-03-19 16:06:05 [2025-03-19 16:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716612', 'tblTempUsageDetail_20' ) start [2025-03-19 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716612', 'tblTempUsageDetail_20' ) end [2025-03-19 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716612', 'tblTempVendorCDR_20' ) start [2025-03-19 16:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716612', 'tblTempVendorCDR_20' ) end [2025-03-19 16:06:20] Production.INFO: ProcessCDR(1,14716612,1,1,2) [2025-03-19 16:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716612', 'tblTempUsageDetail_20' ) start [2025-03-19 16:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716612', 'tblTempUsageDetail_20' ) end [2025-03-19 16:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:06:25] Production.INFO: ==9264== Releasing lock... [2025-03-19 16:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:06:25] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:07:05 [end_date_ymd] => 2025-03-19 16:07:05 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:07:05' and `end` < '2025-03-19 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-03-19 16:07:19] Production.INFO: count ==5026 [2025-03-19 16:07:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:07:05 - End Time 2025-03-19 16:07:05 [2025-03-19 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716617', 'tblTempUsageDetail_20' ) start [2025-03-19 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716617', 'tblTempUsageDetail_20' ) end [2025-03-19 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716617', 'tblTempVendorCDR_20' ) start [2025-03-19 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716617', 'tblTempVendorCDR_20' ) end [2025-03-19 16:07:21] Production.INFO: ProcessCDR(1,14716617,1,1,2) [2025-03-19 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716617', 'tblTempUsageDetail_20' ) start [2025-03-19 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716617', 'tblTempUsageDetail_20' ) end [2025-03-19 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:07:26] Production.INFO: ==9356== Releasing lock... [2025-03-19 16:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:07:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-19 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:08:05 [end_date_ymd] => 2025-03-19 16:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:08:05' and `end` < '2025-03-19 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-03-19 16:08:19] Production.INFO: count ==5004 [2025-03-19 16:08:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:08:05 - End Time 2025-03-19 16:08:05 [2025-03-19 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716622', 'tblTempUsageDetail_20' ) start [2025-03-19 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716622', 'tblTempUsageDetail_20' ) end [2025-03-19 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716622', 'tblTempVendorCDR_20' ) start [2025-03-19 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716622', 'tblTempVendorCDR_20' ) end [2025-03-19 16:08:21] Production.INFO: ProcessCDR(1,14716622,1,1,2) [2025-03-19 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716622', 'tblTempUsageDetail_20' ) start [2025-03-19 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716622', 'tblTempUsageDetail_20' ) end [2025-03-19 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:08:26] Production.INFO: ==9443== Releasing lock... [2025-03-19 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:08:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-19 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:09:05 [end_date_ymd] => 2025-03-19 16:09:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:09:05' and `end` < '2025-03-19 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-03-19 16:09:19] Production.INFO: count ==5000 [2025-03-19 16:09:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:09:05 - End Time 2025-03-19 16:09:05 [2025-03-19 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716627', 'tblTempUsageDetail_20' ) start [2025-03-19 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716627', 'tblTempUsageDetail_20' ) end [2025-03-19 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716627', 'tblTempVendorCDR_20' ) start [2025-03-19 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716627', 'tblTempVendorCDR_20' ) end [2025-03-19 16:09:21] Production.INFO: ProcessCDR(1,14716627,1,1,2) [2025-03-19 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716627', 'tblTempUsageDetail_20' ) start [2025-03-19 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716627', 'tblTempUsageDetail_20' ) end [2025-03-19 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:09:26] Production.INFO: ==9532== Releasing lock... [2025-03-19 16:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:09:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-19 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:10:06 [end_date_ymd] => 2025-03-19 16:10:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:10:06' and `end` < '2025-03-19 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-03-19 16:10:21] Production.INFO: count ==5033 [2025-03-19 16:10:23] Production.ERROR: pbx CDR StartTime 2025-03-19 13:10:06 - End Time 2025-03-19 16:10:06 [2025-03-19 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716633', 'tblTempUsageDetail_20' ) start [2025-03-19 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716633', 'tblTempUsageDetail_20' ) end [2025-03-19 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716633', 'tblTempVendorCDR_20' ) start [2025-03-19 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716633', 'tblTempVendorCDR_20' ) end [2025-03-19 16:10:23] Production.INFO: ProcessCDR(1,14716633,1,1,2) [2025-03-19 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716633', 'tblTempUsageDetail_20' ) start [2025-03-19 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716633', 'tblTempUsageDetail_20' ) end [2025-03-19 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:10:28] Production.INFO: ==9628== Releasing lock... [2025-03-19 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:10:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-19 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:11:05 [end_date_ymd] => 2025-03-19 16:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:11:05' and `end` < '2025-03-19 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-03-19 16:11:19] Production.INFO: count ==5014 [2025-03-19 16:11:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:11:05 - End Time 2025-03-19 16:11:05 [2025-03-19 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716638', 'tblTempUsageDetail_20' ) start [2025-03-19 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716638', 'tblTempUsageDetail_20' ) end [2025-03-19 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716638', 'tblTempVendorCDR_20' ) start [2025-03-19 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716638', 'tblTempVendorCDR_20' ) end [2025-03-19 16:11:21] Production.INFO: ProcessCDR(1,14716638,1,1,2) [2025-03-19 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716638', 'tblTempUsageDetail_20' ) start [2025-03-19 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716638', 'tblTempUsageDetail_20' ) end [2025-03-19 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:11:26] Production.INFO: ==9726== Releasing lock... [2025-03-19 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:11:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-19 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:12:06 [end_date_ymd] => 2025-03-19 16:12:06 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:12:06' and `end` < '2025-03-19 16: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-03-19 16:12:20] Production.INFO: count ==5021 [2025-03-19 16:12:22] Production.ERROR: pbx CDR StartTime 2025-03-19 13:12:06 - End Time 2025-03-19 16:12:06 [2025-03-19 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716643', 'tblTempUsageDetail_20' ) start [2025-03-19 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716643', 'tblTempUsageDetail_20' ) end [2025-03-19 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716643', 'tblTempVendorCDR_20' ) start [2025-03-19 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716643', 'tblTempVendorCDR_20' ) end [2025-03-19 16:12:22] Production.INFO: ProcessCDR(1,14716643,1,1,2) [2025-03-19 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716643', 'tblTempUsageDetail_20' ) start [2025-03-19 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716643', 'tblTempUsageDetail_20' ) end [2025-03-19 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:12:27] Production.INFO: ==9856== Releasing lock... [2025-03-19 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:12:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-19 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:13:05 [end_date_ymd] => 2025-03-19 16:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:13:05' and `end` < '2025-03-19 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-03-19 16:13:18] Production.INFO: count ==5011 [2025-03-19 16:13:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:13:05 - End Time 2025-03-19 16:13:05 [2025-03-19 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716648', 'tblTempUsageDetail_20' ) start [2025-03-19 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716648', 'tblTempUsageDetail_20' ) end [2025-03-19 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716648', 'tblTempVendorCDR_20' ) start [2025-03-19 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716648', 'tblTempVendorCDR_20' ) end [2025-03-19 16:13:21] Production.INFO: ProcessCDR(1,14716648,1,1,2) [2025-03-19 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716648', 'tblTempUsageDetail_20' ) start [2025-03-19 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716648', 'tblTempUsageDetail_20' ) end [2025-03-19 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:13:27] Production.INFO: ==9947== Releasing lock... [2025-03-19 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:13:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-19 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:14:06 [end_date_ymd] => 2025-03-19 16:14:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:14:06' and `end` < '2025-03-19 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-03-19 16:14:19] Production.INFO: count ==5019 [2025-03-19 16:14:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:14:06 - End Time 2025-03-19 16:14:06 [2025-03-19 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716653', 'tblTempUsageDetail_20' ) start [2025-03-19 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716653', 'tblTempUsageDetail_20' ) end [2025-03-19 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716653', 'tblTempVendorCDR_20' ) start [2025-03-19 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716653', 'tblTempVendorCDR_20' ) end [2025-03-19 16:14:21] Production.INFO: ProcessCDR(1,14716653,1,1,2) [2025-03-19 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716653', 'tblTempUsageDetail_20' ) start [2025-03-19 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716653', 'tblTempUsageDetail_20' ) end [2025-03-19 16:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:14:26] Production.INFO: ==10042== Releasing lock... [2025-03-19 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:14:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-19 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:15:05 [end_date_ymd] => 2025-03-19 16:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:15:05' and `end` < '2025-03-19 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-03-19 16:15:19] Production.INFO: count ==4999 [2025-03-19 16:15:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:15:05 - End Time 2025-03-19 16:15:05 [2025-03-19 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716658', 'tblTempUsageDetail_20' ) start [2025-03-19 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716658', 'tblTempUsageDetail_20' ) end [2025-03-19 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716658', 'tblTempVendorCDR_20' ) start [2025-03-19 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716658', 'tblTempVendorCDR_20' ) end [2025-03-19 16:15:21] Production.INFO: ProcessCDR(1,14716658,1,1,2) [2025-03-19 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716658', 'tblTempUsageDetail_20' ) start [2025-03-19 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716658', 'tblTempUsageDetail_20' ) end [2025-03-19 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:15:26] Production.INFO: ==10139== Releasing lock... [2025-03-19 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:15:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-19 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:16:06 [end_date_ymd] => 2025-03-19 16:16:06 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:16:06' and `end` < '2025-03-19 16: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-03-19 16:16:19] Production.INFO: count ==5006 [2025-03-19 16:16:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:16:06 - End Time 2025-03-19 16:16:06 [2025-03-19 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716663', 'tblTempUsageDetail_20' ) start [2025-03-19 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716663', 'tblTempUsageDetail_20' ) end [2025-03-19 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716663', 'tblTempVendorCDR_20' ) start [2025-03-19 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716663', 'tblTempVendorCDR_20' ) end [2025-03-19 16:16:21] Production.INFO: ProcessCDR(1,14716663,1,1,2) [2025-03-19 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716663', 'tblTempUsageDetail_20' ) start [2025-03-19 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716663', 'tblTempUsageDetail_20' ) end [2025-03-19 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:16:27] Production.INFO: ==10236== Releasing lock... [2025-03-19 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:16:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-19 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:17:05 [end_date_ymd] => 2025-03-19 16:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:17:05' and `end` < '2025-03-19 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-03-19 16:17:18] Production.INFO: count ==4980 [2025-03-19 16:17:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:17:05 - End Time 2025-03-19 16:17:05 [2025-03-19 16:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716668', 'tblTempUsageDetail_20' ) start [2025-03-19 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716668', 'tblTempUsageDetail_20' ) end [2025-03-19 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716668', 'tblTempVendorCDR_20' ) start [2025-03-19 16:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716668', 'tblTempVendorCDR_20' ) end [2025-03-19 16:17:20] Production.INFO: ProcessCDR(1,14716668,1,1,2) [2025-03-19 16:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716668', 'tblTempUsageDetail_20' ) start [2025-03-19 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716668', 'tblTempUsageDetail_20' ) end [2025-03-19 16:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:17:26] Production.INFO: ==10323== Releasing lock... [2025-03-19 16:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:17:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:18:06 [end_date_ymd] => 2025-03-19 16:18:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:18:06' and `end` < '2025-03-19 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-03-19 16:18:19] Production.INFO: count ==4969 [2025-03-19 16:18:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:18:06 - End Time 2025-03-19 16:18:06 [2025-03-19 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716673', 'tblTempUsageDetail_20' ) start [2025-03-19 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716673', 'tblTempUsageDetail_20' ) end [2025-03-19 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716673', 'tblTempVendorCDR_20' ) start [2025-03-19 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716673', 'tblTempVendorCDR_20' ) end [2025-03-19 16:18:21] Production.INFO: ProcessCDR(1,14716673,1,1,2) [2025-03-19 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716673', 'tblTempUsageDetail_20' ) start [2025-03-19 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716673', 'tblTempUsageDetail_20' ) end [2025-03-19 16:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:18:26] Production.INFO: ==10409== Releasing lock... [2025-03-19 16:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:18:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:19:05 [end_date_ymd] => 2025-03-19 16:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:19:05' and `end` < '2025-03-19 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-03-19 16:19:19] Production.INFO: count ==4967 [2025-03-19 16:19:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:19:05 - End Time 2025-03-19 16:19:05 [2025-03-19 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716678', 'tblTempUsageDetail_20' ) start [2025-03-19 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716678', 'tblTempUsageDetail_20' ) end [2025-03-19 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716678', 'tblTempVendorCDR_20' ) start [2025-03-19 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716678', 'tblTempVendorCDR_20' ) end [2025-03-19 16:19:21] Production.INFO: ProcessCDR(1,14716678,1,1,2) [2025-03-19 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716678', 'tblTempUsageDetail_20' ) start [2025-03-19 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716678', 'tblTempUsageDetail_20' ) end [2025-03-19 16:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:19:26] Production.INFO: ==10488== Releasing lock... [2025-03-19 16:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:19:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:20:06 [end_date_ymd] => 2025-03-19 16:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:20:06' and `end` < '2025-03-19 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-03-19 16:20:19] Production.INFO: count ==4959 [2025-03-19 16:20:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:20:06 - End Time 2025-03-19 16:20:06 [2025-03-19 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716683', 'tblTempUsageDetail_20' ) start [2025-03-19 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716683', 'tblTempUsageDetail_20' ) end [2025-03-19 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716683', 'tblTempVendorCDR_20' ) start [2025-03-19 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716683', 'tblTempVendorCDR_20' ) end [2025-03-19 16:20:21] Production.INFO: ProcessCDR(1,14716683,1,1,2) [2025-03-19 16:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716683', 'tblTempUsageDetail_20' ) start [2025-03-19 16:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716683', 'tblTempUsageDetail_20' ) end [2025-03-19 16:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:20:25] Production.INFO: ==10575== Releasing lock... [2025-03-19 16:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:20:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:21:05 [end_date_ymd] => 2025-03-19 16:21:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:21:05' and `end` < '2025-03-19 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-03-19 16:21:18] Production.INFO: count ==4918 [2025-03-19 16:21:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:21:05 - End Time 2025-03-19 16:21:05 [2025-03-19 16:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716689', 'tblTempUsageDetail_20' ) start [2025-03-19 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716689', 'tblTempUsageDetail_20' ) end [2025-03-19 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716689', 'tblTempVendorCDR_20' ) start [2025-03-19 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716689', 'tblTempVendorCDR_20' ) end [2025-03-19 16:21:20] Production.INFO: ProcessCDR(1,14716689,1,1,2) [2025-03-19 16:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716689', 'tblTempUsageDetail_20' ) start [2025-03-19 16:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716689', 'tblTempUsageDetail_20' ) end [2025-03-19 16:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:21:26] Production.INFO: ==10661== Releasing lock... [2025-03-19 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:21:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-19 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:22:06 [end_date_ymd] => 2025-03-19 16:22:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:22:06' and `end` < '2025-03-19 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-03-19 16:22:19] Production.INFO: count ==4918 [2025-03-19 16:22:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:22:06 - End Time 2025-03-19 16:22:06 [2025-03-19 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716694', 'tblTempUsageDetail_20' ) start [2025-03-19 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716694', 'tblTempUsageDetail_20' ) end [2025-03-19 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716694', 'tblTempVendorCDR_20' ) start [2025-03-19 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716694', 'tblTempVendorCDR_20' ) end [2025-03-19 16:22:21] Production.INFO: ProcessCDR(1,14716694,1,1,2) [2025-03-19 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716694', 'tblTempUsageDetail_20' ) start [2025-03-19 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716694', 'tblTempUsageDetail_20' ) end [2025-03-19 16:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:22:26] Production.INFO: ==10749== Releasing lock... [2025-03-19 16:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:22:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-19 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:23:06 [end_date_ymd] => 2025-03-19 16:23:06 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:23:06' and `end` < '2025-03-19 16: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-03-19 16:23:19] Production.INFO: count ==4932 [2025-03-19 16:23:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:23:06 - End Time 2025-03-19 16:23:06 [2025-03-19 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716699', 'tblTempUsageDetail_20' ) start [2025-03-19 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716699', 'tblTempUsageDetail_20' ) end [2025-03-19 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716699', 'tblTempVendorCDR_20' ) start [2025-03-19 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716699', 'tblTempVendorCDR_20' ) end [2025-03-19 16:23:21] Production.INFO: ProcessCDR(1,14716699,1,1,2) [2025-03-19 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716699', 'tblTempUsageDetail_20' ) start [2025-03-19 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716699', 'tblTempUsageDetail_20' ) end [2025-03-19 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:23:26] Production.INFO: ==10831== Releasing lock... [2025-03-19 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:23:26] Production.INFO: 65 MB #Memory Used# [2025-03-19 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:24:05 [end_date_ymd] => 2025-03-19 16:24:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:24:05' and `end` < '2025-03-19 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-03-19 16:24:19] Production.INFO: count ==4937 [2025-03-19 16:24:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:24:05 - End Time 2025-03-19 16:24:05 [2025-03-19 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716704', 'tblTempUsageDetail_20' ) start [2025-03-19 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716704', 'tblTempUsageDetail_20' ) end [2025-03-19 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716704', 'tblTempVendorCDR_20' ) start [2025-03-19 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716704', 'tblTempVendorCDR_20' ) end [2025-03-19 16:24:21] Production.INFO: ProcessCDR(1,14716704,1,1,2) [2025-03-19 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716704', 'tblTempUsageDetail_20' ) start [2025-03-19 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716704', 'tblTempUsageDetail_20' ) end [2025-03-19 16:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:24:26] Production.INFO: ==10913== Releasing lock... [2025-03-19 16:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:24:26] Production.INFO: 65 MB #Memory Used# [2025-03-19 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:25:05 [end_date_ymd] => 2025-03-19 16:25:05 [RateCDR] => 1 ) [2025-03-19 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 13:25:05' and `end` < '2025-03-19 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 16:25:18] Production.INFO: count ==4916 [2025-03-19 16:25:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:25:05 - End Time 2025-03-19 16:25:05 [2025-03-19 16:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716709', 'tblTempUsageDetail_20' ) start [2025-03-19 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716709', 'tblTempUsageDetail_20' ) end [2025-03-19 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716709', 'tblTempVendorCDR_20' ) start [2025-03-19 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716709', 'tblTempVendorCDR_20' ) end [2025-03-19 16:25:20] Production.INFO: ProcessCDR(1,14716709,1,1,2) [2025-03-19 16:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716709', 'tblTempUsageDetail_20' ) start [2025-03-19 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716709', 'tblTempUsageDetail_20' ) end [2025-03-19 16:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:25:25] Production.INFO: ==10992== Releasing lock... [2025-03-19 16:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:25:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-19 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:26:05 [end_date_ymd] => 2025-03-19 16:26:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:26:05' and `end` < '2025-03-19 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-03-19 16:26:18] Production.INFO: count ==4904 [2025-03-19 16:26:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:26:05 - End Time 2025-03-19 16:26:05 [2025-03-19 16:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716714', 'tblTempUsageDetail_20' ) start [2025-03-19 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716714', 'tblTempUsageDetail_20' ) end [2025-03-19 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716714', 'tblTempVendorCDR_20' ) start [2025-03-19 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716714', 'tblTempVendorCDR_20' ) end [2025-03-19 16:26:20] Production.INFO: ProcessCDR(1,14716714,1,1,2) [2025-03-19 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716714', 'tblTempUsageDetail_20' ) start [2025-03-19 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716714', 'tblTempUsageDetail_20' ) end [2025-03-19 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:26:26] Production.INFO: ==11076== Releasing lock... [2025-03-19 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:26:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-19 16:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:27:04 [end_date_ymd] => 2025-03-19 16:27:04 [RateCDR] => 1 ) [2025-03-19 16:27: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-03-19 13:27:04' and `end` < '2025-03-19 16:27: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-03-19 16:27:18] Production.INFO: count ==4900 [2025-03-19 16:27:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:27:04 - End Time 2025-03-19 16:27:04 [2025-03-19 16:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716719', 'tblTempUsageDetail_20' ) start [2025-03-19 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716719', 'tblTempUsageDetail_20' ) end [2025-03-19 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716719', 'tblTempVendorCDR_20' ) start [2025-03-19 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716719', 'tblTempVendorCDR_20' ) end [2025-03-19 16:27:20] Production.INFO: ProcessCDR(1,14716719,1,1,2) [2025-03-19 16:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716719', 'tblTempUsageDetail_20' ) start [2025-03-19 16:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716719', 'tblTempUsageDetail_20' ) end [2025-03-19 16:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:27:25] Production.INFO: ==11201== Releasing lock... [2025-03-19 16:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:27:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-19 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:28:05 [end_date_ymd] => 2025-03-19 16:28:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:28:05' and `end` < '2025-03-19 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-03-19 16:28:18] Production.INFO: count ==4895 [2025-03-19 16:28:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:28:05 - End Time 2025-03-19 16:28:05 [2025-03-19 16:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716724', 'tblTempUsageDetail_20' ) start [2025-03-19 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716724', 'tblTempUsageDetail_20' ) end [2025-03-19 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716724', 'tblTempVendorCDR_20' ) start [2025-03-19 16:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716724', 'tblTempVendorCDR_20' ) end [2025-03-19 16:28:20] Production.INFO: ProcessCDR(1,14716724,1,1,2) [2025-03-19 16:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716724', 'tblTempUsageDetail_20' ) start [2025-03-19 16:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716724', 'tblTempUsageDetail_20' ) end [2025-03-19 16:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:28:26] Production.INFO: ==11289== Releasing lock... [2025-03-19 16:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:28:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-19 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:29:05 [end_date_ymd] => 2025-03-19 16:29:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:29:05' and `end` < '2025-03-19 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-03-19 16:29:18] Production.INFO: count ==4912 [2025-03-19 16:29:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:29:05 - End Time 2025-03-19 16:29:05 [2025-03-19 16:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716729', 'tblTempUsageDetail_20' ) start [2025-03-19 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716729', 'tblTempUsageDetail_20' ) end [2025-03-19 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716729', 'tblTempVendorCDR_20' ) start [2025-03-19 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716729', 'tblTempVendorCDR_20' ) end [2025-03-19 16:29:21] Production.INFO: ProcessCDR(1,14716729,1,1,2) [2025-03-19 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716729', 'tblTempUsageDetail_20' ) start [2025-03-19 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716729', 'tblTempUsageDetail_20' ) end [2025-03-19 16:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:29:26] Production.INFO: ==11371== Releasing lock... [2025-03-19 16:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:29:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-19 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:30:06 [end_date_ymd] => 2025-03-19 16:30:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:30:06' and `end` < '2025-03-19 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-03-19 16:30:19] Production.INFO: count ==4917 [2025-03-19 16:30:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:30:06 - End Time 2025-03-19 16:30:06 [2025-03-19 16:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716735', 'tblTempUsageDetail_20' ) start [2025-03-19 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716735', 'tblTempUsageDetail_20' ) end [2025-03-19 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716735', 'tblTempVendorCDR_20' ) start [2025-03-19 16:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716735', 'tblTempVendorCDR_20' ) end [2025-03-19 16:30:21] Production.INFO: ProcessCDR(1,14716735,1,1,2) [2025-03-19 16:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716735', 'tblTempUsageDetail_20' ) start [2025-03-19 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716735', 'tblTempUsageDetail_20' ) end [2025-03-19 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:30:27] Production.INFO: ==11461== Releasing lock... [2025-03-19 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:30:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-19 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:31:05 [end_date_ymd] => 2025-03-19 16:31:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:31:05' and `end` < '2025-03-19 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-03-19 16:31:18] Production.INFO: count ==4965 [2025-03-19 16:31:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:31:05 - End Time 2025-03-19 16:31:05 [2025-03-19 16:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716740', 'tblTempUsageDetail_20' ) start [2025-03-19 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716740', 'tblTempUsageDetail_20' ) end [2025-03-19 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716740', 'tblTempVendorCDR_20' ) start [2025-03-19 16:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716740', 'tblTempVendorCDR_20' ) end [2025-03-19 16:31:20] Production.INFO: ProcessCDR(1,14716740,1,1,2) [2025-03-19 16:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716740', 'tblTempUsageDetail_20' ) start [2025-03-19 16:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716740', 'tblTempUsageDetail_20' ) end [2025-03-19 16:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:31:25] Production.INFO: ==11547== Releasing lock... [2025-03-19 16:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:31:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:32:06 [end_date_ymd] => 2025-03-19 16:32:06 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:32:06' and `end` < '2025-03-19 16: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-03-19 16:32:19] Production.INFO: count ==4969 [2025-03-19 16:32:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:32:06 - End Time 2025-03-19 16:32:06 [2025-03-19 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716745', 'tblTempUsageDetail_20' ) start [2025-03-19 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716745', 'tblTempUsageDetail_20' ) end [2025-03-19 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716745', 'tblTempVendorCDR_20' ) start [2025-03-19 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716745', 'tblTempVendorCDR_20' ) end [2025-03-19 16:32:21] Production.INFO: ProcessCDR(1,14716745,1,1,2) [2025-03-19 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716745', 'tblTempUsageDetail_20' ) start [2025-03-19 16:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716745', 'tblTempUsageDetail_20' ) end [2025-03-19 16:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:32:25] Production.INFO: ==11628== Releasing lock... [2025-03-19 16:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:32:25] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:33:06 [end_date_ymd] => 2025-03-19 16:33:06 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:33:06' and `end` < '2025-03-19 16: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-03-19 16:33:19] Production.INFO: count ==4966 [2025-03-19 16:33:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:33:06 - End Time 2025-03-19 16:33:06 [2025-03-19 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716750', 'tblTempUsageDetail_20' ) start [2025-03-19 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716750', 'tblTempUsageDetail_20' ) end [2025-03-19 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716750', 'tblTempVendorCDR_20' ) start [2025-03-19 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716750', 'tblTempVendorCDR_20' ) end [2025-03-19 16:33:21] Production.INFO: ProcessCDR(1,14716750,1,1,2) [2025-03-19 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716750', 'tblTempUsageDetail_20' ) start [2025-03-19 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716750', 'tblTempUsageDetail_20' ) end [2025-03-19 16:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:33:26] Production.INFO: ==11710== Releasing lock... [2025-03-19 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:33:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:34:06 [end_date_ymd] => 2025-03-19 16:34:06 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:34:06' and `end` < '2025-03-19 16: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-03-19 16:34:19] Production.INFO: count ==4964 [2025-03-19 16:34:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:34:06 - End Time 2025-03-19 16:34:06 [2025-03-19 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716755', 'tblTempUsageDetail_20' ) start [2025-03-19 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716755', 'tblTempUsageDetail_20' ) end [2025-03-19 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716755', 'tblTempVendorCDR_20' ) start [2025-03-19 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716755', 'tblTempVendorCDR_20' ) end [2025-03-19 16:34:21] Production.INFO: ProcessCDR(1,14716755,1,1,2) [2025-03-19 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716755', 'tblTempUsageDetail_20' ) start [2025-03-19 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716755', 'tblTempUsageDetail_20' ) end [2025-03-19 16:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:34:26] Production.INFO: ==11785== Releasing lock... [2025-03-19 16:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:34:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:35:05 [end_date_ymd] => 2025-03-19 16:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:35:05' and `end` < '2025-03-19 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-03-19 16:35:18] Production.INFO: count ==4965 [2025-03-19 16:35:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:35:05 - End Time 2025-03-19 16:35:05 [2025-03-19 16:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716760', 'tblTempUsageDetail_20' ) start [2025-03-19 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716760', 'tblTempUsageDetail_20' ) end [2025-03-19 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716760', 'tblTempVendorCDR_20' ) start [2025-03-19 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716760', 'tblTempVendorCDR_20' ) end [2025-03-19 16:35:21] Production.INFO: ProcessCDR(1,14716760,1,1,2) [2025-03-19 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716760', 'tblTempUsageDetail_20' ) start [2025-03-19 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716760', 'tblTempUsageDetail_20' ) end [2025-03-19 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:35:26] Production.INFO: ==11865== Releasing lock... [2025-03-19 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:35:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-19 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:36:05 [end_date_ymd] => 2025-03-19 16:36:05 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:36:05' and `end` < '2025-03-19 16: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-03-19 16:36:18] Production.INFO: count ==4948 [2025-03-19 16:36:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:36:05 - End Time 2025-03-19 16:36:05 [2025-03-19 16:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716765', 'tblTempUsageDetail_20' ) start [2025-03-19 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716765', 'tblTempUsageDetail_20' ) end [2025-03-19 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716765', 'tblTempVendorCDR_20' ) start [2025-03-19 16:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716765', 'tblTempVendorCDR_20' ) end [2025-03-19 16:36:20] Production.INFO: ProcessCDR(1,14716765,1,1,2) [2025-03-19 16:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716765', 'tblTempUsageDetail_20' ) start [2025-03-19 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716765', 'tblTempUsageDetail_20' ) end [2025-03-19 16:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:36:26] Production.INFO: ==11941== Releasing lock... [2025-03-19 16:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:36:26] Production.INFO: 65 MB #Memory Used# [2025-03-19 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:37:06 [end_date_ymd] => 2025-03-19 16:37:06 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:37:06' and `end` < '2025-03-19 16: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-03-19 16:37:19] Production.INFO: count ==4928 [2025-03-19 16:37:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:37:06 - End Time 2025-03-19 16:37:06 [2025-03-19 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716770', 'tblTempUsageDetail_20' ) start [2025-03-19 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716770', 'tblTempUsageDetail_20' ) end [2025-03-19 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716770', 'tblTempVendorCDR_20' ) start [2025-03-19 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716770', 'tblTempVendorCDR_20' ) end [2025-03-19 16:37:21] Production.INFO: ProcessCDR(1,14716770,1,1,2) [2025-03-19 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716770', 'tblTempUsageDetail_20' ) start [2025-03-19 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716770', 'tblTempUsageDetail_20' ) end [2025-03-19 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:37:26] Production.INFO: ==12019== Releasing lock... [2025-03-19 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:37:26] Production.INFO: 65 MB #Memory Used# [2025-03-19 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:38:05 [end_date_ymd] => 2025-03-19 16:38:05 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:38:05' and `end` < '2025-03-19 16: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-03-19 16:38:19] Production.INFO: count ==4896 [2025-03-19 16:38:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:38:05 - End Time 2025-03-19 16:38:05 [2025-03-19 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716775', 'tblTempUsageDetail_20' ) start [2025-03-19 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716775', 'tblTempUsageDetail_20' ) end [2025-03-19 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716775', 'tblTempVendorCDR_20' ) start [2025-03-19 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716775', 'tblTempVendorCDR_20' ) end [2025-03-19 16:38:21] Production.INFO: ProcessCDR(1,14716775,1,1,2) [2025-03-19 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716775', 'tblTempUsageDetail_20' ) start [2025-03-19 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716775', 'tblTempUsageDetail_20' ) end [2025-03-19 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:38:26] Production.INFO: ==12102== Releasing lock... [2025-03-19 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:38:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-19 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:39:05 [end_date_ymd] => 2025-03-19 16:39:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:39:05' and `end` < '2025-03-19 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-03-19 16:39:19] Production.INFO: count ==4888 [2025-03-19 16:39:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:39:05 - End Time 2025-03-19 16:39:05 [2025-03-19 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716780', 'tblTempUsageDetail_20' ) start [2025-03-19 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716780', 'tblTempUsageDetail_20' ) end [2025-03-19 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716780', 'tblTempVendorCDR_20' ) start [2025-03-19 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716780', 'tblTempVendorCDR_20' ) end [2025-03-19 16:39:21] Production.INFO: ProcessCDR(1,14716780,1,1,2) [2025-03-19 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716780', 'tblTempUsageDetail_20' ) start [2025-03-19 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716780', 'tblTempUsageDetail_20' ) end [2025-03-19 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:39:26] Production.INFO: ==12182== Releasing lock... [2025-03-19 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:39:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-19 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:40:06 [end_date_ymd] => 2025-03-19 16:40:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:40:06' and `end` < '2025-03-19 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-03-19 16:40:19] Production.INFO: count ==4894 [2025-03-19 16:40:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:40:06 - End Time 2025-03-19 16:40:06 [2025-03-19 16:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716786', 'tblTempUsageDetail_20' ) start [2025-03-19 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716786', 'tblTempUsageDetail_20' ) end [2025-03-19 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716786', 'tblTempVendorCDR_20' ) start [2025-03-19 16:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716786', 'tblTempVendorCDR_20' ) end [2025-03-19 16:40:21] Production.INFO: ProcessCDR(1,14716786,1,1,2) [2025-03-19 16:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716786', 'tblTempUsageDetail_20' ) start [2025-03-19 16:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716786', 'tblTempUsageDetail_20' ) end [2025-03-19 16:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:40:26] Production.INFO: ==12258== Releasing lock... [2025-03-19 16:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:40:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-19 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:41:05 [end_date_ymd] => 2025-03-19 16:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:41:05' and `end` < '2025-03-19 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-03-19 16:41:19] Production.INFO: count ==4866 [2025-03-19 16:41:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:41:05 - End Time 2025-03-19 16:41:05 [2025-03-19 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716791', 'tblTempUsageDetail_20' ) start [2025-03-19 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716791', 'tblTempUsageDetail_20' ) end [2025-03-19 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716791', 'tblTempVendorCDR_20' ) start [2025-03-19 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716791', 'tblTempVendorCDR_20' ) end [2025-03-19 16:41:21] Production.INFO: ProcessCDR(1,14716791,1,1,2) [2025-03-19 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716791', 'tblTempUsageDetail_20' ) start [2025-03-19 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716791', 'tblTempUsageDetail_20' ) end [2025-03-19 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:41:26] Production.INFO: ==12352== Releasing lock... [2025-03-19 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:41:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-19 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:42:05 [end_date_ymd] => 2025-03-19 16:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:42:05' and `end` < '2025-03-19 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-03-19 16:42:18] Production.INFO: count ==4848 [2025-03-19 16:42:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:42:05 - End Time 2025-03-19 16:42:05 [2025-03-19 16:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716796', 'tblTempUsageDetail_20' ) start [2025-03-19 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716796', 'tblTempUsageDetail_20' ) end [2025-03-19 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716796', 'tblTempVendorCDR_20' ) start [2025-03-19 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716796', 'tblTempVendorCDR_20' ) end [2025-03-19 16:42:20] Production.INFO: ProcessCDR(1,14716796,1,1,2) [2025-03-19 16:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716796', 'tblTempUsageDetail_20' ) start [2025-03-19 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716796', 'tblTempUsageDetail_20' ) end [2025-03-19 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:42:26] Production.INFO: ==12442== Releasing lock... [2025-03-19 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:42:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-19 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:43:06 [end_date_ymd] => 2025-03-19 16:43:06 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:43:06' and `end` < '2025-03-19 16: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-03-19 16:43:20] Production.INFO: count ==4827 [2025-03-19 16:43:23] Production.ERROR: pbx CDR StartTime 2025-03-19 13:43:06 - End Time 2025-03-19 16:43:06 [2025-03-19 16:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716801', 'tblTempUsageDetail_20' ) start [2025-03-19 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716801', 'tblTempUsageDetail_20' ) end [2025-03-19 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716801', 'tblTempVendorCDR_20' ) start [2025-03-19 16:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716801', 'tblTempVendorCDR_20' ) end [2025-03-19 16:43:23] Production.INFO: ProcessCDR(1,14716801,1,1,2) [2025-03-19 16:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716801', 'tblTempUsageDetail_20' ) start [2025-03-19 16:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716801', 'tblTempUsageDetail_20' ) end [2025-03-19 16:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:43:28] Production.INFO: ==12564== Releasing lock... [2025-03-19 16:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:43:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-19 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:44:05 [end_date_ymd] => 2025-03-19 16:44:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:44:05' and `end` < '2025-03-19 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-03-19 16:44:19] Production.INFO: count ==4819 [2025-03-19 16:44:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:44:05 - End Time 2025-03-19 16:44:05 [2025-03-19 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716806', 'tblTempUsageDetail_20' ) start [2025-03-19 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716806', 'tblTempUsageDetail_20' ) end [2025-03-19 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716806', 'tblTempVendorCDR_20' ) start [2025-03-19 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716806', 'tblTempVendorCDR_20' ) end [2025-03-19 16:44:21] Production.INFO: ProcessCDR(1,14716806,1,1,2) [2025-03-19 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716806', 'tblTempUsageDetail_20' ) start [2025-03-19 16:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716806', 'tblTempUsageDetail_20' ) end [2025-03-19 16:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:44:26] Production.INFO: ==12650== Releasing lock... [2025-03-19 16:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:44:26] Production.INFO: 64 MB #Memory Used# [2025-03-19 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:45:06 [end_date_ymd] => 2025-03-19 16:45:06 [RateCDR] => 1 ) [2025-03-19 16:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 13:45:06' and `end` < '2025-03-19 16:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 16:45:19] Production.INFO: count ==4792 [2025-03-19 16:45:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:45:06 - End Time 2025-03-19 16:45:06 [2025-03-19 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716811', 'tblTempUsageDetail_20' ) start [2025-03-19 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716811', 'tblTempUsageDetail_20' ) end [2025-03-19 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716811', 'tblTempVendorCDR_20' ) start [2025-03-19 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716811', 'tblTempVendorCDR_20' ) end [2025-03-19 16:45:22] Production.INFO: ProcessCDR(1,14716811,1,1,2) [2025-03-19 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716811', 'tblTempUsageDetail_20' ) start [2025-03-19 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716811', 'tblTempUsageDetail_20' ) end [2025-03-19 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:45:27] Production.INFO: ==12741== Releasing lock... [2025-03-19 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:45:27] Production.INFO: 64 MB #Memory Used# [2025-03-19 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:46:05 [end_date_ymd] => 2025-03-19 16:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:46:05' and `end` < '2025-03-19 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-03-19 16:46:19] Production.INFO: count ==4756 [2025-03-19 16:46:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:46:05 - End Time 2025-03-19 16:46:05 [2025-03-19 16:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716816', 'tblTempUsageDetail_20' ) start [2025-03-19 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716816', 'tblTempUsageDetail_20' ) end [2025-03-19 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716816', 'tblTempVendorCDR_20' ) start [2025-03-19 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716816', 'tblTempVendorCDR_20' ) end [2025-03-19 16:46:21] Production.INFO: ProcessCDR(1,14716816,1,1,2) [2025-03-19 16:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716816', 'tblTempUsageDetail_20' ) start [2025-03-19 16:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716816', 'tblTempUsageDetail_20' ) end [2025-03-19 16:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:46:26] Production.INFO: ==12822== Releasing lock... [2025-03-19 16:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:46:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-19 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:47:05 [end_date_ymd] => 2025-03-19 16:47:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:47:05' and `end` < '2025-03-19 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-03-19 16:47:18] Production.INFO: count ==4756 [2025-03-19 16:47:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:47:05 - End Time 2025-03-19 16:47:05 [2025-03-19 16:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716821', 'tblTempUsageDetail_20' ) start [2025-03-19 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716821', 'tblTempUsageDetail_20' ) end [2025-03-19 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716821', 'tblTempVendorCDR_20' ) start [2025-03-19 16:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716821', 'tblTempVendorCDR_20' ) end [2025-03-19 16:47:20] Production.INFO: ProcessCDR(1,14716821,1,1,2) [2025-03-19 16:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716821', 'tblTempUsageDetail_20' ) start [2025-03-19 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716821', 'tblTempUsageDetail_20' ) end [2025-03-19 16:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:47:25] Production.INFO: ==12908== Releasing lock... [2025-03-19 16:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:47:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-19 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:48:06 [end_date_ymd] => 2025-03-19 16:48:06 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:48:06' and `end` < '2025-03-19 16: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-03-19 16:48:19] Production.INFO: count ==4760 [2025-03-19 16:48:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:48:06 - End Time 2025-03-19 16:48:06 [2025-03-19 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716826', 'tblTempUsageDetail_20' ) start [2025-03-19 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716826', 'tblTempUsageDetail_20' ) end [2025-03-19 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716826', 'tblTempVendorCDR_20' ) start [2025-03-19 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716826', 'tblTempVendorCDR_20' ) end [2025-03-19 16:48:21] Production.INFO: ProcessCDR(1,14716826,1,1,2) [2025-03-19 16:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716826', 'tblTempUsageDetail_20' ) start [2025-03-19 16:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716826', 'tblTempUsageDetail_20' ) end [2025-03-19 16:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:48:26] Production.INFO: ==12995== Releasing lock... [2025-03-19 16:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:48:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-19 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:49:05 [end_date_ymd] => 2025-03-19 16:49:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:49:05' and `end` < '2025-03-19 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-03-19 16:49:18] Production.INFO: count ==4765 [2025-03-19 16:49:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:49:05 - End Time 2025-03-19 16:49:05 [2025-03-19 16:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716831', 'tblTempUsageDetail_20' ) start [2025-03-19 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716831', 'tblTempUsageDetail_20' ) end [2025-03-19 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716831', 'tblTempVendorCDR_20' ) start [2025-03-19 16:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716831', 'tblTempVendorCDR_20' ) end [2025-03-19 16:49:20] Production.INFO: ProcessCDR(1,14716831,1,1,2) [2025-03-19 16:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716831', 'tblTempUsageDetail_20' ) start [2025-03-19 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716831', 'tblTempUsageDetail_20' ) end [2025-03-19 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:49:26] Production.INFO: ==13084== Releasing lock... [2025-03-19 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:49:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-19 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:50:06 [end_date_ymd] => 2025-03-19 16:50:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:50:06' and `end` < '2025-03-19 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-03-19 16:50:19] Production.INFO: count ==4783 [2025-03-19 16:50:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:50:06 - End Time 2025-03-19 16:50:06 [2025-03-19 16:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716837', 'tblTempUsageDetail_20' ) start [2025-03-19 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716837', 'tblTempUsageDetail_20' ) end [2025-03-19 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716837', 'tblTempVendorCDR_20' ) start [2025-03-19 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716837', 'tblTempVendorCDR_20' ) end [2025-03-19 16:50:21] Production.INFO: ProcessCDR(1,14716837,1,1,2) [2025-03-19 16:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716837', 'tblTempUsageDetail_20' ) start [2025-03-19 16:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716837', 'tblTempUsageDetail_20' ) end [2025-03-19 16:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:50:26] Production.INFO: ==13176== Releasing lock... [2025-03-19 16:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:50:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-19 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:51:05 [end_date_ymd] => 2025-03-19 16:51:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:51:05' and `end` < '2025-03-19 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-03-19 16:51:18] Production.INFO: count ==4816 [2025-03-19 16:51:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:51:05 - End Time 2025-03-19 16:51:05 [2025-03-19 16:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716842', 'tblTempUsageDetail_20' ) start [2025-03-19 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716842', 'tblTempUsageDetail_20' ) end [2025-03-19 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716842', 'tblTempVendorCDR_20' ) start [2025-03-19 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716842', 'tblTempVendorCDR_20' ) end [2025-03-19 16:51:20] Production.INFO: ProcessCDR(1,14716842,1,1,2) [2025-03-19 16:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716842', 'tblTempUsageDetail_20' ) start [2025-03-19 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716842', 'tblTempUsageDetail_20' ) end [2025-03-19 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:51:26] Production.INFO: ==13259== Releasing lock... [2025-03-19 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:51:26] Production.INFO: 64 MB #Memory Used# [2025-03-19 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:52:06 [end_date_ymd] => 2025-03-19 16:52:06 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:52:06' and `end` < '2025-03-19 16: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-03-19 16:52:19] Production.INFO: count ==4830 [2025-03-19 16:52:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:52:06 - End Time 2025-03-19 16:52:06 [2025-03-19 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716847', 'tblTempUsageDetail_20' ) start [2025-03-19 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716847', 'tblTempUsageDetail_20' ) end [2025-03-19 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716847', 'tblTempVendorCDR_20' ) start [2025-03-19 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716847', 'tblTempVendorCDR_20' ) end [2025-03-19 16:52:21] Production.INFO: ProcessCDR(1,14716847,1,1,2) [2025-03-19 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716847', 'tblTempUsageDetail_20' ) start [2025-03-19 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716847', 'tblTempUsageDetail_20' ) end [2025-03-19 16:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:52:26] Production.INFO: ==13347== Releasing lock... [2025-03-19 16:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:52:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-19 16:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:53:04 [end_date_ymd] => 2025-03-19 16:53:04 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:53:04' and `end` < '2025-03-19 16: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-03-19 16:53:18] Production.INFO: count ==4817 [2025-03-19 16:53:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:53:04 - End Time 2025-03-19 16:53:04 [2025-03-19 16:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716852', 'tblTempUsageDetail_20' ) start [2025-03-19 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716852', 'tblTempUsageDetail_20' ) end [2025-03-19 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716852', 'tblTempVendorCDR_20' ) start [2025-03-19 16:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716852', 'tblTempVendorCDR_20' ) end [2025-03-19 16:53:20] Production.INFO: ProcessCDR(1,14716852,1,1,2) [2025-03-19 16:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716852', 'tblTempUsageDetail_20' ) start [2025-03-19 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716852', 'tblTempUsageDetail_20' ) end [2025-03-19 16:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:53:25] Production.INFO: ==13433== Releasing lock... [2025-03-19 16:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:53:25] Production.INFO: 64 MB #Memory Used# [2025-03-19 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:54:05 [end_date_ymd] => 2025-03-19 16:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:54:05' and `end` < '2025-03-19 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-03-19 16:54:19] Production.INFO: count ==4828 [2025-03-19 16:54:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:54:05 - End Time 2025-03-19 16:54:05 [2025-03-19 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716857', 'tblTempUsageDetail_20' ) start [2025-03-19 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716857', 'tblTempUsageDetail_20' ) end [2025-03-19 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716857', 'tblTempVendorCDR_20' ) start [2025-03-19 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716857', 'tblTempVendorCDR_20' ) end [2025-03-19 16:54:21] Production.INFO: ProcessCDR(1,14716857,1,1,2) [2025-03-19 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716857', 'tblTempUsageDetail_20' ) start [2025-03-19 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716857', 'tblTempUsageDetail_20' ) end [2025-03-19 16:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:54:26] Production.INFO: ==13527== Releasing lock... [2025-03-19 16:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:54:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-19 16:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:55:04 [end_date_ymd] => 2025-03-19 16:55:04 [RateCDR] => 1 ) [2025-03-19 16:55: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-03-19 13:55:04' and `end` < '2025-03-19 16:55: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-03-19 16:55:18] Production.INFO: count ==4837 [2025-03-19 16:55:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:55:04 - End Time 2025-03-19 16:55:04 [2025-03-19 16:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716862', 'tblTempUsageDetail_20' ) start [2025-03-19 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716862', 'tblTempUsageDetail_20' ) end [2025-03-19 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716862', 'tblTempVendorCDR_20' ) start [2025-03-19 16:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716862', 'tblTempVendorCDR_20' ) end [2025-03-19 16:55:20] Production.INFO: ProcessCDR(1,14716862,1,1,2) [2025-03-19 16:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716862', 'tblTempUsageDetail_20' ) start [2025-03-19 16:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716862', 'tblTempUsageDetail_20' ) end [2025-03-19 16:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:55:25] Production.INFO: ==13615== Releasing lock... [2025-03-19 16:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:55:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-19 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:56:05 [end_date_ymd] => 2025-03-19 16:56:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:56:05' and `end` < '2025-03-19 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-03-19 16:56:18] Production.INFO: count ==4828 [2025-03-19 16:56:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:56:05 - End Time 2025-03-19 16:56:05 [2025-03-19 16:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716867', 'tblTempUsageDetail_20' ) start [2025-03-19 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716867', 'tblTempUsageDetail_20' ) end [2025-03-19 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716867', 'tblTempVendorCDR_20' ) start [2025-03-19 16:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716867', 'tblTempVendorCDR_20' ) end [2025-03-19 16:56:20] Production.INFO: ProcessCDR(1,14716867,1,1,2) [2025-03-19 16:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716867', 'tblTempUsageDetail_20' ) start [2025-03-19 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716867', 'tblTempUsageDetail_20' ) end [2025-03-19 16:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:56:23] Production.INFO: ==13704== Releasing lock... [2025-03-19 16:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:56:23] Production.INFO: 64.25 MB #Memory Used# [2025-03-19 16:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:57:04 [end_date_ymd] => 2025-03-19 16:57:04 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:57:04' and `end` < '2025-03-19 16: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-03-19 16:57:18] Production.INFO: count ==4815 [2025-03-19 16:57:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:57:04 - End Time 2025-03-19 16:57:04 [2025-03-19 16:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716872', 'tblTempUsageDetail_20' ) start [2025-03-19 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716872', 'tblTempUsageDetail_20' ) end [2025-03-19 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716872', 'tblTempVendorCDR_20' ) start [2025-03-19 16:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716872', 'tblTempVendorCDR_20' ) end [2025-03-19 16:57:20] Production.INFO: ProcessCDR(1,14716872,1,1,2) [2025-03-19 16:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716872', 'tblTempUsageDetail_20' ) start [2025-03-19 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716872', 'tblTempUsageDetail_20' ) end [2025-03-19 16:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:57:23] Production.INFO: ==13787== Releasing lock... [2025-03-19 16:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:57:23] Production.INFO: 64 MB #Memory Used# [2025-03-19 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:58:06 [end_date_ymd] => 2025-03-19 16:58:06 [RateCDR] => 1 ) [2025-03-19 16: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-03-19 13:58:06' and `end` < '2025-03-19 16: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-03-19 16:58:19] Production.INFO: count ==4820 [2025-03-19 16:58:21] Production.ERROR: pbx CDR StartTime 2025-03-19 13:58:06 - End Time 2025-03-19 16:58:06 [2025-03-19 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716877', 'tblTempUsageDetail_20' ) start [2025-03-19 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716877', 'tblTempUsageDetail_20' ) end [2025-03-19 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716877', 'tblTempVendorCDR_20' ) start [2025-03-19 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716877', 'tblTempVendorCDR_20' ) end [2025-03-19 16:58:21] Production.INFO: ProcessCDR(1,14716877,1,1,2) [2025-03-19 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716877', 'tblTempUsageDetail_20' ) start [2025-03-19 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716877', 'tblTempUsageDetail_20' ) end [2025-03-19 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:58:26] Production.INFO: ==13914== Releasing lock... [2025-03-19 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:58:26] Production.INFO: 64 MB #Memory Used# [2025-03-19 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 13:59:05 [end_date_ymd] => 2025-03-19 16:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 13:59:05' and `end` < '2025-03-19 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-03-19 16:59:18] Production.INFO: count ==4806 [2025-03-19 16:59:20] Production.ERROR: pbx CDR StartTime 2025-03-19 13:59:05 - End Time 2025-03-19 16:59:05 [2025-03-19 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716882', 'tblTempUsageDetail_20' ) start [2025-03-19 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716882', 'tblTempUsageDetail_20' ) end [2025-03-19 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716882', 'tblTempVendorCDR_20' ) start [2025-03-19 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716882', 'tblTempVendorCDR_20' ) end [2025-03-19 16:59:20] Production.INFO: ProcessCDR(1,14716882,1,1,2) [2025-03-19 16:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716882', 'tblTempUsageDetail_20' ) start [2025-03-19 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716882', 'tblTempUsageDetail_20' ) end [2025-03-19 16:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 16:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 16:59:25] Production.INFO: ==13997== Releasing lock... [2025-03-19 16:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 16:59:25] Production.INFO: 64 MB #Memory Used# [2025-03-19 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:00:05 [end_date_ymd] => 2025-03-19 17:00:05 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:00:05' and `end` < '2025-03-19 17: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-03-19 17:00:19] Production.INFO: count ==4802 [2025-03-19 17:00:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:00:05 - End Time 2025-03-19 17:00:05 [2025-03-19 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716887', 'tblTempUsageDetail_20' ) start [2025-03-19 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716887', 'tblTempUsageDetail_20' ) end [2025-03-19 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716887', 'tblTempVendorCDR_20' ) start [2025-03-19 17:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716887', 'tblTempVendorCDR_20' ) end [2025-03-19 17:00:21] Production.INFO: ProcessCDR(1,14716887,1,1,2) [2025-03-19 17:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716887', 'tblTempUsageDetail_20' ) start [2025-03-19 17:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716887', 'tblTempUsageDetail_20' ) end [2025-03-19 17:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:00:25] Production.INFO: ==14089== Releasing lock... [2025-03-19 17:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:00:25] Production.INFO: 64 MB #Memory Used# [2025-03-19 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:01:05 [end_date_ymd] => 2025-03-19 17:01:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:01:05' and `end` < '2025-03-19 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-03-19 17:01:18] Production.INFO: count ==4824 [2025-03-19 17:01:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:01:05 - End Time 2025-03-19 17:01:05 [2025-03-19 17:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716893', 'tblTempUsageDetail_20' ) start [2025-03-19 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716893', 'tblTempUsageDetail_20' ) end [2025-03-19 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716893', 'tblTempVendorCDR_20' ) start [2025-03-19 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716893', 'tblTempVendorCDR_20' ) end [2025-03-19 17:01:21] Production.INFO: ProcessCDR(1,14716893,1,1,2) [2025-03-19 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716893', 'tblTempUsageDetail_20' ) start [2025-03-19 17:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716893', 'tblTempUsageDetail_20' ) end [2025-03-19 17:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:01:24] Production.INFO: ==14191== Releasing lock... [2025-03-19 17:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:01:24] Production.INFO: 64.25 MB #Memory Used# [2025-03-19 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:02:06 [end_date_ymd] => 2025-03-19 17:02:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:02:06' and `end` < '2025-03-19 17: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-03-19 17:02:19] Production.INFO: count ==4810 [2025-03-19 17:02:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:02:06 - End Time 2025-03-19 17:02:06 [2025-03-19 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716898', 'tblTempUsageDetail_20' ) start [2025-03-19 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716898', 'tblTempUsageDetail_20' ) end [2025-03-19 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716898', 'tblTempVendorCDR_20' ) start [2025-03-19 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716898', 'tblTempVendorCDR_20' ) end [2025-03-19 17:02:21] Production.INFO: ProcessCDR(1,14716898,1,1,2) [2025-03-19 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716898', 'tblTempUsageDetail_20' ) start [2025-03-19 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716898', 'tblTempUsageDetail_20' ) end [2025-03-19 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:02:26] Production.INFO: ==14272== Releasing lock... [2025-03-19 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:02:26] Production.INFO: 64 MB #Memory Used# [2025-03-19 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:03:06 [end_date_ymd] => 2025-03-19 17:03:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:03:06' and `end` < '2025-03-19 17: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-03-19 17:03:19] Production.INFO: count ==4799 [2025-03-19 17:03:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:03:06 - End Time 2025-03-19 17:03:06 [2025-03-19 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716903', 'tblTempUsageDetail_20' ) start [2025-03-19 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716903', 'tblTempUsageDetail_20' ) end [2025-03-19 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716903', 'tblTempVendorCDR_20' ) start [2025-03-19 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716903', 'tblTempVendorCDR_20' ) end [2025-03-19 17:03:21] Production.INFO: ProcessCDR(1,14716903,1,1,2) [2025-03-19 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716903', 'tblTempUsageDetail_20' ) start [2025-03-19 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716903', 'tblTempUsageDetail_20' ) end [2025-03-19 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:03:26] Production.INFO: ==14359== Releasing lock... [2025-03-19 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:03:26] Production.INFO: 64 MB #Memory Used# [2025-03-19 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:04:05 [end_date_ymd] => 2025-03-19 17:04:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:04:05' and `end` < '2025-03-19 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-03-19 17:04:19] Production.INFO: count ==4798 [2025-03-19 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:04:05 - End Time 2025-03-19 17:04:05 [2025-03-19 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716908', 'tblTempUsageDetail_20' ) start [2025-03-19 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716908', 'tblTempUsageDetail_20' ) end [2025-03-19 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716908', 'tblTempVendorCDR_20' ) start [2025-03-19 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716908', 'tblTempVendorCDR_20' ) end [2025-03-19 17:04:21] Production.INFO: ProcessCDR(1,14716908,1,1,2) [2025-03-19 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716908', 'tblTempUsageDetail_20' ) start [2025-03-19 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716908', 'tblTempUsageDetail_20' ) end [2025-03-19 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:04:26] Production.INFO: ==14446== Releasing lock... [2025-03-19 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:04:26] Production.INFO: 64 MB #Memory Used# [2025-03-19 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:05:06 [end_date_ymd] => 2025-03-19 17:05:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:05:06' and `end` < '2025-03-19 17: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-03-19 17:05:19] Production.INFO: count ==4807 [2025-03-19 17:05:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:05:06 - End Time 2025-03-19 17:05:06 [2025-03-19 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716913', 'tblTempUsageDetail_20' ) start [2025-03-19 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716913', 'tblTempUsageDetail_20' ) end [2025-03-19 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716913', 'tblTempVendorCDR_20' ) start [2025-03-19 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716913', 'tblTempVendorCDR_20' ) end [2025-03-19 17:05:21] Production.INFO: ProcessCDR(1,14716913,1,1,2) [2025-03-19 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716913', 'tblTempUsageDetail_20' ) start [2025-03-19 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716913', 'tblTempUsageDetail_20' ) end [2025-03-19 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:05:26] Production.INFO: ==14535== Releasing lock... [2025-03-19 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:05:26] Production.INFO: 64 MB #Memory Used# [2025-03-19 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:06:05 [end_date_ymd] => 2025-03-19 17:06:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:06:05' and `end` < '2025-03-19 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-03-19 17:06:18] Production.INFO: count ==4780 [2025-03-19 17:06:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:06:05 - End Time 2025-03-19 17:06:05 [2025-03-19 17:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716918', 'tblTempUsageDetail_20' ) start [2025-03-19 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716918', 'tblTempUsageDetail_20' ) end [2025-03-19 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716918', 'tblTempVendorCDR_20' ) start [2025-03-19 17:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716918', 'tblTempVendorCDR_20' ) end [2025-03-19 17:06:20] Production.INFO: ProcessCDR(1,14716918,1,1,2) [2025-03-19 17:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716918', 'tblTempUsageDetail_20' ) start [2025-03-19 17:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716918', 'tblTempUsageDetail_20' ) end [2025-03-19 17:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:06:25] Production.INFO: ==14626== Releasing lock... [2025-03-19 17:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:06:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-19 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:07:06 [end_date_ymd] => 2025-03-19 17:07:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:07:06' and `end` < '2025-03-19 17: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-03-19 17:07:19] Production.INFO: count ==4786 [2025-03-19 17:07:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:07:06 - End Time 2025-03-19 17:07:06 [2025-03-19 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716923', 'tblTempUsageDetail_20' ) start [2025-03-19 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716923', 'tblTempUsageDetail_20' ) end [2025-03-19 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716923', 'tblTempVendorCDR_20' ) start [2025-03-19 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716923', 'tblTempVendorCDR_20' ) end [2025-03-19 17:07:21] Production.INFO: ProcessCDR(1,14716923,1,1,2) [2025-03-19 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716923', 'tblTempUsageDetail_20' ) start [2025-03-19 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716923', 'tblTempUsageDetail_20' ) end [2025-03-19 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:07:26] Production.INFO: ==14717== Releasing lock... [2025-03-19 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:07:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-19 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:08:05 [end_date_ymd] => 2025-03-19 17:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:08:05' and `end` < '2025-03-19 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-03-19 17:08:18] Production.INFO: count ==4777 [2025-03-19 17:08:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:08:05 - End Time 2025-03-19 17:08:05 [2025-03-19 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716928', 'tblTempUsageDetail_20' ) start [2025-03-19 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716928', 'tblTempUsageDetail_20' ) end [2025-03-19 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716928', 'tblTempVendorCDR_20' ) start [2025-03-19 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716928', 'tblTempVendorCDR_20' ) end [2025-03-19 17:08:20] Production.INFO: ProcessCDR(1,14716928,1,1,2) [2025-03-19 17:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716928', 'tblTempUsageDetail_20' ) start [2025-03-19 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716928', 'tblTempUsageDetail_20' ) end [2025-03-19 17:08:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:08:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:08:25] Production.INFO: ==14826== Releasing lock... [2025-03-19 17:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:08:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-19 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:09:06 [end_date_ymd] => 2025-03-19 17:09:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:09:06' and `end` < '2025-03-19 17: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-03-19 17:09:19] Production.INFO: count ==4759 [2025-03-19 17:09:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:09:06 - End Time 2025-03-19 17:09:06 [2025-03-19 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716933', 'tblTempUsageDetail_20' ) start [2025-03-19 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716933', 'tblTempUsageDetail_20' ) end [2025-03-19 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716933', 'tblTempVendorCDR_20' ) start [2025-03-19 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716933', 'tblTempVendorCDR_20' ) end [2025-03-19 17:09:21] Production.INFO: ProcessCDR(1,14716933,1,1,2) [2025-03-19 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716933', 'tblTempUsageDetail_20' ) start [2025-03-19 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716933', 'tblTempUsageDetail_20' ) end [2025-03-19 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:09:26] Production.INFO: ==14924== Releasing lock... [2025-03-19 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:09:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-19 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:10:06 [end_date_ymd] => 2025-03-19 17:10:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:10:06' and `end` < '2025-03-19 17: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-03-19 17:10:19] Production.INFO: count ==4760 [2025-03-19 17:10:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:10:06 - End Time 2025-03-19 17:10:06 [2025-03-19 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716939', 'tblTempUsageDetail_20' ) start [2025-03-19 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716939', 'tblTempUsageDetail_20' ) end [2025-03-19 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716939', 'tblTempVendorCDR_20' ) start [2025-03-19 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716939', 'tblTempVendorCDR_20' ) end [2025-03-19 17:10:21] Production.INFO: ProcessCDR(1,14716939,1,1,2) [2025-03-19 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716939', 'tblTempUsageDetail_20' ) start [2025-03-19 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716939', 'tblTempUsageDetail_20' ) end [2025-03-19 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:10:26] Production.INFO: ==15011== Releasing lock... [2025-03-19 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:10:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-19 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:11:05 [end_date_ymd] => 2025-03-19 17:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:11:05' and `end` < '2025-03-19 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-03-19 17:11:19] Production.INFO: count ==4727 [2025-03-19 17:11:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:11:05 - End Time 2025-03-19 17:11:05 [2025-03-19 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716944', 'tblTempUsageDetail_20' ) start [2025-03-19 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716944', 'tblTempUsageDetail_20' ) end [2025-03-19 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716944', 'tblTempVendorCDR_20' ) start [2025-03-19 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716944', 'tblTempVendorCDR_20' ) end [2025-03-19 17:11:21] Production.INFO: ProcessCDR(1,14716944,1,1,2) [2025-03-19 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716944', 'tblTempUsageDetail_20' ) start [2025-03-19 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716944', 'tblTempUsageDetail_20' ) end [2025-03-19 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:11:26] Production.INFO: ==15105== Releasing lock... [2025-03-19 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:11:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-19 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:12:05 [end_date_ymd] => 2025-03-19 17:12:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:12:05' and `end` < '2025-03-19 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-03-19 17:12:18] Production.INFO: count ==4732 [2025-03-19 17:12:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:12:05 - End Time 2025-03-19 17:12:05 [2025-03-19 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716949', 'tblTempUsageDetail_20' ) start [2025-03-19 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716949', 'tblTempUsageDetail_20' ) end [2025-03-19 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716949', 'tblTempVendorCDR_20' ) start [2025-03-19 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716949', 'tblTempVendorCDR_20' ) end [2025-03-19 17:12:20] Production.INFO: ProcessCDR(1,14716949,1,1,2) [2025-03-19 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716949', 'tblTempUsageDetail_20' ) start [2025-03-19 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716949', 'tblTempUsageDetail_20' ) end [2025-03-19 17:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:12:24] Production.INFO: ==15189== Releasing lock... [2025-03-19 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:12:24] Production.INFO: 63.5 MB #Memory Used# [2025-03-19 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:13:05 [end_date_ymd] => 2025-03-19 17:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:13:05' and `end` < '2025-03-19 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-03-19 17:13:18] Production.INFO: count ==4729 [2025-03-19 17:13:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:13:05 - End Time 2025-03-19 17:13:05 [2025-03-19 17:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716954', 'tblTempUsageDetail_20' ) start [2025-03-19 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716954', 'tblTempUsageDetail_20' ) end [2025-03-19 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716954', 'tblTempVendorCDR_20' ) start [2025-03-19 17:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716954', 'tblTempVendorCDR_20' ) end [2025-03-19 17:13:20] Production.INFO: ProcessCDR(1,14716954,1,1,2) [2025-03-19 17:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716954', 'tblTempUsageDetail_20' ) start [2025-03-19 17:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716954', 'tblTempUsageDetail_20' ) end [2025-03-19 17:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:13:25] Production.INFO: ==15310== Releasing lock... [2025-03-19 17:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:13:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-19 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:14:05 [end_date_ymd] => 2025-03-19 17:14:05 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:14:05' and `end` < '2025-03-19 17: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-03-19 17:14:18] Production.INFO: count ==4733 [2025-03-19 17:14:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:14:05 - End Time 2025-03-19 17:14:05 [2025-03-19 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716959', 'tblTempUsageDetail_20' ) start [2025-03-19 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716959', 'tblTempUsageDetail_20' ) end [2025-03-19 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716959', 'tblTempVendorCDR_20' ) start [2025-03-19 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716959', 'tblTempVendorCDR_20' ) end [2025-03-19 17:14:20] Production.INFO: ProcessCDR(1,14716959,1,1,2) [2025-03-19 17:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716959', 'tblTempUsageDetail_20' ) start [2025-03-19 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716959', 'tblTempUsageDetail_20' ) end [2025-03-19 17:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:14:25] Production.INFO: ==15396== Releasing lock... [2025-03-19 17:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:14:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-19 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:15:05 [end_date_ymd] => 2025-03-19 17:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:15:05' and `end` < '2025-03-19 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-03-19 17:15:18] Production.INFO: count ==4729 [2025-03-19 17:15:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:15:05 - End Time 2025-03-19 17:15:05 [2025-03-19 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716964', 'tblTempUsageDetail_20' ) start [2025-03-19 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716964', 'tblTempUsageDetail_20' ) end [2025-03-19 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716964', 'tblTempVendorCDR_20' ) start [2025-03-19 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716964', 'tblTempVendorCDR_20' ) end [2025-03-19 17:15:20] Production.INFO: ProcessCDR(1,14716964,1,1,2) [2025-03-19 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716964', 'tblTempUsageDetail_20' ) start [2025-03-19 17:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716964', 'tblTempUsageDetail_20' ) end [2025-03-19 17:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:15:24] Production.INFO: ==15484== Releasing lock... [2025-03-19 17:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:15:24] Production.INFO: 63.5 MB #Memory Used# [2025-03-19 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:16:05 [end_date_ymd] => 2025-03-19 17:16:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:16:05' and `end` < '2025-03-19 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-03-19 17:16:19] Production.INFO: count ==4718 [2025-03-19 17:16:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:16:05 - End Time 2025-03-19 17:16:05 [2025-03-19 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716969', 'tblTempUsageDetail_20' ) start [2025-03-19 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716969', 'tblTempUsageDetail_20' ) end [2025-03-19 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716969', 'tblTempVendorCDR_20' ) start [2025-03-19 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716969', 'tblTempVendorCDR_20' ) end [2025-03-19 17:16:21] Production.INFO: ProcessCDR(1,14716969,1,1,2) [2025-03-19 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716969', 'tblTempUsageDetail_20' ) start [2025-03-19 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716969', 'tblTempUsageDetail_20' ) end [2025-03-19 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:16:26] Production.INFO: ==15568== Releasing lock... [2025-03-19 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:16:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-19 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:17:05 [end_date_ymd] => 2025-03-19 17:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:17:05' and `end` < '2025-03-19 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-03-19 17:17:18] Production.INFO: count ==4724 [2025-03-19 17:17:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:17:05 - End Time 2025-03-19 17:17:05 [2025-03-19 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716974', 'tblTempUsageDetail_20' ) start [2025-03-19 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716974', 'tblTempUsageDetail_20' ) end [2025-03-19 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716974', 'tblTempVendorCDR_20' ) start [2025-03-19 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716974', 'tblTempVendorCDR_20' ) end [2025-03-19 17:17:21] Production.INFO: ProcessCDR(1,14716974,1,1,2) [2025-03-19 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716974', 'tblTempUsageDetail_20' ) start [2025-03-19 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716974', 'tblTempUsageDetail_20' ) end [2025-03-19 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:17:26] Production.INFO: ==15650== Releasing lock... [2025-03-19 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:17:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-19 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:18:05 [end_date_ymd] => 2025-03-19 17:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:18:05' and `end` < '2025-03-19 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-03-19 17:18:18] Production.INFO: count ==4706 [2025-03-19 17:18:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:18:05 - End Time 2025-03-19 17:18:05 [2025-03-19 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716979', 'tblTempUsageDetail_20' ) start [2025-03-19 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716979', 'tblTempUsageDetail_20' ) end [2025-03-19 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716979', 'tblTempVendorCDR_20' ) start [2025-03-19 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716979', 'tblTempVendorCDR_20' ) end [2025-03-19 17:18:20] Production.INFO: ProcessCDR(1,14716979,1,1,2) [2025-03-19 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716979', 'tblTempUsageDetail_20' ) start [2025-03-19 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716979', 'tblTempUsageDetail_20' ) end [2025-03-19 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:18:26] Production.INFO: ==15749== Releasing lock... [2025-03-19 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:18:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-19 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:19:05 [end_date_ymd] => 2025-03-19 17:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:19:05' and `end` < '2025-03-19 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-03-19 17:19:18] Production.INFO: count ==4706 [2025-03-19 17:19:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:19:05 - End Time 2025-03-19 17:19:05 [2025-03-19 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716984', 'tblTempUsageDetail_20' ) start [2025-03-19 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716984', 'tblTempUsageDetail_20' ) end [2025-03-19 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716984', 'tblTempVendorCDR_20' ) start [2025-03-19 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716984', 'tblTempVendorCDR_20' ) end [2025-03-19 17:19:21] Production.INFO: ProcessCDR(1,14716984,1,1,2) [2025-03-19 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716984', 'tblTempUsageDetail_20' ) start [2025-03-19 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716984', 'tblTempUsageDetail_20' ) end [2025-03-19 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:19:26] Production.INFO: ==15844== Releasing lock... [2025-03-19 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:19:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-19 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:20:06 [end_date_ymd] => 2025-03-19 17:20:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:20:06' and `end` < '2025-03-19 17: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-03-19 17:20:19] Production.INFO: count ==4703 [2025-03-19 17:20:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:20:06 - End Time 2025-03-19 17:20:06 [2025-03-19 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716990', 'tblTempUsageDetail_20' ) start [2025-03-19 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716990', 'tblTempUsageDetail_20' ) end [2025-03-19 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716990', 'tblTempVendorCDR_20' ) start [2025-03-19 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716990', 'tblTempVendorCDR_20' ) end [2025-03-19 17:20:21] Production.INFO: ProcessCDR(1,14716990,1,1,2) [2025-03-19 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716990', 'tblTempUsageDetail_20' ) start [2025-03-19 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716990', 'tblTempUsageDetail_20' ) end [2025-03-19 17:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:20:26] Production.INFO: ==15932== Releasing lock... [2025-03-19 17:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:20:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-19 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:21:05 [end_date_ymd] => 2025-03-19 17:21:05 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:21:05' and `end` < '2025-03-19 17: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-03-19 17:21:18] Production.INFO: count ==4623 [2025-03-19 17:21:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:21:05 - End Time 2025-03-19 17:21:05 [2025-03-19 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716995', 'tblTempUsageDetail_20' ) start [2025-03-19 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14716995', 'tblTempUsageDetail_20' ) end [2025-03-19 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716995', 'tblTempVendorCDR_20' ) start [2025-03-19 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14716995', 'tblTempVendorCDR_20' ) end [2025-03-19 17:21:20] Production.INFO: ProcessCDR(1,14716995,1,1,2) [2025-03-19 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14716995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14716995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14716995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14716995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716995', 'tblTempUsageDetail_20' ) start [2025-03-19 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14716995', 'tblTempUsageDetail_20' ) end [2025-03-19 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:21:25] Production.INFO: ==16032== Releasing lock... [2025-03-19 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:21:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-19 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:22:06 [end_date_ymd] => 2025-03-19 17:22:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:22:06' and `end` < '2025-03-19 17: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-03-19 17:22:19] Production.INFO: count ==4640 [2025-03-19 17:22:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:22:06 - End Time 2025-03-19 17:22:06 [2025-03-19 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717000', 'tblTempUsageDetail_20' ) start [2025-03-19 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717000', 'tblTempUsageDetail_20' ) end [2025-03-19 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717000', 'tblTempVendorCDR_20' ) start [2025-03-19 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717000', 'tblTempVendorCDR_20' ) end [2025-03-19 17:22:21] Production.INFO: ProcessCDR(1,14717000,1,1,2) [2025-03-19 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717000', 'tblTempUsageDetail_20' ) start [2025-03-19 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717000', 'tblTempUsageDetail_20' ) end [2025-03-19 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:22:26] Production.INFO: ==16127== Releasing lock... [2025-03-19 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:22:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-19 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:23:05 [end_date_ymd] => 2025-03-19 17:23:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:23:05' and `end` < '2025-03-19 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-03-19 17:23:18] Production.INFO: count ==4637 [2025-03-19 17:23:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:23:05 - End Time 2025-03-19 17:23:05 [2025-03-19 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717005', 'tblTempUsageDetail_20' ) start [2025-03-19 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717005', 'tblTempUsageDetail_20' ) end [2025-03-19 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717005', 'tblTempVendorCDR_20' ) start [2025-03-19 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717005', 'tblTempVendorCDR_20' ) end [2025-03-19 17:23:20] Production.INFO: ProcessCDR(1,14717005,1,1,2) [2025-03-19 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717005', 'tblTempUsageDetail_20' ) start [2025-03-19 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717005', 'tblTempUsageDetail_20' ) end [2025-03-19 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:23:25] Production.INFO: ==16217== Releasing lock... [2025-03-19 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:23:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-19 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:24:06 [end_date_ymd] => 2025-03-19 17:24:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:24:06' and `end` < '2025-03-19 17: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-03-19 17:24:19] Production.INFO: count ==4620 [2025-03-19 17:24:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:24:06 - End Time 2025-03-19 17:24:06 [2025-03-19 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717010', 'tblTempUsageDetail_20' ) start [2025-03-19 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717010', 'tblTempUsageDetail_20' ) end [2025-03-19 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717010', 'tblTempVendorCDR_20' ) start [2025-03-19 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717010', 'tblTempVendorCDR_20' ) end [2025-03-19 17:24:21] Production.INFO: ProcessCDR(1,14717010,1,1,2) [2025-03-19 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717010', 'tblTempUsageDetail_20' ) start [2025-03-19 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717010', 'tblTempUsageDetail_20' ) end [2025-03-19 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:24:26] Production.INFO: ==16311== Releasing lock... [2025-03-19 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:24:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-19 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:25:05 [end_date_ymd] => 2025-03-19 17:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:25:05' and `end` < '2025-03-19 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-03-19 17:25:18] Production.INFO: count ==4622 [2025-03-19 17:25:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:25:05 - End Time 2025-03-19 17:25:05 [2025-03-19 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717015', 'tblTempUsageDetail_20' ) start [2025-03-19 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717015', 'tblTempUsageDetail_20' ) end [2025-03-19 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717015', 'tblTempVendorCDR_20' ) start [2025-03-19 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717015', 'tblTempVendorCDR_20' ) end [2025-03-19 17:25:20] Production.INFO: ProcessCDR(1,14717015,1,1,2) [2025-03-19 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717015', 'tblTempUsageDetail_20' ) start [2025-03-19 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717015', 'tblTempUsageDetail_20' ) end [2025-03-19 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:25:25] Production.INFO: ==16397== Releasing lock... [2025-03-19 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:25:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-19 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:26:06 [end_date_ymd] => 2025-03-19 17:26:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:26:06' and `end` < '2025-03-19 17: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-03-19 17:26:19] Production.INFO: count ==4603 [2025-03-19 17:26:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:26:06 - End Time 2025-03-19 17:26:06 [2025-03-19 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717020', 'tblTempUsageDetail_20' ) start [2025-03-19 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717020', 'tblTempUsageDetail_20' ) end [2025-03-19 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717020', 'tblTempVendorCDR_20' ) start [2025-03-19 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717020', 'tblTempVendorCDR_20' ) end [2025-03-19 17:26:21] Production.INFO: ProcessCDR(1,14717020,1,1,2) [2025-03-19 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717020', 'tblTempUsageDetail_20' ) start [2025-03-19 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717020', 'tblTempUsageDetail_20' ) end [2025-03-19 17:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:26:26] Production.INFO: ==16492== Releasing lock... [2025-03-19 17:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:26:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-19 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:27:05 [end_date_ymd] => 2025-03-19 17:27:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:27:05' and `end` < '2025-03-19 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-03-19 17:27:18] Production.INFO: count ==4602 [2025-03-19 17:27:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:27:05 - End Time 2025-03-19 17:27:05 [2025-03-19 17:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717025', 'tblTempUsageDetail_20' ) start [2025-03-19 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717025', 'tblTempUsageDetail_20' ) end [2025-03-19 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717025', 'tblTempVendorCDR_20' ) start [2025-03-19 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717025', 'tblTempVendorCDR_20' ) end [2025-03-19 17:27:20] Production.INFO: ProcessCDR(1,14717025,1,1,2) [2025-03-19 17:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717025', 'tblTempUsageDetail_20' ) start [2025-03-19 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717025', 'tblTempUsageDetail_20' ) end [2025-03-19 17:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:27:25] Production.INFO: ==16585== Releasing lock... [2025-03-19 17:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:27:25] Production.INFO: 62.5 MB #Memory Used# [2025-03-19 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:28:05 [end_date_ymd] => 2025-03-19 17:28:05 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:28:05' and `end` < '2025-03-19 17: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-03-19 17:28:18] Production.INFO: count ==4590 [2025-03-19 17:28:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:28:05 - End Time 2025-03-19 17:28:05 [2025-03-19 17:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717030', 'tblTempUsageDetail_20' ) start [2025-03-19 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717030', 'tblTempUsageDetail_20' ) end [2025-03-19 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717030', 'tblTempVendorCDR_20' ) start [2025-03-19 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717030', 'tblTempVendorCDR_20' ) end [2025-03-19 17:28:20] Production.INFO: ProcessCDR(1,14717030,1,1,2) [2025-03-19 17:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717030', 'tblTempUsageDetail_20' ) start [2025-03-19 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717030', 'tblTempUsageDetail_20' ) end [2025-03-19 17:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:28:25] Production.INFO: ==16678== Releasing lock... [2025-03-19 17:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:28:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-19 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:29:05 [end_date_ymd] => 2025-03-19 17:29:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:29:05' and `end` < '2025-03-19 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-03-19 17:29:18] Production.INFO: count ==4571 [2025-03-19 17:29:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:29:05 - End Time 2025-03-19 17:29:05 [2025-03-19 17:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717035', 'tblTempUsageDetail_20' ) start [2025-03-19 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717035', 'tblTempUsageDetail_20' ) end [2025-03-19 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717035', 'tblTempVendorCDR_20' ) start [2025-03-19 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717035', 'tblTempVendorCDR_20' ) end [2025-03-19 17:29:20] Production.INFO: ProcessCDR(1,14717035,1,1,2) [2025-03-19 17:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717035', 'tblTempUsageDetail_20' ) start [2025-03-19 17:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717035', 'tblTempUsageDetail_20' ) end [2025-03-19 17:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:29:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:29:23] Production.INFO: ==16802== Releasing lock... [2025-03-19 17:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:29:23] Production.INFO: 62.25 MB #Memory Used# [2025-03-19 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:30:06 [end_date_ymd] => 2025-03-19 17:30:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:30:06' and `end` < '2025-03-19 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-03-19 17:30:19] Production.INFO: count ==4539 [2025-03-19 17:30:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:30:06 - End Time 2025-03-19 17:30:06 [2025-03-19 17:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717041', 'tblTempUsageDetail_20' ) start [2025-03-19 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717041', 'tblTempUsageDetail_20' ) end [2025-03-19 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717041', 'tblTempVendorCDR_20' ) start [2025-03-19 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717041', 'tblTempVendorCDR_20' ) end [2025-03-19 17:30:21] Production.INFO: ProcessCDR(1,14717041,1,1,2) [2025-03-19 17:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717041', 'tblTempUsageDetail_20' ) start [2025-03-19 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717041', 'tblTempUsageDetail_20' ) end [2025-03-19 17:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:30:27] Production.INFO: ==16891== Releasing lock... [2025-03-19 17:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:30:27] Production.INFO: 62 MB #Memory Used# [2025-03-19 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:31:05 [end_date_ymd] => 2025-03-19 17:31:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:31:05' and `end` < '2025-03-19 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-03-19 17:31:18] Production.INFO: count ==4449 [2025-03-19 17:31:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:31:05 - End Time 2025-03-19 17:31:05 [2025-03-19 17:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717046', 'tblTempUsageDetail_20' ) start [2025-03-19 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717046', 'tblTempUsageDetail_20' ) end [2025-03-19 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717046', 'tblTempVendorCDR_20' ) start [2025-03-19 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717046', 'tblTempVendorCDR_20' ) end [2025-03-19 17:31:20] Production.INFO: ProcessCDR(1,14717046,1,1,2) [2025-03-19 17:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717046', 'tblTempUsageDetail_20' ) start [2025-03-19 17:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717046', 'tblTempUsageDetail_20' ) end [2025-03-19 17:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:31:23] Production.INFO: ==16981== Releasing lock... [2025-03-19 17:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:31:23] Production.INFO: 61.25 MB #Memory Used# [2025-03-19 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:32:05 [end_date_ymd] => 2025-03-19 17:32:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:32:05' and `end` < '2025-03-19 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-03-19 17:32:18] Production.INFO: count ==4424 [2025-03-19 17:32:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:32:05 - End Time 2025-03-19 17:32:05 [2025-03-19 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717051', 'tblTempUsageDetail_20' ) start [2025-03-19 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717051', 'tblTempUsageDetail_20' ) end [2025-03-19 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717051', 'tblTempVendorCDR_20' ) start [2025-03-19 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717051', 'tblTempVendorCDR_20' ) end [2025-03-19 17:32:20] Production.INFO: ProcessCDR(1,14717051,1,1,2) [2025-03-19 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717051', 'tblTempUsageDetail_20' ) start [2025-03-19 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717051', 'tblTempUsageDetail_20' ) end [2025-03-19 17:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:32:24] Production.INFO: ==17066== Releasing lock... [2025-03-19 17:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:32:24] Production.INFO: 61 MB #Memory Used# [2025-03-19 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:33:05 [end_date_ymd] => 2025-03-19 17:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:33:05' and `end` < '2025-03-19 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-03-19 17:33:18] Production.INFO: count ==4419 [2025-03-19 17:33:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:33:05 - End Time 2025-03-19 17:33:05 [2025-03-19 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717056', 'tblTempUsageDetail_20' ) start [2025-03-19 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717056', 'tblTempUsageDetail_20' ) end [2025-03-19 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717056', 'tblTempVendorCDR_20' ) start [2025-03-19 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717056', 'tblTempVendorCDR_20' ) end [2025-03-19 17:33:20] Production.INFO: ProcessCDR(1,14717056,1,1,2) [2025-03-19 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717056', 'tblTempUsageDetail_20' ) start [2025-03-19 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717056', 'tblTempUsageDetail_20' ) end [2025-03-19 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:33:25] Production.INFO: ==17158== Releasing lock... [2025-03-19 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:33:25] Production.INFO: 61 MB #Memory Used# [2025-03-19 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:34:05 [end_date_ymd] => 2025-03-19 17:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:34:05' and `end` < '2025-03-19 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-03-19 17:34:18] Production.INFO: count ==4406 [2025-03-19 17:34:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:34:05 - End Time 2025-03-19 17:34:05 [2025-03-19 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717061', 'tblTempUsageDetail_20' ) start [2025-03-19 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717061', 'tblTempUsageDetail_20' ) end [2025-03-19 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717061', 'tblTempVendorCDR_20' ) start [2025-03-19 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717061', 'tblTempVendorCDR_20' ) end [2025-03-19 17:34:20] Production.INFO: ProcessCDR(1,14717061,1,1,2) [2025-03-19 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717061', 'tblTempUsageDetail_20' ) start [2025-03-19 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717061', 'tblTempUsageDetail_20' ) end [2025-03-19 17:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:34:25] Production.INFO: ==17257== Releasing lock... [2025-03-19 17:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:34:25] Production.INFO: 61 MB #Memory Used# [2025-03-19 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:35:06 [end_date_ymd] => 2025-03-19 17:35:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:35:06' and `end` < '2025-03-19 17: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-03-19 17:35:19] Production.INFO: count ==4391 [2025-03-19 17:35:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:35:06 - End Time 2025-03-19 17:35:06 [2025-03-19 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717066', 'tblTempUsageDetail_20' ) start [2025-03-19 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717066', 'tblTempUsageDetail_20' ) end [2025-03-19 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717066', 'tblTempVendorCDR_20' ) start [2025-03-19 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717066', 'tblTempVendorCDR_20' ) end [2025-03-19 17:35:21] Production.INFO: ProcessCDR(1,14717066,1,1,2) [2025-03-19 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717066', 'tblTempUsageDetail_20' ) start [2025-03-19 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717066', 'tblTempUsageDetail_20' ) end [2025-03-19 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:35:26] Production.INFO: ==17341== Releasing lock... [2025-03-19 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:35:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-19 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:36:05 [end_date_ymd] => 2025-03-19 17:36:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:36:05' and `end` < '2025-03-19 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-03-19 17:36:18] Production.INFO: count ==4373 [2025-03-19 17:36:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:36:05 - End Time 2025-03-19 17:36:05 [2025-03-19 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717071', 'tblTempUsageDetail_20' ) start [2025-03-19 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717071', 'tblTempUsageDetail_20' ) end [2025-03-19 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717071', 'tblTempVendorCDR_20' ) start [2025-03-19 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717071', 'tblTempVendorCDR_20' ) end [2025-03-19 17:36:20] Production.INFO: ProcessCDR(1,14717071,1,1,2) [2025-03-19 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717071', 'tblTempUsageDetail_20' ) start [2025-03-19 17:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717071', 'tblTempUsageDetail_20' ) end [2025-03-19 17:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:36:25] Production.INFO: ==17425== Releasing lock... [2025-03-19 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:36:25] Production.INFO: 61 MB #Memory Used# [2025-03-19 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:37:06 [end_date_ymd] => 2025-03-19 17:37:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:37:06' and `end` < '2025-03-19 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-03-19 17:37:19] Production.INFO: count ==4359 [2025-03-19 17:37:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:37:06 - End Time 2025-03-19 17:37:06 [2025-03-19 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717076', 'tblTempUsageDetail_20' ) start [2025-03-19 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717076', 'tblTempUsageDetail_20' ) end [2025-03-19 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717076', 'tblTempVendorCDR_20' ) start [2025-03-19 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717076', 'tblTempVendorCDR_20' ) end [2025-03-19 17:37:21] Production.INFO: ProcessCDR(1,14717076,1,1,2) [2025-03-19 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717076', 'tblTempUsageDetail_20' ) start [2025-03-19 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717076', 'tblTempUsageDetail_20' ) end [2025-03-19 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:37:26] Production.INFO: ==17513== Releasing lock... [2025-03-19 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:37:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-19 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:38:05 [end_date_ymd] => 2025-03-19 17:38:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:38:05' and `end` < '2025-03-19 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-03-19 17:38:18] Production.INFO: count ==4352 [2025-03-19 17:38:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:38:05 - End Time 2025-03-19 17:38:05 [2025-03-19 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717081', 'tblTempUsageDetail_20' ) start [2025-03-19 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717081', 'tblTempUsageDetail_20' ) end [2025-03-19 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717081', 'tblTempVendorCDR_20' ) start [2025-03-19 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717081', 'tblTempVendorCDR_20' ) end [2025-03-19 17:38:20] Production.INFO: ProcessCDR(1,14717081,1,1,2) [2025-03-19 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717081', 'tblTempUsageDetail_20' ) start [2025-03-19 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717081', 'tblTempUsageDetail_20' ) end [2025-03-19 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:38:25] Production.INFO: ==17598== Releasing lock... [2025-03-19 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:38:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-19 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:39:06 [end_date_ymd] => 2025-03-19 17:39:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:39:06' and `end` < '2025-03-19 17: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-03-19 17:39:19] Production.INFO: count ==4373 [2025-03-19 17:39:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:39:06 - End Time 2025-03-19 17:39:06 [2025-03-19 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717086', 'tblTempUsageDetail_20' ) start [2025-03-19 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717086', 'tblTempUsageDetail_20' ) end [2025-03-19 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717086', 'tblTempVendorCDR_20' ) start [2025-03-19 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717086', 'tblTempVendorCDR_20' ) end [2025-03-19 17:39:21] Production.INFO: ProcessCDR(1,14717086,1,1,2) [2025-03-19 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717086', 'tblTempUsageDetail_20' ) start [2025-03-19 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717086', 'tblTempUsageDetail_20' ) end [2025-03-19 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:39:26] Production.INFO: ==17687== Releasing lock... [2025-03-19 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:39:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-19 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:40:06 [end_date_ymd] => 2025-03-19 17:40:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:40:06' and `end` < '2025-03-19 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-03-19 17:40:19] Production.INFO: count ==4373 [2025-03-19 17:40:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:40:06 - End Time 2025-03-19 17:40:06 [2025-03-19 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717092', 'tblTempUsageDetail_20' ) start [2025-03-19 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717092', 'tblTempUsageDetail_20' ) end [2025-03-19 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717092', 'tblTempVendorCDR_20' ) start [2025-03-19 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717092', 'tblTempVendorCDR_20' ) end [2025-03-19 17:40:21] Production.INFO: ProcessCDR(1,14717092,1,1,2) [2025-03-19 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717092', 'tblTempUsageDetail_20' ) start [2025-03-19 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717092', 'tblTempUsageDetail_20' ) end [2025-03-19 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:40:26] Production.INFO: ==17777== Releasing lock... [2025-03-19 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:40:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-19 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:41:06 [end_date_ymd] => 2025-03-19 17:41:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:41:06' and `end` < '2025-03-19 17: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-03-19 17:41:19] Production.INFO: count ==4331 [2025-03-19 17:41:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:41:06 - End Time 2025-03-19 17:41:06 [2025-03-19 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717097', 'tblTempUsageDetail_20' ) start [2025-03-19 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717097', 'tblTempUsageDetail_20' ) end [2025-03-19 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717097', 'tblTempVendorCDR_20' ) start [2025-03-19 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717097', 'tblTempVendorCDR_20' ) end [2025-03-19 17:41:20] Production.INFO: ProcessCDR(1,14717097,1,1,2) [2025-03-19 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717097', 'tblTempUsageDetail_20' ) start [2025-03-19 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717097', 'tblTempUsageDetail_20' ) end [2025-03-19 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:41:26] Production.INFO: ==17867== Releasing lock... [2025-03-19 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:41:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-19 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:42:06 [end_date_ymd] => 2025-03-19 17:42:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:42:06' and `end` < '2025-03-19 17: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-03-19 17:42:19] Production.INFO: count ==4325 [2025-03-19 17:42:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:42:06 - End Time 2025-03-19 17:42:06 [2025-03-19 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717102', 'tblTempUsageDetail_20' ) start [2025-03-19 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717102', 'tblTempUsageDetail_20' ) end [2025-03-19 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717102', 'tblTempVendorCDR_20' ) start [2025-03-19 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717102', 'tblTempVendorCDR_20' ) end [2025-03-19 17:42:21] Production.INFO: ProcessCDR(1,14717102,1,1,2) [2025-03-19 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717102', 'tblTempUsageDetail_20' ) start [2025-03-19 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717102', 'tblTempUsageDetail_20' ) end [2025-03-19 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:42:26] Production.INFO: ==17953== Releasing lock... [2025-03-19 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:42:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-19 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:43:06 [end_date_ymd] => 2025-03-19 17:43:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:43:06' and `end` < '2025-03-19 17: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-03-19 17:43:19] Production.INFO: count ==4307 [2025-03-19 17:43:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:43:06 - End Time 2025-03-19 17:43:06 [2025-03-19 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717107', 'tblTempUsageDetail_20' ) start [2025-03-19 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717107', 'tblTempUsageDetail_20' ) end [2025-03-19 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717107', 'tblTempVendorCDR_20' ) start [2025-03-19 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717107', 'tblTempVendorCDR_20' ) end [2025-03-19 17:43:20] Production.INFO: ProcessCDR(1,14717107,1,1,2) [2025-03-19 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717107', 'tblTempUsageDetail_20' ) start [2025-03-19 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717107', 'tblTempUsageDetail_20' ) end [2025-03-19 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:43:26] Production.INFO: ==18037== Releasing lock... [2025-03-19 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:43:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-19 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:44:05 [end_date_ymd] => 2025-03-19 17:44:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:44:05' and `end` < '2025-03-19 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-03-19 17:44:18] Production.INFO: count ==4305 [2025-03-19 17:44:19] Production.ERROR: pbx CDR StartTime 2025-03-19 14:44:05 - End Time 2025-03-19 17:44:05 [2025-03-19 17:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717112', 'tblTempUsageDetail_20' ) start [2025-03-19 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717112', 'tblTempUsageDetail_20' ) end [2025-03-19 17:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717112', 'tblTempVendorCDR_20' ) start [2025-03-19 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717112', 'tblTempVendorCDR_20' ) end [2025-03-19 17:44:20] Production.INFO: ProcessCDR(1,14717112,1,1,2) [2025-03-19 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717112', 'tblTempUsageDetail_20' ) start [2025-03-19 17:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717112', 'tblTempUsageDetail_20' ) end [2025-03-19 17:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:44:24] Production.INFO: ==18163== Releasing lock... [2025-03-19 17:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:44:24] Production.INFO: 60.25 MB #Memory Used# [2025-03-19 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:45:06 [end_date_ymd] => 2025-03-19 17:45:06 [RateCDR] => 1 ) [2025-03-19 17:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 14:45:06' and `end` < '2025-03-19 17:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 17:45:19] Production.INFO: count ==4285 [2025-03-19 17:45:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:45:06 - End Time 2025-03-19 17:45:06 [2025-03-19 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717117', 'tblTempUsageDetail_20' ) start [2025-03-19 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717117', 'tblTempUsageDetail_20' ) end [2025-03-19 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717117', 'tblTempVendorCDR_20' ) start [2025-03-19 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717117', 'tblTempVendorCDR_20' ) end [2025-03-19 17:45:20] Production.INFO: ProcessCDR(1,14717117,1,1,2) [2025-03-19 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717117', 'tblTempUsageDetail_20' ) start [2025-03-19 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717117', 'tblTempUsageDetail_20' ) end [2025-03-19 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:45:25] Production.INFO: ==18249== Releasing lock... [2025-03-19 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:45:25] Production.INFO: 60 MB #Memory Used# [2025-03-19 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:46:05 [end_date_ymd] => 2025-03-19 17:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:46:05' and `end` < '2025-03-19 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-03-19 17:46:18] Production.INFO: count ==4292 [2025-03-19 17:46:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:46:05 - End Time 2025-03-19 17:46:05 [2025-03-19 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717122', 'tblTempUsageDetail_20' ) start [2025-03-19 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717122', 'tblTempUsageDetail_20' ) end [2025-03-19 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717122', 'tblTempVendorCDR_20' ) start [2025-03-19 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717122', 'tblTempVendorCDR_20' ) end [2025-03-19 17:46:20] Production.INFO: ProcessCDR(1,14717122,1,1,2) [2025-03-19 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717122', 'tblTempUsageDetail_20' ) start [2025-03-19 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717122', 'tblTempUsageDetail_20' ) end [2025-03-19 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:46:25] Production.INFO: ==18333== Releasing lock... [2025-03-19 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:46:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-19 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:47:06 [end_date_ymd] => 2025-03-19 17:47:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:47:06' and `end` < '2025-03-19 17: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-03-19 17:47:19] Production.INFO: count ==4303 [2025-03-19 17:47:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:47:06 - End Time 2025-03-19 17:47:06 [2025-03-19 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717127', 'tblTempUsageDetail_20' ) start [2025-03-19 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717127', 'tblTempUsageDetail_20' ) end [2025-03-19 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717127', 'tblTempVendorCDR_20' ) start [2025-03-19 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717127', 'tblTempVendorCDR_20' ) end [2025-03-19 17:47:20] Production.INFO: ProcessCDR(1,14717127,1,1,2) [2025-03-19 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717127', 'tblTempUsageDetail_20' ) start [2025-03-19 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717127', 'tblTempUsageDetail_20' ) end [2025-03-19 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:47:25] Production.INFO: ==18426== Releasing lock... [2025-03-19 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:47:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-19 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:48:05 [end_date_ymd] => 2025-03-19 17:48:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:48:05' and `end` < '2025-03-19 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-03-19 17:48:18] Production.INFO: count ==4284 [2025-03-19 17:48:19] Production.ERROR: pbx CDR StartTime 2025-03-19 14:48:05 - End Time 2025-03-19 17:48:05 [2025-03-19 17:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717132', 'tblTempUsageDetail_20' ) start [2025-03-19 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717132', 'tblTempUsageDetail_20' ) end [2025-03-19 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717132', 'tblTempVendorCDR_20' ) start [2025-03-19 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717132', 'tblTempVendorCDR_20' ) end [2025-03-19 17:48:20] Production.INFO: ProcessCDR(1,14717132,1,1,2) [2025-03-19 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717132', 'tblTempUsageDetail_20' ) start [2025-03-19 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717132', 'tblTempUsageDetail_20' ) end [2025-03-19 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:48:25] Production.INFO: ==18512== Releasing lock... [2025-03-19 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:48:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-19 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:49:05 [end_date_ymd] => 2025-03-19 17:49:05 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:49:05' and `end` < '2025-03-19 17: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-03-19 17:49:18] Production.INFO: count ==4262 [2025-03-19 17:49:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:49:05 - End Time 2025-03-19 17:49:05 [2025-03-19 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717137', 'tblTempUsageDetail_20' ) start [2025-03-19 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717137', 'tblTempUsageDetail_20' ) end [2025-03-19 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717137', 'tblTempVendorCDR_20' ) start [2025-03-19 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717137', 'tblTempVendorCDR_20' ) end [2025-03-19 17:49:20] Production.INFO: ProcessCDR(1,14717137,1,1,2) [2025-03-19 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717137', 'tblTempUsageDetail_20' ) start [2025-03-19 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717137', 'tblTempUsageDetail_20' ) end [2025-03-19 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:49:25] Production.INFO: ==18604== Releasing lock... [2025-03-19 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:49:25] Production.INFO: 60 MB #Memory Used# [2025-03-19 17:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:50:07 [end_date_ymd] => 2025-03-19 17:50:07 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:50:07' and `end` < '2025-03-19 17: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-03-19 17:50:20] Production.INFO: count ==4235 [2025-03-19 17:50:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:50:07 - End Time 2025-03-19 17:50:07 [2025-03-19 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717143', 'tblTempUsageDetail_20' ) start [2025-03-19 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717143', 'tblTempUsageDetail_20' ) end [2025-03-19 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717143', 'tblTempVendorCDR_20' ) start [2025-03-19 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717143', 'tblTempVendorCDR_20' ) end [2025-03-19 17:50:21] Production.INFO: ProcessCDR(1,14717143,1,1,2) [2025-03-19 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717143', 'tblTempUsageDetail_20' ) start [2025-03-19 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717143', 'tblTempUsageDetail_20' ) end [2025-03-19 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:50:27] Production.INFO: ==18690== Releasing lock... [2025-03-19 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:50:27] Production.INFO: 60 MB #Memory Used# [2025-03-19 17:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:51:06 [end_date_ymd] => 2025-03-19 17:51:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:51:06' and `end` < '2025-03-19 17: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-03-19 17:51:19] Production.INFO: count ==4186 [2025-03-19 17:51:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:51:06 - End Time 2025-03-19 17:51:06 [2025-03-19 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717148', 'tblTempUsageDetail_20' ) start [2025-03-19 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717148', 'tblTempUsageDetail_20' ) end [2025-03-19 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717148', 'tblTempVendorCDR_20' ) start [2025-03-19 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717148', 'tblTempVendorCDR_20' ) end [2025-03-19 17:51:21] Production.INFO: ProcessCDR(1,14717148,1,1,2) [2025-03-19 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717148', 'tblTempUsageDetail_20' ) start [2025-03-19 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717148', 'tblTempUsageDetail_20' ) end [2025-03-19 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:51:26] Production.INFO: ==18778== Releasing lock... [2025-03-19 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:51:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-19 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:52:05 [end_date_ymd] => 2025-03-19 17:52:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:52:05' and `end` < '2025-03-19 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-03-19 17:52:18] Production.INFO: count ==4157 [2025-03-19 17:52:19] Production.ERROR: pbx CDR StartTime 2025-03-19 14:52:05 - End Time 2025-03-19 17:52:05 [2025-03-19 17:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717153', 'tblTempUsageDetail_20' ) start [2025-03-19 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717153', 'tblTempUsageDetail_20' ) end [2025-03-19 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717153', 'tblTempVendorCDR_20' ) start [2025-03-19 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717153', 'tblTempVendorCDR_20' ) end [2025-03-19 17:52:20] Production.INFO: ProcessCDR(1,14717153,1,1,2) [2025-03-19 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717153', 'tblTempUsageDetail_20' ) start [2025-03-19 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717153', 'tblTempUsageDetail_20' ) end [2025-03-19 17:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:52:25] Production.INFO: ==18863== Releasing lock... [2025-03-19 17:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:52:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-19 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:53:05 [end_date_ymd] => 2025-03-19 17:53:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:53:05' and `end` < '2025-03-19 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-03-19 17:53:18] Production.INFO: count ==4140 [2025-03-19 17:53:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:53:05 - End Time 2025-03-19 17:53:05 [2025-03-19 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717158', 'tblTempUsageDetail_20' ) start [2025-03-19 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717158', 'tblTempUsageDetail_20' ) end [2025-03-19 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717158', 'tblTempVendorCDR_20' ) start [2025-03-19 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717158', 'tblTempVendorCDR_20' ) end [2025-03-19 17:53:20] Production.INFO: ProcessCDR(1,14717158,1,1,2) [2025-03-19 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717158', 'tblTempUsageDetail_20' ) start [2025-03-19 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717158', 'tblTempUsageDetail_20' ) end [2025-03-19 17:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:53:23] Production.INFO: ==18954== Releasing lock... [2025-03-19 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:53:23] Production.INFO: 59 MB #Memory Used# [2025-03-19 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:54:05 [end_date_ymd] => 2025-03-19 17:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:54:05' and `end` < '2025-03-19 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-03-19 17:54:18] Production.INFO: count ==4103 [2025-03-19 17:54:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:54:05 - End Time 2025-03-19 17:54:05 [2025-03-19 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717163', 'tblTempUsageDetail_20' ) start [2025-03-19 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717163', 'tblTempUsageDetail_20' ) end [2025-03-19 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717163', 'tblTempVendorCDR_20' ) start [2025-03-19 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717163', 'tblTempVendorCDR_20' ) end [2025-03-19 17:54:20] Production.INFO: ProcessCDR(1,14717163,1,1,2) [2025-03-19 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717163', 'tblTempUsageDetail_20' ) start [2025-03-19 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717163', 'tblTempUsageDetail_20' ) end [2025-03-19 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:54:25] Production.INFO: ==19036== Releasing lock... [2025-03-19 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:54:25] Production.INFO: 59 MB #Memory Used# [2025-03-19 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:55:06 [end_date_ymd] => 2025-03-19 17:55:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:55:06' and `end` < '2025-03-19 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-03-19 17:55:19] Production.INFO: count ==4074 [2025-03-19 17:55:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:55:06 - End Time 2025-03-19 17:55:06 [2025-03-19 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717168', 'tblTempUsageDetail_20' ) start [2025-03-19 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717168', 'tblTempUsageDetail_20' ) end [2025-03-19 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717168', 'tblTempVendorCDR_20' ) start [2025-03-19 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717168', 'tblTempVendorCDR_20' ) end [2025-03-19 17:55:21] Production.INFO: ProcessCDR(1,14717168,1,1,2) [2025-03-19 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717168', 'tblTempUsageDetail_20' ) start [2025-03-19 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717168', 'tblTempUsageDetail_20' ) end [2025-03-19 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:55:26] Production.INFO: ==19131== Releasing lock... [2025-03-19 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:55:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-19 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:56:06 [end_date_ymd] => 2025-03-19 17:56:06 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:56:06' and `end` < '2025-03-19 17: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-03-19 17:56:19] Production.INFO: count ==4058 [2025-03-19 17:56:21] Production.ERROR: pbx CDR StartTime 2025-03-19 14:56:06 - End Time 2025-03-19 17:56:06 [2025-03-19 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717173', 'tblTempUsageDetail_20' ) start [2025-03-19 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717173', 'tblTempUsageDetail_20' ) end [2025-03-19 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717173', 'tblTempVendorCDR_20' ) start [2025-03-19 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717173', 'tblTempVendorCDR_20' ) end [2025-03-19 17:56:21] Production.INFO: ProcessCDR(1,14717173,1,1,2) [2025-03-19 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717173', 'tblTempUsageDetail_20' ) start [2025-03-19 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717173', 'tblTempUsageDetail_20' ) end [2025-03-19 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:56:24] Production.INFO: ==19219== Releasing lock... [2025-03-19 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:56:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-19 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:57:05 [end_date_ymd] => 2025-03-19 17:57:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:57:05' and `end` < '2025-03-19 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-03-19 17:57:18] Production.INFO: count ==4062 [2025-03-19 17:57:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:57:05 - End Time 2025-03-19 17:57:05 [2025-03-19 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717178', 'tblTempUsageDetail_20' ) start [2025-03-19 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717178', 'tblTempUsageDetail_20' ) end [2025-03-19 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717178', 'tblTempVendorCDR_20' ) start [2025-03-19 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717178', 'tblTempVendorCDR_20' ) end [2025-03-19 17:57:20] Production.INFO: ProcessCDR(1,14717178,1,1,2) [2025-03-19 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717178', 'tblTempUsageDetail_20' ) start [2025-03-19 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717178', 'tblTempUsageDetail_20' ) end [2025-03-19 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:57:25] Production.INFO: ==19302== Releasing lock... [2025-03-19 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:57:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-19 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:58:05 [end_date_ymd] => 2025-03-19 17:58:05 [RateCDR] => 1 ) [2025-03-19 17: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-03-19 14:58:05' and `end` < '2025-03-19 17: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-03-19 17:58:18] Production.INFO: count ==4083 [2025-03-19 17:58:20] Production.ERROR: pbx CDR StartTime 2025-03-19 14:58:05 - End Time 2025-03-19 17:58:05 [2025-03-19 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717183', 'tblTempUsageDetail_20' ) start [2025-03-19 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717183', 'tblTempUsageDetail_20' ) end [2025-03-19 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717183', 'tblTempVendorCDR_20' ) start [2025-03-19 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717183', 'tblTempVendorCDR_20' ) end [2025-03-19 17:58:20] Production.INFO: ProcessCDR(1,14717183,1,1,2) [2025-03-19 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717183', 'tblTempUsageDetail_20' ) start [2025-03-19 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717183', 'tblTempUsageDetail_20' ) end [2025-03-19 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:58:26] Production.INFO: ==19392== Releasing lock... [2025-03-19 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:58:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-19 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 14:59:05 [end_date_ymd] => 2025-03-19 17:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 14:59:05' and `end` < '2025-03-19 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-03-19 17:59:18] Production.INFO: count ==4092 [2025-03-19 17:59:19] Production.ERROR: pbx CDR StartTime 2025-03-19 14:59:05 - End Time 2025-03-19 17:59:05 [2025-03-19 17:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 17:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717188', 'tblTempUsageDetail_20' ) start [2025-03-19 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717188', 'tblTempUsageDetail_20' ) end [2025-03-19 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717188', 'tblTempVendorCDR_20' ) start [2025-03-19 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717188', 'tblTempVendorCDR_20' ) end [2025-03-19 17:59:20] Production.INFO: ProcessCDR(1,14717188,1,1,2) [2025-03-19 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717188', 'tblTempUsageDetail_20' ) start [2025-03-19 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717188', 'tblTempUsageDetail_20' ) end [2025-03-19 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 17:59:25] Production.INFO: ==19481== Releasing lock... [2025-03-19 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 17:59:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-19 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:00:06 [end_date_ymd] => 2025-03-19 18:00:06 [RateCDR] => 1 ) [2025-03-19 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 15:00:06' and `end` < '2025-03-19 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 18:00:19] Production.INFO: count ==4080 [2025-03-19 18:00:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:00:06 - End Time 2025-03-19 18:00:06 [2025-03-19 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717193', 'tblTempUsageDetail_20' ) start [2025-03-19 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717193', 'tblTempUsageDetail_20' ) end [2025-03-19 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717193', 'tblTempVendorCDR_20' ) start [2025-03-19 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717193', 'tblTempVendorCDR_20' ) end [2025-03-19 18:00:20] Production.INFO: ProcessCDR(1,14717193,1,1,2) [2025-03-19 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717193', 'tblTempUsageDetail_20' ) start [2025-03-19 18:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717193', 'tblTempUsageDetail_20' ) end [2025-03-19 18:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:00:24] Production.INFO: ==19609== Releasing lock... [2025-03-19 18:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:00:24] Production.INFO: 58.5 MB #Memory Used# [2025-03-19 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:01:05 [end_date_ymd] => 2025-03-19 18:01:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:01:05' and `end` < '2025-03-19 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-03-19 18:01:18] Production.INFO: count ==4014 [2025-03-19 18:01:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:01:05 - End Time 2025-03-19 18:01:05 [2025-03-19 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717199', 'tblTempUsageDetail_20' ) start [2025-03-19 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717199', 'tblTempUsageDetail_20' ) end [2025-03-19 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717199', 'tblTempVendorCDR_20' ) start [2025-03-19 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717199', 'tblTempVendorCDR_20' ) end [2025-03-19 18:01:20] Production.INFO: ProcessCDR(1,14717199,1,1,2) [2025-03-19 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717199', 'tblTempUsageDetail_20' ) start [2025-03-19 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717199', 'tblTempUsageDetail_20' ) end [2025-03-19 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:01:25] Production.INFO: ==19709== Releasing lock... [2025-03-19 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:01:25] Production.INFO: 58 MB #Memory Used# [2025-03-19 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:02:06 [end_date_ymd] => 2025-03-19 18:02:06 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:02:06' and `end` < '2025-03-19 18: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-03-19 18:02:19] Production.INFO: count ==4005 [2025-03-19 18:02:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:02:06 - End Time 2025-03-19 18:02:06 [2025-03-19 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717204', 'tblTempUsageDetail_20' ) start [2025-03-19 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717204', 'tblTempUsageDetail_20' ) end [2025-03-19 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717204', 'tblTempVendorCDR_20' ) start [2025-03-19 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717204', 'tblTempVendorCDR_20' ) end [2025-03-19 18:02:20] Production.INFO: ProcessCDR(1,14717204,1,1,2) [2025-03-19 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717204', 'tblTempUsageDetail_20' ) start [2025-03-19 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717204', 'tblTempUsageDetail_20' ) end [2025-03-19 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:02:25] Production.INFO: ==19795== Releasing lock... [2025-03-19 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:02:25] Production.INFO: 58 MB #Memory Used# [2025-03-19 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:03:05 [end_date_ymd] => 2025-03-19 18:03:05 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:03:05' and `end` < '2025-03-19 18: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-03-19 18:03:18] Production.INFO: count ==3995 [2025-03-19 18:03:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:03:05 - End Time 2025-03-19 18:03:05 [2025-03-19 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717209', 'tblTempUsageDetail_20' ) start [2025-03-19 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717209', 'tblTempUsageDetail_20' ) end [2025-03-19 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717209', 'tblTempVendorCDR_20' ) start [2025-03-19 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717209', 'tblTempVendorCDR_20' ) end [2025-03-19 18:03:19] Production.INFO: ProcessCDR(1,14717209,1,1,2) [2025-03-19 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717209', 'tblTempUsageDetail_20' ) start [2025-03-19 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717209', 'tblTempUsageDetail_20' ) end [2025-03-19 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:03:25] Production.INFO: ==19877== Releasing lock... [2025-03-19 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:03:25] Production.INFO: 58 MB #Memory Used# [2025-03-19 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:04:05 [end_date_ymd] => 2025-03-19 18:04:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:04:05' and `end` < '2025-03-19 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-03-19 18:04:18] Production.INFO: count ==3988 [2025-03-19 18:04:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:04:05 - End Time 2025-03-19 18:04:05 [2025-03-19 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717214', 'tblTempUsageDetail_20' ) start [2025-03-19 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717214', 'tblTempUsageDetail_20' ) end [2025-03-19 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717214', 'tblTempVendorCDR_20' ) start [2025-03-19 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717214', 'tblTempVendorCDR_20' ) end [2025-03-19 18:04:20] Production.INFO: ProcessCDR(1,14717214,1,1,2) [2025-03-19 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717214', 'tblTempUsageDetail_20' ) start [2025-03-19 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717214', 'tblTempUsageDetail_20' ) end [2025-03-19 18:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:04:23] Production.INFO: ==19961== Releasing lock... [2025-03-19 18:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:04:23] Production.INFO: 57.75 MB #Memory Used# [2025-03-19 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:05:06 [end_date_ymd] => 2025-03-19 18:05:06 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:05:06' and `end` < '2025-03-19 18: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-03-19 18:05:19] Production.INFO: count ==3990 [2025-03-19 18:05:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:05:06 - End Time 2025-03-19 18:05:06 [2025-03-19 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717219', 'tblTempUsageDetail_20' ) start [2025-03-19 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717219', 'tblTempUsageDetail_20' ) end [2025-03-19 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717219', 'tblTempVendorCDR_20' ) start [2025-03-19 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717219', 'tblTempVendorCDR_20' ) end [2025-03-19 18:05:21] Production.INFO: ProcessCDR(1,14717219,1,1,2) [2025-03-19 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717219', 'tblTempUsageDetail_20' ) start [2025-03-19 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717219', 'tblTempUsageDetail_20' ) end [2025-03-19 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:05:26] Production.INFO: ==20049== Releasing lock... [2025-03-19 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:05:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-19 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:06:06 [end_date_ymd] => 2025-03-19 18:06:06 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:06:06' and `end` < '2025-03-19 18: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-03-19 18:06:19] Production.INFO: count ==3975 [2025-03-19 18:06:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:06:06 - End Time 2025-03-19 18:06:06 [2025-03-19 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717224', 'tblTempUsageDetail_20' ) start [2025-03-19 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717224', 'tblTempUsageDetail_20' ) end [2025-03-19 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717224', 'tblTempVendorCDR_20' ) start [2025-03-19 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717224', 'tblTempVendorCDR_20' ) end [2025-03-19 18:06:20] Production.INFO: ProcessCDR(1,14717224,1,1,2) [2025-03-19 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717224', 'tblTempUsageDetail_20' ) start [2025-03-19 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717224', 'tblTempUsageDetail_20' ) end [2025-03-19 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:06:25] Production.INFO: ==20134== Releasing lock... [2025-03-19 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:06:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-19 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:07:06 [end_date_ymd] => 2025-03-19 18:07:06 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:07:06' and `end` < '2025-03-19 18: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-03-19 18:07:19] Production.INFO: count ==3970 [2025-03-19 18:07:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:07:06 - End Time 2025-03-19 18:07:06 [2025-03-19 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717229', 'tblTempUsageDetail_20' ) start [2025-03-19 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717229', 'tblTempUsageDetail_20' ) end [2025-03-19 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717229', 'tblTempVendorCDR_20' ) start [2025-03-19 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717229', 'tblTempVendorCDR_20' ) end [2025-03-19 18:07:21] Production.INFO: ProcessCDR(1,14717229,1,1,2) [2025-03-19 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717229', 'tblTempUsageDetail_20' ) start [2025-03-19 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717229', 'tblTempUsageDetail_20' ) end [2025-03-19 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:07:25] Production.INFO: ==20214== Releasing lock... [2025-03-19 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:07:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-19 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:08:05 [end_date_ymd] => 2025-03-19 18:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:08:05' and `end` < '2025-03-19 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-03-19 18:08:18] Production.INFO: count ==3967 [2025-03-19 18:08:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:08:05 - End Time 2025-03-19 18:08:05 [2025-03-19 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717234', 'tblTempUsageDetail_20' ) start [2025-03-19 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717234', 'tblTempUsageDetail_20' ) end [2025-03-19 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717234', 'tblTempVendorCDR_20' ) start [2025-03-19 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717234', 'tblTempVendorCDR_20' ) end [2025-03-19 18:08:20] Production.INFO: ProcessCDR(1,14717234,1,1,2) [2025-03-19 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717234', 'tblTempUsageDetail_20' ) start [2025-03-19 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717234', 'tblTempUsageDetail_20' ) end [2025-03-19 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:08:23] Production.INFO: ==20301== Releasing lock... [2025-03-19 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:08:23] Production.INFO: 57.75 MB #Memory Used# [2025-03-19 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:09:05 [end_date_ymd] => 2025-03-19 18:09:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:09:05' and `end` < '2025-03-19 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-03-19 18:09:18] Production.INFO: count ==3948 [2025-03-19 18:09:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:09:05 - End Time 2025-03-19 18:09:05 [2025-03-19 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717239', 'tblTempUsageDetail_20' ) start [2025-03-19 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717239', 'tblTempUsageDetail_20' ) end [2025-03-19 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717239', 'tblTempVendorCDR_20' ) start [2025-03-19 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717239', 'tblTempVendorCDR_20' ) end [2025-03-19 18:09:20] Production.INFO: ProcessCDR(1,14717239,1,1,2) [2025-03-19 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717239', 'tblTempUsageDetail_20' ) start [2025-03-19 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717239', 'tblTempUsageDetail_20' ) end [2025-03-19 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:09:25] Production.INFO: ==20383== Releasing lock... [2025-03-19 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:09:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-19 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:10:06 [end_date_ymd] => 2025-03-19 18:10:06 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:10:06' and `end` < '2025-03-19 18: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-03-19 18:10:19] Production.INFO: count ==3940 [2025-03-19 18:10:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:10:06 - End Time 2025-03-19 18:10:06 [2025-03-19 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717245', 'tblTempUsageDetail_20' ) start [2025-03-19 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717245', 'tblTempUsageDetail_20' ) end [2025-03-19 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717245', 'tblTempVendorCDR_20' ) start [2025-03-19 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717245', 'tblTempVendorCDR_20' ) end [2025-03-19 18:10:21] Production.INFO: ProcessCDR(1,14717245,1,1,2) [2025-03-19 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717245', 'tblTempUsageDetail_20' ) start [2025-03-19 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717245', 'tblTempUsageDetail_20' ) end [2025-03-19 18:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:10:24] Production.INFO: ==20468== Releasing lock... [2025-03-19 18:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:10:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-19 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:11:05 [end_date_ymd] => 2025-03-19 18:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:11:05' and `end` < '2025-03-19 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-03-19 18:11:18] Production.INFO: count ==3904 [2025-03-19 18:11:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:11:05 - End Time 2025-03-19 18:11:05 [2025-03-19 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717250', 'tblTempUsageDetail_20' ) start [2025-03-19 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717250', 'tblTempUsageDetail_20' ) end [2025-03-19 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717250', 'tblTempVendorCDR_20' ) start [2025-03-19 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717250', 'tblTempVendorCDR_20' ) end [2025-03-19 18:11:20] Production.INFO: ProcessCDR(1,14717250,1,1,2) [2025-03-19 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717250', 'tblTempUsageDetail_20' ) start [2025-03-19 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717250', 'tblTempUsageDetail_20' ) end [2025-03-19 18:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:11:23] Production.INFO: ==20558== Releasing lock... [2025-03-19 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:11:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-19 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:12:05 [end_date_ymd] => 2025-03-19 18:12:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:12:05' and `end` < '2025-03-19 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-03-19 18:12:18] Production.INFO: count ==3905 [2025-03-19 18:12:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:12:05 - End Time 2025-03-19 18:12:05 [2025-03-19 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717255', 'tblTempUsageDetail_20' ) start [2025-03-19 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717255', 'tblTempUsageDetail_20' ) end [2025-03-19 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717255', 'tblTempVendorCDR_20' ) start [2025-03-19 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717255', 'tblTempVendorCDR_20' ) end [2025-03-19 18:12:20] Production.INFO: ProcessCDR(1,14717255,1,1,2) [2025-03-19 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717255', 'tblTempUsageDetail_20' ) start [2025-03-19 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717255', 'tblTempUsageDetail_20' ) end [2025-03-19 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:12:23] Production.INFO: ==20642== Releasing lock... [2025-03-19 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:12:23] Production.INFO: 57.5 MB #Memory Used# [2025-03-19 18:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:13:06 [end_date_ymd] => 2025-03-19 18:13:06 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:13:06' and `end` < '2025-03-19 18:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 18:13:19] Production.INFO: count ==3886 [2025-03-19 18:13:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:13:06 - End Time 2025-03-19 18:13:06 [2025-03-19 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717260', 'tblTempUsageDetail_20' ) start [2025-03-19 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717260', 'tblTempUsageDetail_20' ) end [2025-03-19 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717260', 'tblTempVendorCDR_20' ) start [2025-03-19 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717260', 'tblTempVendorCDR_20' ) end [2025-03-19 18:13:20] Production.INFO: ProcessCDR(1,14717260,1,1,2) [2025-03-19 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717260', 'tblTempUsageDetail_20' ) start [2025-03-19 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717260', 'tblTempUsageDetail_20' ) end [2025-03-19 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:13:25] Production.INFO: ==20731== Releasing lock... [2025-03-19 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:13:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-19 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:14:05 [end_date_ymd] => 2025-03-19 18:14:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:14:05' and `end` < '2025-03-19 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-03-19 18:14:18] Production.INFO: count ==3890 [2025-03-19 18:14:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:14:05 - End Time 2025-03-19 18:14:05 [2025-03-19 18:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717265', 'tblTempUsageDetail_20' ) start [2025-03-19 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717265', 'tblTempUsageDetail_20' ) end [2025-03-19 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717265', 'tblTempVendorCDR_20' ) start [2025-03-19 18:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717265', 'tblTempVendorCDR_20' ) end [2025-03-19 18:14:19] Production.INFO: ProcessCDR(1,14717265,1,1,2) [2025-03-19 18:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717265', 'tblTempUsageDetail_20' ) start [2025-03-19 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717265', 'tblTempUsageDetail_20' ) end [2025-03-19 18:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:14:23] Production.INFO: ==20815== Releasing lock... [2025-03-19 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:14:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-19 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:15:06 [end_date_ymd] => 2025-03-19 18:15:06 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:15:06' and `end` < '2025-03-19 18: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-03-19 18:15:18] Production.INFO: count ==3887 [2025-03-19 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:15:06 - End Time 2025-03-19 18:15:06 [2025-03-19 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717270', 'tblTempUsageDetail_20' ) start [2025-03-19 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717270', 'tblTempUsageDetail_20' ) end [2025-03-19 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717270', 'tblTempVendorCDR_20' ) start [2025-03-19 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717270', 'tblTempVendorCDR_20' ) end [2025-03-19 18:15:20] Production.INFO: ProcessCDR(1,14717270,1,1,2) [2025-03-19 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717270', 'tblTempUsageDetail_20' ) start [2025-03-19 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717270', 'tblTempUsageDetail_20' ) end [2025-03-19 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:15:25] Production.INFO: ==20943== Releasing lock... [2025-03-19 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:15:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-19 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:16:05 [end_date_ymd] => 2025-03-19 18:16:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:16:05' and `end` < '2025-03-19 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-03-19 18:16:18] Production.INFO: count ==3891 [2025-03-19 18:16:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:16:05 - End Time 2025-03-19 18:16:05 [2025-03-19 18:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717275', 'tblTempUsageDetail_20' ) start [2025-03-19 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717275', 'tblTempUsageDetail_20' ) end [2025-03-19 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717275', 'tblTempVendorCDR_20' ) start [2025-03-19 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717275', 'tblTempVendorCDR_20' ) end [2025-03-19 18:16:20] Production.INFO: ProcessCDR(1,14717275,1,1,2) [2025-03-19 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717275', 'tblTempUsageDetail_20' ) start [2025-03-19 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717275', 'tblTempUsageDetail_20' ) end [2025-03-19 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:16:25] Production.INFO: ==21028== Releasing lock... [2025-03-19 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:16:25] Production.INFO: 57 MB #Memory Used# [2025-03-19 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:17:05 [end_date_ymd] => 2025-03-19 18:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:17:05' and `end` < '2025-03-19 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-03-19 18:17:18] Production.INFO: count ==3874 [2025-03-19 18:17:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:17:05 - End Time 2025-03-19 18:17:05 [2025-03-19 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717280', 'tblTempUsageDetail_20' ) start [2025-03-19 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717280', 'tblTempUsageDetail_20' ) end [2025-03-19 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717280', 'tblTempVendorCDR_20' ) start [2025-03-19 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717280', 'tblTempVendorCDR_20' ) end [2025-03-19 18:17:20] Production.INFO: ProcessCDR(1,14717280,1,1,2) [2025-03-19 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717280', 'tblTempUsageDetail_20' ) start [2025-03-19 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717280', 'tblTempUsageDetail_20' ) end [2025-03-19 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:17:25] Production.INFO: ==21118== Releasing lock... [2025-03-19 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:17:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-19 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:18:05 [end_date_ymd] => 2025-03-19 18:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:18:05' and `end` < '2025-03-19 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-03-19 18:18:18] Production.INFO: count ==3860 [2025-03-19 18:18:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:18:05 - End Time 2025-03-19 18:18:05 [2025-03-19 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717285', 'tblTempUsageDetail_20' ) start [2025-03-19 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717285', 'tblTempUsageDetail_20' ) end [2025-03-19 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717285', 'tblTempVendorCDR_20' ) start [2025-03-19 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717285', 'tblTempVendorCDR_20' ) end [2025-03-19 18:18:19] Production.INFO: ProcessCDR(1,14717285,1,1,2) [2025-03-19 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717285', 'tblTempUsageDetail_20' ) start [2025-03-19 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717285', 'tblTempUsageDetail_20' ) end [2025-03-19 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:18:24] Production.INFO: ==21202== Releasing lock... [2025-03-19 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:18:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-19 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:19:05 [end_date_ymd] => 2025-03-19 18:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:19:05' and `end` < '2025-03-19 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-03-19 18:19:18] Production.INFO: count ==3861 [2025-03-19 18:19:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:19:05 - End Time 2025-03-19 18:19:05 [2025-03-19 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717290', 'tblTempUsageDetail_20' ) start [2025-03-19 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717290', 'tblTempUsageDetail_20' ) end [2025-03-19 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717290', 'tblTempVendorCDR_20' ) start [2025-03-19 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717290', 'tblTempVendorCDR_20' ) end [2025-03-19 18:19:20] Production.INFO: ProcessCDR(1,14717290,1,1,2) [2025-03-19 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717290', 'tblTempUsageDetail_20' ) start [2025-03-19 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717290', 'tblTempUsageDetail_20' ) end [2025-03-19 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:19:25] Production.INFO: ==21289== Releasing lock... [2025-03-19 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:19:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-19 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:20:06 [end_date_ymd] => 2025-03-19 18:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:20:06' and `end` < '2025-03-19 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-03-19 18:20:19] Production.INFO: count ==3859 [2025-03-19 18:20:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:20:06 - End Time 2025-03-19 18:20:06 [2025-03-19 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717296', 'tblTempUsageDetail_20' ) start [2025-03-19 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717296', 'tblTempUsageDetail_20' ) end [2025-03-19 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717296', 'tblTempVendorCDR_20' ) start [2025-03-19 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717296', 'tblTempVendorCDR_20' ) end [2025-03-19 18:20:20] Production.INFO: ProcessCDR(1,14717296,1,1,2) [2025-03-19 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717296', 'tblTempUsageDetail_20' ) start [2025-03-19 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717296', 'tblTempUsageDetail_20' ) end [2025-03-19 18:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:20:24] Production.INFO: ==21374== Releasing lock... [2025-03-19 18:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:20:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-19 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:21:05 [end_date_ymd] => 2025-03-19 18:21:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:21:05' and `end` < '2025-03-19 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-03-19 18:21:18] Production.INFO: count ==3820 [2025-03-19 18:21:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:21:05 - End Time 2025-03-19 18:21:05 [2025-03-19 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717301', 'tblTempUsageDetail_20' ) start [2025-03-19 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717301', 'tblTempUsageDetail_20' ) end [2025-03-19 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717301', 'tblTempVendorCDR_20' ) start [2025-03-19 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717301', 'tblTempVendorCDR_20' ) end [2025-03-19 18:21:20] Production.INFO: ProcessCDR(1,14717301,1,1,2) [2025-03-19 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717301', 'tblTempUsageDetail_20' ) start [2025-03-19 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717301', 'tblTempUsageDetail_20' ) end [2025-03-19 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:21:25] Production.INFO: ==21458== Releasing lock... [2025-03-19 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:21:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-19 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:22:05 [end_date_ymd] => 2025-03-19 18:22:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:22:05' and `end` < '2025-03-19 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-03-19 18:22:18] Production.INFO: count ==3818 [2025-03-19 18:22:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:22:05 - End Time 2025-03-19 18:22:05 [2025-03-19 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717306', 'tblTempUsageDetail_20' ) start [2025-03-19 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717306', 'tblTempUsageDetail_20' ) end [2025-03-19 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717306', 'tblTempVendorCDR_20' ) start [2025-03-19 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717306', 'tblTempVendorCDR_20' ) end [2025-03-19 18:22:20] Production.INFO: ProcessCDR(1,14717306,1,1,2) [2025-03-19 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717306', 'tblTempUsageDetail_20' ) start [2025-03-19 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717306', 'tblTempUsageDetail_20' ) end [2025-03-19 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:22:23] Production.INFO: ==21540== Releasing lock... [2025-03-19 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:22:23] Production.INFO: 57.75 MB #Memory Used# [2025-03-19 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:23:06 [end_date_ymd] => 2025-03-19 18:23:06 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:23:06' and `end` < '2025-03-19 18: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-03-19 18:23:18] Production.INFO: count ==3805 [2025-03-19 18:23:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:23:06 - End Time 2025-03-19 18:23:06 [2025-03-19 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717311', 'tblTempUsageDetail_20' ) start [2025-03-19 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717311', 'tblTempUsageDetail_20' ) end [2025-03-19 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717311', 'tblTempVendorCDR_20' ) start [2025-03-19 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717311', 'tblTempVendorCDR_20' ) end [2025-03-19 18:23:20] Production.INFO: ProcessCDR(1,14717311,1,1,2) [2025-03-19 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717311', 'tblTempUsageDetail_20' ) start [2025-03-19 18:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717311', 'tblTempUsageDetail_20' ) end [2025-03-19 18:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:23:25] Production.INFO: ==21627== Releasing lock... [2025-03-19 18:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:23:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-19 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:24:05 [end_date_ymd] => 2025-03-19 18:24:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:24:05' and `end` < '2025-03-19 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-03-19 18:24:18] Production.INFO: count ==3805 [2025-03-19 18:24:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:24:05 - End Time 2025-03-19 18:24:05 [2025-03-19 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717316', 'tblTempUsageDetail_20' ) start [2025-03-19 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717316', 'tblTempUsageDetail_20' ) end [2025-03-19 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717316', 'tblTempVendorCDR_20' ) start [2025-03-19 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717316', 'tblTempVendorCDR_20' ) end [2025-03-19 18:24:20] Production.INFO: ProcessCDR(1,14717316,1,1,2) [2025-03-19 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717316', 'tblTempUsageDetail_20' ) start [2025-03-19 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717316', 'tblTempUsageDetail_20' ) end [2025-03-19 18:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:24:23] Production.INFO: ==21719== Releasing lock... [2025-03-19 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:24:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-19 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:25:05 [end_date_ymd] => 2025-03-19 18:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:25:05' and `end` < '2025-03-19 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-03-19 18:25:18] Production.INFO: count ==3798 [2025-03-19 18:25:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:25:05 - End Time 2025-03-19 18:25:05 [2025-03-19 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717321', 'tblTempUsageDetail_20' ) start [2025-03-19 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717321', 'tblTempUsageDetail_20' ) end [2025-03-19 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717321', 'tblTempVendorCDR_20' ) start [2025-03-19 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717321', 'tblTempVendorCDR_20' ) end [2025-03-19 18:25:20] Production.INFO: ProcessCDR(1,14717321,1,1,2) [2025-03-19 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717321', 'tblTempUsageDetail_20' ) start [2025-03-19 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717321', 'tblTempUsageDetail_20' ) end [2025-03-19 18:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:25:23] Production.INFO: ==21806== Releasing lock... [2025-03-19 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:25:23] Production.INFO: 56.25 MB #Memory Used# [2025-03-19 18:26:16] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:26:16 [end_date_ymd] => 2025-03-19 18:26:16 [RateCDR] => 1 ) [2025-03-19 18:26:16] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 15:26:16' and `end` < '2025-03-19 18:26:16' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 18:26:29] Production.INFO: count ==3786 [2025-03-19 18:26:54] Production.ERROR: pbx CDR StartTime 2025-03-19 15:26:16 - End Time 2025-03-19 18:26:16 [2025-03-19 18:26:54] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:26:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717326', 'tblTempUsageDetail_20' ) start [2025-03-19 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717326', 'tblTempUsageDetail_20' ) end [2025-03-19 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717326', 'tblTempVendorCDR_20' ) start [2025-03-19 18:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717326', 'tblTempVendorCDR_20' ) end [2025-03-19 18:27:18] Production.INFO: ProcessCDR(1,14717326,1,1,2) [2025-03-19 18:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:27:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:27:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717326', 'tblTempUsageDetail_20' ) start [2025-03-19 18:27:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717326', 'tblTempUsageDetail_20' ) end [2025-03-19 18:27:47] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:27:48] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:27:54] Production.INFO: ==21894== Releasing lock... [2025-03-19 18:27:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:27:54] Production.INFO: 56.75 MB #Memory Used# [2025-03-19 18:28:24] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:28:24 [end_date_ymd] => 2025-03-19 18:28:24 [RateCDR] => 1 ) [2025-03-19 18:28:24] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 15:28:24' and `end` < '2025-03-19 18:28:24' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 18:28:37] Production.INFO: count ==3777 [2025-03-19 18:29:00] Production.ERROR: pbx CDR StartTime 2025-03-19 15:28:24 - End Time 2025-03-19 18:28:24 [2025-03-19 18:29:00] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:29:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717333', 'tblTempUsageDetail_20' ) start [2025-03-19 18:29:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717333', 'tblTempUsageDetail_20' ) end [2025-03-19 18:29:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717333', 'tblTempVendorCDR_20' ) start [2025-03-19 18:29:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717333', 'tblTempVendorCDR_20' ) end [2025-03-19 18:29:03] Production.INFO: ProcessCDR(1,14717333,1,1,2) [2025-03-19 18:29:03] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:29:15] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:29:15] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717333', 'tblTempUsageDetail_20' ) start [2025-03-19 18:29:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717333', 'tblTempUsageDetail_20' ) end [2025-03-19 18:29:42] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:29:44] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:29:47] Production.INFO: ==22057== Releasing lock... [2025-03-19 18:29:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:29:47] Production.INFO: 56.5 MB #Memory Used# [2025-03-19 18:30:23] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:30:23 [end_date_ymd] => 2025-03-19 18:30:23 [RateCDR] => 1 ) [2025-03-19 18:30:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 15:30:23' and `end` < '2025-03-19 18:30:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 18:30:36] Production.INFO: count ==3717 [2025-03-19 18:30:57] Production.ERROR: pbx CDR StartTime 2025-03-19 15:30:23 - End Time 2025-03-19 18:30:23 [2025-03-19 18:30:57] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:30:57] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717342', 'tblTempUsageDetail_20' ) start [2025-03-19 18:31:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717342', 'tblTempUsageDetail_20' ) end [2025-03-19 18:31:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717342', 'tblTempVendorCDR_20' ) start [2025-03-19 18:31:05] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717342', 'tblTempVendorCDR_20' ) end [2025-03-19 18:31:05] Production.INFO: ProcessCDR(1,14717342,1,1,2) [2025-03-19 18:31:05] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:31:15] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:31:15] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717342', 'tblTempUsageDetail_20' ) start [2025-03-19 18:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717342', 'tblTempUsageDetail_20' ) end [2025-03-19 18:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:31:25] Production.INFO: ==22217== Releasing lock... [2025-03-19 18:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:31:25] Production.INFO: 56 MB #Memory Used# [2025-03-19 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:32:05 [end_date_ymd] => 2025-03-19 18:32:05 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:32:05' and `end` < '2025-03-19 18: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-03-19 18:32:18] Production.INFO: count ==3657 [2025-03-19 18:32:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:32:05 - End Time 2025-03-19 18:32:05 [2025-03-19 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717351', 'tblTempUsageDetail_20' ) start [2025-03-19 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717351', 'tblTempUsageDetail_20' ) end [2025-03-19 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717351', 'tblTempVendorCDR_20' ) start [2025-03-19 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717351', 'tblTempVendorCDR_20' ) end [2025-03-19 18:32:20] Production.INFO: ProcessCDR(1,14717351,1,1,2) [2025-03-19 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717351', 'tblTempUsageDetail_20' ) start [2025-03-19 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717351', 'tblTempUsageDetail_20' ) end [2025-03-19 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:32:25] Production.INFO: ==22428== Releasing lock... [2025-03-19 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:32:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-19 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:33:05 [end_date_ymd] => 2025-03-19 18:33:05 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:33:05' and `end` < '2025-03-19 18: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-03-19 18:33:18] Production.INFO: count ==3658 [2025-03-19 18:33:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:33:05 - End Time 2025-03-19 18:33:05 [2025-03-19 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717356', 'tblTempUsageDetail_20' ) start [2025-03-19 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717356', 'tblTempUsageDetail_20' ) end [2025-03-19 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717356', 'tblTempVendorCDR_20' ) start [2025-03-19 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717356', 'tblTempVendorCDR_20' ) end [2025-03-19 18:33:20] Production.INFO: ProcessCDR(1,14717356,1,1,2) [2025-03-19 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717356', 'tblTempUsageDetail_20' ) start [2025-03-19 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717356', 'tblTempUsageDetail_20' ) end [2025-03-19 18:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:33:25] Production.INFO: ==22509== Releasing lock... [2025-03-19 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:33:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-19 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:34:05 [end_date_ymd] => 2025-03-19 18:34:05 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:34:05' and `end` < '2025-03-19 18: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-03-19 18:34:18] Production.INFO: count ==3653 [2025-03-19 18:34:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:34:05 - End Time 2025-03-19 18:34:05 [2025-03-19 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717361', 'tblTempUsageDetail_20' ) start [2025-03-19 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717361', 'tblTempUsageDetail_20' ) end [2025-03-19 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717361', 'tblTempVendorCDR_20' ) start [2025-03-19 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717361', 'tblTempVendorCDR_20' ) end [2025-03-19 18:34:19] Production.INFO: ProcessCDR(1,14717361,1,1,2) [2025-03-19 18:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717361', 'tblTempUsageDetail_20' ) start [2025-03-19 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717361', 'tblTempUsageDetail_20' ) end [2025-03-19 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:34:24] Production.INFO: ==22596== Releasing lock... [2025-03-19 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:34:24] Production.INFO: 56 MB #Memory Used# [2025-03-19 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:35:05 [end_date_ymd] => 2025-03-19 18:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:35:05' and `end` < '2025-03-19 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-03-19 18:35:18] Production.INFO: count ==3644 [2025-03-19 18:35:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:35:05 - End Time 2025-03-19 18:35:05 [2025-03-19 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717366', 'tblTempUsageDetail_20' ) start [2025-03-19 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717366', 'tblTempUsageDetail_20' ) end [2025-03-19 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717366', 'tblTempVendorCDR_20' ) start [2025-03-19 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717366', 'tblTempVendorCDR_20' ) end [2025-03-19 18:35:19] Production.INFO: ProcessCDR(1,14717366,1,1,2) [2025-03-19 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717366', 'tblTempUsageDetail_20' ) start [2025-03-19 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717366', 'tblTempUsageDetail_20' ) end [2025-03-19 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:35:25] Production.INFO: ==22681== Releasing lock... [2025-03-19 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:35:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-19 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:36:05 [end_date_ymd] => 2025-03-19 18:36:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:36:05' and `end` < '2025-03-19 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-03-19 18:36:18] Production.INFO: count ==3629 [2025-03-19 18:36:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:36:05 - End Time 2025-03-19 18:36:05 [2025-03-19 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717371', 'tblTempUsageDetail_20' ) start [2025-03-19 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717371', 'tblTempUsageDetail_20' ) end [2025-03-19 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717371', 'tblTempVendorCDR_20' ) start [2025-03-19 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717371', 'tblTempVendorCDR_20' ) end [2025-03-19 18:36:20] Production.INFO: ProcessCDR(1,14717371,1,1,2) [2025-03-19 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717371', 'tblTempUsageDetail_20' ) start [2025-03-19 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717371', 'tblTempUsageDetail_20' ) end [2025-03-19 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:36:23] Production.INFO: ==22763== Releasing lock... [2025-03-19 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:36:23] Production.INFO: 55.75 MB #Memory Used# [2025-03-19 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:37:05 [end_date_ymd] => 2025-03-19 18:37:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:37:05' and `end` < '2025-03-19 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-03-19 18:37:18] Production.INFO: count ==3626 [2025-03-19 18:37:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:37:05 - End Time 2025-03-19 18:37:05 [2025-03-19 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717376', 'tblTempUsageDetail_20' ) start [2025-03-19 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717376', 'tblTempUsageDetail_20' ) end [2025-03-19 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717376', 'tblTempVendorCDR_20' ) start [2025-03-19 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717376', 'tblTempVendorCDR_20' ) end [2025-03-19 18:37:19] Production.INFO: ProcessCDR(1,14717376,1,1,2) [2025-03-19 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717376', 'tblTempUsageDetail_20' ) start [2025-03-19 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717376', 'tblTempUsageDetail_20' ) end [2025-03-19 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:37:23] Production.INFO: ==22854== Releasing lock... [2025-03-19 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:37:23] Production.INFO: 55.75 MB #Memory Used# [2025-03-19 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:38:06 [end_date_ymd] => 2025-03-19 18:38:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:38:06' and `end` < '2025-03-19 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-03-19 18:38:19] Production.INFO: count ==3605 [2025-03-19 18:38:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:38:06 - End Time 2025-03-19 18:38:06 [2025-03-19 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717381', 'tblTempUsageDetail_20' ) start [2025-03-19 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717381', 'tblTempUsageDetail_20' ) end [2025-03-19 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717381', 'tblTempVendorCDR_20' ) start [2025-03-19 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717381', 'tblTempVendorCDR_20' ) end [2025-03-19 18:38:20] Production.INFO: ProcessCDR(1,14717381,1,1,2) [2025-03-19 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717381', 'tblTempUsageDetail_20' ) start [2025-03-19 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717381', 'tblTempUsageDetail_20' ) end [2025-03-19 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:38:24] Production.INFO: ==22940== Releasing lock... [2025-03-19 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:38:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-19 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:39:05 [end_date_ymd] => 2025-03-19 18:39:05 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:39:05' and `end` < '2025-03-19 18: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-03-19 18:39:18] Production.INFO: count ==3620 [2025-03-19 18:39:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:39:05 - End Time 2025-03-19 18:39:05 [2025-03-19 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717386', 'tblTempUsageDetail_20' ) start [2025-03-19 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717386', 'tblTempUsageDetail_20' ) end [2025-03-19 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717386', 'tblTempVendorCDR_20' ) start [2025-03-19 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717386', 'tblTempVendorCDR_20' ) end [2025-03-19 18:39:20] Production.INFO: ProcessCDR(1,14717386,1,1,2) [2025-03-19 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717386', 'tblTempUsageDetail_20' ) start [2025-03-19 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717386', 'tblTempUsageDetail_20' ) end [2025-03-19 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:39:23] Production.INFO: ==23021== Releasing lock... [2025-03-19 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:39:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-19 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:40:06 [end_date_ymd] => 2025-03-19 18:40:06 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:40:06' and `end` < '2025-03-19 18: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-03-19 18:40:19] Production.INFO: count ==3601 [2025-03-19 18:40:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:40:06 - End Time 2025-03-19 18:40:06 [2025-03-19 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717391', 'tblTempUsageDetail_20' ) start [2025-03-19 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717391', 'tblTempUsageDetail_20' ) end [2025-03-19 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717391', 'tblTempVendorCDR_20' ) start [2025-03-19 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717391', 'tblTempVendorCDR_20' ) end [2025-03-19 18:40:20] Production.INFO: ProcessCDR(1,14717391,1,1,2) [2025-03-19 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717391', 'tblTempUsageDetail_20' ) start [2025-03-19 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717391', 'tblTempUsageDetail_20' ) end [2025-03-19 18:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:40:23] Production.INFO: ==23117== Releasing lock... [2025-03-19 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:40:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-19 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:41:05 [end_date_ymd] => 2025-03-19 18:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:41:05' and `end` < '2025-03-19 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-03-19 18:41:18] Production.INFO: count ==3526 [2025-03-19 18:41:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:41:05 - End Time 2025-03-19 18:41:05 [2025-03-19 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717397', 'tblTempUsageDetail_20' ) start [2025-03-19 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717397', 'tblTempUsageDetail_20' ) end [2025-03-19 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717397', 'tblTempVendorCDR_20' ) start [2025-03-19 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717397', 'tblTempVendorCDR_20' ) end [2025-03-19 18:41:19] Production.INFO: ProcessCDR(1,14717397,1,1,2) [2025-03-19 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717397', 'tblTempUsageDetail_20' ) start [2025-03-19 18:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717397', 'tblTempUsageDetail_20' ) end [2025-03-19 18:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:41:22] Production.INFO: ==23207== Releasing lock... [2025-03-19 18:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:41:22] Production.INFO: 54.5 MB #Memory Used# [2025-03-19 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:42:06 [end_date_ymd] => 2025-03-19 18:42:06 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:42:06' and `end` < '2025-03-19 18: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-03-19 18:42:19] Production.INFO: count ==3520 [2025-03-19 18:42:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:42:06 - End Time 2025-03-19 18:42:06 [2025-03-19 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717402', 'tblTempUsageDetail_20' ) start [2025-03-19 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717402', 'tblTempUsageDetail_20' ) end [2025-03-19 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717402', 'tblTempVendorCDR_20' ) start [2025-03-19 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717402', 'tblTempVendorCDR_20' ) end [2025-03-19 18:42:20] Production.INFO: ProcessCDR(1,14717402,1,1,2) [2025-03-19 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717402', 'tblTempUsageDetail_20' ) start [2025-03-19 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717402', 'tblTempUsageDetail_20' ) end [2025-03-19 18:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:42:25] Production.INFO: ==23290== Releasing lock... [2025-03-19 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:42:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-19 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:43:05 [end_date_ymd] => 2025-03-19 18:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:43:05' and `end` < '2025-03-19 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-03-19 18:43:18] Production.INFO: count ==3510 [2025-03-19 18:43:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:43:05 - End Time 2025-03-19 18:43:05 [2025-03-19 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717407', 'tblTempUsageDetail_20' ) start [2025-03-19 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717407', 'tblTempUsageDetail_20' ) end [2025-03-19 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717407', 'tblTempVendorCDR_20' ) start [2025-03-19 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717407', 'tblTempVendorCDR_20' ) end [2025-03-19 18:43:19] Production.INFO: ProcessCDR(1,14717407,1,1,2) [2025-03-19 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717407', 'tblTempUsageDetail_20' ) start [2025-03-19 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717407', 'tblTempUsageDetail_20' ) end [2025-03-19 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:43:24] Production.INFO: ==23373== Releasing lock... [2025-03-19 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:43:24] Production.INFO: 55 MB #Memory Used# [2025-03-19 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:44:05 [end_date_ymd] => 2025-03-19 18:44:05 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:44:05' and `end` < '2025-03-19 18: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-03-19 18:44:18] Production.INFO: count ==3497 [2025-03-19 18:44:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:44:05 - End Time 2025-03-19 18:44:05 [2025-03-19 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717412', 'tblTempUsageDetail_20' ) start [2025-03-19 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717412', 'tblTempUsageDetail_20' ) end [2025-03-19 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717412', 'tblTempVendorCDR_20' ) start [2025-03-19 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717412', 'tblTempVendorCDR_20' ) end [2025-03-19 18:44:19] Production.INFO: ProcessCDR(1,14717412,1,1,2) [2025-03-19 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717412', 'tblTempUsageDetail_20' ) start [2025-03-19 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717412', 'tblTempUsageDetail_20' ) end [2025-03-19 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:44:24] Production.INFO: ==23461== Releasing lock... [2025-03-19 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:44:24] Production.INFO: 54 MB #Memory Used# [2025-03-19 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:45:05 [end_date_ymd] => 2025-03-19 18:45:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:45:05' and `end` < '2025-03-19 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-03-19 18:45:18] Production.INFO: count ==3493 [2025-03-19 18:45:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:45:05 - End Time 2025-03-19 18:45:05 [2025-03-19 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717417', 'tblTempUsageDetail_20' ) start [2025-03-19 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717417', 'tblTempUsageDetail_20' ) end [2025-03-19 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717417', 'tblTempVendorCDR_20' ) start [2025-03-19 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717417', 'tblTempVendorCDR_20' ) end [2025-03-19 18:45:19] Production.INFO: ProcessCDR(1,14717417,1,1,2) [2025-03-19 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717417', 'tblTempUsageDetail_20' ) start [2025-03-19 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717417', 'tblTempUsageDetail_20' ) end [2025-03-19 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:45:24] Production.INFO: ==23544== Releasing lock... [2025-03-19 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:45:24] Production.INFO: 55 MB #Memory Used# [2025-03-19 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:46:05 [end_date_ymd] => 2025-03-19 18:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:46:05' and `end` < '2025-03-19 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-03-19 18:46:18] Production.INFO: count ==3477 [2025-03-19 18:46:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:46:05 - End Time 2025-03-19 18:46:05 [2025-03-19 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717422', 'tblTempUsageDetail_20' ) start [2025-03-19 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717422', 'tblTempUsageDetail_20' ) end [2025-03-19 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717422', 'tblTempVendorCDR_20' ) start [2025-03-19 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717422', 'tblTempVendorCDR_20' ) end [2025-03-19 18:46:19] Production.INFO: ProcessCDR(1,14717422,1,1,2) [2025-03-19 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717422', 'tblTempUsageDetail_20' ) start [2025-03-19 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717422', 'tblTempUsageDetail_20' ) end [2025-03-19 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:46:23] Production.INFO: ==23666== Releasing lock... [2025-03-19 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:46:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-19 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:47:05 [end_date_ymd] => 2025-03-19 18:47:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:47:05' and `end` < '2025-03-19 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-03-19 18:47:18] Production.INFO: count ==3475 [2025-03-19 18:47:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:47:05 - End Time 2025-03-19 18:47:05 [2025-03-19 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717427', 'tblTempUsageDetail_20' ) start [2025-03-19 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717427', 'tblTempUsageDetail_20' ) end [2025-03-19 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717427', 'tblTempVendorCDR_20' ) start [2025-03-19 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717427', 'tblTempVendorCDR_20' ) end [2025-03-19 18:47:20] Production.INFO: ProcessCDR(1,14717427,1,1,2) [2025-03-19 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717427', 'tblTempUsageDetail_20' ) start [2025-03-19 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717427', 'tblTempUsageDetail_20' ) end [2025-03-19 18:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:47:25] Production.INFO: ==23750== Releasing lock... [2025-03-19 18:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:47:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-19 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:48:05 [end_date_ymd] => 2025-03-19 18:48:05 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:48:05' and `end` < '2025-03-19 18: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-03-19 18:48:18] Production.INFO: count ==3463 [2025-03-19 18:48:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:48:05 - End Time 2025-03-19 18:48:05 [2025-03-19 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717432', 'tblTempUsageDetail_20' ) start [2025-03-19 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717432', 'tblTempUsageDetail_20' ) end [2025-03-19 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717432', 'tblTempVendorCDR_20' ) start [2025-03-19 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717432', 'tblTempVendorCDR_20' ) end [2025-03-19 18:48:20] Production.INFO: ProcessCDR(1,14717432,1,1,2) [2025-03-19 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717432', 'tblTempUsageDetail_20' ) start [2025-03-19 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717432', 'tblTempUsageDetail_20' ) end [2025-03-19 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:48:23] Production.INFO: ==23834== Releasing lock... [2025-03-19 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:48:23] Production.INFO: 53.75 MB #Memory Used# [2025-03-19 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:49:05 [end_date_ymd] => 2025-03-19 18:49:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:49:05' and `end` < '2025-03-19 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-03-19 18:49:18] Production.INFO: count ==3444 [2025-03-19 18:49:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:49:05 - End Time 2025-03-19 18:49:05 [2025-03-19 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717437', 'tblTempUsageDetail_20' ) start [2025-03-19 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717437', 'tblTempUsageDetail_20' ) end [2025-03-19 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717437', 'tblTempVendorCDR_20' ) start [2025-03-19 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717437', 'tblTempVendorCDR_20' ) end [2025-03-19 18:49:20] Production.INFO: ProcessCDR(1,14717437,1,1,2) [2025-03-19 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717437', 'tblTempUsageDetail_20' ) start [2025-03-19 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717437', 'tblTempUsageDetail_20' ) end [2025-03-19 18:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:49:25] Production.INFO: ==23918== Releasing lock... [2025-03-19 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:49:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-19 18:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:50:05 [end_date_ymd] => 2025-03-19 18:50:05 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:50:05' and `end` < '2025-03-19 18: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-03-19 18:50:18] Production.INFO: count ==3412 [2025-03-19 18:50:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:50:05 - End Time 2025-03-19 18:50:05 [2025-03-19 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717442', 'tblTempUsageDetail_20' ) start [2025-03-19 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717442', 'tblTempUsageDetail_20' ) end [2025-03-19 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717442', 'tblTempVendorCDR_20' ) start [2025-03-19 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717442', 'tblTempVendorCDR_20' ) end [2025-03-19 18:50:19] Production.INFO: ProcessCDR(1,14717442,1,1,2) [2025-03-19 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717442', 'tblTempUsageDetail_20' ) start [2025-03-19 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717442', 'tblTempUsageDetail_20' ) end [2025-03-19 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:50:24] Production.INFO: ==24006== Releasing lock... [2025-03-19 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:50:24] Production.INFO: 54 MB #Memory Used# [2025-03-19 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:51:06 [end_date_ymd] => 2025-03-19 18:51:06 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:51:06' and `end` < '2025-03-19 18: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-03-19 18:51:19] Production.INFO: count ==3353 [2025-03-19 18:51:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:51:06 - End Time 2025-03-19 18:51:06 [2025-03-19 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717448', 'tblTempUsageDetail_20' ) start [2025-03-19 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717448', 'tblTempUsageDetail_20' ) end [2025-03-19 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717448', 'tblTempVendorCDR_20' ) start [2025-03-19 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717448', 'tblTempVendorCDR_20' ) end [2025-03-19 18:51:20] Production.INFO: ProcessCDR(1,14717448,1,1,2) [2025-03-19 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717448', 'tblTempUsageDetail_20' ) start [2025-03-19 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717448', 'tblTempUsageDetail_20' ) end [2025-03-19 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:51:24] Production.INFO: ==24091== Releasing lock... [2025-03-19 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:51:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-19 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:52:05 [end_date_ymd] => 2025-03-19 18:52:05 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:52:05' and `end` < '2025-03-19 18: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-03-19 18:52:17] Production.INFO: count ==3329 [2025-03-19 18:52:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:52:05 - End Time 2025-03-19 18:52:05 [2025-03-19 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717453', 'tblTempUsageDetail_20' ) start [2025-03-19 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717453', 'tblTempUsageDetail_20' ) end [2025-03-19 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717453', 'tblTempVendorCDR_20' ) start [2025-03-19 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717453', 'tblTempVendorCDR_20' ) end [2025-03-19 18:52:19] Production.INFO: ProcessCDR(1,14717453,1,1,2) [2025-03-19 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717453', 'tblTempUsageDetail_20' ) start [2025-03-19 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717453', 'tblTempUsageDetail_20' ) end [2025-03-19 18:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:52:22] Production.INFO: ==24173== Releasing lock... [2025-03-19 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:52:22] Production.INFO: 53 MB #Memory Used# [2025-03-19 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:53:05 [end_date_ymd] => 2025-03-19 18:53:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:53:05' and `end` < '2025-03-19 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-03-19 18:53:18] Production.INFO: count ==3306 [2025-03-19 18:53:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:53:05 - End Time 2025-03-19 18:53:05 [2025-03-19 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717458', 'tblTempUsageDetail_20' ) start [2025-03-19 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717458', 'tblTempUsageDetail_20' ) end [2025-03-19 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717458', 'tblTempVendorCDR_20' ) start [2025-03-19 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717458', 'tblTempVendorCDR_20' ) end [2025-03-19 18:53:19] Production.INFO: ProcessCDR(1,14717458,1,1,2) [2025-03-19 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717458', 'tblTempUsageDetail_20' ) start [2025-03-19 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717458', 'tblTempUsageDetail_20' ) end [2025-03-19 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:53:23] Production.INFO: ==24262== Releasing lock... [2025-03-19 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:53:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-19 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:54:05 [end_date_ymd] => 2025-03-19 18:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:54:05' and `end` < '2025-03-19 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-03-19 18:54:18] Production.INFO: count ==3322 [2025-03-19 18:54:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:54:05 - End Time 2025-03-19 18:54:05 [2025-03-19 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717463', 'tblTempUsageDetail_20' ) start [2025-03-19 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717463', 'tblTempUsageDetail_20' ) end [2025-03-19 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717463', 'tblTempVendorCDR_20' ) start [2025-03-19 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717463', 'tblTempVendorCDR_20' ) end [2025-03-19 18:54:19] Production.INFO: ProcessCDR(1,14717463,1,1,2) [2025-03-19 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717463', 'tblTempUsageDetail_20' ) start [2025-03-19 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717463', 'tblTempUsageDetail_20' ) end [2025-03-19 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:54:23] Production.INFO: ==24346== Releasing lock... [2025-03-19 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:54:23] Production.INFO: 53.75 MB #Memory Used# [2025-03-19 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:55:06 [end_date_ymd] => 2025-03-19 18:55:06 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:55:06' and `end` < '2025-03-19 18: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-03-19 18:55:18] Production.INFO: count ==3346 [2025-03-19 18:55:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:55:06 - End Time 2025-03-19 18:55:06 [2025-03-19 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717468', 'tblTempUsageDetail_20' ) start [2025-03-19 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717468', 'tblTempUsageDetail_20' ) end [2025-03-19 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717468', 'tblTempVendorCDR_20' ) start [2025-03-19 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717468', 'tblTempVendorCDR_20' ) end [2025-03-19 18:55:20] Production.INFO: ProcessCDR(1,14717468,1,1,2) [2025-03-19 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717468', 'tblTempUsageDetail_20' ) start [2025-03-19 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717468', 'tblTempUsageDetail_20' ) end [2025-03-19 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:55:25] Production.INFO: ==24433== Releasing lock... [2025-03-19 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:55:25] Production.INFO: 53 MB #Memory Used# [2025-03-19 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:56:05 [end_date_ymd] => 2025-03-19 18:56:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:56:05' and `end` < '2025-03-19 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-03-19 18:56:18] Production.INFO: count ==3384 [2025-03-19 18:56:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:56:05 - End Time 2025-03-19 18:56:05 [2025-03-19 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717473', 'tblTempUsageDetail_20' ) start [2025-03-19 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717473', 'tblTempUsageDetail_20' ) end [2025-03-19 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717473', 'tblTempVendorCDR_20' ) start [2025-03-19 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717473', 'tblTempVendorCDR_20' ) end [2025-03-19 18:56:19] Production.INFO: ProcessCDR(1,14717473,1,1,2) [2025-03-19 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717473', 'tblTempUsageDetail_20' ) start [2025-03-19 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717473', 'tblTempUsageDetail_20' ) end [2025-03-19 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:56:24] Production.INFO: ==24521== Releasing lock... [2025-03-19 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:56:24] Production.INFO: 54 MB #Memory Used# [2025-03-19 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:57:05 [end_date_ymd] => 2025-03-19 18:57:05 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:57:05' and `end` < '2025-03-19 18: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-03-19 18:57:18] Production.INFO: count ==3424 [2025-03-19 18:57:19] Production.ERROR: pbx CDR StartTime 2025-03-19 15:57:05 - End Time 2025-03-19 18:57:05 [2025-03-19 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717478', 'tblTempUsageDetail_20' ) start [2025-03-19 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717478', 'tblTempUsageDetail_20' ) end [2025-03-19 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717478', 'tblTempVendorCDR_20' ) start [2025-03-19 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717478', 'tblTempVendorCDR_20' ) end [2025-03-19 18:57:19] Production.INFO: ProcessCDR(1,14717478,1,1,2) [2025-03-19 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717478', 'tblTempUsageDetail_20' ) start [2025-03-19 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717478', 'tblTempUsageDetail_20' ) end [2025-03-19 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:57:23] Production.INFO: ==24606== Releasing lock... [2025-03-19 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:57:23] Production.INFO: 53.75 MB #Memory Used# [2025-03-19 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:58:06 [end_date_ymd] => 2025-03-19 18:58:06 [RateCDR] => 1 ) [2025-03-19 18: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-03-19 15:58:06' and `end` < '2025-03-19 18: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-03-19 18:58:19] Production.INFO: count ==3454 [2025-03-19 18:58:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:58:06 - End Time 2025-03-19 18:58:06 [2025-03-19 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717483', 'tblTempUsageDetail_20' ) start [2025-03-19 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717483', 'tblTempUsageDetail_20' ) end [2025-03-19 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717483', 'tblTempVendorCDR_20' ) start [2025-03-19 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717483', 'tblTempVendorCDR_20' ) end [2025-03-19 18:58:21] Production.INFO: ProcessCDR(1,14717483,1,1,2) [2025-03-19 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717483', 'tblTempUsageDetail_20' ) start [2025-03-19 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717483', 'tblTempUsageDetail_20' ) end [2025-03-19 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:58:24] Production.INFO: ==24692== Releasing lock... [2025-03-19 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:58:24] Production.INFO: 54 MB #Memory Used# [2025-03-19 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 15:59:05 [end_date_ymd] => 2025-03-19 18:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 15:59:05' and `end` < '2025-03-19 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-03-19 18:59:18] Production.INFO: count ==3495 [2025-03-19 18:59:20] Production.ERROR: pbx CDR StartTime 2025-03-19 15:59:05 - End Time 2025-03-19 18:59:05 [2025-03-19 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717488', 'tblTempUsageDetail_20' ) start [2025-03-19 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717488', 'tblTempUsageDetail_20' ) end [2025-03-19 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717488', 'tblTempVendorCDR_20' ) start [2025-03-19 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717488', 'tblTempVendorCDR_20' ) end [2025-03-19 18:59:20] Production.INFO: ProcessCDR(1,14717488,1,1,2) [2025-03-19 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717488', 'tblTempUsageDetail_20' ) start [2025-03-19 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717488', 'tblTempUsageDetail_20' ) end [2025-03-19 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 18:59:25] Production.INFO: ==24771== Releasing lock... [2025-03-19 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 18:59:25] Production.INFO: 54.25 MB #Memory Used# [2025-03-19 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:00:07 [end_date_ymd] => 2025-03-19 19:00:07 [RateCDR] => 1 ) [2025-03-19 19:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 16:00:07' and `end` < '2025-03-19 19:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 19:00:20] Production.INFO: count ==3527 [2025-03-19 19:00:21] Production.ERROR: pbx CDR StartTime 2025-03-19 16:00:07 - End Time 2025-03-19 19:00:07 [2025-03-19 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717494', 'tblTempUsageDetail_20' ) start [2025-03-19 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717494', 'tblTempUsageDetail_20' ) end [2025-03-19 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717494', 'tblTempVendorCDR_20' ) start [2025-03-19 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717494', 'tblTempVendorCDR_20' ) end [2025-03-19 19:00:21] Production.INFO: ProcessCDR(1,14717494,1,1,2) [2025-03-19 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717494', 'tblTempUsageDetail_20' ) start [2025-03-19 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717494', 'tblTempUsageDetail_20' ) end [2025-03-19 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:00:25] Production.INFO: ==24862== Releasing lock... [2025-03-19 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:00:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-19 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:01:05 [end_date_ymd] => 2025-03-19 19:01:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:01:05' and `end` < '2025-03-19 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-03-19 19:01:18] Production.INFO: count ==3752 [2025-03-19 19:01:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:01:05 - End Time 2025-03-19 19:01:05 [2025-03-19 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717499', 'tblTempUsageDetail_20' ) start [2025-03-19 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717499', 'tblTempUsageDetail_20' ) end [2025-03-19 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717499', 'tblTempVendorCDR_20' ) start [2025-03-19 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717499', 'tblTempVendorCDR_20' ) end [2025-03-19 19:01:19] Production.INFO: ProcessCDR(1,14717499,1,1,2) [2025-03-19 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717499', 'tblTempUsageDetail_20' ) start [2025-03-19 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717499', 'tblTempUsageDetail_20' ) end [2025-03-19 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:01:26] Production.INFO: ==24998== Releasing lock... [2025-03-19 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:01:26] Production.INFO: 56.25 MB #Memory Used# [2025-03-19 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:02:06 [end_date_ymd] => 2025-03-19 19:02:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:02:06' and `end` < '2025-03-19 19: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-03-19 19:02:18] Production.INFO: count ==3749 [2025-03-19 19:02:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:02:06 - End Time 2025-03-19 19:02:06 [2025-03-19 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717504', 'tblTempUsageDetail_20' ) start [2025-03-19 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717504', 'tblTempUsageDetail_20' ) end [2025-03-19 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717504', 'tblTempVendorCDR_20' ) start [2025-03-19 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717504', 'tblTempVendorCDR_20' ) end [2025-03-19 19:02:20] Production.INFO: ProcessCDR(1,14717504,1,1,2) [2025-03-19 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717504', 'tblTempUsageDetail_20' ) start [2025-03-19 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717504', 'tblTempUsageDetail_20' ) end [2025-03-19 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:02:24] Production.INFO: ==25160== Releasing lock... [2025-03-19 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:02:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-19 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:03:06 [end_date_ymd] => 2025-03-19 19:03:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:03:06' and `end` < '2025-03-19 19: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-03-19 19:03:18] Production.INFO: count ==3744 [2025-03-19 19:03:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:03:06 - End Time 2025-03-19 19:03:06 [2025-03-19 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717509', 'tblTempUsageDetail_20' ) start [2025-03-19 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717509', 'tblTempUsageDetail_20' ) end [2025-03-19 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717509', 'tblTempVendorCDR_20' ) start [2025-03-19 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717509', 'tblTempVendorCDR_20' ) end [2025-03-19 19:03:20] Production.INFO: ProcessCDR(1,14717509,1,1,2) [2025-03-19 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717509', 'tblTempUsageDetail_20' ) start [2025-03-19 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717509', 'tblTempUsageDetail_20' ) end [2025-03-19 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:03:25] Production.INFO: ==25246== Releasing lock... [2025-03-19 19:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:03:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-19 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:04:06 [end_date_ymd] => 2025-03-19 19:04:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:04:06' and `end` < '2025-03-19 19: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-03-19 19:04:18] Production.INFO: count ==3741 [2025-03-19 19:04:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:04:06 - End Time 2025-03-19 19:04:06 [2025-03-19 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717514', 'tblTempUsageDetail_20' ) start [2025-03-19 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717514', 'tblTempUsageDetail_20' ) end [2025-03-19 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717514', 'tblTempVendorCDR_20' ) start [2025-03-19 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717514', 'tblTempVendorCDR_20' ) end [2025-03-19 19:04:20] Production.INFO: ProcessCDR(1,14717514,1,1,2) [2025-03-19 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717514', 'tblTempUsageDetail_20' ) start [2025-03-19 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717514', 'tblTempUsageDetail_20' ) end [2025-03-19 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:04:24] Production.INFO: ==25333== Releasing lock... [2025-03-19 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:04:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-19 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:05:05 [end_date_ymd] => 2025-03-19 19:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:05:05' and `end` < '2025-03-19 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-03-19 19:05:18] Production.INFO: count ==3733 [2025-03-19 19:05:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:05:05 - End Time 2025-03-19 19:05:05 [2025-03-19 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717519', 'tblTempUsageDetail_20' ) start [2025-03-19 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717519', 'tblTempUsageDetail_20' ) end [2025-03-19 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717519', 'tblTempVendorCDR_20' ) start [2025-03-19 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717519', 'tblTempVendorCDR_20' ) end [2025-03-19 19:05:20] Production.INFO: ProcessCDR(1,14717519,1,1,2) [2025-03-19 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717519', 'tblTempUsageDetail_20' ) start [2025-03-19 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717519', 'tblTempUsageDetail_20' ) end [2025-03-19 19:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:05:26] Production.INFO: ==25494== Releasing lock... [2025-03-19 19:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:05:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-19 19:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:06:06 [end_date_ymd] => 2025-03-19 19:06:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:06:06' and `end` < '2025-03-19 19: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-03-19 19:06:19] Production.INFO: count ==3725 [2025-03-19 19:06:21] Production.ERROR: pbx CDR StartTime 2025-03-19 16:06:06 - End Time 2025-03-19 19:06:06 [2025-03-19 19:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717524', 'tblTempUsageDetail_20' ) start [2025-03-19 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717524', 'tblTempUsageDetail_20' ) end [2025-03-19 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717524', 'tblTempVendorCDR_20' ) start [2025-03-19 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717524', 'tblTempVendorCDR_20' ) end [2025-03-19 19:06:21] Production.INFO: ProcessCDR(1,14717524,1,1,2) [2025-03-19 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717524', 'tblTempUsageDetail_20' ) start [2025-03-19 19:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717524', 'tblTempUsageDetail_20' ) end [2025-03-19 19:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:06:26] Production.INFO: ==25583== Releasing lock... [2025-03-19 19:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:06:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-19 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:07:06 [end_date_ymd] => 2025-03-19 19:07:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:07:06' and `end` < '2025-03-19 19: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-03-19 19:07:19] Production.INFO: count ==3703 [2025-03-19 19:07:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:07:06 - End Time 2025-03-19 19:07:06 [2025-03-19 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717529', 'tblTempUsageDetail_20' ) start [2025-03-19 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717529', 'tblTempUsageDetail_20' ) end [2025-03-19 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717529', 'tblTempVendorCDR_20' ) start [2025-03-19 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717529', 'tblTempVendorCDR_20' ) end [2025-03-19 19:07:21] Production.INFO: ProcessCDR(1,14717529,1,1,2) [2025-03-19 19:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717529', 'tblTempUsageDetail_20' ) start [2025-03-19 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717529', 'tblTempUsageDetail_20' ) end [2025-03-19 19:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:07:26] Production.INFO: ==25665== Releasing lock... [2025-03-19 19:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:07:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-19 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:08:06 [end_date_ymd] => 2025-03-19 19:08:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:08:06' and `end` < '2025-03-19 19: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-03-19 19:08:19] Production.INFO: count ==3691 [2025-03-19 19:08:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:08:06 - End Time 2025-03-19 19:08:06 [2025-03-19 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717534', 'tblTempUsageDetail_20' ) start [2025-03-19 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717534', 'tblTempUsageDetail_20' ) end [2025-03-19 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717534', 'tblTempVendorCDR_20' ) start [2025-03-19 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717534', 'tblTempVendorCDR_20' ) end [2025-03-19 19:08:20] Production.INFO: ProcessCDR(1,14717534,1,1,2) [2025-03-19 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717534', 'tblTempUsageDetail_20' ) start [2025-03-19 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717534', 'tblTempUsageDetail_20' ) end [2025-03-19 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:08:24] Production.INFO: ==25830== Releasing lock... [2025-03-19 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:08:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-19 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:09:05 [end_date_ymd] => 2025-03-19 19:09:05 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:09:05' and `end` < '2025-03-19 19: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-03-19 19:09:18] Production.INFO: count ==3682 [2025-03-19 19:09:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:09:05 - End Time 2025-03-19 19:09:05 [2025-03-19 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717539', 'tblTempUsageDetail_20' ) start [2025-03-19 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717539', 'tblTempUsageDetail_20' ) end [2025-03-19 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717539', 'tblTempVendorCDR_20' ) start [2025-03-19 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717539', 'tblTempVendorCDR_20' ) end [2025-03-19 19:09:20] Production.INFO: ProcessCDR(1,14717539,1,1,2) [2025-03-19 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717539', 'tblTempUsageDetail_20' ) start [2025-03-19 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717539', 'tblTempUsageDetail_20' ) end [2025-03-19 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:09:23] Production.INFO: ==25902== Releasing lock... [2025-03-19 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:09:23] Production.INFO: 56.25 MB #Memory Used# [2025-03-19 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:10:06 [end_date_ymd] => 2025-03-19 19:10:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:10:06' and `end` < '2025-03-19 19: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-03-19 19:10:19] Production.INFO: count ==3677 [2025-03-19 19:10:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:10:06 - End Time 2025-03-19 19:10:06 [2025-03-19 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717545', 'tblTempUsageDetail_20' ) start [2025-03-19 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717545', 'tblTempUsageDetail_20' ) end [2025-03-19 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717545', 'tblTempVendorCDR_20' ) start [2025-03-19 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717545', 'tblTempVendorCDR_20' ) end [2025-03-19 19:10:21] Production.INFO: ProcessCDR(1,14717545,1,1,2) [2025-03-19 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717545', 'tblTempUsageDetail_20' ) start [2025-03-19 19:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717545', 'tblTempUsageDetail_20' ) end [2025-03-19 19:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:10:26] Production.INFO: ==25978== Releasing lock... [2025-03-19 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:10:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-19 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:11:05 [end_date_ymd] => 2025-03-19 19:11:05 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:11:05' and `end` < '2025-03-19 19: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-03-19 19:11:18] Production.INFO: count ==3618 [2025-03-19 19:11:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:11:05 - End Time 2025-03-19 19:11:05 [2025-03-19 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717550', 'tblTempUsageDetail_20' ) start [2025-03-19 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717550', 'tblTempUsageDetail_20' ) end [2025-03-19 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717550', 'tblTempVendorCDR_20' ) start [2025-03-19 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717550', 'tblTempVendorCDR_20' ) end [2025-03-19 19:11:19] Production.INFO: ProcessCDR(1,14717550,1,1,2) [2025-03-19 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717550', 'tblTempUsageDetail_20' ) start [2025-03-19 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717550', 'tblTempUsageDetail_20' ) end [2025-03-19 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:11:23] Production.INFO: ==26054== Releasing lock... [2025-03-19 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:11:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-19 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:12:06 [end_date_ymd] => 2025-03-19 19:12:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:12:06' and `end` < '2025-03-19 19: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-03-19 19:12:18] Production.INFO: count ==3610 [2025-03-19 19:12:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:12:06 - End Time 2025-03-19 19:12:06 [2025-03-19 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717555', 'tblTempUsageDetail_20' ) start [2025-03-19 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717555', 'tblTempUsageDetail_20' ) end [2025-03-19 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717555', 'tblTempVendorCDR_20' ) start [2025-03-19 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717555', 'tblTempVendorCDR_20' ) end [2025-03-19 19:12:20] Production.INFO: ProcessCDR(1,14717555,1,1,2) [2025-03-19 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717555', 'tblTempUsageDetail_20' ) start [2025-03-19 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717555', 'tblTempUsageDetail_20' ) end [2025-03-19 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:12:25] Production.INFO: ==26202== Releasing lock... [2025-03-19 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:12:25] Production.INFO: 56 MB #Memory Used# [2025-03-19 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:13:05 [end_date_ymd] => 2025-03-19 19:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:13:05' and `end` < '2025-03-19 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-03-19 19:13:18] Production.INFO: count ==3603 [2025-03-19 19:13:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:13:05 - End Time 2025-03-19 19:13:05 [2025-03-19 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717560', 'tblTempUsageDetail_20' ) start [2025-03-19 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717560', 'tblTempUsageDetail_20' ) end [2025-03-19 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717560', 'tblTempVendorCDR_20' ) start [2025-03-19 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717560', 'tblTempVendorCDR_20' ) end [2025-03-19 19:13:19] Production.INFO: ProcessCDR(1,14717560,1,1,2) [2025-03-19 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717560', 'tblTempUsageDetail_20' ) start [2025-03-19 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717560', 'tblTempUsageDetail_20' ) end [2025-03-19 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:13:23] Production.INFO: ==26272== Releasing lock... [2025-03-19 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:13:23] Production.INFO: 54.75 MB #Memory Used# [2025-03-19 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:14:05 [end_date_ymd] => 2025-03-19 19:14:05 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:14:05' and `end` < '2025-03-19 19: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-03-19 19:14:18] Production.INFO: count ==3609 [2025-03-19 19:14:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:14:05 - End Time 2025-03-19 19:14:05 [2025-03-19 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717565', 'tblTempUsageDetail_20' ) start [2025-03-19 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717565', 'tblTempUsageDetail_20' ) end [2025-03-19 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717565', 'tblTempVendorCDR_20' ) start [2025-03-19 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717565', 'tblTempVendorCDR_20' ) end [2025-03-19 19:14:20] Production.INFO: ProcessCDR(1,14717565,1,1,2) [2025-03-19 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717565', 'tblTempUsageDetail_20' ) start [2025-03-19 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717565', 'tblTempUsageDetail_20' ) end [2025-03-19 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:14:23] Production.INFO: ==26353== Releasing lock... [2025-03-19 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:14:23] Production.INFO: 55 MB #Memory Used# [2025-03-19 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:15:05 [end_date_ymd] => 2025-03-19 19:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:15:05' and `end` < '2025-03-19 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-03-19 19:15:18] Production.INFO: count ==3608 [2025-03-19 19:15:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:15:05 - End Time 2025-03-19 19:15:05 [2025-03-19 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717570', 'tblTempUsageDetail_20' ) start [2025-03-19 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717570', 'tblTempUsageDetail_20' ) end [2025-03-19 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717570', 'tblTempVendorCDR_20' ) start [2025-03-19 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717570', 'tblTempVendorCDR_20' ) end [2025-03-19 19:15:19] Production.INFO: ProcessCDR(1,14717570,1,1,2) [2025-03-19 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717570', 'tblTempUsageDetail_20' ) start [2025-03-19 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717570', 'tblTempUsageDetail_20' ) end [2025-03-19 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:15:25] Production.INFO: ==26513== Releasing lock... [2025-03-19 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:15:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-19 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:16:06 [end_date_ymd] => 2025-03-19 19:16:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:16:06' and `end` < '2025-03-19 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-03-19 19:16:18] Production.INFO: count ==3591 [2025-03-19 19:16:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:16:06 - End Time 2025-03-19 19:16:06 [2025-03-19 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717575', 'tblTempUsageDetail_20' ) start [2025-03-19 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717575', 'tblTempUsageDetail_20' ) end [2025-03-19 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717575', 'tblTempVendorCDR_20' ) start [2025-03-19 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717575', 'tblTempVendorCDR_20' ) end [2025-03-19 19:16:20] Production.INFO: ProcessCDR(1,14717575,1,1,2) [2025-03-19 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717575', 'tblTempUsageDetail_20' ) start [2025-03-19 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717575', 'tblTempUsageDetail_20' ) end [2025-03-19 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:16:25] Production.INFO: ==26589== Releasing lock... [2025-03-19 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:16:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-19 19:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:17:06 [end_date_ymd] => 2025-03-19 19:17:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:17:06' and `end` < '2025-03-19 19: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-03-19 19:17:18] Production.INFO: count ==3599 [2025-03-19 19:17:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:17:06 - End Time 2025-03-19 19:17:06 [2025-03-19 19:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717580', 'tblTempUsageDetail_20' ) start [2025-03-19 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717580', 'tblTempUsageDetail_20' ) end [2025-03-19 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717580', 'tblTempVendorCDR_20' ) start [2025-03-19 19:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717580', 'tblTempVendorCDR_20' ) end [2025-03-19 19:17:20] Production.INFO: ProcessCDR(1,14717580,1,1,2) [2025-03-19 19:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717580', 'tblTempUsageDetail_20' ) start [2025-03-19 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717580', 'tblTempUsageDetail_20' ) end [2025-03-19 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:17:24] Production.INFO: ==26701== Releasing lock... [2025-03-19 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:17:24] Production.INFO: 55 MB #Memory Used# [2025-03-19 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:18:05 [end_date_ymd] => 2025-03-19 19:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:18:05' and `end` < '2025-03-19 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-03-19 19:18:18] Production.INFO: count ==3600 [2025-03-19 19:18:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:18:05 - End Time 2025-03-19 19:18:05 [2025-03-19 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717585', 'tblTempUsageDetail_20' ) start [2025-03-19 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717585', 'tblTempUsageDetail_20' ) end [2025-03-19 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717585', 'tblTempVendorCDR_20' ) start [2025-03-19 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717585', 'tblTempVendorCDR_20' ) end [2025-03-19 19:18:19] Production.INFO: ProcessCDR(1,14717585,1,1,2) [2025-03-19 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717585', 'tblTempUsageDetail_20' ) start [2025-03-19 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717585', 'tblTempUsageDetail_20' ) end [2025-03-19 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:18:23] Production.INFO: ==26773== Releasing lock... [2025-03-19 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:18:23] Production.INFO: 55 MB #Memory Used# [2025-03-19 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:19:05 [end_date_ymd] => 2025-03-19 19:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:19:05' and `end` < '2025-03-19 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-03-19 19:19:18] Production.INFO: count ==3607 [2025-03-19 19:19:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:19:05 - End Time 2025-03-19 19:19:05 [2025-03-19 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717590', 'tblTempUsageDetail_20' ) start [2025-03-19 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717590', 'tblTempUsageDetail_20' ) end [2025-03-19 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717590', 'tblTempVendorCDR_20' ) start [2025-03-19 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717590', 'tblTempVendorCDR_20' ) end [2025-03-19 19:19:19] Production.INFO: ProcessCDR(1,14717590,1,1,2) [2025-03-19 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717590', 'tblTempUsageDetail_20' ) start [2025-03-19 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717590', 'tblTempUsageDetail_20' ) end [2025-03-19 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:19:23] Production.INFO: ==26850== Releasing lock... [2025-03-19 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:19:23] Production.INFO: 55 MB #Memory Used# [2025-03-19 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:20:06 [end_date_ymd] => 2025-03-19 19:20:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:20:06' and `end` < '2025-03-19 19: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-03-19 19:20:19] Production.INFO: count ==3602 [2025-03-19 19:20:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:20:06 - End Time 2025-03-19 19:20:06 [2025-03-19 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717595', 'tblTempUsageDetail_20' ) start [2025-03-19 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717595', 'tblTempUsageDetail_20' ) end [2025-03-19 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717595', 'tblTempVendorCDR_20' ) start [2025-03-19 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717595', 'tblTempVendorCDR_20' ) end [2025-03-19 19:20:20] Production.INFO: ProcessCDR(1,14717595,1,1,2) [2025-03-19 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717595', 'tblTempUsageDetail_20' ) start [2025-03-19 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717595', 'tblTempUsageDetail_20' ) end [2025-03-19 19:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:20:26] Production.INFO: ==26934== Releasing lock... [2025-03-19 19:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:20:26] Production.INFO: 54.75 MB #Memory Used# [2025-03-19 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:21:05 [end_date_ymd] => 2025-03-19 19:21:05 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:21:05' and `end` < '2025-03-19 19: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-03-19 19:21:17] Production.INFO: count ==3525 [2025-03-19 19:21:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:21:05 - End Time 2025-03-19 19:21:05 [2025-03-19 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717601', 'tblTempUsageDetail_20' ) start [2025-03-19 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717601', 'tblTempUsageDetail_20' ) end [2025-03-19 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717601', 'tblTempVendorCDR_20' ) start [2025-03-19 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717601', 'tblTempVendorCDR_20' ) end [2025-03-19 19:21:19] Production.INFO: ProcessCDR(1,14717601,1,1,2) [2025-03-19 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717601', 'tblTempUsageDetail_20' ) start [2025-03-19 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717601', 'tblTempUsageDetail_20' ) end [2025-03-19 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:21:22] Production.INFO: ==27010== Releasing lock... [2025-03-19 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:21:22] Production.INFO: 54.5 MB #Memory Used# [2025-03-19 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:22:05 [end_date_ymd] => 2025-03-19 19:22:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:22:05' and `end` < '2025-03-19 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-03-19 19:22:17] Production.INFO: count ==3516 [2025-03-19 19:22:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:22:05 - End Time 2025-03-19 19:22:05 [2025-03-19 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717606', 'tblTempUsageDetail_20' ) start [2025-03-19 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717606', 'tblTempUsageDetail_20' ) end [2025-03-19 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717606', 'tblTempVendorCDR_20' ) start [2025-03-19 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717606', 'tblTempVendorCDR_20' ) end [2025-03-19 19:22:19] Production.INFO: ProcessCDR(1,14717606,1,1,2) [2025-03-19 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717606', 'tblTempUsageDetail_20' ) start [2025-03-19 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717606', 'tblTempUsageDetail_20' ) end [2025-03-19 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:22:22] Production.INFO: ==27084== Releasing lock... [2025-03-19 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:22:22] Production.INFO: 54.5 MB #Memory Used# [2025-03-19 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:23:05 [end_date_ymd] => 2025-03-19 19:23:05 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:23:05' and `end` < '2025-03-19 19: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-03-19 19:23:17] Production.INFO: count ==3509 [2025-03-19 19:23:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:23:05 - End Time 2025-03-19 19:23:05 [2025-03-19 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717611', 'tblTempUsageDetail_20' ) start [2025-03-19 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717611', 'tblTempUsageDetail_20' ) end [2025-03-19 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717611', 'tblTempVendorCDR_20' ) start [2025-03-19 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717611', 'tblTempVendorCDR_20' ) end [2025-03-19 19:23:19] Production.INFO: ProcessCDR(1,14717611,1,1,2) [2025-03-19 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717611', 'tblTempUsageDetail_20' ) start [2025-03-19 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717611', 'tblTempUsageDetail_20' ) end [2025-03-19 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:23:22] Production.INFO: ==27160== Releasing lock... [2025-03-19 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:23:22] Production.INFO: 55.25 MB #Memory Used# [2025-03-19 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:24:06 [end_date_ymd] => 2025-03-19 19:24:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:24:06' and `end` < '2025-03-19 19: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-03-19 19:24:18] Production.INFO: count ==3509 [2025-03-19 19:24:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:24:06 - End Time 2025-03-19 19:24:06 [2025-03-19 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717616', 'tblTempUsageDetail_20' ) start [2025-03-19 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717616', 'tblTempUsageDetail_20' ) end [2025-03-19 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717616', 'tblTempVendorCDR_20' ) start [2025-03-19 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717616', 'tblTempVendorCDR_20' ) end [2025-03-19 19:24:20] Production.INFO: ProcessCDR(1,14717616,1,1,2) [2025-03-19 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717616', 'tblTempUsageDetail_20' ) start [2025-03-19 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717616', 'tblTempUsageDetail_20' ) end [2025-03-19 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:24:25] Production.INFO: ==27248== Releasing lock... [2025-03-19 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:24:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-19 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:25:06 [end_date_ymd] => 2025-03-19 19:25:06 [RateCDR] => 1 ) [2025-03-19 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 16:25:06' and `end` < '2025-03-19 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 19:25:18] Production.INFO: count ==3522 [2025-03-19 19:25:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:25:06 - End Time 2025-03-19 19:25:06 [2025-03-19 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717621', 'tblTempUsageDetail_20' ) start [2025-03-19 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717621', 'tblTempUsageDetail_20' ) end [2025-03-19 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717621', 'tblTempVendorCDR_20' ) start [2025-03-19 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717621', 'tblTempVendorCDR_20' ) end [2025-03-19 19:25:20] Production.INFO: ProcessCDR(1,14717621,1,1,2) [2025-03-19 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717621', 'tblTempUsageDetail_20' ) start [2025-03-19 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717621', 'tblTempUsageDetail_20' ) end [2025-03-19 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:25:25] Production.INFO: ==27327== Releasing lock... [2025-03-19 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:25:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-19 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:26:05 [end_date_ymd] => 2025-03-19 19:26:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:26:05' and `end` < '2025-03-19 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-03-19 19:26:18] Production.INFO: count ==3507 [2025-03-19 19:26:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:26:05 - End Time 2025-03-19 19:26:05 [2025-03-19 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717626', 'tblTempUsageDetail_20' ) start [2025-03-19 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717626', 'tblTempUsageDetail_20' ) end [2025-03-19 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717626', 'tblTempVendorCDR_20' ) start [2025-03-19 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717626', 'tblTempVendorCDR_20' ) end [2025-03-19 19:26:19] Production.INFO: ProcessCDR(1,14717626,1,1,2) [2025-03-19 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717626', 'tblTempUsageDetail_20' ) start [2025-03-19 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717626', 'tblTempUsageDetail_20' ) end [2025-03-19 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:26:22] Production.INFO: ==27408== Releasing lock... [2025-03-19 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:26:22] Production.INFO: 54.25 MB #Memory Used# [2025-03-19 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:27:05 [end_date_ymd] => 2025-03-19 19:27:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:27:05' and `end` < '2025-03-19 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-03-19 19:27:18] Production.INFO: count ==3504 [2025-03-19 19:27:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:27:05 - End Time 2025-03-19 19:27:05 [2025-03-19 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717631', 'tblTempUsageDetail_20' ) start [2025-03-19 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717631', 'tblTempUsageDetail_20' ) end [2025-03-19 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717631', 'tblTempVendorCDR_20' ) start [2025-03-19 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717631', 'tblTempVendorCDR_20' ) end [2025-03-19 19:27:20] Production.INFO: ProcessCDR(1,14717631,1,1,2) [2025-03-19 19:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717631', 'tblTempUsageDetail_20' ) start [2025-03-19 19:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717631', 'tblTempUsageDetail_20' ) end [2025-03-19 19:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:27:25] Production.INFO: ==27492== Releasing lock... [2025-03-19 19:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:27:25] Production.INFO: 54.5 MB #Memory Used# [2025-03-19 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:28:05 [end_date_ymd] => 2025-03-19 19:28:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:28:05' and `end` < '2025-03-19 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-03-19 19:28:18] Production.INFO: count ==3498 [2025-03-19 19:28:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:28:05 - End Time 2025-03-19 19:28:05 [2025-03-19 19:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717636', 'tblTempUsageDetail_20' ) start [2025-03-19 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717636', 'tblTempUsageDetail_20' ) end [2025-03-19 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717636', 'tblTempVendorCDR_20' ) start [2025-03-19 19:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717636', 'tblTempVendorCDR_20' ) end [2025-03-19 19:28:20] Production.INFO: ProcessCDR(1,14717636,1,1,2) [2025-03-19 19:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717636', 'tblTempUsageDetail_20' ) start [2025-03-19 19:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717636', 'tblTempUsageDetail_20' ) end [2025-03-19 19:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:28:26] Production.INFO: ==27572== Releasing lock... [2025-03-19 19:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:28:26] Production.INFO: 54.25 MB #Memory Used# [2025-03-19 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:29:06 [end_date_ymd] => 2025-03-19 19:29:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:29:06' and `end` < '2025-03-19 19: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-03-19 19:29:19] Production.INFO: count ==3488 [2025-03-19 19:29:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:29:06 - End Time 2025-03-19 19:29:06 [2025-03-19 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717641', 'tblTempUsageDetail_20' ) start [2025-03-19 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717641', 'tblTempUsageDetail_20' ) end [2025-03-19 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717641', 'tblTempVendorCDR_20' ) start [2025-03-19 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717641', 'tblTempVendorCDR_20' ) end [2025-03-19 19:29:20] Production.INFO: ProcessCDR(1,14717641,1,1,2) [2025-03-19 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717641', 'tblTempUsageDetail_20' ) start [2025-03-19 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717641', 'tblTempUsageDetail_20' ) end [2025-03-19 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:29:24] Production.INFO: ==27659== Releasing lock... [2025-03-19 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:29:24] Production.INFO: 54.75 MB #Memory Used# [2025-03-19 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:30:06 [end_date_ymd] => 2025-03-19 19:30:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:30:06' and `end` < '2025-03-19 19: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-03-19 19:30:18] Production.INFO: count ==3460 [2025-03-19 19:30:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:30:06 - End Time 2025-03-19 19:30:06 [2025-03-19 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717647', 'tblTempUsageDetail_20' ) start [2025-03-19 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717647', 'tblTempUsageDetail_20' ) end [2025-03-19 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717647', 'tblTempVendorCDR_20' ) start [2025-03-19 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717647', 'tblTempVendorCDR_20' ) end [2025-03-19 19:30:20] Production.INFO: ProcessCDR(1,14717647,1,1,2) [2025-03-19 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717647', 'tblTempUsageDetail_20' ) start [2025-03-19 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717647', 'tblTempUsageDetail_20' ) end [2025-03-19 19:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:30:25] Production.INFO: ==27745== Releasing lock... [2025-03-19 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:30:25] Production.INFO: 54.25 MB #Memory Used# [2025-03-19 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:31:05 [end_date_ymd] => 2025-03-19 19:31:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:31:05' and `end` < '2025-03-19 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-03-19 19:31:18] Production.INFO: count ==3359 [2025-03-19 19:31:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:31:05 - End Time 2025-03-19 19:31:05 [2025-03-19 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717652', 'tblTempUsageDetail_20' ) start [2025-03-19 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717652', 'tblTempUsageDetail_20' ) end [2025-03-19 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717652', 'tblTempVendorCDR_20' ) start [2025-03-19 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717652', 'tblTempVendorCDR_20' ) end [2025-03-19 19:31:19] Production.INFO: ProcessCDR(1,14717652,1,1,2) [2025-03-19 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717652', 'tblTempUsageDetail_20' ) start [2025-03-19 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717652', 'tblTempUsageDetail_20' ) end [2025-03-19 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:31:23] Production.INFO: ==27833== Releasing lock... [2025-03-19 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:31:23] Production.INFO: 53.25 MB #Memory Used# [2025-03-19 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:32:05 [end_date_ymd] => 2025-03-19 19:32:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:32:05' and `end` < '2025-03-19 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-03-19 19:32:18] Production.INFO: count ==3353 [2025-03-19 19:32:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:32:05 - End Time 2025-03-19 19:32:05 [2025-03-19 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717657', 'tblTempUsageDetail_20' ) start [2025-03-19 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717657', 'tblTempUsageDetail_20' ) end [2025-03-19 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717657', 'tblTempVendorCDR_20' ) start [2025-03-19 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717657', 'tblTempVendorCDR_20' ) end [2025-03-19 19:32:19] Production.INFO: ProcessCDR(1,14717657,1,1,2) [2025-03-19 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717657', 'tblTempUsageDetail_20' ) start [2025-03-19 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717657', 'tblTempUsageDetail_20' ) end [2025-03-19 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:32:23] Production.INFO: ==27962== Releasing lock... [2025-03-19 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:32:23] Production.INFO: 53.25 MB #Memory Used# [2025-03-19 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:33:05 [end_date_ymd] => 2025-03-19 19:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:33:05' and `end` < '2025-03-19 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-03-19 19:33:18] Production.INFO: count ==3341 [2025-03-19 19:33:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:33:05 - End Time 2025-03-19 19:33:05 [2025-03-19 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717662', 'tblTempUsageDetail_20' ) start [2025-03-19 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717662', 'tblTempUsageDetail_20' ) end [2025-03-19 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717662', 'tblTempVendorCDR_20' ) start [2025-03-19 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717662', 'tblTempVendorCDR_20' ) end [2025-03-19 19:33:19] Production.INFO: ProcessCDR(1,14717662,1,1,2) [2025-03-19 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717662', 'tblTempUsageDetail_20' ) start [2025-03-19 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717662', 'tblTempUsageDetail_20' ) end [2025-03-19 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:33:23] Production.INFO: ==28047== Releasing lock... [2025-03-19 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:33:23] Production.INFO: 53.5 MB #Memory Used# [2025-03-19 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:34:05 [end_date_ymd] => 2025-03-19 19:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:34:05' and `end` < '2025-03-19 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-03-19 19:34:18] Production.INFO: count ==3321 [2025-03-19 19:34:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:34:05 - End Time 2025-03-19 19:34:05 [2025-03-19 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717667', 'tblTempUsageDetail_20' ) start [2025-03-19 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717667', 'tblTempUsageDetail_20' ) end [2025-03-19 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717667', 'tblTempVendorCDR_20' ) start [2025-03-19 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717667', 'tblTempVendorCDR_20' ) end [2025-03-19 19:34:19] Production.INFO: ProcessCDR(1,14717667,1,1,2) [2025-03-19 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717667', 'tblTempUsageDetail_20' ) start [2025-03-19 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717667', 'tblTempUsageDetail_20' ) end [2025-03-19 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:34:22] Production.INFO: ==28129== Releasing lock... [2025-03-19 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:34:22] Production.INFO: 53 MB #Memory Used# [2025-03-19 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:35:05 [end_date_ymd] => 2025-03-19 19:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:35:05' and `end` < '2025-03-19 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-03-19 19:35:18] Production.INFO: count ==3290 [2025-03-19 19:35:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:35:05 - End Time 2025-03-19 19:35:05 [2025-03-19 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717672', 'tblTempUsageDetail_20' ) start [2025-03-19 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717672', 'tblTempUsageDetail_20' ) end [2025-03-19 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717672', 'tblTempVendorCDR_20' ) start [2025-03-19 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717672', 'tblTempVendorCDR_20' ) end [2025-03-19 19:35:19] Production.INFO: ProcessCDR(1,14717672,1,1,2) [2025-03-19 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717672', 'tblTempUsageDetail_20' ) start [2025-03-19 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717672', 'tblTempUsageDetail_20' ) end [2025-03-19 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:35:22] Production.INFO: ==28221== Releasing lock... [2025-03-19 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:35:22] Production.INFO: 54.5 MB #Memory Used# [2025-03-19 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:36:05 [end_date_ymd] => 2025-03-19 19:36:05 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:36:05' and `end` < '2025-03-19 19: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-03-19 19:36:18] Production.INFO: count ==3286 [2025-03-19 19:36:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:36:05 - End Time 2025-03-19 19:36:05 [2025-03-19 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717677', 'tblTempUsageDetail_20' ) start [2025-03-19 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717677', 'tblTempUsageDetail_20' ) end [2025-03-19 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717677', 'tblTempVendorCDR_20' ) start [2025-03-19 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717677', 'tblTempVendorCDR_20' ) end [2025-03-19 19:36:19] Production.INFO: ProcessCDR(1,14717677,1,1,2) [2025-03-19 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717677', 'tblTempUsageDetail_20' ) start [2025-03-19 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717677', 'tblTempUsageDetail_20' ) end [2025-03-19 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:36:22] Production.INFO: ==28310== Releasing lock... [2025-03-19 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:36:22] Production.INFO: 53 MB #Memory Used# [2025-03-19 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:37:05 [end_date_ymd] => 2025-03-19 19:37:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:37:05' and `end` < '2025-03-19 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-03-19 19:37:18] Production.INFO: count ==3287 [2025-03-19 19:37:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:37:05 - End Time 2025-03-19 19:37:05 [2025-03-19 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717682', 'tblTempUsageDetail_20' ) start [2025-03-19 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717682', 'tblTempUsageDetail_20' ) end [2025-03-19 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717682', 'tblTempVendorCDR_20' ) start [2025-03-19 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717682', 'tblTempVendorCDR_20' ) end [2025-03-19 19:37:19] Production.INFO: ProcessCDR(1,14717682,1,1,2) [2025-03-19 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717682', 'tblTempUsageDetail_20' ) start [2025-03-19 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717682', 'tblTempUsageDetail_20' ) end [2025-03-19 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:37:24] Production.INFO: ==28396== Releasing lock... [2025-03-19 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:37:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-19 19:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:38:04 [end_date_ymd] => 2025-03-19 19:38:04 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:38:04' and `end` < '2025-03-19 19: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-03-19 19:38:17] Production.INFO: count ==3272 [2025-03-19 19:38:18] Production.ERROR: pbx CDR StartTime 2025-03-19 16:38:04 - End Time 2025-03-19 19:38:04 [2025-03-19 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717687', 'tblTempUsageDetail_20' ) start [2025-03-19 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717687', 'tblTempUsageDetail_20' ) end [2025-03-19 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717687', 'tblTempVendorCDR_20' ) start [2025-03-19 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717687', 'tblTempVendorCDR_20' ) end [2025-03-19 19:38:18] Production.INFO: ProcessCDR(1,14717687,1,1,2) [2025-03-19 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717687', 'tblTempUsageDetail_20' ) start [2025-03-19 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717687', 'tblTempUsageDetail_20' ) end [2025-03-19 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:38:22] Production.INFO: ==28484== Releasing lock... [2025-03-19 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:38:22] Production.INFO: 52.75 MB #Memory Used# [2025-03-19 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:39:05 [end_date_ymd] => 2025-03-19 19:39:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:39:05' and `end` < '2025-03-19 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-03-19 19:39:17] Production.INFO: count ==3262 [2025-03-19 19:39:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:39:05 - End Time 2025-03-19 19:39:05 [2025-03-19 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717692', 'tblTempUsageDetail_20' ) start [2025-03-19 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717692', 'tblTempUsageDetail_20' ) end [2025-03-19 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717692', 'tblTempVendorCDR_20' ) start [2025-03-19 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717692', 'tblTempVendorCDR_20' ) end [2025-03-19 19:39:19] Production.INFO: ProcessCDR(1,14717692,1,1,2) [2025-03-19 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717692', 'tblTempUsageDetail_20' ) start [2025-03-19 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717692', 'tblTempUsageDetail_20' ) end [2025-03-19 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:39:22] Production.INFO: ==28573== Releasing lock... [2025-03-19 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:39:22] Production.INFO: 52.75 MB #Memory Used# [2025-03-19 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:40:06 [end_date_ymd] => 2025-03-19 19:40:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:40:06' and `end` < '2025-03-19 19: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-03-19 19:40:19] Production.INFO: count ==3261 [2025-03-19 19:40:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:40:06 - End Time 2025-03-19 19:40:06 [2025-03-19 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717698', 'tblTempUsageDetail_20' ) start [2025-03-19 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717698', 'tblTempUsageDetail_20' ) end [2025-03-19 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717698', 'tblTempVendorCDR_20' ) start [2025-03-19 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717698', 'tblTempVendorCDR_20' ) end [2025-03-19 19:40:20] Production.INFO: ProcessCDR(1,14717698,1,1,2) [2025-03-19 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717698', 'tblTempUsageDetail_20' ) start [2025-03-19 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717698', 'tblTempUsageDetail_20' ) end [2025-03-19 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:40:24] Production.INFO: ==28664== Releasing lock... [2025-03-19 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:40:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-19 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:41:05 [end_date_ymd] => 2025-03-19 19:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:41:05' and `end` < '2025-03-19 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-03-19 19:41:18] Production.INFO: count ==3194 [2025-03-19 19:41:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:41:05 - End Time 2025-03-19 19:41:05 [2025-03-19 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717703', 'tblTempUsageDetail_20' ) start [2025-03-19 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717703', 'tblTempUsageDetail_20' ) end [2025-03-19 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717703', 'tblTempVendorCDR_20' ) start [2025-03-19 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717703', 'tblTempVendorCDR_20' ) end [2025-03-19 19:41:19] Production.INFO: ProcessCDR(1,14717703,1,1,2) [2025-03-19 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717703', 'tblTempUsageDetail_20' ) start [2025-03-19 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717703', 'tblTempUsageDetail_20' ) end [2025-03-19 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:41:24] Production.INFO: ==28761== Releasing lock... [2025-03-19 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:41:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-19 19:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:42:04 [end_date_ymd] => 2025-03-19 19:42:04 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:42:04' and `end` < '2025-03-19 19: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-03-19 19:42:17] Production.INFO: count ==3176 [2025-03-19 19:42:18] Production.ERROR: pbx CDR StartTime 2025-03-19 16:42:04 - End Time 2025-03-19 19:42:04 [2025-03-19 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717708', 'tblTempUsageDetail_20' ) start [2025-03-19 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717708', 'tblTempUsageDetail_20' ) end [2025-03-19 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717708', 'tblTempVendorCDR_20' ) start [2025-03-19 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717708', 'tblTempVendorCDR_20' ) end [2025-03-19 19:42:18] Production.INFO: ProcessCDR(1,14717708,1,1,2) [2025-03-19 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717708', 'tblTempUsageDetail_20' ) start [2025-03-19 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717708', 'tblTempUsageDetail_20' ) end [2025-03-19 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:42:23] Production.INFO: ==28852== Releasing lock... [2025-03-19 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:42:23] Production.INFO: 52 MB #Memory Used# [2025-03-19 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:43:05 [end_date_ymd] => 2025-03-19 19:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:43:05' and `end` < '2025-03-19 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-03-19 19:43:18] Production.INFO: count ==3170 [2025-03-19 19:43:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:43:05 - End Time 2025-03-19 19:43:05 [2025-03-19 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717713', 'tblTempUsageDetail_20' ) start [2025-03-19 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717713', 'tblTempUsageDetail_20' ) end [2025-03-19 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717713', 'tblTempVendorCDR_20' ) start [2025-03-19 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717713', 'tblTempVendorCDR_20' ) end [2025-03-19 19:43:19] Production.INFO: ProcessCDR(1,14717713,1,1,2) [2025-03-19 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717713', 'tblTempUsageDetail_20' ) start [2025-03-19 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717713', 'tblTempUsageDetail_20' ) end [2025-03-19 19:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:43:24] Production.INFO: ==28955== Releasing lock... [2025-03-19 19:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:43:24] Production.INFO: 53.25 MB #Memory Used# [2025-03-19 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:44:05 [end_date_ymd] => 2025-03-19 19:44:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:44:05' and `end` < '2025-03-19 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-03-19 19:44:18] Production.INFO: count ==3151 [2025-03-19 19:44:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:44:05 - End Time 2025-03-19 19:44:05 [2025-03-19 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717718', 'tblTempUsageDetail_20' ) start [2025-03-19 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717718', 'tblTempUsageDetail_20' ) end [2025-03-19 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717718', 'tblTempVendorCDR_20' ) start [2025-03-19 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717718', 'tblTempVendorCDR_20' ) end [2025-03-19 19:44:19] Production.INFO: ProcessCDR(1,14717718,1,1,2) [2025-03-19 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717718', 'tblTempUsageDetail_20' ) start [2025-03-19 19:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717718', 'tblTempUsageDetail_20' ) end [2025-03-19 19:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:44:25] Production.INFO: ==29044== Releasing lock... [2025-03-19 19:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:44:25] Production.INFO: 51.75 MB #Memory Used# [2025-03-19 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:45:05 [end_date_ymd] => 2025-03-19 19:45:05 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:45:05' and `end` < '2025-03-19 19: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-03-19 19:45:18] Production.INFO: count ==3137 [2025-03-19 19:45:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:45:05 - End Time 2025-03-19 19:45:05 [2025-03-19 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717723', 'tblTempUsageDetail_20' ) start [2025-03-19 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717723', 'tblTempUsageDetail_20' ) end [2025-03-19 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717723', 'tblTempVendorCDR_20' ) start [2025-03-19 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717723', 'tblTempVendorCDR_20' ) end [2025-03-19 19:45:19] Production.INFO: ProcessCDR(1,14717723,1,1,2) [2025-03-19 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717723', 'tblTempUsageDetail_20' ) start [2025-03-19 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717723', 'tblTempUsageDetail_20' ) end [2025-03-19 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:45:22] Production.INFO: ==29147== Releasing lock... [2025-03-19 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:45:22] Production.INFO: 51.75 MB #Memory Used# [2025-03-19 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:46:05 [end_date_ymd] => 2025-03-19 19:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:46:05' and `end` < '2025-03-19 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-03-19 19:46:18] Production.INFO: count ==3118 [2025-03-19 19:46:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:46:05 - End Time 2025-03-19 19:46:05 [2025-03-19 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717728', 'tblTempUsageDetail_20' ) start [2025-03-19 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717728', 'tblTempUsageDetail_20' ) end [2025-03-19 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717728', 'tblTempVendorCDR_20' ) start [2025-03-19 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717728', 'tblTempVendorCDR_20' ) end [2025-03-19 19:46:19] Production.INFO: ProcessCDR(1,14717728,1,1,2) [2025-03-19 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717728', 'tblTempUsageDetail_20' ) start [2025-03-19 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717728', 'tblTempUsageDetail_20' ) end [2025-03-19 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:46:24] Production.INFO: ==29250== Releasing lock... [2025-03-19 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:46:24] Production.INFO: 52 MB #Memory Used# [2025-03-19 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:47:05 [end_date_ymd] => 2025-03-19 19:47:05 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:47:05' and `end` < '2025-03-19 19: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-03-19 19:47:18] Production.INFO: count ==3111 [2025-03-19 19:47:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:47:05 - End Time 2025-03-19 19:47:05 [2025-03-19 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717733', 'tblTempUsageDetail_20' ) start [2025-03-19 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717733', 'tblTempUsageDetail_20' ) end [2025-03-19 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717733', 'tblTempVendorCDR_20' ) start [2025-03-19 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717733', 'tblTempVendorCDR_20' ) end [2025-03-19 19:47:19] Production.INFO: ProcessCDR(1,14717733,1,1,2) [2025-03-19 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717733', 'tblTempUsageDetail_20' ) start [2025-03-19 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717733', 'tblTempUsageDetail_20' ) end [2025-03-19 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:47:23] Production.INFO: ==29344== Releasing lock... [2025-03-19 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:47:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-19 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:48:06 [end_date_ymd] => 2025-03-19 19:48:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:48:06' and `end` < '2025-03-19 19: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-03-19 19:48:18] Production.INFO: count ==3088 [2025-03-19 19:48:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:48:06 - End Time 2025-03-19 19:48:06 [2025-03-19 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717738', 'tblTempUsageDetail_20' ) start [2025-03-19 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717738', 'tblTempUsageDetail_20' ) end [2025-03-19 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717738', 'tblTempVendorCDR_20' ) start [2025-03-19 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717738', 'tblTempVendorCDR_20' ) end [2025-03-19 19:48:20] Production.INFO: ProcessCDR(1,14717738,1,1,2) [2025-03-19 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717738', 'tblTempUsageDetail_20' ) start [2025-03-19 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717738', 'tblTempUsageDetail_20' ) end [2025-03-19 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:48:23] Production.INFO: ==29477== Releasing lock... [2025-03-19 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:48:23] Production.INFO: 51 MB #Memory Used# [2025-03-19 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:49:05 [end_date_ymd] => 2025-03-19 19:49:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:49:05' and `end` < '2025-03-19 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-03-19 19:49:17] Production.INFO: count ==3069 [2025-03-19 19:49:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:49:05 - End Time 2025-03-19 19:49:05 [2025-03-19 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717743', 'tblTempUsageDetail_20' ) start [2025-03-19 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717743', 'tblTempUsageDetail_20' ) end [2025-03-19 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717743', 'tblTempVendorCDR_20' ) start [2025-03-19 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717743', 'tblTempVendorCDR_20' ) end [2025-03-19 19:49:19] Production.INFO: ProcessCDR(1,14717743,1,1,2) [2025-03-19 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717743', 'tblTempUsageDetail_20' ) start [2025-03-19 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717743', 'tblTempUsageDetail_20' ) end [2025-03-19 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:49:22] Production.INFO: ==29574== Releasing lock... [2025-03-19 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:49:22] Production.INFO: 50.75 MB #Memory Used# [2025-03-19 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:50:06 [end_date_ymd] => 2025-03-19 19:50:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:50:06' and `end` < '2025-03-19 19: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-03-19 19:50:19] Production.INFO: count ==3062 [2025-03-19 19:50:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:50:06 - End Time 2025-03-19 19:50:06 [2025-03-19 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717749', 'tblTempUsageDetail_20' ) start [2025-03-19 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717749', 'tblTempUsageDetail_20' ) end [2025-03-19 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717749', 'tblTempVendorCDR_20' ) start [2025-03-19 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717749', 'tblTempVendorCDR_20' ) end [2025-03-19 19:50:20] Production.INFO: ProcessCDR(1,14717749,1,1,2) [2025-03-19 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717749', 'tblTempUsageDetail_20' ) start [2025-03-19 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717749', 'tblTempUsageDetail_20' ) end [2025-03-19 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:50:24] Production.INFO: ==29674== Releasing lock... [2025-03-19 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:50:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-19 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:51:05 [end_date_ymd] => 2025-03-19 19:51:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:51:05' and `end` < '2025-03-19 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-03-19 19:51:18] Production.INFO: count ==3043 [2025-03-19 19:51:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:51:05 - End Time 2025-03-19 19:51:05 [2025-03-19 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717754', 'tblTempUsageDetail_20' ) start [2025-03-19 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717754', 'tblTempUsageDetail_20' ) end [2025-03-19 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717754', 'tblTempVendorCDR_20' ) start [2025-03-19 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717754', 'tblTempVendorCDR_20' ) end [2025-03-19 19:51:19] Production.INFO: ProcessCDR(1,14717754,1,1,2) [2025-03-19 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717754', 'tblTempUsageDetail_20' ) start [2025-03-19 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717754', 'tblTempUsageDetail_20' ) end [2025-03-19 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:51:23] Production.INFO: ==29776== Releasing lock... [2025-03-19 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:51:23] Production.INFO: 50.75 MB #Memory Used# [2025-03-19 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:52:05 [end_date_ymd] => 2025-03-19 19:52:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:52:05' and `end` < '2025-03-19 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-03-19 19:52:18] Production.INFO: count ==3055 [2025-03-19 19:52:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:52:05 - End Time 2025-03-19 19:52:05 [2025-03-19 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717759', 'tblTempUsageDetail_20' ) start [2025-03-19 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717759', 'tblTempUsageDetail_20' ) end [2025-03-19 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717759', 'tblTempVendorCDR_20' ) start [2025-03-19 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717759', 'tblTempVendorCDR_20' ) end [2025-03-19 19:52:19] Production.INFO: ProcessCDR(1,14717759,1,1,2) [2025-03-19 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717759', 'tblTempUsageDetail_20' ) start [2025-03-19 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717759', 'tblTempUsageDetail_20' ) end [2025-03-19 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:52:24] Production.INFO: ==29877== Releasing lock... [2025-03-19 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:52:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-19 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:53:06 [end_date_ymd] => 2025-03-19 19:53:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:53:06' and `end` < '2025-03-19 19: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-03-19 19:53:18] Production.INFO: count ==3060 [2025-03-19 19:53:20] Production.ERROR: pbx CDR StartTime 2025-03-19 16:53:06 - End Time 2025-03-19 19:53:06 [2025-03-19 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717764', 'tblTempUsageDetail_20' ) start [2025-03-19 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717764', 'tblTempUsageDetail_20' ) end [2025-03-19 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717764', 'tblTempVendorCDR_20' ) start [2025-03-19 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717764', 'tblTempVendorCDR_20' ) end [2025-03-19 19:53:20] Production.INFO: ProcessCDR(1,14717764,1,1,2) [2025-03-19 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717764', 'tblTempUsageDetail_20' ) start [2025-03-19 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717764', 'tblTempUsageDetail_20' ) end [2025-03-19 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:53:23] Production.INFO: ==29972== Releasing lock... [2025-03-19 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:53:23] Production.INFO: 51 MB #Memory Used# [2025-03-19 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:54:05 [end_date_ymd] => 2025-03-19 19:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:54:05' and `end` < '2025-03-19 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-03-19 19:54:18] Production.INFO: count ==3048 [2025-03-19 19:54:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:54:05 - End Time 2025-03-19 19:54:05 [2025-03-19 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717769', 'tblTempUsageDetail_20' ) start [2025-03-19 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717769', 'tblTempUsageDetail_20' ) end [2025-03-19 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717769', 'tblTempVendorCDR_20' ) start [2025-03-19 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717769', 'tblTempVendorCDR_20' ) end [2025-03-19 19:54:19] Production.INFO: ProcessCDR(1,14717769,1,1,2) [2025-03-19 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717769', 'tblTempUsageDetail_20' ) start [2025-03-19 19:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717769', 'tblTempUsageDetail_20' ) end [2025-03-19 19:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:54:23] Production.INFO: ==30071== Releasing lock... [2025-03-19 19:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:54:23] Production.INFO: 51 MB #Memory Used# [2025-03-19 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:55:06 [end_date_ymd] => 2025-03-19 19:55:06 [RateCDR] => 1 ) [2025-03-19 19: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-03-19 16:55:06' and `end` < '2025-03-19 19: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-03-19 19:55:18] Production.INFO: count ==3040 [2025-03-19 19:55:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:55:06 - End Time 2025-03-19 19:55:06 [2025-03-19 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717774', 'tblTempUsageDetail_20' ) start [2025-03-19 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717774', 'tblTempUsageDetail_20' ) end [2025-03-19 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717774', 'tblTempVendorCDR_20' ) start [2025-03-19 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717774', 'tblTempVendorCDR_20' ) end [2025-03-19 19:55:19] Production.INFO: ProcessCDR(1,14717774,1,1,2) [2025-03-19 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717774', 'tblTempUsageDetail_20' ) start [2025-03-19 19:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717774', 'tblTempUsageDetail_20' ) end [2025-03-19 19:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:55:25] Production.INFO: ==30163== Releasing lock... [2025-03-19 19:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:55:25] Production.INFO: 50.75 MB #Memory Used# [2025-03-19 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:56:05 [end_date_ymd] => 2025-03-19 19:56:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:56:05' and `end` < '2025-03-19 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-03-19 19:56:18] Production.INFO: count ==3040 [2025-03-19 19:56:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:56:05 - End Time 2025-03-19 19:56:05 [2025-03-19 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717779', 'tblTempUsageDetail_20' ) start [2025-03-19 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717779', 'tblTempUsageDetail_20' ) end [2025-03-19 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717779', 'tblTempVendorCDR_20' ) start [2025-03-19 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717779', 'tblTempVendorCDR_20' ) end [2025-03-19 19:56:19] Production.INFO: ProcessCDR(1,14717779,1,1,2) [2025-03-19 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717779', 'tblTempUsageDetail_20' ) start [2025-03-19 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717779', 'tblTempUsageDetail_20' ) end [2025-03-19 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:56:22] Production.INFO: ==30249== Releasing lock... [2025-03-19 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:56:22] Production.INFO: 50.75 MB #Memory Used# [2025-03-19 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:57:05 [end_date_ymd] => 2025-03-19 19:57:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:57:05' and `end` < '2025-03-19 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-03-19 19:57:18] Production.INFO: count ==3036 [2025-03-19 19:57:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:57:05 - End Time 2025-03-19 19:57:05 [2025-03-19 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717784', 'tblTempUsageDetail_20' ) start [2025-03-19 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717784', 'tblTempUsageDetail_20' ) end [2025-03-19 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717784', 'tblTempVendorCDR_20' ) start [2025-03-19 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717784', 'tblTempVendorCDR_20' ) end [2025-03-19 19:57:19] Production.INFO: ProcessCDR(1,14717784,1,1,2) [2025-03-19 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717784', 'tblTempUsageDetail_20' ) start [2025-03-19 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717784', 'tblTempUsageDetail_20' ) end [2025-03-19 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:57:22] Production.INFO: ==30340== Releasing lock... [2025-03-19 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:57:22] Production.INFO: 50.5 MB #Memory Used# [2025-03-19 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:58:05 [end_date_ymd] => 2025-03-19 19:58:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:58:05' and `end` < '2025-03-19 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-03-19 19:58:17] Production.INFO: count ==3022 [2025-03-19 19:58:18] Production.ERROR: pbx CDR StartTime 2025-03-19 16:58:05 - End Time 2025-03-19 19:58:05 [2025-03-19 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717789', 'tblTempUsageDetail_20' ) start [2025-03-19 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717789', 'tblTempUsageDetail_20' ) end [2025-03-19 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717789', 'tblTempVendorCDR_20' ) start [2025-03-19 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717789', 'tblTempVendorCDR_20' ) end [2025-03-19 19:58:18] Production.INFO: ProcessCDR(1,14717789,1,1,2) [2025-03-19 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717789', 'tblTempUsageDetail_20' ) start [2025-03-19 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717789', 'tblTempUsageDetail_20' ) end [2025-03-19 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:58:23] Production.INFO: ==30436== Releasing lock... [2025-03-19 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:58:23] Production.INFO: 50.5 MB #Memory Used# [2025-03-19 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 16:59:05 [end_date_ymd] => 2025-03-19 19:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 16:59:05' and `end` < '2025-03-19 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-03-19 19:59:18] Production.INFO: count ==3008 [2025-03-19 19:59:19] Production.ERROR: pbx CDR StartTime 2025-03-19 16:59:05 - End Time 2025-03-19 19:59:05 [2025-03-19 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717794', 'tblTempUsageDetail_20' ) start [2025-03-19 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717794', 'tblTempUsageDetail_20' ) end [2025-03-19 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717794', 'tblTempVendorCDR_20' ) start [2025-03-19 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717794', 'tblTempVendorCDR_20' ) end [2025-03-19 19:59:19] Production.INFO: ProcessCDR(1,14717794,1,1,2) [2025-03-19 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717794', 'tblTempUsageDetail_20' ) start [2025-03-19 19:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717794', 'tblTempUsageDetail_20' ) end [2025-03-19 19:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 19:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 19:59:24] Production.INFO: ==30531== Releasing lock... [2025-03-19 19:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 19:59:24] Production.INFO: 50.5 MB #Memory Used# [2025-03-19 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:00:06 [end_date_ymd] => 2025-03-19 20:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:00:06' and `end` < '2025-03-19 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-03-19 20:00:18] Production.INFO: count ==2996 [2025-03-19 20:00:20] Production.ERROR: pbx CDR StartTime 2025-03-19 17:00:06 - End Time 2025-03-19 20:00:06 [2025-03-19 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717799', 'tblTempUsageDetail_20' ) start [2025-03-19 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717799', 'tblTempUsageDetail_20' ) end [2025-03-19 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717799', 'tblTempVendorCDR_20' ) start [2025-03-19 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717799', 'tblTempVendorCDR_20' ) end [2025-03-19 20:00:20] Production.INFO: ProcessCDR(1,14717799,1,1,2) [2025-03-19 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717799', 'tblTempUsageDetail_20' ) start [2025-03-19 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717799', 'tblTempUsageDetail_20' ) end [2025-03-19 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:00:25] Production.INFO: ==30615== Releasing lock... [2025-03-19 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:00:25] Production.INFO: 50.25 MB #Memory Used# [2025-03-19 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:01:06 [end_date_ymd] => 2025-03-19 20:01:06 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:01:06' and `end` < '2025-03-19 20: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-03-19 20:01:18] Production.INFO: count ==2912 [2025-03-19 20:01:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:01:06 - End Time 2025-03-19 20:01:06 [2025-03-19 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717805', 'tblTempUsageDetail_20' ) start [2025-03-19 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717805', 'tblTempUsageDetail_20' ) end [2025-03-19 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717805', 'tblTempVendorCDR_20' ) start [2025-03-19 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717805', 'tblTempVendorCDR_20' ) end [2025-03-19 20:01:19] Production.INFO: ProcessCDR(1,14717805,1,1,2) [2025-03-19 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717805', 'tblTempUsageDetail_20' ) start [2025-03-19 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717805', 'tblTempUsageDetail_20' ) end [2025-03-19 20:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:01:24] Production.INFO: ==30762== Releasing lock... [2025-03-19 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:01:24] Production.INFO: 50.25 MB #Memory Used# [2025-03-19 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:02:05 [end_date_ymd] => 2025-03-19 20:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:02:05' and `end` < '2025-03-19 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-03-19 20:02:18] Production.INFO: count ==2888 [2025-03-19 20:02:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:02:05 - End Time 2025-03-19 20:02:05 [2025-03-19 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717810', 'tblTempUsageDetail_20' ) start [2025-03-19 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717810', 'tblTempUsageDetail_20' ) end [2025-03-19 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717810', 'tblTempVendorCDR_20' ) start [2025-03-19 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717810', 'tblTempVendorCDR_20' ) end [2025-03-19 20:02:19] Production.INFO: ProcessCDR(1,14717810,1,1,2) [2025-03-19 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717810', 'tblTempUsageDetail_20' ) start [2025-03-19 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717810', 'tblTempUsageDetail_20' ) end [2025-03-19 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:02:24] Production.INFO: ==30847== Releasing lock... [2025-03-19 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:02:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-19 20:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:03:06 [end_date_ymd] => 2025-03-19 20:03:06 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:03:06' and `end` < '2025-03-19 20: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-03-19 20:03:18] Production.INFO: count ==2872 [2025-03-19 20:03:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:03:06 - End Time 2025-03-19 20:03:06 [2025-03-19 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717815', 'tblTempUsageDetail_20' ) start [2025-03-19 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717815', 'tblTempUsageDetail_20' ) end [2025-03-19 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717815', 'tblTempVendorCDR_20' ) start [2025-03-19 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717815', 'tblTempVendorCDR_20' ) end [2025-03-19 20:03:19] Production.INFO: ProcessCDR(1,14717815,1,1,2) [2025-03-19 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717815', 'tblTempUsageDetail_20' ) start [2025-03-19 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717815', 'tblTempUsageDetail_20' ) end [2025-03-19 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:03:24] Production.INFO: ==30973== Releasing lock... [2025-03-19 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:03:24] Production.INFO: 49.75 MB #Memory Used# [2025-03-19 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:04:05 [end_date_ymd] => 2025-03-19 20:04:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:04:05' and `end` < '2025-03-19 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-03-19 20:04:18] Production.INFO: count ==2860 [2025-03-19 20:04:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:04:05 - End Time 2025-03-19 20:04:05 [2025-03-19 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717820', 'tblTempUsageDetail_20' ) start [2025-03-19 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717820', 'tblTempUsageDetail_20' ) end [2025-03-19 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717820', 'tblTempVendorCDR_20' ) start [2025-03-19 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717820', 'tblTempVendorCDR_20' ) end [2025-03-19 20:04:19] Production.INFO: ProcessCDR(1,14717820,1,1,2) [2025-03-19 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717820', 'tblTempUsageDetail_20' ) start [2025-03-19 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717820', 'tblTempUsageDetail_20' ) end [2025-03-19 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:04:22] Production.INFO: ==31068== Releasing lock... [2025-03-19 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:04:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-19 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:05:05 [end_date_ymd] => 2025-03-19 20:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:05:05' and `end` < '2025-03-19 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-03-19 20:05:18] Production.INFO: count ==2849 [2025-03-19 20:05:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:05:05 - End Time 2025-03-19 20:05:05 [2025-03-19 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717825', 'tblTempUsageDetail_20' ) start [2025-03-19 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717825', 'tblTempUsageDetail_20' ) end [2025-03-19 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717825', 'tblTempVendorCDR_20' ) start [2025-03-19 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717825', 'tblTempVendorCDR_20' ) end [2025-03-19 20:05:19] Production.INFO: ProcessCDR(1,14717825,1,1,2) [2025-03-19 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717825', 'tblTempUsageDetail_20' ) start [2025-03-19 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717825', 'tblTempUsageDetail_20' ) end [2025-03-19 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:05:22] Production.INFO: ==31158== Releasing lock... [2025-03-19 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:05:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-19 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:06:05 [end_date_ymd] => 2025-03-19 20:06:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:06:05' and `end` < '2025-03-19 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-03-19 20:06:18] Production.INFO: count ==2854 [2025-03-19 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:06:05 - End Time 2025-03-19 20:06:05 [2025-03-19 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717830', 'tblTempUsageDetail_20' ) start [2025-03-19 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717830', 'tblTempUsageDetail_20' ) end [2025-03-19 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717830', 'tblTempVendorCDR_20' ) start [2025-03-19 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717830', 'tblTempVendorCDR_20' ) end [2025-03-19 20:06:19] Production.INFO: ProcessCDR(1,14717830,1,1,2) [2025-03-19 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717830', 'tblTempUsageDetail_20' ) start [2025-03-19 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717830', 'tblTempUsageDetail_20' ) end [2025-03-19 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:06:22] Production.INFO: ==31241== Releasing lock... [2025-03-19 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:06:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-19 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:07:05 [end_date_ymd] => 2025-03-19 20:07:05 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:07:05' and `end` < '2025-03-19 20: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-03-19 20:07:18] Production.INFO: count ==2849 [2025-03-19 20:07:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:07:05 - End Time 2025-03-19 20:07:05 [2025-03-19 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717835', 'tblTempUsageDetail_20' ) start [2025-03-19 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717835', 'tblTempUsageDetail_20' ) end [2025-03-19 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717835', 'tblTempVendorCDR_20' ) start [2025-03-19 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717835', 'tblTempVendorCDR_20' ) end [2025-03-19 20:07:19] Production.INFO: ProcessCDR(1,14717835,1,1,2) [2025-03-19 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717835', 'tblTempUsageDetail_20' ) start [2025-03-19 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717835', 'tblTempUsageDetail_20' ) end [2025-03-19 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:07:22] Production.INFO: ==31326== Releasing lock... [2025-03-19 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:07:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-19 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:08:05 [end_date_ymd] => 2025-03-19 20:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:08:05' and `end` < '2025-03-19 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-03-19 20:08:18] Production.INFO: count ==2852 [2025-03-19 20:08:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:08:05 - End Time 2025-03-19 20:08:05 [2025-03-19 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717840', 'tblTempUsageDetail_20' ) start [2025-03-19 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717840', 'tblTempUsageDetail_20' ) end [2025-03-19 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717840', 'tblTempVendorCDR_20' ) start [2025-03-19 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717840', 'tblTempVendorCDR_20' ) end [2025-03-19 20:08:19] Production.INFO: ProcessCDR(1,14717840,1,1,2) [2025-03-19 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717840', 'tblTempUsageDetail_20' ) start [2025-03-19 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717840', 'tblTempUsageDetail_20' ) end [2025-03-19 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:08:24] Production.INFO: ==31416== Releasing lock... [2025-03-19 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:08:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-19 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:09:05 [end_date_ymd] => 2025-03-19 20:09:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:09:05' and `end` < '2025-03-19 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-03-19 20:09:17] Production.INFO: count ==2844 [2025-03-19 20:09:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:09:05 - End Time 2025-03-19 20:09:05 [2025-03-19 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717845', 'tblTempUsageDetail_20' ) start [2025-03-19 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717845', 'tblTempUsageDetail_20' ) end [2025-03-19 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717845', 'tblTempVendorCDR_20' ) start [2025-03-19 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717845', 'tblTempVendorCDR_20' ) end [2025-03-19 20:09:18] Production.INFO: ProcessCDR(1,14717845,1,1,2) [2025-03-19 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717845', 'tblTempUsageDetail_20' ) start [2025-03-19 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717845', 'tblTempUsageDetail_20' ) end [2025-03-19 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:09:22] Production.INFO: ==31503== Releasing lock... [2025-03-19 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:09:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-19 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:10:05 [end_date_ymd] => 2025-03-19 20:10:05 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:10:05' and `end` < '2025-03-19 20: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-03-19 20:10:18] Production.INFO: count ==2832 [2025-03-19 20:10:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:10:05 - End Time 2025-03-19 20:10:05 [2025-03-19 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717850', 'tblTempUsageDetail_20' ) start [2025-03-19 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717850', 'tblTempUsageDetail_20' ) end [2025-03-19 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717850', 'tblTempVendorCDR_20' ) start [2025-03-19 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717850', 'tblTempVendorCDR_20' ) end [2025-03-19 20:10:19] Production.INFO: ProcessCDR(1,14717850,1,1,2) [2025-03-19 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717850', 'tblTempUsageDetail_20' ) start [2025-03-19 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717850', 'tblTempUsageDetail_20' ) end [2025-03-19 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:10:22] Production.INFO: ==31588== Releasing lock... [2025-03-19 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:10:22] Production.INFO: 49.75 MB #Memory Used# [2025-03-19 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:11:05 [end_date_ymd] => 2025-03-19 20:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:11:05' and `end` < '2025-03-19 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-03-19 20:11:17] Production.INFO: count ==2793 [2025-03-19 20:11:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:11:05 - End Time 2025-03-19 20:11:05 [2025-03-19 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717856', 'tblTempUsageDetail_20' ) start [2025-03-19 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717856', 'tblTempUsageDetail_20' ) end [2025-03-19 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717856', 'tblTempVendorCDR_20' ) start [2025-03-19 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717856', 'tblTempVendorCDR_20' ) end [2025-03-19 20:11:18] Production.INFO: ProcessCDR(1,14717856,1,1,2) [2025-03-19 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717856', 'tblTempUsageDetail_20' ) start [2025-03-19 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717856', 'tblTempUsageDetail_20' ) end [2025-03-19 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:11:22] Production.INFO: ==31679== Releasing lock... [2025-03-19 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:11:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-19 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:12:05 [end_date_ymd] => 2025-03-19 20:12:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:12:05' and `end` < '2025-03-19 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-03-19 20:12:17] Production.INFO: count ==2795 [2025-03-19 20:12:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:12:05 - End Time 2025-03-19 20:12:05 [2025-03-19 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717861', 'tblTempUsageDetail_20' ) start [2025-03-19 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717861', 'tblTempUsageDetail_20' ) end [2025-03-19 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717861', 'tblTempVendorCDR_20' ) start [2025-03-19 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717861', 'tblTempVendorCDR_20' ) end [2025-03-19 20:12:18] Production.INFO: ProcessCDR(1,14717861,1,1,2) [2025-03-19 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717861', 'tblTempUsageDetail_20' ) start [2025-03-19 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717861', 'tblTempUsageDetail_20' ) end [2025-03-19 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:12:22] Production.INFO: ==31766== Releasing lock... [2025-03-19 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:12:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-19 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:13:05 [end_date_ymd] => 2025-03-19 20:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:13:05' and `end` < '2025-03-19 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-03-19 20:13:18] Production.INFO: count ==2768 [2025-03-19 20:13:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:13:05 - End Time 2025-03-19 20:13:05 [2025-03-19 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717866', 'tblTempUsageDetail_20' ) start [2025-03-19 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717866', 'tblTempUsageDetail_20' ) end [2025-03-19 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717866', 'tblTempVendorCDR_20' ) start [2025-03-19 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717866', 'tblTempVendorCDR_20' ) end [2025-03-19 20:13:19] Production.INFO: ProcessCDR(1,14717866,1,1,2) [2025-03-19 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717866', 'tblTempUsageDetail_20' ) start [2025-03-19 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717866', 'tblTempUsageDetail_20' ) end [2025-03-19 20:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:13:24] Production.INFO: ==31842== Releasing lock... [2025-03-19 20:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:13:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-19 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:14:05 [end_date_ymd] => 2025-03-19 20:14:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:14:05' and `end` < '2025-03-19 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-03-19 20:14:18] Production.INFO: count ==2754 [2025-03-19 20:14:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:14:05 - End Time 2025-03-19 20:14:05 [2025-03-19 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717871', 'tblTempUsageDetail_20' ) start [2025-03-19 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717871', 'tblTempUsageDetail_20' ) end [2025-03-19 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717871', 'tblTempVendorCDR_20' ) start [2025-03-19 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717871', 'tblTempVendorCDR_20' ) end [2025-03-19 20:14:19] Production.INFO: ProcessCDR(1,14717871,1,1,2) [2025-03-19 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717871', 'tblTempUsageDetail_20' ) start [2025-03-19 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717871', 'tblTempUsageDetail_20' ) end [2025-03-19 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:14:22] Production.INFO: ==31931== Releasing lock... [2025-03-19 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:14:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-19 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:15:05 [end_date_ymd] => 2025-03-19 20:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:15:05' and `end` < '2025-03-19 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-03-19 20:15:17] Production.INFO: count ==2754 [2025-03-19 20:15:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:15:05 - End Time 2025-03-19 20:15:05 [2025-03-19 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717876', 'tblTempUsageDetail_20' ) start [2025-03-19 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717876', 'tblTempUsageDetail_20' ) end [2025-03-19 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717876', 'tblTempVendorCDR_20' ) start [2025-03-19 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717876', 'tblTempVendorCDR_20' ) end [2025-03-19 20:15:19] Production.INFO: ProcessCDR(1,14717876,1,1,2) [2025-03-19 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717876', 'tblTempUsageDetail_20' ) start [2025-03-19 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717876', 'tblTempUsageDetail_20' ) end [2025-03-19 20:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:15:24] Production.INFO: ==32014== Releasing lock... [2025-03-19 20:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:15:24] Production.INFO: 48.75 MB #Memory Used# [2025-03-19 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:16:05 [end_date_ymd] => 2025-03-19 20:16:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:16:05' and `end` < '2025-03-19 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-03-19 20:16:18] Production.INFO: count ==2730 [2025-03-19 20:16:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:16:05 - End Time 2025-03-19 20:16:05 [2025-03-19 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717881', 'tblTempUsageDetail_20' ) start [2025-03-19 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717881', 'tblTempUsageDetail_20' ) end [2025-03-19 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717881', 'tblTempVendorCDR_20' ) start [2025-03-19 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717881', 'tblTempVendorCDR_20' ) end [2025-03-19 20:16:19] Production.INFO: ProcessCDR(1,14717881,1,1,2) [2025-03-19 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717881', 'tblTempUsageDetail_20' ) start [2025-03-19 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717881', 'tblTempUsageDetail_20' ) end [2025-03-19 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:16:24] Production.INFO: ==32095== Releasing lock... [2025-03-19 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:16:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-19 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:17:05 [end_date_ymd] => 2025-03-19 20:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:17:05' and `end` < '2025-03-19 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-03-19 20:17:17] Production.INFO: count ==2728 [2025-03-19 20:17:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:17:05 - End Time 2025-03-19 20:17:05 [2025-03-19 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717886', 'tblTempUsageDetail_20' ) start [2025-03-19 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717886', 'tblTempUsageDetail_20' ) end [2025-03-19 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717886', 'tblTempVendorCDR_20' ) start [2025-03-19 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717886', 'tblTempVendorCDR_20' ) end [2025-03-19 20:17:19] Production.INFO: ProcessCDR(1,14717886,1,1,2) [2025-03-19 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717886', 'tblTempUsageDetail_20' ) start [2025-03-19 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717886', 'tblTempUsageDetail_20' ) end [2025-03-19 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:17:24] Production.INFO: ==32177== Releasing lock... [2025-03-19 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:17:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-19 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:18:05 [end_date_ymd] => 2025-03-19 20:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:18:05' and `end` < '2025-03-19 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-03-19 20:18:18] Production.INFO: count ==2721 [2025-03-19 20:18:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:18:05 - End Time 2025-03-19 20:18:05 [2025-03-19 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717891', 'tblTempUsageDetail_20' ) start [2025-03-19 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717891', 'tblTempUsageDetail_20' ) end [2025-03-19 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717891', 'tblTempVendorCDR_20' ) start [2025-03-19 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717891', 'tblTempVendorCDR_20' ) end [2025-03-19 20:18:19] Production.INFO: ProcessCDR(1,14717891,1,1,2) [2025-03-19 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717891', 'tblTempUsageDetail_20' ) start [2025-03-19 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717891', 'tblTempUsageDetail_20' ) end [2025-03-19 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:18:22] Production.INFO: ==32263== Releasing lock... [2025-03-19 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:18:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-19 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:19:05 [end_date_ymd] => 2025-03-19 20:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:19:05' and `end` < '2025-03-19 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-03-19 20:19:18] Production.INFO: count ==2713 [2025-03-19 20:19:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:19:05 - End Time 2025-03-19 20:19:05 [2025-03-19 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717896', 'tblTempUsageDetail_20' ) start [2025-03-19 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717896', 'tblTempUsageDetail_20' ) end [2025-03-19 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717896', 'tblTempVendorCDR_20' ) start [2025-03-19 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717896', 'tblTempVendorCDR_20' ) end [2025-03-19 20:19:19] Production.INFO: ProcessCDR(1,14717896,1,1,2) [2025-03-19 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717896', 'tblTempUsageDetail_20' ) start [2025-03-19 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717896', 'tblTempUsageDetail_20' ) end [2025-03-19 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:19:23] Production.INFO: ==32381== Releasing lock... [2025-03-19 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:19:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-19 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:20:06 [end_date_ymd] => 2025-03-19 20:20:06 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:20:06' and `end` < '2025-03-19 20: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-03-19 20:20:18] Production.INFO: count ==2696 [2025-03-19 20:20:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:20:06 - End Time 2025-03-19 20:20:06 [2025-03-19 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717901', 'tblTempUsageDetail_20' ) start [2025-03-19 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717901', 'tblTempUsageDetail_20' ) end [2025-03-19 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717901', 'tblTempVendorCDR_20' ) start [2025-03-19 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717901', 'tblTempVendorCDR_20' ) end [2025-03-19 20:20:19] Production.INFO: ProcessCDR(1,14717901,1,1,2) [2025-03-19 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717901', 'tblTempUsageDetail_20' ) start [2025-03-19 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717901', 'tblTempUsageDetail_20' ) end [2025-03-19 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:20:24] Production.INFO: ==32464== Releasing lock... [2025-03-19 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:20:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-19 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:21:05 [end_date_ymd] => 2025-03-19 20:21:05 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:21:05' and `end` < '2025-03-19 20: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-03-19 20:21:18] Production.INFO: count ==2642 [2025-03-19 20:21:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:21:05 - End Time 2025-03-19 20:21:05 [2025-03-19 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717907', 'tblTempUsageDetail_20' ) start [2025-03-19 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717907', 'tblTempUsageDetail_20' ) end [2025-03-19 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717907', 'tblTempVendorCDR_20' ) start [2025-03-19 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717907', 'tblTempVendorCDR_20' ) end [2025-03-19 20:21:19] Production.INFO: ProcessCDR(1,14717907,1,1,2) [2025-03-19 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717907', 'tblTempUsageDetail_20' ) start [2025-03-19 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717907', 'tblTempUsageDetail_20' ) end [2025-03-19 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:21:22] Production.INFO: ==32549== Releasing lock... [2025-03-19 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:21:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-19 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:22:05 [end_date_ymd] => 2025-03-19 20:22:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:22:05' and `end` < '2025-03-19 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-03-19 20:22:18] Production.INFO: count ==2638 [2025-03-19 20:22:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:22:05 - End Time 2025-03-19 20:22:05 [2025-03-19 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717912', 'tblTempUsageDetail_20' ) start [2025-03-19 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717912', 'tblTempUsageDetail_20' ) end [2025-03-19 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717912', 'tblTempVendorCDR_20' ) start [2025-03-19 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717912', 'tblTempVendorCDR_20' ) end [2025-03-19 20:22:19] Production.INFO: ProcessCDR(1,14717912,1,1,2) [2025-03-19 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717912', 'tblTempUsageDetail_20' ) start [2025-03-19 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717912', 'tblTempUsageDetail_20' ) end [2025-03-19 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:22:22] Production.INFO: ==32628== Releasing lock... [2025-03-19 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:22:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-19 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:23:05 [end_date_ymd] => 2025-03-19 20:23:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:23:05' and `end` < '2025-03-19 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-03-19 20:23:18] Production.INFO: count ==2636 [2025-03-19 20:23:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:23:05 - End Time 2025-03-19 20:23:05 [2025-03-19 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717917', 'tblTempUsageDetail_20' ) start [2025-03-19 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717917', 'tblTempUsageDetail_20' ) end [2025-03-19 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717917', 'tblTempVendorCDR_20' ) start [2025-03-19 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717917', 'tblTempVendorCDR_20' ) end [2025-03-19 20:23:19] Production.INFO: ProcessCDR(1,14717917,1,1,2) [2025-03-19 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717917', 'tblTempUsageDetail_20' ) start [2025-03-19 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717917', 'tblTempUsageDetail_20' ) end [2025-03-19 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:23:24] Production.INFO: ==32709== Releasing lock... [2025-03-19 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:23:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-19 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:24:05 [end_date_ymd] => 2025-03-19 20:24:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:24:05' and `end` < '2025-03-19 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-03-19 20:24:18] Production.INFO: count ==2638 [2025-03-19 20:24:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:24:05 - End Time 2025-03-19 20:24:05 [2025-03-19 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717922', 'tblTempUsageDetail_20' ) start [2025-03-19 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717922', 'tblTempUsageDetail_20' ) end [2025-03-19 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717922', 'tblTempVendorCDR_20' ) start [2025-03-19 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717922', 'tblTempVendorCDR_20' ) end [2025-03-19 20:24:19] Production.INFO: ProcessCDR(1,14717922,1,1,2) [2025-03-19 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717922', 'tblTempUsageDetail_20' ) start [2025-03-19 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717922', 'tblTempUsageDetail_20' ) end [2025-03-19 20:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:24:24] Production.INFO: ==327== Releasing lock... [2025-03-19 20:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:24:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-19 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:25:06 [end_date_ymd] => 2025-03-19 20:25:06 [RateCDR] => 1 ) [2025-03-19 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 17:25:06' and `end` < '2025-03-19 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 20:25:18] Production.INFO: count ==2637 [2025-03-19 20:25:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:25:06 - End Time 2025-03-19 20:25:06 [2025-03-19 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717927', 'tblTempUsageDetail_20' ) start [2025-03-19 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717927', 'tblTempUsageDetail_20' ) end [2025-03-19 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717927', 'tblTempVendorCDR_20' ) start [2025-03-19 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717927', 'tblTempVendorCDR_20' ) end [2025-03-19 20:25:19] Production.INFO: ProcessCDR(1,14717927,1,1,2) [2025-03-19 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717927', 'tblTempUsageDetail_20' ) start [2025-03-19 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717927', 'tblTempUsageDetail_20' ) end [2025-03-19 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:25:23] Production.INFO: ==419== Releasing lock... [2025-03-19 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:25:23] Production.INFO: 47.5 MB #Memory Used# [2025-03-19 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:26:05 [end_date_ymd] => 2025-03-19 20:26:05 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:26:05' and `end` < '2025-03-19 20: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-03-19 20:26:17] Production.INFO: count ==2637 [2025-03-19 20:26:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:26:05 - End Time 2025-03-19 20:26:05 [2025-03-19 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717932', 'tblTempUsageDetail_20' ) start [2025-03-19 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717932', 'tblTempUsageDetail_20' ) end [2025-03-19 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717932', 'tblTempVendorCDR_20' ) start [2025-03-19 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717932', 'tblTempVendorCDR_20' ) end [2025-03-19 20:26:19] Production.INFO: ProcessCDR(1,14717932,1,1,2) [2025-03-19 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717932', 'tblTempUsageDetail_20' ) start [2025-03-19 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717932', 'tblTempUsageDetail_20' ) end [2025-03-19 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:26:22] Production.INFO: ==500== Releasing lock... [2025-03-19 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:26:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-19 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:27:05 [end_date_ymd] => 2025-03-19 20:27:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:27:05' and `end` < '2025-03-19 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-03-19 20:27:18] Production.INFO: count ==2628 [2025-03-19 20:27:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:27:05 - End Time 2025-03-19 20:27:05 [2025-03-19 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717937', 'tblTempUsageDetail_20' ) start [2025-03-19 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717937', 'tblTempUsageDetail_20' ) end [2025-03-19 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717937', 'tblTempVendorCDR_20' ) start [2025-03-19 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717937', 'tblTempVendorCDR_20' ) end [2025-03-19 20:27:19] Production.INFO: ProcessCDR(1,14717937,1,1,2) [2025-03-19 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717937', 'tblTempUsageDetail_20' ) start [2025-03-19 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717937', 'tblTempUsageDetail_20' ) end [2025-03-19 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:27:22] Production.INFO: ==585== Releasing lock... [2025-03-19 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:27:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-19 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:28:05 [end_date_ymd] => 2025-03-19 20:28:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:28:05' and `end` < '2025-03-19 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-03-19 20:28:18] Production.INFO: count ==2630 [2025-03-19 20:28:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:28:05 - End Time 2025-03-19 20:28:05 [2025-03-19 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717942', 'tblTempUsageDetail_20' ) start [2025-03-19 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717942', 'tblTempUsageDetail_20' ) end [2025-03-19 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717942', 'tblTempVendorCDR_20' ) start [2025-03-19 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717942', 'tblTempVendorCDR_20' ) end [2025-03-19 20:28:19] Production.INFO: ProcessCDR(1,14717942,1,1,2) [2025-03-19 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717942', 'tblTempUsageDetail_20' ) start [2025-03-19 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717942', 'tblTempUsageDetail_20' ) end [2025-03-19 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:28:23] Production.INFO: ==676== Releasing lock... [2025-03-19 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:28:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-19 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:29:05 [end_date_ymd] => 2025-03-19 20:29:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:29:05' and `end` < '2025-03-19 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-03-19 20:29:17] Production.INFO: count ==2620 [2025-03-19 20:29:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:29:05 - End Time 2025-03-19 20:29:05 [2025-03-19 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717947', 'tblTempUsageDetail_20' ) start [2025-03-19 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717947', 'tblTempUsageDetail_20' ) end [2025-03-19 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717947', 'tblTempVendorCDR_20' ) start [2025-03-19 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717947', 'tblTempVendorCDR_20' ) end [2025-03-19 20:29:18] Production.INFO: ProcessCDR(1,14717947,1,1,2) [2025-03-19 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717947', 'tblTempUsageDetail_20' ) start [2025-03-19 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717947', 'tblTempUsageDetail_20' ) end [2025-03-19 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:29:21] Production.INFO: ==767== Releasing lock... [2025-03-19 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:29:21] Production.INFO: 47.75 MB #Memory Used# [2025-03-19 20:30:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:30:04 [end_date_ymd] => 2025-03-19 20:30:04 [RateCDR] => 1 ) [2025-03-19 20:30: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-03-19 17:30:04' and `end` < '2025-03-19 20:30: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-03-19 20:30:17] Production.INFO: count ==2611 [2025-03-19 20:30:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:30:04 - End Time 2025-03-19 20:30:04 [2025-03-19 20:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717951', 'tblTempUsageDetail_20' ) start [2025-03-19 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717951', 'tblTempUsageDetail_20' ) end [2025-03-19 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717951', 'tblTempVendorCDR_20' ) start [2025-03-19 20:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717951', 'tblTempVendorCDR_20' ) end [2025-03-19 20:30:18] Production.INFO: ProcessCDR(1,14717951,1,1,2) [2025-03-19 20:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717951', 'tblTempUsageDetail_20' ) start [2025-03-19 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717951', 'tblTempUsageDetail_20' ) end [2025-03-19 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:30:22] Production.INFO: ==850== Releasing lock... [2025-03-19 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:30:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-19 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:31:05 [end_date_ymd] => 2025-03-19 20:31:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:31:05' and `end` < '2025-03-19 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-03-19 20:31:18] Production.INFO: count ==2550 [2025-03-19 20:31:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:31:05 - End Time 2025-03-19 20:31:05 [2025-03-19 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717958', 'tblTempUsageDetail_20' ) start [2025-03-19 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717958', 'tblTempUsageDetail_20' ) end [2025-03-19 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717958', 'tblTempVendorCDR_20' ) start [2025-03-19 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717958', 'tblTempVendorCDR_20' ) end [2025-03-19 20:31:19] Production.INFO: ProcessCDR(1,14717958,1,1,2) [2025-03-19 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717958', 'tblTempUsageDetail_20' ) start [2025-03-19 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717958', 'tblTempUsageDetail_20' ) end [2025-03-19 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:31:22] Production.INFO: ==930== Releasing lock... [2025-03-19 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:31:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-19 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:32:06 [end_date_ymd] => 2025-03-19 20:32:06 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:32:06' and `end` < '2025-03-19 20: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-03-19 20:32:18] Production.INFO: count ==2551 [2025-03-19 20:32:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:32:06 - End Time 2025-03-19 20:32:06 [2025-03-19 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717963', 'tblTempUsageDetail_20' ) start [2025-03-19 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717963', 'tblTempUsageDetail_20' ) end [2025-03-19 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717963', 'tblTempVendorCDR_20' ) start [2025-03-19 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717963', 'tblTempVendorCDR_20' ) end [2025-03-19 20:32:19] Production.INFO: ProcessCDR(1,14717963,1,1,2) [2025-03-19 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717963', 'tblTempUsageDetail_20' ) start [2025-03-19 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717963', 'tblTempUsageDetail_20' ) end [2025-03-19 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:32:22] Production.INFO: ==1010== Releasing lock... [2025-03-19 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:32:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-19 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:33:05 [end_date_ymd] => 2025-03-19 20:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:33:05' and `end` < '2025-03-19 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-03-19 20:33:17] Production.INFO: count ==2548 [2025-03-19 20:33:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:33:05 - End Time 2025-03-19 20:33:05 [2025-03-19 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717968', 'tblTempUsageDetail_20' ) start [2025-03-19 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717968', 'tblTempUsageDetail_20' ) end [2025-03-19 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717968', 'tblTempVendorCDR_20' ) start [2025-03-19 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717968', 'tblTempVendorCDR_20' ) end [2025-03-19 20:33:18] Production.INFO: ProcessCDR(1,14717968,1,1,2) [2025-03-19 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717968', 'tblTempUsageDetail_20' ) start [2025-03-19 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717968', 'tblTempUsageDetail_20' ) end [2025-03-19 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:33:22] Production.INFO: ==1092== Releasing lock... [2025-03-19 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:33:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-19 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:34:06 [end_date_ymd] => 2025-03-19 20:34:06 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:34:06' and `end` < '2025-03-19 20: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-03-19 20:34:18] Production.INFO: count ==2542 [2025-03-19 20:34:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:34:06 - End Time 2025-03-19 20:34:06 [2025-03-19 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717973', 'tblTempUsageDetail_20' ) start [2025-03-19 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717973', 'tblTempUsageDetail_20' ) end [2025-03-19 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717973', 'tblTempVendorCDR_20' ) start [2025-03-19 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717973', 'tblTempVendorCDR_20' ) end [2025-03-19 20:34:19] Production.INFO: ProcessCDR(1,14717973,1,1,2) [2025-03-19 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717973', 'tblTempUsageDetail_20' ) start [2025-03-19 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717973', 'tblTempUsageDetail_20' ) end [2025-03-19 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:34:22] Production.INFO: ==1219== Releasing lock... [2025-03-19 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:34:22] Production.INFO: 47 MB #Memory Used# [2025-03-19 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:35:05 [end_date_ymd] => 2025-03-19 20:35:05 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:35:05' and `end` < '2025-03-19 20: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-03-19 20:35:17] Production.INFO: count ==2548 [2025-03-19 20:35:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:35:05 - End Time 2025-03-19 20:35:05 [2025-03-19 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717978', 'tblTempUsageDetail_20' ) start [2025-03-19 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717978', 'tblTempUsageDetail_20' ) end [2025-03-19 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717978', 'tblTempVendorCDR_20' ) start [2025-03-19 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717978', 'tblTempVendorCDR_20' ) end [2025-03-19 20:35:18] Production.INFO: ProcessCDR(1,14717978,1,1,2) [2025-03-19 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717978', 'tblTempUsageDetail_20' ) start [2025-03-19 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717978', 'tblTempUsageDetail_20' ) end [2025-03-19 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:35:23] Production.INFO: ==1307== Releasing lock... [2025-03-19 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:35:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-19 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:36:06 [end_date_ymd] => 2025-03-19 20:36:06 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:36:06' and `end` < '2025-03-19 20: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-03-19 20:36:19] Production.INFO: count ==2545 [2025-03-19 20:36:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:36:06 - End Time 2025-03-19 20:36:06 [2025-03-19 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717983', 'tblTempUsageDetail_20' ) start [2025-03-19 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717983', 'tblTempUsageDetail_20' ) end [2025-03-19 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717983', 'tblTempVendorCDR_20' ) start [2025-03-19 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717983', 'tblTempVendorCDR_20' ) end [2025-03-19 20:36:20] Production.INFO: ProcessCDR(1,14717983,1,1,2) [2025-03-19 20:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717983', 'tblTempUsageDetail_20' ) start [2025-03-19 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717983', 'tblTempUsageDetail_20' ) end [2025-03-19 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:36:23] Production.INFO: ==1384== Releasing lock... [2025-03-19 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:36:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-19 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:37:05 [end_date_ymd] => 2025-03-19 20:37:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:37:05' and `end` < '2025-03-19 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-03-19 20:37:18] Production.INFO: count ==2540 [2025-03-19 20:37:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:37:05 - End Time 2025-03-19 20:37:05 [2025-03-19 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717988', 'tblTempUsageDetail_20' ) start [2025-03-19 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717988', 'tblTempUsageDetail_20' ) end [2025-03-19 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717988', 'tblTempVendorCDR_20' ) start [2025-03-19 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717988', 'tblTempVendorCDR_20' ) end [2025-03-19 20:37:19] Production.INFO: ProcessCDR(1,14717988,1,1,2) [2025-03-19 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717988', 'tblTempUsageDetail_20' ) start [2025-03-19 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717988', 'tblTempUsageDetail_20' ) end [2025-03-19 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:37:23] Production.INFO: ==1460== Releasing lock... [2025-03-19 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:37:23] Production.INFO: 47 MB #Memory Used# [2025-03-19 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:38:05 [end_date_ymd] => 2025-03-19 20:38:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:38:05' and `end` < '2025-03-19 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-03-19 20:38:18] Production.INFO: count ==2535 [2025-03-19 20:38:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:38:05 - End Time 2025-03-19 20:38:05 [2025-03-19 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717993', 'tblTempUsageDetail_20' ) start [2025-03-19 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717993', 'tblTempUsageDetail_20' ) end [2025-03-19 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717993', 'tblTempVendorCDR_20' ) start [2025-03-19 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717993', 'tblTempVendorCDR_20' ) end [2025-03-19 20:38:19] Production.INFO: ProcessCDR(1,14717993,1,1,2) [2025-03-19 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717993', 'tblTempUsageDetail_20' ) start [2025-03-19 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717993', 'tblTempUsageDetail_20' ) end [2025-03-19 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:38:22] Production.INFO: ==1576== Releasing lock... [2025-03-19 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:38:22] Production.INFO: 47 MB #Memory Used# [2025-03-19 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:39:05 [end_date_ymd] => 2025-03-19 20:39:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:39:05' and `end` < '2025-03-19 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-03-19 20:39:18] Production.INFO: count ==2517 [2025-03-19 20:39:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:39:05 - End Time 2025-03-19 20:39:05 [2025-03-19 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717998', 'tblTempUsageDetail_20' ) start [2025-03-19 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14717998', 'tblTempUsageDetail_20' ) end [2025-03-19 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717998', 'tblTempVendorCDR_20' ) start [2025-03-19 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14717998', 'tblTempVendorCDR_20' ) end [2025-03-19 20:39:19] Production.INFO: ProcessCDR(1,14717998,1,1,2) [2025-03-19 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14717998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14717998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14717998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14717998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717998', 'tblTempUsageDetail_20' ) start [2025-03-19 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14717998', 'tblTempUsageDetail_20' ) end [2025-03-19 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:39:22] Production.INFO: ==1657== Releasing lock... [2025-03-19 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:39:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-19 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:40:06 [end_date_ymd] => 2025-03-19 20:40:06 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:40:06' and `end` < '2025-03-19 20: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-03-19 20:40:19] Production.INFO: count ==2511 [2025-03-19 20:40:20] Production.ERROR: pbx CDR StartTime 2025-03-19 17:40:06 - End Time 2025-03-19 20:40:06 [2025-03-19 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718003', 'tblTempUsageDetail_20' ) start [2025-03-19 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718003', 'tblTempUsageDetail_20' ) end [2025-03-19 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718003', 'tblTempVendorCDR_20' ) start [2025-03-19 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718003', 'tblTempVendorCDR_20' ) end [2025-03-19 20:40:20] Production.INFO: ProcessCDR(1,14718003,1,1,2) [2025-03-19 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718003', 'tblTempUsageDetail_20' ) start [2025-03-19 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718003', 'tblTempUsageDetail_20' ) end [2025-03-19 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:40:23] Production.INFO: ==1736== Releasing lock... [2025-03-19 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:40:23] Production.INFO: 47 MB #Memory Used# [2025-03-19 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:41:05 [end_date_ymd] => 2025-03-19 20:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:41:05' and `end` < '2025-03-19 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-03-19 20:41:17] Production.INFO: count ==2443 [2025-03-19 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:41:05 - End Time 2025-03-19 20:41:05 [2025-03-19 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718009', 'tblTempUsageDetail_20' ) start [2025-03-19 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718009', 'tblTempUsageDetail_20' ) end [2025-03-19 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718009', 'tblTempVendorCDR_20' ) start [2025-03-19 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718009', 'tblTempVendorCDR_20' ) end [2025-03-19 20:41:18] Production.INFO: ProcessCDR(1,14718009,1,1,2) [2025-03-19 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718009', 'tblTempUsageDetail_20' ) start [2025-03-19 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718009', 'tblTempUsageDetail_20' ) end [2025-03-19 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:41:22] Production.INFO: ==1815== Releasing lock... [2025-03-19 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:41:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-19 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:42:05 [end_date_ymd] => 2025-03-19 20:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:42:05' and `end` < '2025-03-19 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-03-19 20:42:17] Production.INFO: count ==2441 [2025-03-19 20:42:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:42:05 - End Time 2025-03-19 20:42:05 [2025-03-19 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718011', 'tblTempUsageDetail_20' ) start [2025-03-19 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718011', 'tblTempUsageDetail_20' ) end [2025-03-19 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718011', 'tblTempVendorCDR_20' ) start [2025-03-19 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718011', 'tblTempVendorCDR_20' ) end [2025-03-19 20:42:18] Production.INFO: ProcessCDR(1,14718011,1,1,2) [2025-03-19 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718011', 'tblTempUsageDetail_20' ) start [2025-03-19 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718011', 'tblTempUsageDetail_20' ) end [2025-03-19 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:42:22] Production.INFO: ==1895== Releasing lock... [2025-03-19 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:42:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-19 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:43:05 [end_date_ymd] => 2025-03-19 20:43:05 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:43:05' and `end` < '2025-03-19 20: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-03-19 20:43:18] Production.INFO: count ==2444 [2025-03-19 20:43:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:43:05 - End Time 2025-03-19 20:43:05 [2025-03-19 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718019', 'tblTempUsageDetail_20' ) start [2025-03-19 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718019', 'tblTempUsageDetail_20' ) end [2025-03-19 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718019', 'tblTempVendorCDR_20' ) start [2025-03-19 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718019', 'tblTempVendorCDR_20' ) end [2025-03-19 20:43:19] Production.INFO: ProcessCDR(1,14718019,1,1,2) [2025-03-19 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718019', 'tblTempUsageDetail_20' ) start [2025-03-19 20:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718019', 'tblTempUsageDetail_20' ) end [2025-03-19 20:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:43:24] Production.INFO: ==1973== Releasing lock... [2025-03-19 20:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:43:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-19 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:44:05 [end_date_ymd] => 2025-03-19 20:44:05 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:44:05' and `end` < '2025-03-19 20: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-03-19 20:44:18] Production.INFO: count ==2441 [2025-03-19 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:44:05 - End Time 2025-03-19 20:44:05 [2025-03-19 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718024', 'tblTempUsageDetail_20' ) start [2025-03-19 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718024', 'tblTempUsageDetail_20' ) end [2025-03-19 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718024', 'tblTempVendorCDR_20' ) start [2025-03-19 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718024', 'tblTempVendorCDR_20' ) end [2025-03-19 20:44:19] Production.INFO: ProcessCDR(1,14718024,1,1,2) [2025-03-19 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718024', 'tblTempUsageDetail_20' ) start [2025-03-19 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718024', 'tblTempUsageDetail_20' ) end [2025-03-19 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:44:22] Production.INFO: ==2048== Releasing lock... [2025-03-19 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:44:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-19 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:45:05 [end_date_ymd] => 2025-03-19 20:45:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:45:05' and `end` < '2025-03-19 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-03-19 20:45:17] Production.INFO: count ==2430 [2025-03-19 20:45:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:45:05 - End Time 2025-03-19 20:45:05 [2025-03-19 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718029', 'tblTempUsageDetail_20' ) start [2025-03-19 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718029', 'tblTempUsageDetail_20' ) end [2025-03-19 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718029', 'tblTempVendorCDR_20' ) start [2025-03-19 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718029', 'tblTempVendorCDR_20' ) end [2025-03-19 20:45:18] Production.INFO: ProcessCDR(1,14718029,1,1,2) [2025-03-19 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718029', 'tblTempUsageDetail_20' ) start [2025-03-19 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718029', 'tblTempUsageDetail_20' ) end [2025-03-19 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:45:23] Production.INFO: ==2127== Releasing lock... [2025-03-19 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:45:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-19 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:46:05 [end_date_ymd] => 2025-03-19 20:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:46:05' and `end` < '2025-03-19 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-03-19 20:46:17] Production.INFO: count ==2425 [2025-03-19 20:46:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:46:05 - End Time 2025-03-19 20:46:05 [2025-03-19 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718034', 'tblTempUsageDetail_20' ) start [2025-03-19 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718034', 'tblTempUsageDetail_20' ) end [2025-03-19 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718034', 'tblTempVendorCDR_20' ) start [2025-03-19 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718034', 'tblTempVendorCDR_20' ) end [2025-03-19 20:46:18] Production.INFO: ProcessCDR(1,14718034,1,1,2) [2025-03-19 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718034', 'tblTempUsageDetail_20' ) start [2025-03-19 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718034', 'tblTempUsageDetail_20' ) end [2025-03-19 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:46:22] Production.INFO: ==2201== Releasing lock... [2025-03-19 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:46:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-19 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:47:05 [end_date_ymd] => 2025-03-19 20:47:05 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:47:05' and `end` < '2025-03-19 20: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-03-19 20:47:17] Production.INFO: count ==2422 [2025-03-19 20:47:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:47:05 - End Time 2025-03-19 20:47:05 [2025-03-19 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718039', 'tblTempUsageDetail_20' ) start [2025-03-19 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718039', 'tblTempUsageDetail_20' ) end [2025-03-19 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718039', 'tblTempVendorCDR_20' ) start [2025-03-19 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718039', 'tblTempVendorCDR_20' ) end [2025-03-19 20:47:18] Production.INFO: ProcessCDR(1,14718039,1,1,2) [2025-03-19 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718039', 'tblTempUsageDetail_20' ) start [2025-03-19 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718039', 'tblTempUsageDetail_20' ) end [2025-03-19 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:47:21] Production.INFO: ==2275== Releasing lock... [2025-03-19 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:47:21] Production.INFO: 46.25 MB #Memory Used# [2025-03-19 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:48:05 [end_date_ymd] => 2025-03-19 20:48:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:48:05' and `end` < '2025-03-19 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-03-19 20:48:17] Production.INFO: count ==2420 [2025-03-19 20:48:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:48:05 - End Time 2025-03-19 20:48:05 [2025-03-19 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718044', 'tblTempUsageDetail_20' ) start [2025-03-19 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718044', 'tblTempUsageDetail_20' ) end [2025-03-19 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718044', 'tblTempVendorCDR_20' ) start [2025-03-19 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718044', 'tblTempVendorCDR_20' ) end [2025-03-19 20:48:18] Production.INFO: ProcessCDR(1,14718044,1,1,2) [2025-03-19 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718044', 'tblTempUsageDetail_20' ) start [2025-03-19 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718044', 'tblTempUsageDetail_20' ) end [2025-03-19 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:48:22] Production.INFO: ==2354== Releasing lock... [2025-03-19 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:48:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-19 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:49:06 [end_date_ymd] => 2025-03-19 20:49:06 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:49:06' and `end` < '2025-03-19 20: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-03-19 20:49:18] Production.INFO: count ==2411 [2025-03-19 20:49:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:49:06 - End Time 2025-03-19 20:49:06 [2025-03-19 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718049', 'tblTempUsageDetail_20' ) start [2025-03-19 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718049', 'tblTempUsageDetail_20' ) end [2025-03-19 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718049', 'tblTempVendorCDR_20' ) start [2025-03-19 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718049', 'tblTempVendorCDR_20' ) end [2025-03-19 20:49:19] Production.INFO: ProcessCDR(1,14718049,1,1,2) [2025-03-19 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718049', 'tblTempUsageDetail_20' ) start [2025-03-19 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718049', 'tblTempUsageDetail_20' ) end [2025-03-19 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:49:22] Production.INFO: ==2434== Releasing lock... [2025-03-19 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:49:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-19 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:50:06 [end_date_ymd] => 2025-03-19 20:50:06 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:50:06' and `end` < '2025-03-19 20: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-03-19 20:50:19] Production.INFO: count ==2414 [2025-03-19 20:50:20] Production.ERROR: pbx CDR StartTime 2025-03-19 17:50:06 - End Time 2025-03-19 20:50:06 [2025-03-19 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718055', 'tblTempUsageDetail_20' ) start [2025-03-19 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718055', 'tblTempUsageDetail_20' ) end [2025-03-19 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718055', 'tblTempVendorCDR_20' ) start [2025-03-19 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718055', 'tblTempVendorCDR_20' ) end [2025-03-19 20:50:20] Production.INFO: ProcessCDR(1,14718055,1,1,2) [2025-03-19 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718055', 'tblTempUsageDetail_20' ) start [2025-03-19 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718055', 'tblTempUsageDetail_20' ) end [2025-03-19 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:50:23] Production.INFO: ==2552== Releasing lock... [2025-03-19 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:50:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-19 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:51:05 [end_date_ymd] => 2025-03-19 20:51:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:51:05' and `end` < '2025-03-19 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-03-19 20:51:17] Production.INFO: count ==2345 [2025-03-19 20:51:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:51:05 - End Time 2025-03-19 20:51:05 [2025-03-19 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718060', 'tblTempUsageDetail_20' ) start [2025-03-19 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718060', 'tblTempUsageDetail_20' ) end [2025-03-19 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718060', 'tblTempVendorCDR_20' ) start [2025-03-19 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718060', 'tblTempVendorCDR_20' ) end [2025-03-19 20:51:18] Production.INFO: ProcessCDR(1,14718060,1,1,2) [2025-03-19 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718060', 'tblTempUsageDetail_20' ) start [2025-03-19 20:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718060', 'tblTempUsageDetail_20' ) end [2025-03-19 20:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:51:23] Production.INFO: ==2632== Releasing lock... [2025-03-19 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:51:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-19 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:52:05 [end_date_ymd] => 2025-03-19 20:52:05 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:52:05' and `end` < '2025-03-19 20: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-03-19 20:52:18] Production.INFO: count ==2340 [2025-03-19 20:52:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:52:05 - End Time 2025-03-19 20:52:05 [2025-03-19 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718065', 'tblTempUsageDetail_20' ) start [2025-03-19 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718065', 'tblTempUsageDetail_20' ) end [2025-03-19 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718065', 'tblTempVendorCDR_20' ) start [2025-03-19 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718065', 'tblTempVendorCDR_20' ) end [2025-03-19 20:52:18] Production.INFO: ProcessCDR(1,14718065,1,1,2) [2025-03-19 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718065', 'tblTempUsageDetail_20' ) start [2025-03-19 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718065', 'tblTempUsageDetail_20' ) end [2025-03-19 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:52:22] Production.INFO: ==2728== Releasing lock... [2025-03-19 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:52:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-19 20:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:53:04 [end_date_ymd] => 2025-03-19 20:53:04 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:53:04' and `end` < '2025-03-19 20: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-03-19 20:53:17] Production.INFO: count ==2339 [2025-03-19 20:53:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:53:04 - End Time 2025-03-19 20:53:04 [2025-03-19 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718070', 'tblTempUsageDetail_20' ) start [2025-03-19 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718070', 'tblTempUsageDetail_20' ) end [2025-03-19 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718070', 'tblTempVendorCDR_20' ) start [2025-03-19 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718070', 'tblTempVendorCDR_20' ) end [2025-03-19 20:53:18] Production.INFO: ProcessCDR(1,14718070,1,1,2) [2025-03-19 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718070', 'tblTempUsageDetail_20' ) start [2025-03-19 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718070', 'tblTempUsageDetail_20' ) end [2025-03-19 20:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:53:21] Production.INFO: ==2815== Releasing lock... [2025-03-19 20:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:53:21] Production.INFO: 45.5 MB #Memory Used# [2025-03-19 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:54:05 [end_date_ymd] => 2025-03-19 20:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:54:05' and `end` < '2025-03-19 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-03-19 20:54:17] Production.INFO: count ==2337 [2025-03-19 20:54:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:54:05 - End Time 2025-03-19 20:54:05 [2025-03-19 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718075', 'tblTempUsageDetail_20' ) start [2025-03-19 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718075', 'tblTempUsageDetail_20' ) end [2025-03-19 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718075', 'tblTempVendorCDR_20' ) start [2025-03-19 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718075', 'tblTempVendorCDR_20' ) end [2025-03-19 20:54:18] Production.INFO: ProcessCDR(1,14718075,1,1,2) [2025-03-19 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718075', 'tblTempUsageDetail_20' ) start [2025-03-19 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718075', 'tblTempUsageDetail_20' ) end [2025-03-19 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:54:22] Production.INFO: ==2895== Releasing lock... [2025-03-19 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:54:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-19 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:55:06 [end_date_ymd] => 2025-03-19 20:55:06 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:55:06' and `end` < '2025-03-19 20: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-03-19 20:55:18] Production.INFO: count ==2328 [2025-03-19 20:55:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:55:06 - End Time 2025-03-19 20:55:06 [2025-03-19 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718080', 'tblTempUsageDetail_20' ) start [2025-03-19 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718080', 'tblTempUsageDetail_20' ) end [2025-03-19 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718080', 'tblTempVendorCDR_20' ) start [2025-03-19 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718080', 'tblTempVendorCDR_20' ) end [2025-03-19 20:55:19] Production.INFO: ProcessCDR(1,14718080,1,1,2) [2025-03-19 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718080', 'tblTempUsageDetail_20' ) start [2025-03-19 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718080', 'tblTempUsageDetail_20' ) end [2025-03-19 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:55:23] Production.INFO: ==2978== Releasing lock... [2025-03-19 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:55:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-19 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:56:05 [end_date_ymd] => 2025-03-19 20:56:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:56:05' and `end` < '2025-03-19 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-03-19 20:56:18] Production.INFO: count ==2318 [2025-03-19 20:56:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:56:05 - End Time 2025-03-19 20:56:05 [2025-03-19 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718085', 'tblTempUsageDetail_20' ) start [2025-03-19 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718085', 'tblTempUsageDetail_20' ) end [2025-03-19 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718085', 'tblTempVendorCDR_20' ) start [2025-03-19 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718085', 'tblTempVendorCDR_20' ) end [2025-03-19 20:56:19] Production.INFO: ProcessCDR(1,14718085,1,1,2) [2025-03-19 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718085', 'tblTempUsageDetail_20' ) start [2025-03-19 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718085', 'tblTempUsageDetail_20' ) end [2025-03-19 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:56:22] Production.INFO: ==3057== Releasing lock... [2025-03-19 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:56:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-19 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:57:06 [end_date_ymd] => 2025-03-19 20:57:06 [RateCDR] => 1 ) [2025-03-19 20: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-03-19 17:57:06' and `end` < '2025-03-19 20: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-03-19 20:57:18] Production.INFO: count ==2303 [2025-03-19 20:57:19] Production.ERROR: pbx CDR StartTime 2025-03-19 17:57:06 - End Time 2025-03-19 20:57:06 [2025-03-19 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718090', 'tblTempUsageDetail_20' ) start [2025-03-19 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718090', 'tblTempUsageDetail_20' ) end [2025-03-19 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718090', 'tblTempVendorCDR_20' ) start [2025-03-19 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718090', 'tblTempVendorCDR_20' ) end [2025-03-19 20:57:19] Production.INFO: ProcessCDR(1,14718090,1,1,2) [2025-03-19 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718090', 'tblTempUsageDetail_20' ) start [2025-03-19 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718090', 'tblTempUsageDetail_20' ) end [2025-03-19 20:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:57:24] Production.INFO: ==3141== Releasing lock... [2025-03-19 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:57:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-19 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:58:05 [end_date_ymd] => 2025-03-19 20:58:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:58:05' and `end` < '2025-03-19 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-03-19 20:58:18] Production.INFO: count ==2299 [2025-03-19 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:58:05 - End Time 2025-03-19 20:58:05 [2025-03-19 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718095', 'tblTempUsageDetail_20' ) start [2025-03-19 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718095', 'tblTempUsageDetail_20' ) end [2025-03-19 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718095', 'tblTempVendorCDR_20' ) start [2025-03-19 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718095', 'tblTempVendorCDR_20' ) end [2025-03-19 20:58:19] Production.INFO: ProcessCDR(1,14718095,1,1,2) [2025-03-19 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718095', 'tblTempUsageDetail_20' ) start [2025-03-19 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718095', 'tblTempUsageDetail_20' ) end [2025-03-19 20:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:58:24] Production.INFO: ==3225== Releasing lock... [2025-03-19 20:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:58:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-19 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 17:59:05 [end_date_ymd] => 2025-03-19 20:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 17:59:05' and `end` < '2025-03-19 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-03-19 20:59:18] Production.INFO: count ==2277 [2025-03-19 20:59:18] Production.ERROR: pbx CDR StartTime 2025-03-19 17:59:05 - End Time 2025-03-19 20:59:05 [2025-03-19 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718100', 'tblTempUsageDetail_20' ) start [2025-03-19 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718100', 'tblTempUsageDetail_20' ) end [2025-03-19 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718100', 'tblTempVendorCDR_20' ) start [2025-03-19 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718100', 'tblTempVendorCDR_20' ) end [2025-03-19 20:59:19] Production.INFO: ProcessCDR(1,14718100,1,1,2) [2025-03-19 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718100', 'tblTempUsageDetail_20' ) start [2025-03-19 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718100', 'tblTempUsageDetail_20' ) end [2025-03-19 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 20:59:22] Production.INFO: ==3312== Releasing lock... [2025-03-19 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 20:59:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-19 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:00:06 [end_date_ymd] => 2025-03-19 21:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:00:06' and `end` < '2025-03-19 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-03-19 21:00:18] Production.INFO: count ==2283 [2025-03-19 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:00:06 - End Time 2025-03-19 21:00:06 [2025-03-19 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718106', 'tblTempUsageDetail_20' ) start [2025-03-19 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718106', 'tblTempUsageDetail_20' ) end [2025-03-19 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718106', 'tblTempVendorCDR_20' ) start [2025-03-19 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718106', 'tblTempVendorCDR_20' ) end [2025-03-19 21:00:19] Production.INFO: ProcessCDR(1,14718106,1,1,2) [2025-03-19 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718106', 'tblTempUsageDetail_20' ) start [2025-03-19 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718106', 'tblTempUsageDetail_20' ) end [2025-03-19 21:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:00:24] Production.INFO: ==3396== Releasing lock... [2025-03-19 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:00:24] Production.INFO: 45.25 MB #Memory Used# [2025-03-19 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:01:05 [end_date_ymd] => 2025-03-19 21:01:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:01:05' and `end` < '2025-03-19 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-03-19 21:01:18] Production.INFO: count ==2282 [2025-03-19 21:01:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:01:05 - End Time 2025-03-19 21:01:05 [2025-03-19 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718111', 'tblTempUsageDetail_20' ) start [2025-03-19 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718111', 'tblTempUsageDetail_20' ) end [2025-03-19 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718111', 'tblTempVendorCDR_20' ) start [2025-03-19 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718111', 'tblTempVendorCDR_20' ) end [2025-03-19 21:01:19] Production.INFO: ProcessCDR(1,14718111,1,1,2) [2025-03-19 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718111', 'tblTempUsageDetail_20' ) start [2025-03-19 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718111', 'tblTempUsageDetail_20' ) end [2025-03-19 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:01:22] Production.INFO: ==3501== Releasing lock... [2025-03-19 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:01:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-19 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:02:05 [end_date_ymd] => 2025-03-19 21:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:02:05' and `end` < '2025-03-19 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-03-19 21:02:17] Production.INFO: count ==2281 [2025-03-19 21:02:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:02:05 - End Time 2025-03-19 21:02:05 [2025-03-19 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718116', 'tblTempUsageDetail_20' ) start [2025-03-19 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718116', 'tblTempUsageDetail_20' ) end [2025-03-19 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718116', 'tblTempVendorCDR_20' ) start [2025-03-19 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718116', 'tblTempVendorCDR_20' ) end [2025-03-19 21:02:18] Production.INFO: ProcessCDR(1,14718116,1,1,2) [2025-03-19 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718116', 'tblTempUsageDetail_20' ) start [2025-03-19 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718116', 'tblTempUsageDetail_20' ) end [2025-03-19 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:02:21] Production.INFO: ==3589== Releasing lock... [2025-03-19 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:02:21] Production.INFO: 45.25 MB #Memory Used# [2025-03-19 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:03:05 [end_date_ymd] => 2025-03-19 21:03:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:03:05' and `end` < '2025-03-19 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-03-19 21:03:18] Production.INFO: count ==2282 [2025-03-19 21:03:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:03:05 - End Time 2025-03-19 21:03:05 [2025-03-19 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718121', 'tblTempUsageDetail_20' ) start [2025-03-19 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718121', 'tblTempUsageDetail_20' ) end [2025-03-19 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718121', 'tblTempVendorCDR_20' ) start [2025-03-19 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718121', 'tblTempVendorCDR_20' ) end [2025-03-19 21:03:19] Production.INFO: ProcessCDR(1,14718121,1,1,2) [2025-03-19 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718121', 'tblTempUsageDetail_20' ) start [2025-03-19 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718121', 'tblTempUsageDetail_20' ) end [2025-03-19 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:03:22] Production.INFO: ==3683== Releasing lock... [2025-03-19 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:03:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-19 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:04:06 [end_date_ymd] => 2025-03-19 21:04:06 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:04:06' and `end` < '2025-03-19 21: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-03-19 21:04:19] Production.INFO: count ==2276 [2025-03-19 21:04:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:04:06 - End Time 2025-03-19 21:04:06 [2025-03-19 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718126', 'tblTempUsageDetail_20' ) start [2025-03-19 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718126', 'tblTempUsageDetail_20' ) end [2025-03-19 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718126', 'tblTempVendorCDR_20' ) start [2025-03-19 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718126', 'tblTempVendorCDR_20' ) end [2025-03-19 21:04:19] Production.INFO: ProcessCDR(1,14718126,1,1,2) [2025-03-19 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718126', 'tblTempUsageDetail_20' ) start [2025-03-19 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718126', 'tblTempUsageDetail_20' ) end [2025-03-19 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:04:23] Production.INFO: ==3777== Releasing lock... [2025-03-19 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:04:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-19 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:05:05 [end_date_ymd] => 2025-03-19 21:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:05:05' and `end` < '2025-03-19 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-03-19 21:05:18] Production.INFO: count ==2279 [2025-03-19 21:05:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:05:05 - End Time 2025-03-19 21:05:05 [2025-03-19 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718131', 'tblTempUsageDetail_20' ) start [2025-03-19 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718131', 'tblTempUsageDetail_20' ) end [2025-03-19 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718131', 'tblTempVendorCDR_20' ) start [2025-03-19 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718131', 'tblTempVendorCDR_20' ) end [2025-03-19 21:05:18] Production.INFO: ProcessCDR(1,14718131,1,1,2) [2025-03-19 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718131', 'tblTempUsageDetail_20' ) start [2025-03-19 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718131', 'tblTempUsageDetail_20' ) end [2025-03-19 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:05:23] Production.INFO: ==3911== Releasing lock... [2025-03-19 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:05:23] Production.INFO: 45.25 MB #Memory Used# [2025-03-19 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:06:05 [end_date_ymd] => 2025-03-19 21:06:05 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:06:05' and `end` < '2025-03-19 21: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-03-19 21:06:18] Production.INFO: count ==2267 [2025-03-19 21:06:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:06:05 - End Time 2025-03-19 21:06:05 [2025-03-19 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718136', 'tblTempUsageDetail_20' ) start [2025-03-19 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718136', 'tblTempUsageDetail_20' ) end [2025-03-19 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718136', 'tblTempVendorCDR_20' ) start [2025-03-19 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718136', 'tblTempVendorCDR_20' ) end [2025-03-19 21:06:19] Production.INFO: ProcessCDR(1,14718136,1,1,2) [2025-03-19 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718136', 'tblTempUsageDetail_20' ) start [2025-03-19 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718136', 'tblTempUsageDetail_20' ) end [2025-03-19 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:06:22] Production.INFO: ==4001== Releasing lock... [2025-03-19 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:06:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-19 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:07:05 [end_date_ymd] => 2025-03-19 21:07:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:07:05' and `end` < '2025-03-19 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-03-19 21:07:18] Production.INFO: count ==2272 [2025-03-19 21:07:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:07:05 - End Time 2025-03-19 21:07:05 [2025-03-19 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718141', 'tblTempUsageDetail_20' ) start [2025-03-19 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718141', 'tblTempUsageDetail_20' ) end [2025-03-19 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718141', 'tblTempVendorCDR_20' ) start [2025-03-19 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718141', 'tblTempVendorCDR_20' ) end [2025-03-19 21:07:19] Production.INFO: ProcessCDR(1,14718141,1,1,2) [2025-03-19 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718141', 'tblTempUsageDetail_20' ) start [2025-03-19 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718141', 'tblTempUsageDetail_20' ) end [2025-03-19 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:07:22] Production.INFO: ==4115== Releasing lock... [2025-03-19 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:07:22] Production.INFO: 45 MB #Memory Used# [2025-03-19 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:08:05 [end_date_ymd] => 2025-03-19 21:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:08:05' and `end` < '2025-03-19 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-03-19 21:08:18] Production.INFO: count ==2276 [2025-03-19 21:08:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:08:05 - End Time 2025-03-19 21:08:05 [2025-03-19 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718146', 'tblTempUsageDetail_20' ) start [2025-03-19 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718146', 'tblTempUsageDetail_20' ) end [2025-03-19 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718146', 'tblTempVendorCDR_20' ) start [2025-03-19 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718146', 'tblTempVendorCDR_20' ) end [2025-03-19 21:08:19] Production.INFO: ProcessCDR(1,14718146,1,1,2) [2025-03-19 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718146', 'tblTempUsageDetail_20' ) start [2025-03-19 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718146', 'tblTempUsageDetail_20' ) end [2025-03-19 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:08:22] Production.INFO: ==4209== Releasing lock... [2025-03-19 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:08:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-19 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:09:05 [end_date_ymd] => 2025-03-19 21:09:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:09:05' and `end` < '2025-03-19 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-03-19 21:09:17] Production.INFO: count ==2278 [2025-03-19 21:09:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:09:05 - End Time 2025-03-19 21:09:05 [2025-03-19 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718151', 'tblTempUsageDetail_20' ) start [2025-03-19 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718151', 'tblTempUsageDetail_20' ) end [2025-03-19 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718151', 'tblTempVendorCDR_20' ) start [2025-03-19 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718151', 'tblTempVendorCDR_20' ) end [2025-03-19 21:09:18] Production.INFO: ProcessCDR(1,14718151,1,1,2) [2025-03-19 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718151', 'tblTempUsageDetail_20' ) start [2025-03-19 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718151', 'tblTempUsageDetail_20' ) end [2025-03-19 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:09:22] Production.INFO: ==4301== Releasing lock... [2025-03-19 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:09:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-19 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:10:06 [end_date_ymd] => 2025-03-19 21:10:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:10:06' and `end` < '2025-03-19 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-03-19 21:10:18] Production.INFO: count ==2277 [2025-03-19 21:10:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:10:06 - End Time 2025-03-19 21:10:06 [2025-03-19 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718157', 'tblTempUsageDetail_20' ) start [2025-03-19 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718157', 'tblTempUsageDetail_20' ) end [2025-03-19 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718157', 'tblTempVendorCDR_20' ) start [2025-03-19 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718157', 'tblTempVendorCDR_20' ) end [2025-03-19 21:10:20] Production.INFO: ProcessCDR(1,14718157,1,1,2) [2025-03-19 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718157', 'tblTempUsageDetail_20' ) start [2025-03-19 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718157', 'tblTempUsageDetail_20' ) end [2025-03-19 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:10:24] Production.INFO: ==4395== Releasing lock... [2025-03-19 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:10:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-19 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:11:05 [end_date_ymd] => 2025-03-19 21:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:11:05' and `end` < '2025-03-19 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-03-19 21:11:18] Production.INFO: count ==2222 [2025-03-19 21:11:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:11:05 - End Time 2025-03-19 21:11:05 [2025-03-19 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718162', 'tblTempUsageDetail_20' ) start [2025-03-19 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718162', 'tblTempUsageDetail_20' ) end [2025-03-19 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718162', 'tblTempVendorCDR_20' ) start [2025-03-19 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718162', 'tblTempVendorCDR_20' ) end [2025-03-19 21:11:19] Production.INFO: ProcessCDR(1,14718162,1,1,2) [2025-03-19 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718162', 'tblTempUsageDetail_20' ) start [2025-03-19 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718162', 'tblTempUsageDetail_20' ) end [2025-03-19 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:11:22] Production.INFO: ==4491== Releasing lock... [2025-03-19 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:11:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-19 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:12:06 [end_date_ymd] => 2025-03-19 21:12:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:12:06' and `end` < '2025-03-19 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-03-19 21:12:18] Production.INFO: count ==2224 [2025-03-19 21:12:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:12:06 - End Time 2025-03-19 21:12:06 [2025-03-19 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718167', 'tblTempUsageDetail_20' ) start [2025-03-19 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718167', 'tblTempUsageDetail_20' ) end [2025-03-19 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718167', 'tblTempVendorCDR_20' ) start [2025-03-19 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718167', 'tblTempVendorCDR_20' ) end [2025-03-19 21:12:19] Production.INFO: ProcessCDR(1,14718167,1,1,2) [2025-03-19 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718167', 'tblTempUsageDetail_20' ) start [2025-03-19 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718167', 'tblTempUsageDetail_20' ) end [2025-03-19 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:12:23] Production.INFO: ==4586== Releasing lock... [2025-03-19 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:12:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-19 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:13:06 [end_date_ymd] => 2025-03-19 21:13:06 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:13:06' and `end` < '2025-03-19 21:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 21:13:18] Production.INFO: count ==2218 [2025-03-19 21:13:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:13:06 - End Time 2025-03-19 21:13:06 [2025-03-19 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718172', 'tblTempUsageDetail_20' ) start [2025-03-19 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718172', 'tblTempUsageDetail_20' ) end [2025-03-19 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718172', 'tblTempVendorCDR_20' ) start [2025-03-19 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718172', 'tblTempVendorCDR_20' ) end [2025-03-19 21:13:19] Production.INFO: ProcessCDR(1,14718172,1,1,2) [2025-03-19 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718172', 'tblTempUsageDetail_20' ) start [2025-03-19 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718172', 'tblTempUsageDetail_20' ) end [2025-03-19 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:13:23] Production.INFO: ==4681== Releasing lock... [2025-03-19 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:13:23] Production.INFO: 44.75 MB #Memory Used# [2025-03-19 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:14:06 [end_date_ymd] => 2025-03-19 21:14:06 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:14:06' and `end` < '2025-03-19 21: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-03-19 21:14:18] Production.INFO: count ==2207 [2025-03-19 21:14:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:14:06 - End Time 2025-03-19 21:14:06 [2025-03-19 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718177', 'tblTempUsageDetail_20' ) start [2025-03-19 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718177', 'tblTempUsageDetail_20' ) end [2025-03-19 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718177', 'tblTempVendorCDR_20' ) start [2025-03-19 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718177', 'tblTempVendorCDR_20' ) end [2025-03-19 21:14:19] Production.INFO: ProcessCDR(1,14718177,1,1,2) [2025-03-19 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718177', 'tblTempUsageDetail_20' ) start [2025-03-19 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718177', 'tblTempUsageDetail_20' ) end [2025-03-19 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:14:22] Production.INFO: ==4771== Releasing lock... [2025-03-19 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:14:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-19 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:15:05 [end_date_ymd] => 2025-03-19 21:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:15:05' and `end` < '2025-03-19 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-03-19 21:15:18] Production.INFO: count ==2205 [2025-03-19 21:15:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:15:05 - End Time 2025-03-19 21:15:05 [2025-03-19 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718182', 'tblTempUsageDetail_20' ) start [2025-03-19 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718182', 'tblTempUsageDetail_20' ) end [2025-03-19 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718182', 'tblTempVendorCDR_20' ) start [2025-03-19 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718182', 'tblTempVendorCDR_20' ) end [2025-03-19 21:15:19] Production.INFO: ProcessCDR(1,14718182,1,1,2) [2025-03-19 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718182', 'tblTempUsageDetail_20' ) start [2025-03-19 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718182', 'tblTempUsageDetail_20' ) end [2025-03-19 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:15:22] Production.INFO: ==4861== Releasing lock... [2025-03-19 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:15:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-19 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:16:06 [end_date_ymd] => 2025-03-19 21:16:06 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:16:06' and `end` < '2025-03-19 21: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-03-19 21:16:18] Production.INFO: count ==2205 [2025-03-19 21:16:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:16:06 - End Time 2025-03-19 21:16:06 [2025-03-19 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718187', 'tblTempUsageDetail_20' ) start [2025-03-19 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718187', 'tblTempUsageDetail_20' ) end [2025-03-19 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718187', 'tblTempVendorCDR_20' ) start [2025-03-19 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718187', 'tblTempVendorCDR_20' ) end [2025-03-19 21:16:19] Production.INFO: ProcessCDR(1,14718187,1,1,2) [2025-03-19 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718187', 'tblTempUsageDetail_20' ) start [2025-03-19 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718187', 'tblTempUsageDetail_20' ) end [2025-03-19 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:16:22] Production.INFO: ==4955== Releasing lock... [2025-03-19 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:16:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-19 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:17:05 [end_date_ymd] => 2025-03-19 21:17:05 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:17:05' and `end` < '2025-03-19 21: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-03-19 21:17:18] Production.INFO: count ==2211 [2025-03-19 21:17:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:17:05 - End Time 2025-03-19 21:17:05 [2025-03-19 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718192', 'tblTempUsageDetail_20' ) start [2025-03-19 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718192', 'tblTempUsageDetail_20' ) end [2025-03-19 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718192', 'tblTempVendorCDR_20' ) start [2025-03-19 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718192', 'tblTempVendorCDR_20' ) end [2025-03-19 21:17:19] Production.INFO: ProcessCDR(1,14718192,1,1,2) [2025-03-19 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718192', 'tblTempUsageDetail_20' ) start [2025-03-19 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718192', 'tblTempUsageDetail_20' ) end [2025-03-19 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:17:22] Production.INFO: ==5050== Releasing lock... [2025-03-19 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:17:22] Production.INFO: 45 MB #Memory Used# [2025-03-19 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:18:05 [end_date_ymd] => 2025-03-19 21:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:18:05' and `end` < '2025-03-19 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-03-19 21:18:17] Production.INFO: count ==2209 [2025-03-19 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:18:05 - End Time 2025-03-19 21:18:05 [2025-03-19 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718197', 'tblTempUsageDetail_20' ) start [2025-03-19 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718197', 'tblTempUsageDetail_20' ) end [2025-03-19 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718197', 'tblTempVendorCDR_20' ) start [2025-03-19 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718197', 'tblTempVendorCDR_20' ) end [2025-03-19 21:18:18] Production.INFO: ProcessCDR(1,14718197,1,1,2) [2025-03-19 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718197', 'tblTempUsageDetail_20' ) start [2025-03-19 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718197', 'tblTempUsageDetail_20' ) end [2025-03-19 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:18:23] Production.INFO: ==5157== Releasing lock... [2025-03-19 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:18:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-19 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:19:05 [end_date_ymd] => 2025-03-19 21:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:19:05' and `end` < '2025-03-19 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-03-19 21:19:17] Production.INFO: count ==2198 [2025-03-19 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:19:05 - End Time 2025-03-19 21:19:05 [2025-03-19 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718202', 'tblTempUsageDetail_20' ) start [2025-03-19 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718202', 'tblTempUsageDetail_20' ) end [2025-03-19 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718202', 'tblTempVendorCDR_20' ) start [2025-03-19 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718202', 'tblTempVendorCDR_20' ) end [2025-03-19 21:19:18] Production.INFO: ProcessCDR(1,14718202,1,1,2) [2025-03-19 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718202', 'tblTempUsageDetail_20' ) start [2025-03-19 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718202', 'tblTempUsageDetail_20' ) end [2025-03-19 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:19:22] Production.INFO: ==5251== Releasing lock... [2025-03-19 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:19:22] Production.INFO: 45 MB #Memory Used# [2025-03-19 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:20:06 [end_date_ymd] => 2025-03-19 21:20:06 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:20:06' and `end` < '2025-03-19 21: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-03-19 21:20:19] Production.INFO: count ==2203 [2025-03-19 21:20:20] Production.ERROR: pbx CDR StartTime 2025-03-19 18:20:06 - End Time 2025-03-19 21:20:06 [2025-03-19 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718208', 'tblTempUsageDetail_20' ) start [2025-03-19 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718208', 'tblTempUsageDetail_20' ) end [2025-03-19 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718208', 'tblTempVendorCDR_20' ) start [2025-03-19 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718208', 'tblTempVendorCDR_20' ) end [2025-03-19 21:20:20] Production.INFO: ProcessCDR(1,14718208,1,1,2) [2025-03-19 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718208', 'tblTempUsageDetail_20' ) start [2025-03-19 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718208', 'tblTempUsageDetail_20' ) end [2025-03-19 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:20:23] Production.INFO: ==5342== Releasing lock... [2025-03-19 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:20:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-19 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:21:05 [end_date_ymd] => 2025-03-19 21:21:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:21:05' and `end` < '2025-03-19 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-03-19 21:21:18] Production.INFO: count ==2165 [2025-03-19 21:21:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:21:05 - End Time 2025-03-19 21:21:05 [2025-03-19 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718213', 'tblTempUsageDetail_20' ) start [2025-03-19 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718213', 'tblTempUsageDetail_20' ) end [2025-03-19 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718213', 'tblTempVendorCDR_20' ) start [2025-03-19 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718213', 'tblTempVendorCDR_20' ) end [2025-03-19 21:21:18] Production.INFO: ProcessCDR(1,14718213,1,1,2) [2025-03-19 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718213', 'tblTempUsageDetail_20' ) start [2025-03-19 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718213', 'tblTempUsageDetail_20' ) end [2025-03-19 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:21:22] Production.INFO: ==5472== Releasing lock... [2025-03-19 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:21:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-19 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:22:05 [end_date_ymd] => 2025-03-19 21:22:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:22:05' and `end` < '2025-03-19 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-03-19 21:22:17] Production.INFO: count ==2160 [2025-03-19 21:22:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:22:05 - End Time 2025-03-19 21:22:05 [2025-03-19 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718218', 'tblTempUsageDetail_20' ) start [2025-03-19 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718218', 'tblTempUsageDetail_20' ) end [2025-03-19 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718218', 'tblTempVendorCDR_20' ) start [2025-03-19 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718218', 'tblTempVendorCDR_20' ) end [2025-03-19 21:22:18] Production.INFO: ProcessCDR(1,14718218,1,1,2) [2025-03-19 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718218', 'tblTempUsageDetail_20' ) start [2025-03-19 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718218', 'tblTempUsageDetail_20' ) end [2025-03-19 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:22:22] Production.INFO: ==5559== Releasing lock... [2025-03-19 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:22:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-19 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:23:05 [end_date_ymd] => 2025-03-19 21:23:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:23:05' and `end` < '2025-03-19 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-03-19 21:23:17] Production.INFO: count ==2150 [2025-03-19 21:23:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:23:05 - End Time 2025-03-19 21:23:05 [2025-03-19 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718223', 'tblTempUsageDetail_20' ) start [2025-03-19 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718223', 'tblTempUsageDetail_20' ) end [2025-03-19 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718223', 'tblTempVendorCDR_20' ) start [2025-03-19 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718223', 'tblTempVendorCDR_20' ) end [2025-03-19 21:23:18] Production.INFO: ProcessCDR(1,14718223,1,1,2) [2025-03-19 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718223', 'tblTempUsageDetail_20' ) start [2025-03-19 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718223', 'tblTempUsageDetail_20' ) end [2025-03-19 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:23:22] Production.INFO: ==5652== Releasing lock... [2025-03-19 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:23:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-19 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:24:05 [end_date_ymd] => 2025-03-19 21:24:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:24:05' and `end` < '2025-03-19 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-03-19 21:24:18] Production.INFO: count ==2148 [2025-03-19 21:24:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:24:05 - End Time 2025-03-19 21:24:05 [2025-03-19 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718228', 'tblTempUsageDetail_20' ) start [2025-03-19 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718228', 'tblTempUsageDetail_20' ) end [2025-03-19 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718228', 'tblTempVendorCDR_20' ) start [2025-03-19 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718228', 'tblTempVendorCDR_20' ) end [2025-03-19 21:24:19] Production.INFO: ProcessCDR(1,14718228,1,1,2) [2025-03-19 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718228', 'tblTempUsageDetail_20' ) start [2025-03-19 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718228', 'tblTempUsageDetail_20' ) end [2025-03-19 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:24:22] Production.INFO: ==5748== Releasing lock... [2025-03-19 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:24:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-19 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:25:04 [end_date_ymd] => 2025-03-19 21:25:04 [RateCDR] => 1 ) [2025-03-19 21:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 18:25:04' and `end` < '2025-03-19 21:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 21:25:17] Production.INFO: count ==2140 [2025-03-19 21:25:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:25:04 - End Time 2025-03-19 21:25:04 [2025-03-19 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718233', 'tblTempUsageDetail_20' ) start [2025-03-19 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718233', 'tblTempUsageDetail_20' ) end [2025-03-19 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718233', 'tblTempVendorCDR_20' ) start [2025-03-19 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718233', 'tblTempVendorCDR_20' ) end [2025-03-19 21:25:18] Production.INFO: ProcessCDR(1,14718233,1,1,2) [2025-03-19 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718233', 'tblTempUsageDetail_20' ) start [2025-03-19 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718233', 'tblTempUsageDetail_20' ) end [2025-03-19 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:25:21] Production.INFO: ==5831== Releasing lock... [2025-03-19 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:25:21] Production.INFO: 44 MB #Memory Used# [2025-03-19 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:26:05 [end_date_ymd] => 2025-03-19 21:26:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:26:05' and `end` < '2025-03-19 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-03-19 21:26:18] Production.INFO: count ==2142 [2025-03-19 21:26:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:26:05 - End Time 2025-03-19 21:26:05 [2025-03-19 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718238', 'tblTempUsageDetail_20' ) start [2025-03-19 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718238', 'tblTempUsageDetail_20' ) end [2025-03-19 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718238', 'tblTempVendorCDR_20' ) start [2025-03-19 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718238', 'tblTempVendorCDR_20' ) end [2025-03-19 21:26:19] Production.INFO: ProcessCDR(1,14718238,1,1,2) [2025-03-19 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718238', 'tblTempUsageDetail_20' ) start [2025-03-19 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718238', 'tblTempUsageDetail_20' ) end [2025-03-19 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:26:22] Production.INFO: ==5924== Releasing lock... [2025-03-19 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:26:22] Production.INFO: 44 MB #Memory Used# [2025-03-19 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:27:05 [end_date_ymd] => 2025-03-19 21:27:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:27:05' and `end` < '2025-03-19 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-03-19 21:27:17] Production.INFO: count ==2141 [2025-03-19 21:27:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:27:05 - End Time 2025-03-19 21:27:05 [2025-03-19 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718243', 'tblTempUsageDetail_20' ) start [2025-03-19 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718243', 'tblTempUsageDetail_20' ) end [2025-03-19 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718243', 'tblTempVendorCDR_20' ) start [2025-03-19 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718243', 'tblTempVendorCDR_20' ) end [2025-03-19 21:27:18] Production.INFO: ProcessCDR(1,14718243,1,1,2) [2025-03-19 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718243', 'tblTempUsageDetail_20' ) start [2025-03-19 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718243', 'tblTempUsageDetail_20' ) end [2025-03-19 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:27:21] Production.INFO: ==6007== Releasing lock... [2025-03-19 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:27:21] Production.INFO: 44 MB #Memory Used# [2025-03-19 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:28:05 [end_date_ymd] => 2025-03-19 21:28:05 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:28:05' and `end` < '2025-03-19 21: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-03-19 21:28:17] Production.INFO: count ==2141 [2025-03-19 21:28:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:28:05 - End Time 2025-03-19 21:28:05 [2025-03-19 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718248', 'tblTempUsageDetail_20' ) start [2025-03-19 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718248', 'tblTempUsageDetail_20' ) end [2025-03-19 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718248', 'tblTempVendorCDR_20' ) start [2025-03-19 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718248', 'tblTempVendorCDR_20' ) end [2025-03-19 21:28:18] Production.INFO: ProcessCDR(1,14718248,1,1,2) [2025-03-19 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718248', 'tblTempUsageDetail_20' ) start [2025-03-19 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718248', 'tblTempUsageDetail_20' ) end [2025-03-19 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:28:22] Production.INFO: ==6090== Releasing lock... [2025-03-19 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:28:22] Production.INFO: 44 MB #Memory Used# [2025-03-19 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:29:05 [end_date_ymd] => 2025-03-19 21:29:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:29:05' and `end` < '2025-03-19 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-03-19 21:29:18] Production.INFO: count ==2138 [2025-03-19 21:29:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:29:05 - End Time 2025-03-19 21:29:05 [2025-03-19 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718253', 'tblTempUsageDetail_20' ) start [2025-03-19 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718253', 'tblTempUsageDetail_20' ) end [2025-03-19 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718253', 'tblTempVendorCDR_20' ) start [2025-03-19 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718253', 'tblTempVendorCDR_20' ) end [2025-03-19 21:29:18] Production.INFO: ProcessCDR(1,14718253,1,1,2) [2025-03-19 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718253', 'tblTempUsageDetail_20' ) start [2025-03-19 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718253', 'tblTempUsageDetail_20' ) end [2025-03-19 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:29:22] Production.INFO: ==6177== Releasing lock... [2025-03-19 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:29:22] Production.INFO: 44 MB #Memory Used# [2025-03-19 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:30:06 [end_date_ymd] => 2025-03-19 21:30:06 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:30:06' and `end` < '2025-03-19 21: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-03-19 21:30:18] Production.INFO: count ==2142 [2025-03-19 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:30:06 - End Time 2025-03-19 21:30:06 [2025-03-19 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718259', 'tblTempUsageDetail_20' ) start [2025-03-19 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718259', 'tblTempUsageDetail_20' ) end [2025-03-19 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718259', 'tblTempVendorCDR_20' ) start [2025-03-19 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718259', 'tblTempVendorCDR_20' ) end [2025-03-19 21:30:19] Production.INFO: ProcessCDR(1,14718259,1,1,2) [2025-03-19 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718259', 'tblTempUsageDetail_20' ) start [2025-03-19 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718259', 'tblTempUsageDetail_20' ) end [2025-03-19 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:30:23] Production.INFO: ==6264== Releasing lock... [2025-03-19 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:30:23] Production.INFO: 44 MB #Memory Used# [2025-03-19 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:31:06 [end_date_ymd] => 2025-03-19 21:31:06 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:31:06' and `end` < '2025-03-19 21: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-03-19 21:31:19] Production.INFO: count ==2141 [2025-03-19 21:31:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:31:06 - End Time 2025-03-19 21:31:06 [2025-03-19 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718264', 'tblTempUsageDetail_20' ) start [2025-03-19 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718264', 'tblTempUsageDetail_20' ) end [2025-03-19 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718264', 'tblTempVendorCDR_20' ) start [2025-03-19 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718264', 'tblTempVendorCDR_20' ) end [2025-03-19 21:31:19] Production.INFO: ProcessCDR(1,14718264,1,1,2) [2025-03-19 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718264', 'tblTempUsageDetail_20' ) start [2025-03-19 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718264', 'tblTempUsageDetail_20' ) end [2025-03-19 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:31:23] Production.INFO: ==6366== Releasing lock... [2025-03-19 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:31:23] Production.INFO: 44 MB #Memory Used# [2025-03-19 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:32:05 [end_date_ymd] => 2025-03-19 21:32:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:32:05' and `end` < '2025-03-19 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-03-19 21:32:17] Production.INFO: count ==2128 [2025-03-19 21:32:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:32:05 - End Time 2025-03-19 21:32:05 [2025-03-19 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718269', 'tblTempUsageDetail_20' ) start [2025-03-19 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718269', 'tblTempUsageDetail_20' ) end [2025-03-19 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718269', 'tblTempVendorCDR_20' ) start [2025-03-19 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718269', 'tblTempVendorCDR_20' ) end [2025-03-19 21:32:18] Production.INFO: ProcessCDR(1,14718269,1,1,2) [2025-03-19 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718269', 'tblTempUsageDetail_20' ) start [2025-03-19 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718269', 'tblTempUsageDetail_20' ) end [2025-03-19 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:32:22] Production.INFO: ==6450== Releasing lock... [2025-03-19 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:32:22] Production.INFO: 44 MB #Memory Used# [2025-03-19 21:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:33:06 [end_date_ymd] => 2025-03-19 21:33:06 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:33:06' and `end` < '2025-03-19 21: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-03-19 21:33:18] Production.INFO: count ==2127 [2025-03-19 21:33:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:33:06 - End Time 2025-03-19 21:33:06 [2025-03-19 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718274', 'tblTempUsageDetail_20' ) start [2025-03-19 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718274', 'tblTempUsageDetail_20' ) end [2025-03-19 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718274', 'tblTempVendorCDR_20' ) start [2025-03-19 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718274', 'tblTempVendorCDR_20' ) end [2025-03-19 21:33:19] Production.INFO: ProcessCDR(1,14718274,1,1,2) [2025-03-19 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718274', 'tblTempUsageDetail_20' ) start [2025-03-19 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718274', 'tblTempUsageDetail_20' ) end [2025-03-19 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:33:23] Production.INFO: ==6531== Releasing lock... [2025-03-19 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:33:23] Production.INFO: 44 MB #Memory Used# [2025-03-19 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:34:05 [end_date_ymd] => 2025-03-19 21:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:34:05' and `end` < '2025-03-19 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-03-19 21:34:17] Production.INFO: count ==2128 [2025-03-19 21:34:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:34:05 - End Time 2025-03-19 21:34:05 [2025-03-19 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718279', 'tblTempUsageDetail_20' ) start [2025-03-19 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718279', 'tblTempUsageDetail_20' ) end [2025-03-19 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718279', 'tblTempVendorCDR_20' ) start [2025-03-19 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718279', 'tblTempVendorCDR_20' ) end [2025-03-19 21:34:18] Production.INFO: ProcessCDR(1,14718279,1,1,2) [2025-03-19 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718279', 'tblTempUsageDetail_20' ) start [2025-03-19 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718279', 'tblTempUsageDetail_20' ) end [2025-03-19 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:34:22] Production.INFO: ==6613== Releasing lock... [2025-03-19 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:34:22] Production.INFO: 44 MB #Memory Used# [2025-03-19 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:35:05 [end_date_ymd] => 2025-03-19 21:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:35:05' and `end` < '2025-03-19 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-03-19 21:35:18] Production.INFO: count ==2108 [2025-03-19 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:35:05 - End Time 2025-03-19 21:35:05 [2025-03-19 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718284', 'tblTempUsageDetail_20' ) start [2025-03-19 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718284', 'tblTempUsageDetail_20' ) end [2025-03-19 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718284', 'tblTempVendorCDR_20' ) start [2025-03-19 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718284', 'tblTempVendorCDR_20' ) end [2025-03-19 21:35:18] Production.INFO: ProcessCDR(1,14718284,1,1,2) [2025-03-19 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718284', 'tblTempUsageDetail_20' ) start [2025-03-19 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718284', 'tblTempUsageDetail_20' ) end [2025-03-19 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:35:22] Production.INFO: ==6697== Releasing lock... [2025-03-19 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:35:22] Production.INFO: 44 MB #Memory Used# [2025-03-19 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:36:05 [end_date_ymd] => 2025-03-19 21:36:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:36:05' and `end` < '2025-03-19 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-03-19 21:36:17] Production.INFO: count ==2107 [2025-03-19 21:36:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:36:05 - End Time 2025-03-19 21:36:05 [2025-03-19 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718289', 'tblTempUsageDetail_20' ) start [2025-03-19 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718289', 'tblTempUsageDetail_20' ) end [2025-03-19 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718289', 'tblTempVendorCDR_20' ) start [2025-03-19 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718289', 'tblTempVendorCDR_20' ) end [2025-03-19 21:36:18] Production.INFO: ProcessCDR(1,14718289,1,1,2) [2025-03-19 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718289', 'tblTempUsageDetail_20' ) start [2025-03-19 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718289', 'tblTempUsageDetail_20' ) end [2025-03-19 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:36:22] Production.INFO: ==6817== Releasing lock... [2025-03-19 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:36:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-19 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:37:05 [end_date_ymd] => 2025-03-19 21:37:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:37:05' and `end` < '2025-03-19 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-03-19 21:37:18] Production.INFO: count ==2101 [2025-03-19 21:37:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:37:05 - End Time 2025-03-19 21:37:05 [2025-03-19 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718294', 'tblTempUsageDetail_20' ) start [2025-03-19 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718294', 'tblTempUsageDetail_20' ) end [2025-03-19 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718294', 'tblTempVendorCDR_20' ) start [2025-03-19 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718294', 'tblTempVendorCDR_20' ) end [2025-03-19 21:37:19] Production.INFO: ProcessCDR(1,14718294,1,1,2) [2025-03-19 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718294', 'tblTempUsageDetail_20' ) start [2025-03-19 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718294', 'tblTempUsageDetail_20' ) end [2025-03-19 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:37:22] Production.INFO: ==6910== Releasing lock... [2025-03-19 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:37:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-19 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:38:06 [end_date_ymd] => 2025-03-19 21:38:06 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:38:06' and `end` < '2025-03-19 21: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-03-19 21:38:18] Production.INFO: count ==2095 [2025-03-19 21:38:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:38:06 - End Time 2025-03-19 21:38:06 [2025-03-19 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718299', 'tblTempUsageDetail_20' ) start [2025-03-19 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718299', 'tblTempUsageDetail_20' ) end [2025-03-19 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718299', 'tblTempVendorCDR_20' ) start [2025-03-19 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718299', 'tblTempVendorCDR_20' ) end [2025-03-19 21:38:19] Production.INFO: ProcessCDR(1,14718299,1,1,2) [2025-03-19 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718299', 'tblTempUsageDetail_20' ) start [2025-03-19 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718299', 'tblTempUsageDetail_20' ) end [2025-03-19 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:38:22] Production.INFO: ==7004== Releasing lock... [2025-03-19 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:38:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-19 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:39:05 [end_date_ymd] => 2025-03-19 21:39:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:39:05' and `end` < '2025-03-19 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-03-19 21:39:18] Production.INFO: count ==2058 [2025-03-19 21:39:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:39:05 - End Time 2025-03-19 21:39:05 [2025-03-19 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718304', 'tblTempUsageDetail_20' ) start [2025-03-19 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718304', 'tblTempUsageDetail_20' ) end [2025-03-19 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718304', 'tblTempVendorCDR_20' ) start [2025-03-19 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718304', 'tblTempVendorCDR_20' ) end [2025-03-19 21:39:19] Production.INFO: ProcessCDR(1,14718304,1,1,2) [2025-03-19 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718304', 'tblTempUsageDetail_20' ) start [2025-03-19 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718304', 'tblTempUsageDetail_20' ) end [2025-03-19 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:39:22] Production.INFO: ==7093== Releasing lock... [2025-03-19 21:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:39:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-19 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:40:06 [end_date_ymd] => 2025-03-19 21:40:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:40:06' and `end` < '2025-03-19 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-03-19 21:40:18] Production.INFO: count ==2053 [2025-03-19 21:40:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:40:06 - End Time 2025-03-19 21:40:06 [2025-03-19 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718310', 'tblTempUsageDetail_20' ) start [2025-03-19 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718310', 'tblTempUsageDetail_20' ) end [2025-03-19 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718310', 'tblTempVendorCDR_20' ) start [2025-03-19 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718310', 'tblTempVendorCDR_20' ) end [2025-03-19 21:40:19] Production.INFO: ProcessCDR(1,14718310,1,1,2) [2025-03-19 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718310', 'tblTempUsageDetail_20' ) start [2025-03-19 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718310', 'tblTempUsageDetail_20' ) end [2025-03-19 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:40:22] Production.INFO: ==7185== Releasing lock... [2025-03-19 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:40:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-19 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:41:06 [end_date_ymd] => 2025-03-19 21:41:06 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:41:06' and `end` < '2025-03-19 21: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-03-19 21:41:18] Production.INFO: count ==2007 [2025-03-19 21:41:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:41:06 - End Time 2025-03-19 21:41:06 [2025-03-19 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718315', 'tblTempUsageDetail_20' ) start [2025-03-19 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718315', 'tblTempUsageDetail_20' ) end [2025-03-19 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718315', 'tblTempVendorCDR_20' ) start [2025-03-19 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718315', 'tblTempVendorCDR_20' ) end [2025-03-19 21:41:19] Production.INFO: ProcessCDR(1,14718315,1,1,2) [2025-03-19 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718315', 'tblTempUsageDetail_20' ) start [2025-03-19 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718315', 'tblTempUsageDetail_20' ) end [2025-03-19 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:41:22] Production.INFO: ==7267== Releasing lock... [2025-03-19 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:41:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-19 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:42:05 [end_date_ymd] => 2025-03-19 21:42:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:42:05' and `end` < '2025-03-19 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-03-19 21:42:17] Production.INFO: count ==2007 [2025-03-19 21:42:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:42:05 - End Time 2025-03-19 21:42:05 [2025-03-19 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718320', 'tblTempUsageDetail_20' ) start [2025-03-19 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718320', 'tblTempUsageDetail_20' ) end [2025-03-19 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718320', 'tblTempVendorCDR_20' ) start [2025-03-19 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718320', 'tblTempVendorCDR_20' ) end [2025-03-19 21:42:18] Production.INFO: ProcessCDR(1,14718320,1,1,2) [2025-03-19 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718320', 'tblTempUsageDetail_20' ) start [2025-03-19 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718320', 'tblTempUsageDetail_20' ) end [2025-03-19 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:42:22] Production.INFO: ==7357== Releasing lock... [2025-03-19 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:42:22] Production.INFO: 43 MB #Memory Used# [2025-03-19 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:43:05 [end_date_ymd] => 2025-03-19 21:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:43:05' and `end` < '2025-03-19 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-03-19 21:43:17] Production.INFO: count ==2006 [2025-03-19 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:43:05 - End Time 2025-03-19 21:43:05 [2025-03-19 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718325', 'tblTempUsageDetail_20' ) start [2025-03-19 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718325', 'tblTempUsageDetail_20' ) end [2025-03-19 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718325', 'tblTempVendorCDR_20' ) start [2025-03-19 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718325', 'tblTempVendorCDR_20' ) end [2025-03-19 21:43:18] Production.INFO: ProcessCDR(1,14718325,1,1,2) [2025-03-19 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718325', 'tblTempUsageDetail_20' ) start [2025-03-19 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718325', 'tblTempUsageDetail_20' ) end [2025-03-19 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:43:23] Production.INFO: ==7446== Releasing lock... [2025-03-19 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:43:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-19 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:44:05 [end_date_ymd] => 2025-03-19 21:44:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:44:05' and `end` < '2025-03-19 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-03-19 21:44:17] Production.INFO: count ==2004 [2025-03-19 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:44:05 - End Time 2025-03-19 21:44:05 [2025-03-19 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718330', 'tblTempUsageDetail_20' ) start [2025-03-19 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718330', 'tblTempUsageDetail_20' ) end [2025-03-19 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718330', 'tblTempVendorCDR_20' ) start [2025-03-19 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718330', 'tblTempVendorCDR_20' ) end [2025-03-19 21:44:18] Production.INFO: ProcessCDR(1,14718330,1,1,2) [2025-03-19 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718330', 'tblTempUsageDetail_20' ) start [2025-03-19 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718330', 'tblTempUsageDetail_20' ) end [2025-03-19 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:44:22] Production.INFO: ==7531== Releasing lock... [2025-03-19 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:44:22] Production.INFO: 43 MB #Memory Used# [2025-03-19 21:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:45:06 [end_date_ymd] => 2025-03-19 21:45:06 [RateCDR] => 1 ) [2025-03-19 21:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 18:45:06' and `end` < '2025-03-19 21:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 21:45:18] Production.INFO: count ==2006 [2025-03-19 21:45:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:45:06 - End Time 2025-03-19 21:45:06 [2025-03-19 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718335', 'tblTempUsageDetail_20' ) start [2025-03-19 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718335', 'tblTempUsageDetail_20' ) end [2025-03-19 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718335', 'tblTempVendorCDR_20' ) start [2025-03-19 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718335', 'tblTempVendorCDR_20' ) end [2025-03-19 21:45:19] Production.INFO: ProcessCDR(1,14718335,1,1,2) [2025-03-19 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718335', 'tblTempUsageDetail_20' ) start [2025-03-19 21:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718335', 'tblTempUsageDetail_20' ) end [2025-03-19 21:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:45:24] Production.INFO: ==7622== Releasing lock... [2025-03-19 21:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:45:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-19 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:46:05 [end_date_ymd] => 2025-03-19 21:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:46:05' and `end` < '2025-03-19 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-03-19 21:46:17] Production.INFO: count ==2010 [2025-03-19 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:46:05 - End Time 2025-03-19 21:46:05 [2025-03-19 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718340', 'tblTempUsageDetail_20' ) start [2025-03-19 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718340', 'tblTempUsageDetail_20' ) end [2025-03-19 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718340', 'tblTempVendorCDR_20' ) start [2025-03-19 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718340', 'tblTempVendorCDR_20' ) end [2025-03-19 21:46:18] Production.INFO: ProcessCDR(1,14718340,1,1,2) [2025-03-19 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718340', 'tblTempUsageDetail_20' ) start [2025-03-19 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718340', 'tblTempUsageDetail_20' ) end [2025-03-19 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:46:23] Production.INFO: ==7704== Releasing lock... [2025-03-19 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:46:23] Production.INFO: 43 MB #Memory Used# [2025-03-19 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:47:05 [end_date_ymd] => 2025-03-19 21:47:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:47:05' and `end` < '2025-03-19 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-03-19 21:47:18] Production.INFO: count ==2008 [2025-03-19 21:47:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:47:05 - End Time 2025-03-19 21:47:05 [2025-03-19 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718345', 'tblTempUsageDetail_20' ) start [2025-03-19 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718345', 'tblTempUsageDetail_20' ) end [2025-03-19 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718345', 'tblTempVendorCDR_20' ) start [2025-03-19 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718345', 'tblTempVendorCDR_20' ) end [2025-03-19 21:47:19] Production.INFO: ProcessCDR(1,14718345,1,1,2) [2025-03-19 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718345', 'tblTempUsageDetail_20' ) start [2025-03-19 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718345', 'tblTempUsageDetail_20' ) end [2025-03-19 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:47:22] Production.INFO: ==7784== Releasing lock... [2025-03-19 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:47:22] Production.INFO: 43 MB #Memory Used# [2025-03-19 21:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:48:04 [end_date_ymd] => 2025-03-19 21:48:04 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:48:04' and `end` < '2025-03-19 21: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-03-19 21:48:17] Production.INFO: count ==2007 [2025-03-19 21:48:17] Production.ERROR: pbx CDR StartTime 2025-03-19 18:48:04 - End Time 2025-03-19 21:48:04 [2025-03-19 21:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718350', 'tblTempUsageDetail_20' ) start [2025-03-19 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718350', 'tblTempUsageDetail_20' ) end [2025-03-19 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718350', 'tblTempVendorCDR_20' ) start [2025-03-19 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718350', 'tblTempVendorCDR_20' ) end [2025-03-19 21:48:18] Production.INFO: ProcessCDR(1,14718350,1,1,2) [2025-03-19 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718350', 'tblTempUsageDetail_20' ) start [2025-03-19 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718350', 'tblTempUsageDetail_20' ) end [2025-03-19 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:48:21] Production.INFO: ==7876== Releasing lock... [2025-03-19 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:48:21] Production.INFO: 43 MB #Memory Used# [2025-03-19 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:49:05 [end_date_ymd] => 2025-03-19 21:49:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:49:05' and `end` < '2025-03-19 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-03-19 21:49:17] Production.INFO: count ==1995 [2025-03-19 21:49:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:49:05 - End Time 2025-03-19 21:49:05 [2025-03-19 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718355', 'tblTempUsageDetail_20' ) start [2025-03-19 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718355', 'tblTempUsageDetail_20' ) end [2025-03-19 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718355', 'tblTempVendorCDR_20' ) start [2025-03-19 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718355', 'tblTempVendorCDR_20' ) end [2025-03-19 21:49:18] Production.INFO: ProcessCDR(1,14718355,1,1,2) [2025-03-19 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718355', 'tblTempUsageDetail_20' ) start [2025-03-19 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718355', 'tblTempUsageDetail_20' ) end [2025-03-19 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:49:22] Production.INFO: ==7957== Releasing lock... [2025-03-19 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:49:22] Production.INFO: 43 MB #Memory Used# [2025-03-19 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:50:06 [end_date_ymd] => 2025-03-19 21:50:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:50:06' and `end` < '2025-03-19 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-03-19 21:50:19] Production.INFO: count ==1979 [2025-03-19 21:50:20] Production.ERROR: pbx CDR StartTime 2025-03-19 18:50:06 - End Time 2025-03-19 21:50:06 [2025-03-19 21:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718361', 'tblTempUsageDetail_20' ) start [2025-03-19 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718361', 'tblTempUsageDetail_20' ) end [2025-03-19 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718361', 'tblTempVendorCDR_20' ) start [2025-03-19 21:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718361', 'tblTempVendorCDR_20' ) end [2025-03-19 21:50:20] Production.INFO: ProcessCDR(1,14718361,1,1,2) [2025-03-19 21:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718361', 'tblTempUsageDetail_20' ) start [2025-03-19 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718361', 'tblTempUsageDetail_20' ) end [2025-03-19 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:50:23] Production.INFO: ==8055== Releasing lock... [2025-03-19 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:50:23] Production.INFO: 43 MB #Memory Used# [2025-03-19 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:51:06 [end_date_ymd] => 2025-03-19 21:51:06 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:51:06' and `end` < '2025-03-19 21: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-03-19 21:51:18] Production.INFO: count ==1969 [2025-03-19 21:51:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:51:06 - End Time 2025-03-19 21:51:06 [2025-03-19 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718366', 'tblTempUsageDetail_20' ) start [2025-03-19 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718366', 'tblTempUsageDetail_20' ) end [2025-03-19 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718366', 'tblTempVendorCDR_20' ) start [2025-03-19 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718366', 'tblTempVendorCDR_20' ) end [2025-03-19 21:51:19] Production.INFO: ProcessCDR(1,14718366,1,1,2) [2025-03-19 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718366', 'tblTempUsageDetail_20' ) start [2025-03-19 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718366', 'tblTempUsageDetail_20' ) end [2025-03-19 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:51:22] Production.INFO: ==8179== Releasing lock... [2025-03-19 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:51:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-19 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:52:05 [end_date_ymd] => 2025-03-19 21:52:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:52:05' and `end` < '2025-03-19 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-03-19 21:52:18] Production.INFO: count ==1957 [2025-03-19 21:52:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:52:05 - End Time 2025-03-19 21:52:05 [2025-03-19 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718371', 'tblTempUsageDetail_20' ) start [2025-03-19 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718371', 'tblTempUsageDetail_20' ) end [2025-03-19 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718371', 'tblTempVendorCDR_20' ) start [2025-03-19 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718371', 'tblTempVendorCDR_20' ) end [2025-03-19 21:52:19] Production.INFO: ProcessCDR(1,14718371,1,1,2) [2025-03-19 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718371', 'tblTempUsageDetail_20' ) start [2025-03-19 21:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718371', 'tblTempUsageDetail_20' ) end [2025-03-19 21:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:52:23] Production.INFO: ==8262== Releasing lock... [2025-03-19 21:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:52:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-19 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:53:05 [end_date_ymd] => 2025-03-19 21:53:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:53:05' and `end` < '2025-03-19 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-03-19 21:53:17] Production.INFO: count ==1959 [2025-03-19 21:53:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:53:05 - End Time 2025-03-19 21:53:05 [2025-03-19 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718376', 'tblTempUsageDetail_20' ) start [2025-03-19 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718376', 'tblTempUsageDetail_20' ) end [2025-03-19 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718376', 'tblTempVendorCDR_20' ) start [2025-03-19 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718376', 'tblTempVendorCDR_20' ) end [2025-03-19 21:53:18] Production.INFO: ProcessCDR(1,14718376,1,1,2) [2025-03-19 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718376', 'tblTempUsageDetail_20' ) start [2025-03-19 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718376', 'tblTempUsageDetail_20' ) end [2025-03-19 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:53:23] Production.INFO: ==8345== Releasing lock... [2025-03-19 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:53:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-19 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:54:06 [end_date_ymd] => 2025-03-19 21:54:06 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:54:06' and `end` < '2025-03-19 21: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-03-19 21:54:18] Production.INFO: count ==1901 [2025-03-19 21:54:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:54:06 - End Time 2025-03-19 21:54:06 [2025-03-19 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718381', 'tblTempUsageDetail_20' ) start [2025-03-19 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718381', 'tblTempUsageDetail_20' ) end [2025-03-19 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718381', 'tblTempVendorCDR_20' ) start [2025-03-19 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718381', 'tblTempVendorCDR_20' ) end [2025-03-19 21:54:19] Production.INFO: ProcessCDR(1,14718381,1,1,2) [2025-03-19 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718381', 'tblTempUsageDetail_20' ) start [2025-03-19 21:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718381', 'tblTempUsageDetail_20' ) end [2025-03-19 21:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:54:22] Production.INFO: ==8431== Releasing lock... [2025-03-19 21:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:54:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-19 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:55:05 [end_date_ymd] => 2025-03-19 21:55:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:55:05' and `end` < '2025-03-19 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-03-19 21:55:17] Production.INFO: count ==1822 [2025-03-19 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:55:05 - End Time 2025-03-19 21:55:05 [2025-03-19 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718386', 'tblTempUsageDetail_20' ) start [2025-03-19 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718386', 'tblTempUsageDetail_20' ) end [2025-03-19 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718386', 'tblTempVendorCDR_20' ) start [2025-03-19 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718386', 'tblTempVendorCDR_20' ) end [2025-03-19 21:55:18] Production.INFO: ProcessCDR(1,14718386,1,1,2) [2025-03-19 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718386', 'tblTempUsageDetail_20' ) start [2025-03-19 21:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718386', 'tblTempUsageDetail_20' ) end [2025-03-19 21:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:55:23] Production.INFO: ==8515== Releasing lock... [2025-03-19 21:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:55:23] Production.INFO: 42 MB #Memory Used# [2025-03-19 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:56:06 [end_date_ymd] => 2025-03-19 21:56:06 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:56:06' and `end` < '2025-03-19 21: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-03-19 21:56:18] Production.INFO: count ==1742 [2025-03-19 21:56:19] Production.ERROR: pbx CDR StartTime 2025-03-19 18:56:06 - End Time 2025-03-19 21:56:06 [2025-03-19 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718391', 'tblTempUsageDetail_20' ) start [2025-03-19 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718391', 'tblTempUsageDetail_20' ) end [2025-03-19 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718391', 'tblTempVendorCDR_20' ) start [2025-03-19 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718391', 'tblTempVendorCDR_20' ) end [2025-03-19 21:56:19] Production.INFO: ProcessCDR(1,14718391,1,1,2) [2025-03-19 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718391', 'tblTempUsageDetail_20' ) start [2025-03-19 21:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718391', 'tblTempUsageDetail_20' ) end [2025-03-19 21:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:56:24] Production.INFO: ==8601== Releasing lock... [2025-03-19 21:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:56:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-19 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:57:05 [end_date_ymd] => 2025-03-19 21:57:05 [RateCDR] => 1 ) [2025-03-19 21: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-03-19 18:57:05' and `end` < '2025-03-19 21: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-03-19 21:57:17] Production.INFO: count ==1653 [2025-03-19 21:57:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:57:05 - End Time 2025-03-19 21:57:05 [2025-03-19 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718396', 'tblTempUsageDetail_20' ) start [2025-03-19 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718396', 'tblTempUsageDetail_20' ) end [2025-03-19 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718396', 'tblTempVendorCDR_20' ) start [2025-03-19 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718396', 'tblTempVendorCDR_20' ) end [2025-03-19 21:57:18] Production.INFO: ProcessCDR(1,14718396,1,1,2) [2025-03-19 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718396', 'tblTempUsageDetail_20' ) start [2025-03-19 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718396', 'tblTempUsageDetail_20' ) end [2025-03-19 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:57:23] Production.INFO: ==8689== Releasing lock... [2025-03-19 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:57:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-19 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:58:05 [end_date_ymd] => 2025-03-19 21:58:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:58:05' and `end` < '2025-03-19 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-03-19 21:58:17] Production.INFO: count ==1575 [2025-03-19 21:58:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:58:05 - End Time 2025-03-19 21:58:05 [2025-03-19 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718401', 'tblTempUsageDetail_20' ) start [2025-03-19 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718401', 'tblTempUsageDetail_20' ) end [2025-03-19 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718401', 'tblTempVendorCDR_20' ) start [2025-03-19 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718401', 'tblTempVendorCDR_20' ) end [2025-03-19 21:58:18] Production.INFO: ProcessCDR(1,14718401,1,1,2) [2025-03-19 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718401', 'tblTempUsageDetail_20' ) start [2025-03-19 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718401', 'tblTempUsageDetail_20' ) end [2025-03-19 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:58:22] Production.INFO: ==8771== Releasing lock... [2025-03-19 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:58:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-19 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 18:59:05 [end_date_ymd] => 2025-03-19 21:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 18:59:05' and `end` < '2025-03-19 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-03-19 21:59:17] Production.INFO: count ==1493 [2025-03-19 21:59:18] Production.ERROR: pbx CDR StartTime 2025-03-19 18:59:05 - End Time 2025-03-19 21:59:05 [2025-03-19 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718406', 'tblTempUsageDetail_20' ) start [2025-03-19 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718406', 'tblTempUsageDetail_20' ) end [2025-03-19 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718406', 'tblTempVendorCDR_20' ) start [2025-03-19 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718406', 'tblTempVendorCDR_20' ) end [2025-03-19 21:59:18] Production.INFO: ProcessCDR(1,14718406,1,1,2) [2025-03-19 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718406', 'tblTempUsageDetail_20' ) start [2025-03-19 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718406', 'tblTempUsageDetail_20' ) end [2025-03-19 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 21:59:23] Production.INFO: ==8855== Releasing lock... [2025-03-19 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 21:59:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-19 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:00:07 [end_date_ymd] => 2025-03-19 22:00:07 [RateCDR] => 1 ) [2025-03-19 22:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-19 19:00:07' and `end` < '2025-03-19 22:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-19 22:00:19] Production.INFO: count ==1412 [2025-03-19 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-19 19:00:07 - End Time 2025-03-19 22:00:07 [2025-03-19 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718412', 'tblTempUsageDetail_20' ) start [2025-03-19 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718412', 'tblTempUsageDetail_20' ) end [2025-03-19 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718412', 'tblTempVendorCDR_20' ) start [2025-03-19 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718412', 'tblTempVendorCDR_20' ) end [2025-03-19 22:00:19] Production.INFO: ProcessCDR(1,14718412,1,1,2) [2025-03-19 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718412', 'tblTempUsageDetail_20' ) start [2025-03-19 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718412', 'tblTempUsageDetail_20' ) end [2025-03-19 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:00:23] Production.INFO: ==8949== Releasing lock... [2025-03-19 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:00:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-19 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:01:05 [end_date_ymd] => 2025-03-19 22:01:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:01:05' and `end` < '2025-03-19 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-03-19 22:01:17] Production.INFO: count ==1336 [2025-03-19 22:01:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:01:05 - End Time 2025-03-19 22:01:05 [2025-03-19 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718417', 'tblTempUsageDetail_20' ) start [2025-03-19 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718417', 'tblTempUsageDetail_20' ) end [2025-03-19 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718417', 'tblTempVendorCDR_20' ) start [2025-03-19 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718417', 'tblTempVendorCDR_20' ) end [2025-03-19 22:01:18] Production.INFO: ProcessCDR(1,14718417,1,1,2) [2025-03-19 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718417', 'tblTempUsageDetail_20' ) start [2025-03-19 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718417', 'tblTempUsageDetail_20' ) end [2025-03-19 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:01:21] Production.INFO: ==9055== Releasing lock... [2025-03-19 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:01:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-19 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:02:05 [end_date_ymd] => 2025-03-19 22:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:02:05' and `end` < '2025-03-19 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-03-19 22:02:18] Production.INFO: count ==1329 [2025-03-19 22:02:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:02:05 - End Time 2025-03-19 22:02:05 [2025-03-19 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718422', 'tblTempUsageDetail_20' ) start [2025-03-19 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718422', 'tblTempUsageDetail_20' ) end [2025-03-19 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718422', 'tblTempVendorCDR_20' ) start [2025-03-19 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718422', 'tblTempVendorCDR_20' ) end [2025-03-19 22:02:18] Production.INFO: ProcessCDR(1,14718422,1,1,2) [2025-03-19 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718422', 'tblTempUsageDetail_20' ) start [2025-03-19 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718422', 'tblTempUsageDetail_20' ) end [2025-03-19 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:02:22] Production.INFO: ==9140== Releasing lock... [2025-03-19 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:02:22] Production.INFO: 38 MB #Memory Used# [2025-03-19 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:03:05 [end_date_ymd] => 2025-03-19 22:03:05 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:03:05' and `end` < '2025-03-19 22: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-03-19 22:03:18] Production.INFO: count ==1321 [2025-03-19 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:03:05 - End Time 2025-03-19 22:03:05 [2025-03-19 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718427', 'tblTempUsageDetail_20' ) start [2025-03-19 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718427', 'tblTempUsageDetail_20' ) end [2025-03-19 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718427', 'tblTempVendorCDR_20' ) start [2025-03-19 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718427', 'tblTempVendorCDR_20' ) end [2025-03-19 22:03:18] Production.INFO: ProcessCDR(1,14718427,1,1,2) [2025-03-19 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718427', 'tblTempUsageDetail_20' ) start [2025-03-19 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718427', 'tblTempUsageDetail_20' ) end [2025-03-19 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:03:21] Production.INFO: ==9227== Releasing lock... [2025-03-19 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:03:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-19 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:04:05 [end_date_ymd] => 2025-03-19 22:04:05 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:04:05' and `end` < '2025-03-19 22: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-03-19 22:04:18] Production.INFO: count ==1315 [2025-03-19 22:04:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:04:05 - End Time 2025-03-19 22:04:05 [2025-03-19 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718432', 'tblTempUsageDetail_20' ) start [2025-03-19 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718432', 'tblTempUsageDetail_20' ) end [2025-03-19 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718432', 'tblTempVendorCDR_20' ) start [2025-03-19 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718432', 'tblTempVendorCDR_20' ) end [2025-03-19 22:04:18] Production.INFO: ProcessCDR(1,14718432,1,1,2) [2025-03-19 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718432', 'tblTempUsageDetail_20' ) start [2025-03-19 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718432', 'tblTempUsageDetail_20' ) end [2025-03-19 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:04:22] Production.INFO: ==9315== Releasing lock... [2025-03-19 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:04:22] Production.INFO: 38 MB #Memory Used# [2025-03-19 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:05:05 [end_date_ymd] => 2025-03-19 22:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:05:05' and `end` < '2025-03-19 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-03-19 22:05:17] Production.INFO: count ==1310 [2025-03-19 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:05:05 - End Time 2025-03-19 22:05:05 [2025-03-19 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718437', 'tblTempUsageDetail_20' ) start [2025-03-19 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718437', 'tblTempUsageDetail_20' ) end [2025-03-19 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718437', 'tblTempVendorCDR_20' ) start [2025-03-19 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718437', 'tblTempVendorCDR_20' ) end [2025-03-19 22:05:18] Production.INFO: ProcessCDR(1,14718437,1,1,2) [2025-03-19 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718437', 'tblTempUsageDetail_20' ) start [2025-03-19 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718437', 'tblTempUsageDetail_20' ) end [2025-03-19 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:05:21] Production.INFO: ==9404== Releasing lock... [2025-03-19 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:05:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-19 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:06:05 [end_date_ymd] => 2025-03-19 22:06:05 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:06:05' and `end` < '2025-03-19 22: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-03-19 22:06:17] Production.INFO: count ==1303 [2025-03-19 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:06:05 - End Time 2025-03-19 22:06:05 [2025-03-19 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718439', 'tblTempUsageDetail_20' ) start [2025-03-19 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718439', 'tblTempUsageDetail_20' ) end [2025-03-19 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718439', 'tblTempVendorCDR_20' ) start [2025-03-19 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718439', 'tblTempVendorCDR_20' ) end [2025-03-19 22:06:18] Production.INFO: ProcessCDR(1,14718439,1,1,2) [2025-03-19 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718439', 'tblTempUsageDetail_20' ) start [2025-03-19 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718439', 'tblTempUsageDetail_20' ) end [2025-03-19 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:06:21] Production.INFO: ==9500== Releasing lock... [2025-03-19 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:06:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-19 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:07:05 [end_date_ymd] => 2025-03-19 22:07:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:07:05' and `end` < '2025-03-19 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-03-19 22:07:17] Production.INFO: count ==1296 [2025-03-19 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:07:05 - End Time 2025-03-19 22:07:05 [2025-03-19 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718447', 'tblTempUsageDetail_20' ) start [2025-03-19 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718447', 'tblTempUsageDetail_20' ) end [2025-03-19 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718447', 'tblTempVendorCDR_20' ) start [2025-03-19 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718447', 'tblTempVendorCDR_20' ) end [2025-03-19 22:07:18] Production.INFO: ProcessCDR(1,14718447,1,1,2) [2025-03-19 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718447', 'tblTempUsageDetail_20' ) start [2025-03-19 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718447', 'tblTempUsageDetail_20' ) end [2025-03-19 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:07:21] Production.INFO: ==9630== Releasing lock... [2025-03-19 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:07:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-19 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:08:05 [end_date_ymd] => 2025-03-19 22:08:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:08:05' and `end` < '2025-03-19 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-03-19 22:08:18] Production.INFO: count ==1293 [2025-03-19 22:08:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:08:05 - End Time 2025-03-19 22:08:05 [2025-03-19 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718452', 'tblTempUsageDetail_20' ) start [2025-03-19 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718452', 'tblTempUsageDetail_20' ) end [2025-03-19 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718452', 'tblTempVendorCDR_20' ) start [2025-03-19 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718452', 'tblTempVendorCDR_20' ) end [2025-03-19 22:08:18] Production.INFO: ProcessCDR(1,14718452,1,1,2) [2025-03-19 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718452', 'tblTempUsageDetail_20' ) start [2025-03-19 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718452', 'tblTempUsageDetail_20' ) end [2025-03-19 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:08:22] Production.INFO: ==9719== Releasing lock... [2025-03-19 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:08:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-19 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:09:05 [end_date_ymd] => 2025-03-19 22:09:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:09:05' and `end` < '2025-03-19 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-03-19 22:09:17] Production.INFO: count ==1279 [2025-03-19 22:09:17] Production.ERROR: pbx CDR StartTime 2025-03-19 19:09:05 - End Time 2025-03-19 22:09:05 [2025-03-19 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718457', 'tblTempUsageDetail_20' ) start [2025-03-19 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718457', 'tblTempUsageDetail_20' ) end [2025-03-19 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718457', 'tblTempVendorCDR_20' ) start [2025-03-19 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718457', 'tblTempVendorCDR_20' ) end [2025-03-19 22:09:17] Production.INFO: ProcessCDR(1,14718457,1,1,2) [2025-03-19 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718457', 'tblTempUsageDetail_20' ) start [2025-03-19 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718457', 'tblTempUsageDetail_20' ) end [2025-03-19 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:09:21] Production.INFO: ==9812== Releasing lock... [2025-03-19 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:09:21] Production.INFO: 38 MB #Memory Used# [2025-03-19 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:10:06 [end_date_ymd] => 2025-03-19 22:10:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:10:06' and `end` < '2025-03-19 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-03-19 22:10:19] Production.INFO: count ==1278 [2025-03-19 22:10:19] Production.ERROR: pbx CDR StartTime 2025-03-19 19:10:06 - End Time 2025-03-19 22:10:06 [2025-03-19 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718463', 'tblTempUsageDetail_20' ) start [2025-03-19 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718463', 'tblTempUsageDetail_20' ) end [2025-03-19 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718463', 'tblTempVendorCDR_20' ) start [2025-03-19 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718463', 'tblTempVendorCDR_20' ) end [2025-03-19 22:10:19] Production.INFO: ProcessCDR(1,14718463,1,1,2) [2025-03-19 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718463', 'tblTempUsageDetail_20' ) start [2025-03-19 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718463', 'tblTempUsageDetail_20' ) end [2025-03-19 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:10:23] Production.INFO: ==9918== Releasing lock... [2025-03-19 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:10:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-19 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:11:05 [end_date_ymd] => 2025-03-19 22:11:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:11:05' and `end` < '2025-03-19 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-03-19 22:11:17] Production.INFO: count ==1262 [2025-03-19 22:11:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:11:05 - End Time 2025-03-19 22:11:05 [2025-03-19 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718468', 'tblTempUsageDetail_20' ) start [2025-03-19 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718468', 'tblTempUsageDetail_20' ) end [2025-03-19 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718468', 'tblTempVendorCDR_20' ) start [2025-03-19 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718468', 'tblTempVendorCDR_20' ) end [2025-03-19 22:11:18] Production.INFO: ProcessCDR(1,14718468,1,1,2) [2025-03-19 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718468', 'tblTempUsageDetail_20' ) start [2025-03-19 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718468', 'tblTempUsageDetail_20' ) end [2025-03-19 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:11:23] Production.INFO: ==10010== Releasing lock... [2025-03-19 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:11:23] Production.INFO: 38 MB #Memory Used# [2025-03-19 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:12:06 [end_date_ymd] => 2025-03-19 22:12:06 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:12:06' and `end` < '2025-03-19 22: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-03-19 22:12:18] Production.INFO: count ==1248 [2025-03-19 22:12:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:12:06 - End Time 2025-03-19 22:12:06 [2025-03-19 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718473', 'tblTempUsageDetail_20' ) start [2025-03-19 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718473', 'tblTempUsageDetail_20' ) end [2025-03-19 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718473', 'tblTempVendorCDR_20' ) start [2025-03-19 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718473', 'tblTempVendorCDR_20' ) end [2025-03-19 22:12:18] Production.INFO: ProcessCDR(1,14718473,1,1,2) [2025-03-19 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718473', 'tblTempUsageDetail_20' ) start [2025-03-19 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718473', 'tblTempUsageDetail_20' ) end [2025-03-19 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:12:22] Production.INFO: ==10094== Releasing lock... [2025-03-19 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:12:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-19 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:13:05 [end_date_ymd] => 2025-03-19 22:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:13:05' and `end` < '2025-03-19 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-03-19 22:13:17] Production.INFO: count ==1246 [2025-03-19 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:13:05 - End Time 2025-03-19 22:13:05 [2025-03-19 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718478', 'tblTempUsageDetail_20' ) start [2025-03-19 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718478', 'tblTempUsageDetail_20' ) end [2025-03-19 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718478', 'tblTempVendorCDR_20' ) start [2025-03-19 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718478', 'tblTempVendorCDR_20' ) end [2025-03-19 22:13:18] Production.INFO: ProcessCDR(1,14718478,1,1,2) [2025-03-19 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718478', 'tblTempUsageDetail_20' ) start [2025-03-19 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718478', 'tblTempUsageDetail_20' ) end [2025-03-19 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:13:21] Production.INFO: ==10187== Releasing lock... [2025-03-19 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:13:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-19 22:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:14:06 [end_date_ymd] => 2025-03-19 22:14:06 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:14:06' and `end` < '2025-03-19 22: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-03-19 22:14:18] Production.INFO: count ==1241 [2025-03-19 22:14:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:14:06 - End Time 2025-03-19 22:14:06 [2025-03-19 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718483', 'tblTempUsageDetail_20' ) start [2025-03-19 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718483', 'tblTempUsageDetail_20' ) end [2025-03-19 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718483', 'tblTempVendorCDR_20' ) start [2025-03-19 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718483', 'tblTempVendorCDR_20' ) end [2025-03-19 22:14:18] Production.INFO: ProcessCDR(1,14718483,1,1,2) [2025-03-19 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718483', 'tblTempUsageDetail_20' ) start [2025-03-19 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718483', 'tblTempUsageDetail_20' ) end [2025-03-19 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:14:23] Production.INFO: ==10276== Releasing lock... [2025-03-19 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:14:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-19 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:15:05 [end_date_ymd] => 2025-03-19 22:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:15:05' and `end` < '2025-03-19 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-03-19 22:15:18] Production.INFO: count ==1239 [2025-03-19 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:15:05 - End Time 2025-03-19 22:15:05 [2025-03-19 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718488', 'tblTempUsageDetail_20' ) start [2025-03-19 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718488', 'tblTempUsageDetail_20' ) end [2025-03-19 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718488', 'tblTempVendorCDR_20' ) start [2025-03-19 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718488', 'tblTempVendorCDR_20' ) end [2025-03-19 22:15:18] Production.INFO: ProcessCDR(1,14718488,1,1,2) [2025-03-19 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718488', 'tblTempUsageDetail_20' ) start [2025-03-19 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718488', 'tblTempUsageDetail_20' ) end [2025-03-19 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:15:22] Production.INFO: ==10371== Releasing lock... [2025-03-19 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:15:22] Production.INFO: 37.75 MB #Memory Used# [2025-03-19 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:16:05 [end_date_ymd] => 2025-03-19 22:16:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:16:05' and `end` < '2025-03-19 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-03-19 22:16:17] Production.INFO: count ==1232 [2025-03-19 22:16:17] Production.ERROR: pbx CDR StartTime 2025-03-19 19:16:05 - End Time 2025-03-19 22:16:05 [2025-03-19 22:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718493', 'tblTempUsageDetail_20' ) start [2025-03-19 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718493', 'tblTempUsageDetail_20' ) end [2025-03-19 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718493', 'tblTempVendorCDR_20' ) start [2025-03-19 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718493', 'tblTempVendorCDR_20' ) end [2025-03-19 22:16:18] Production.INFO: ProcessCDR(1,14718493,1,1,2) [2025-03-19 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718493', 'tblTempUsageDetail_20' ) start [2025-03-19 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718493', 'tblTempUsageDetail_20' ) end [2025-03-19 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:16:23] Production.INFO: ==10459== Releasing lock... [2025-03-19 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:16:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-19 22:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:17:04 [end_date_ymd] => 2025-03-19 22:17:04 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:17:04' and `end` < '2025-03-19 22: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-03-19 22:17:17] Production.INFO: count ==1224 [2025-03-19 22:17:17] Production.ERROR: pbx CDR StartTime 2025-03-19 19:17:04 - End Time 2025-03-19 22:17:04 [2025-03-19 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718498', 'tblTempUsageDetail_20' ) start [2025-03-19 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718498', 'tblTempUsageDetail_20' ) end [2025-03-19 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718498', 'tblTempVendorCDR_20' ) start [2025-03-19 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718498', 'tblTempVendorCDR_20' ) end [2025-03-19 22:17:17] Production.INFO: ProcessCDR(1,14718498,1,1,2) [2025-03-19 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718498', 'tblTempUsageDetail_20' ) start [2025-03-19 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718498', 'tblTempUsageDetail_20' ) end [2025-03-19 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:17:21] Production.INFO: ==10546== Releasing lock... [2025-03-19 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:17:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-19 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:18:05 [end_date_ymd] => 2025-03-19 22:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:18:05' and `end` < '2025-03-19 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-03-19 22:18:17] Production.INFO: count ==1215 [2025-03-19 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:18:05 - End Time 2025-03-19 22:18:05 [2025-03-19 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718503', 'tblTempUsageDetail_20' ) start [2025-03-19 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718503', 'tblTempUsageDetail_20' ) end [2025-03-19 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718503', 'tblTempVendorCDR_20' ) start [2025-03-19 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718503', 'tblTempVendorCDR_20' ) end [2025-03-19 22:18:18] Production.INFO: ProcessCDR(1,14718503,1,1,2) [2025-03-19 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718503', 'tblTempUsageDetail_20' ) start [2025-03-19 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718503', 'tblTempUsageDetail_20' ) end [2025-03-19 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:18:21] Production.INFO: ==10636== Releasing lock... [2025-03-19 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:18:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-19 22:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:19:06 [end_date_ymd] => 2025-03-19 22:19:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:19:06' and `end` < '2025-03-19 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-03-19 22:19:18] Production.INFO: count ==1211 [2025-03-19 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:19:06 - End Time 2025-03-19 22:19:06 [2025-03-19 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718508', 'tblTempUsageDetail_20' ) start [2025-03-19 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718508', 'tblTempUsageDetail_20' ) end [2025-03-19 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718508', 'tblTempVendorCDR_20' ) start [2025-03-19 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718508', 'tblTempVendorCDR_20' ) end [2025-03-19 22:19:18] Production.INFO: ProcessCDR(1,14718508,1,1,2) [2025-03-19 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718508', 'tblTempUsageDetail_20' ) start [2025-03-19 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718508', 'tblTempUsageDetail_20' ) end [2025-03-19 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:19:22] Production.INFO: ==10726== Releasing lock... [2025-03-19 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:19:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-19 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:20:06 [end_date_ymd] => 2025-03-19 22:20:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:20:06' and `end` < '2025-03-19 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-03-19 22:20:19] Production.INFO: count ==1209 [2025-03-19 22:20:19] Production.ERROR: pbx CDR StartTime 2025-03-19 19:20:06 - End Time 2025-03-19 22:20:06 [2025-03-19 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718514', 'tblTempUsageDetail_20' ) start [2025-03-19 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718514', 'tblTempUsageDetail_20' ) end [2025-03-19 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718514', 'tblTempVendorCDR_20' ) start [2025-03-19 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718514', 'tblTempVendorCDR_20' ) end [2025-03-19 22:20:19] Production.INFO: ProcessCDR(1,14718514,1,1,2) [2025-03-19 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718514', 'tblTempUsageDetail_20' ) start [2025-03-19 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718514', 'tblTempUsageDetail_20' ) end [2025-03-19 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:20:23] Production.INFO: ==10823== Releasing lock... [2025-03-19 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:20:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-19 22:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:21:06 [end_date_ymd] => 2025-03-19 22:21:06 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:21:06' and `end` < '2025-03-19 22: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-03-19 22:21:18] Production.INFO: count ==1183 [2025-03-19 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:21:06 - End Time 2025-03-19 22:21:06 [2025-03-19 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718519', 'tblTempUsageDetail_20' ) start [2025-03-19 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718519', 'tblTempUsageDetail_20' ) end [2025-03-19 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718519', 'tblTempVendorCDR_20' ) start [2025-03-19 22:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718519', 'tblTempVendorCDR_20' ) end [2025-03-19 22:21:19] Production.INFO: ProcessCDR(1,14718519,1,1,2) [2025-03-19 22:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718519', 'tblTempUsageDetail_20' ) start [2025-03-19 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718519', 'tblTempUsageDetail_20' ) end [2025-03-19 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:21:22] Production.INFO: ==10915== Releasing lock... [2025-03-19 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:21:22] Production.INFO: 37.5 MB #Memory Used# [2025-03-19 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:22:05 [end_date_ymd] => 2025-03-19 22:22:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:22:05' and `end` < '2025-03-19 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-03-19 22:22:18] Production.INFO: count ==1183 [2025-03-19 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:22:05 - End Time 2025-03-19 22:22:05 [2025-03-19 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718524', 'tblTempUsageDetail_20' ) start [2025-03-19 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718524', 'tblTempUsageDetail_20' ) end [2025-03-19 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718524', 'tblTempVendorCDR_20' ) start [2025-03-19 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718524', 'tblTempVendorCDR_20' ) end [2025-03-19 22:22:18] Production.INFO: ProcessCDR(1,14718524,1,1,2) [2025-03-19 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718524', 'tblTempUsageDetail_20' ) start [2025-03-19 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718524', 'tblTempUsageDetail_20' ) end [2025-03-19 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:22:21] Production.INFO: ==11044== Releasing lock... [2025-03-19 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:22:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-19 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:23:06 [end_date_ymd] => 2025-03-19 22:23:06 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:23:06' and `end` < '2025-03-19 22: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-03-19 22:23:18] Production.INFO: count ==1176 [2025-03-19 22:23:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:23:06 - End Time 2025-03-19 22:23:06 [2025-03-19 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718529', 'tblTempUsageDetail_20' ) start [2025-03-19 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718529', 'tblTempUsageDetail_20' ) end [2025-03-19 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718529', 'tblTempVendorCDR_20' ) start [2025-03-19 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718529', 'tblTempVendorCDR_20' ) end [2025-03-19 22:23:18] Production.INFO: ProcessCDR(1,14718529,1,1,2) [2025-03-19 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718529', 'tblTempUsageDetail_20' ) start [2025-03-19 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718529', 'tblTempUsageDetail_20' ) end [2025-03-19 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:23:22] Production.INFO: ==11142== Releasing lock... [2025-03-19 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:23:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:24:05 [end_date_ymd] => 2025-03-19 22:24:05 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:24:05' and `end` < '2025-03-19 22: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-03-19 22:24:17] Production.INFO: count ==1169 [2025-03-19 22:24:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:24:05 - End Time 2025-03-19 22:24:05 [2025-03-19 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718534', 'tblTempUsageDetail_20' ) start [2025-03-19 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718534', 'tblTempUsageDetail_20' ) end [2025-03-19 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718534', 'tblTempVendorCDR_20' ) start [2025-03-19 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718534', 'tblTempVendorCDR_20' ) end [2025-03-19 22:24:18] Production.INFO: ProcessCDR(1,14718534,1,1,2) [2025-03-19 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718534', 'tblTempUsageDetail_20' ) start [2025-03-19 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718534', 'tblTempUsageDetail_20' ) end [2025-03-19 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:24:21] Production.INFO: ==11235== Releasing lock... [2025-03-19 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:24:21] Production.INFO: 37 MB #Memory Used# [2025-03-19 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:25:05 [end_date_ymd] => 2025-03-19 22:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:25:05' and `end` < '2025-03-19 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-03-19 22:25:18] Production.INFO: count ==1156 [2025-03-19 22:25:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:25:05 - End Time 2025-03-19 22:25:05 [2025-03-19 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718539', 'tblTempUsageDetail_20' ) start [2025-03-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718539', 'tblTempUsageDetail_20' ) end [2025-03-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718539', 'tblTempVendorCDR_20' ) start [2025-03-19 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718539', 'tblTempVendorCDR_20' ) end [2025-03-19 22:25:18] Production.INFO: ProcessCDR(1,14718539,1,1,2) [2025-03-19 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718539', 'tblTempUsageDetail_20' ) start [2025-03-19 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718539', 'tblTempUsageDetail_20' ) end [2025-03-19 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:25:21] Production.INFO: ==11327== Releasing lock... [2025-03-19 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:25:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-19 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:26:05 [end_date_ymd] => 2025-03-19 22:26:05 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:26:05' and `end` < '2025-03-19 22: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-03-19 22:26:17] Production.INFO: count ==1156 [2025-03-19 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:26:05 - End Time 2025-03-19 22:26:05 [2025-03-19 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718544', 'tblTempUsageDetail_20' ) start [2025-03-19 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718544', 'tblTempUsageDetail_20' ) end [2025-03-19 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718544', 'tblTempVendorCDR_20' ) start [2025-03-19 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718544', 'tblTempVendorCDR_20' ) end [2025-03-19 22:26:18] Production.INFO: ProcessCDR(1,14718544,1,1,2) [2025-03-19 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718544', 'tblTempUsageDetail_20' ) start [2025-03-19 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718544', 'tblTempUsageDetail_20' ) end [2025-03-19 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:26:21] Production.INFO: ==11414== Releasing lock... [2025-03-19 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:26:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-19 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:27:06 [end_date_ymd] => 2025-03-19 22:27:06 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:27:06' and `end` < '2025-03-19 22: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-03-19 22:27:18] Production.INFO: count ==1151 [2025-03-19 22:27:19] Production.ERROR: pbx CDR StartTime 2025-03-19 19:27:06 - End Time 2025-03-19 22:27:06 [2025-03-19 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718549', 'tblTempUsageDetail_20' ) start [2025-03-19 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718549', 'tblTempUsageDetail_20' ) end [2025-03-19 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718549', 'tblTempVendorCDR_20' ) start [2025-03-19 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718549', 'tblTempVendorCDR_20' ) end [2025-03-19 22:27:19] Production.INFO: ProcessCDR(1,14718549,1,1,2) [2025-03-19 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718549', 'tblTempUsageDetail_20' ) start [2025-03-19 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718549', 'tblTempUsageDetail_20' ) end [2025-03-19 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:27:22] Production.INFO: ==11501== Releasing lock... [2025-03-19 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:27:22] Production.INFO: 37 MB #Memory Used# [2025-03-19 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:28:05 [end_date_ymd] => 2025-03-19 22:28:05 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:28:05' and `end` < '2025-03-19 22: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-03-19 22:28:18] Production.INFO: count ==1153 [2025-03-19 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:28:05 - End Time 2025-03-19 22:28:05 [2025-03-19 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718554', 'tblTempUsageDetail_20' ) start [2025-03-19 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718554', 'tblTempUsageDetail_20' ) end [2025-03-19 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718554', 'tblTempVendorCDR_20' ) start [2025-03-19 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718554', 'tblTempVendorCDR_20' ) end [2025-03-19 22:28:18] Production.INFO: ProcessCDR(1,14718554,1,1,2) [2025-03-19 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718554', 'tblTempUsageDetail_20' ) start [2025-03-19 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718554', 'tblTempUsageDetail_20' ) end [2025-03-19 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:28:22] Production.INFO: ==11595== Releasing lock... [2025-03-19 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:28:22] Production.INFO: 37 MB #Memory Used# [2025-03-19 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:29:06 [end_date_ymd] => 2025-03-19 22:29:06 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:29:06' and `end` < '2025-03-19 22: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-03-19 22:29:18] Production.INFO: count ==1152 [2025-03-19 22:29:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:29:06 - End Time 2025-03-19 22:29:06 [2025-03-19 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718559', 'tblTempUsageDetail_20' ) start [2025-03-19 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718559', 'tblTempUsageDetail_20' ) end [2025-03-19 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718559', 'tblTempVendorCDR_20' ) start [2025-03-19 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718559', 'tblTempVendorCDR_20' ) end [2025-03-19 22:29:18] Production.INFO: ProcessCDR(1,14718559,1,1,2) [2025-03-19 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718559', 'tblTempUsageDetail_20' ) start [2025-03-19 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718559', 'tblTempUsageDetail_20' ) end [2025-03-19 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:29:21] Production.INFO: ==11688== Releasing lock... [2025-03-19 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:29:21] Production.INFO: 37 MB #Memory Used# [2025-03-19 22:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:30:07 [end_date_ymd] => 2025-03-19 22:30:07 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:30:07' and `end` < '2025-03-19 22: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-03-19 22:30:19] Production.INFO: count ==1152 [2025-03-19 22:30:19] Production.ERROR: pbx CDR StartTime 2025-03-19 19:30:07 - End Time 2025-03-19 22:30:07 [2025-03-19 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718565', 'tblTempUsageDetail_20' ) start [2025-03-19 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718565', 'tblTempUsageDetail_20' ) end [2025-03-19 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718565', 'tblTempVendorCDR_20' ) start [2025-03-19 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718565', 'tblTempVendorCDR_20' ) end [2025-03-19 22:30:19] Production.INFO: ProcessCDR(1,14718565,1,1,2) [2025-03-19 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718565', 'tblTempUsageDetail_20' ) start [2025-03-19 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718565', 'tblTempUsageDetail_20' ) end [2025-03-19 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:30:23] Production.INFO: ==11784== Releasing lock... [2025-03-19 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:30:23] Production.INFO: 37 MB #Memory Used# [2025-03-19 22:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:31:06 [end_date_ymd] => 2025-03-19 22:31:06 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:31:06' and `end` < '2025-03-19 22: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-03-19 22:31:18] Production.INFO: count ==1133 [2025-03-19 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:31:06 - End Time 2025-03-19 22:31:06 [2025-03-19 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718570', 'tblTempUsageDetail_20' ) start [2025-03-19 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718570', 'tblTempUsageDetail_20' ) end [2025-03-19 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718570', 'tblTempVendorCDR_20' ) start [2025-03-19 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718570', 'tblTempVendorCDR_20' ) end [2025-03-19 22:31:18] Production.INFO: ProcessCDR(1,14718570,1,1,2) [2025-03-19 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718570', 'tblTempUsageDetail_20' ) start [2025-03-19 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718570', 'tblTempUsageDetail_20' ) end [2025-03-19 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:31:22] Production.INFO: ==11876== Releasing lock... [2025-03-19 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:31:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-19 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:32:05 [end_date_ymd] => 2025-03-19 22:32:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:32:05' and `end` < '2025-03-19 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-03-19 22:32:17] Production.INFO: count ==1132 [2025-03-19 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:32:05 - End Time 2025-03-19 22:32:05 [2025-03-19 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718575', 'tblTempUsageDetail_20' ) start [2025-03-19 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718575', 'tblTempUsageDetail_20' ) end [2025-03-19 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718575', 'tblTempVendorCDR_20' ) start [2025-03-19 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718575', 'tblTempVendorCDR_20' ) end [2025-03-19 22:32:18] Production.INFO: ProcessCDR(1,14718575,1,1,2) [2025-03-19 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718575', 'tblTempUsageDetail_20' ) start [2025-03-19 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718575', 'tblTempUsageDetail_20' ) end [2025-03-19 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:32:21] Production.INFO: ==11957== Releasing lock... [2025-03-19 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:32:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:33:05 [end_date_ymd] => 2025-03-19 22:33:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:33:05' and `end` < '2025-03-19 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-03-19 22:33:17] Production.INFO: count ==1122 [2025-03-19 22:33:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:33:05 - End Time 2025-03-19 22:33:05 [2025-03-19 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718579', 'tblTempUsageDetail_20' ) start [2025-03-19 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718579', 'tblTempUsageDetail_20' ) end [2025-03-19 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718579', 'tblTempVendorCDR_20' ) start [2025-03-19 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718579', 'tblTempVendorCDR_20' ) end [2025-03-19 22:33:18] Production.INFO: ProcessCDR(1,14718579,1,1,2) [2025-03-19 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718579', 'tblTempUsageDetail_20' ) start [2025-03-19 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718579', 'tblTempUsageDetail_20' ) end [2025-03-19 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:33:21] Production.INFO: ==12047== Releasing lock... [2025-03-19 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:33:21] Production.INFO: 37 MB #Memory Used# [2025-03-19 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:34:05 [end_date_ymd] => 2025-03-19 22:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:34:05' and `end` < '2025-03-19 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-03-19 22:34:17] Production.INFO: count ==1125 [2025-03-19 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:34:05 - End Time 2025-03-19 22:34:05 [2025-03-19 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718585', 'tblTempUsageDetail_20' ) start [2025-03-19 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718585', 'tblTempUsageDetail_20' ) end [2025-03-19 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718585', 'tblTempVendorCDR_20' ) start [2025-03-19 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718585', 'tblTempVendorCDR_20' ) end [2025-03-19 22:34:18] Production.INFO: ProcessCDR(1,14718585,1,1,2) [2025-03-19 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718585', 'tblTempUsageDetail_20' ) start [2025-03-19 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718585', 'tblTempUsageDetail_20' ) end [2025-03-19 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:34:21] Production.INFO: ==12140== Releasing lock... [2025-03-19 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:34:21] Production.INFO: 37 MB #Memory Used# [2025-03-19 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:35:05 [end_date_ymd] => 2025-03-19 22:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:35:05' and `end` < '2025-03-19 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-03-19 22:35:17] Production.INFO: count ==1127 [2025-03-19 22:35:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:35:05 - End Time 2025-03-19 22:35:05 [2025-03-19 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718590', 'tblTempUsageDetail_20' ) start [2025-03-19 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718590', 'tblTempUsageDetail_20' ) end [2025-03-19 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718590', 'tblTempVendorCDR_20' ) start [2025-03-19 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718590', 'tblTempVendorCDR_20' ) end [2025-03-19 22:35:18] Production.INFO: ProcessCDR(1,14718590,1,1,2) [2025-03-19 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718590', 'tblTempUsageDetail_20' ) start [2025-03-19 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718590', 'tblTempUsageDetail_20' ) end [2025-03-19 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:35:21] Production.INFO: ==12226== Releasing lock... [2025-03-19 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:35:21] Production.INFO: 37 MB #Memory Used# [2025-03-19 22:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:36:06 [end_date_ymd] => 2025-03-19 22:36:06 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:36:06' and `end` < '2025-03-19 22: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-03-19 22:36:18] Production.INFO: count ==1125 [2025-03-19 22:36:19] Production.ERROR: pbx CDR StartTime 2025-03-19 19:36:06 - End Time 2025-03-19 22:36:06 [2025-03-19 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718595', 'tblTempUsageDetail_20' ) start [2025-03-19 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718595', 'tblTempUsageDetail_20' ) end [2025-03-19 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718595', 'tblTempVendorCDR_20' ) start [2025-03-19 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718595', 'tblTempVendorCDR_20' ) end [2025-03-19 22:36:19] Production.INFO: ProcessCDR(1,14718595,1,1,2) [2025-03-19 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718595', 'tblTempUsageDetail_20' ) start [2025-03-19 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718595', 'tblTempUsageDetail_20' ) end [2025-03-19 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:36:22] Production.INFO: ==12312== Releasing lock... [2025-03-19 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:36:22] Production.INFO: 37 MB #Memory Used# [2025-03-19 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:37:05 [end_date_ymd] => 2025-03-19 22:37:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:37:05' and `end` < '2025-03-19 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-03-19 22:37:17] Production.INFO: count ==1108 [2025-03-19 22:37:17] Production.ERROR: pbx CDR StartTime 2025-03-19 19:37:05 - End Time 2025-03-19 22:37:05 [2025-03-19 22:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718600', 'tblTempUsageDetail_20' ) start [2025-03-19 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718600', 'tblTempUsageDetail_20' ) end [2025-03-19 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718600', 'tblTempVendorCDR_20' ) start [2025-03-19 22:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718600', 'tblTempVendorCDR_20' ) end [2025-03-19 22:37:17] Production.INFO: ProcessCDR(1,14718600,1,1,2) [2025-03-19 22:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718600', 'tblTempUsageDetail_20' ) start [2025-03-19 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718600', 'tblTempUsageDetail_20' ) end [2025-03-19 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:37:21] Production.INFO: ==12400== Releasing lock... [2025-03-19 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:37:21] Production.INFO: 37 MB #Memory Used# [2025-03-19 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:38:06 [end_date_ymd] => 2025-03-19 22:38:06 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:38:06' and `end` < '2025-03-19 22: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-03-19 22:38:18] Production.INFO: count ==1111 [2025-03-19 22:38:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:38:06 - End Time 2025-03-19 22:38:06 [2025-03-19 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718605', 'tblTempUsageDetail_20' ) start [2025-03-19 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718605', 'tblTempUsageDetail_20' ) end [2025-03-19 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718605', 'tblTempVendorCDR_20' ) start [2025-03-19 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718605', 'tblTempVendorCDR_20' ) end [2025-03-19 22:38:18] Production.INFO: ProcessCDR(1,14718605,1,1,2) [2025-03-19 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718605', 'tblTempUsageDetail_20' ) start [2025-03-19 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718605', 'tblTempUsageDetail_20' ) end [2025-03-19 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:38:23] Production.INFO: ==12524== Releasing lock... [2025-03-19 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:38:23] Production.INFO: 37 MB #Memory Used# [2025-03-19 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:39:05 [end_date_ymd] => 2025-03-19 22:39:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:39:05' and `end` < '2025-03-19 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-03-19 22:39:18] Production.INFO: count ==1109 [2025-03-19 22:39:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:39:05 - End Time 2025-03-19 22:39:05 [2025-03-19 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718610', 'tblTempUsageDetail_20' ) start [2025-03-19 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718610', 'tblTempUsageDetail_20' ) end [2025-03-19 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718610', 'tblTempVendorCDR_20' ) start [2025-03-19 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718610', 'tblTempVendorCDR_20' ) end [2025-03-19 22:39:18] Production.INFO: ProcessCDR(1,14718610,1,1,2) [2025-03-19 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718610', 'tblTempUsageDetail_20' ) start [2025-03-19 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718610', 'tblTempUsageDetail_20' ) end [2025-03-19 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:39:21] Production.INFO: ==12613== Releasing lock... [2025-03-19 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:39:21] Production.INFO: 37 MB #Memory Used# [2025-03-19 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:40:06 [end_date_ymd] => 2025-03-19 22:40:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:40:06' and `end` < '2025-03-19 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-03-19 22:40:18] Production.INFO: count ==1102 [2025-03-19 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-19 19:40:06 - End Time 2025-03-19 22:40:06 [2025-03-19 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718616', 'tblTempUsageDetail_20' ) start [2025-03-19 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718616', 'tblTempUsageDetail_20' ) end [2025-03-19 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718616', 'tblTempVendorCDR_20' ) start [2025-03-19 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718616', 'tblTempVendorCDR_20' ) end [2025-03-19 22:40:19] Production.INFO: ProcessCDR(1,14718616,1,1,2) [2025-03-19 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718616', 'tblTempUsageDetail_20' ) start [2025-03-19 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718616', 'tblTempUsageDetail_20' ) end [2025-03-19 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:40:22] Production.INFO: ==12702== Releasing lock... [2025-03-19 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:40:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:41:05 [end_date_ymd] => 2025-03-19 22:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:41:05' and `end` < '2025-03-19 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-03-19 22:41:17] Production.INFO: count ==1060 [2025-03-19 22:41:17] Production.ERROR: pbx CDR StartTime 2025-03-19 19:41:05 - End Time 2025-03-19 22:41:05 [2025-03-19 22:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718621', 'tblTempUsageDetail_20' ) start [2025-03-19 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718621', 'tblTempUsageDetail_20' ) end [2025-03-19 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718621', 'tblTempVendorCDR_20' ) start [2025-03-19 22:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718621', 'tblTempVendorCDR_20' ) end [2025-03-19 22:41:17] Production.INFO: ProcessCDR(1,14718621,1,1,2) [2025-03-19 22:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718621', 'tblTempUsageDetail_20' ) start [2025-03-19 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718621', 'tblTempUsageDetail_20' ) end [2025-03-19 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:41:21] Production.INFO: ==12789== Releasing lock... [2025-03-19 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:41:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-19 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:42:06 [end_date_ymd] => 2025-03-19 22:42:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:42:06' and `end` < '2025-03-19 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-03-19 22:42:18] Production.INFO: count ==1054 [2025-03-19 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:42:06 - End Time 2025-03-19 22:42:06 [2025-03-19 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718626', 'tblTempUsageDetail_20' ) start [2025-03-19 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718626', 'tblTempUsageDetail_20' ) end [2025-03-19 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718626', 'tblTempVendorCDR_20' ) start [2025-03-19 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718626', 'tblTempVendorCDR_20' ) end [2025-03-19 22:42:18] Production.INFO: ProcessCDR(1,14718626,1,1,2) [2025-03-19 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718626', 'tblTempUsageDetail_20' ) start [2025-03-19 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718626', 'tblTempUsageDetail_20' ) end [2025-03-19 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:42:22] Production.INFO: ==12874== Releasing lock... [2025-03-19 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:42:22] Production.INFO: 36.5 MB #Memory Used# [2025-03-19 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:43:05 [end_date_ymd] => 2025-03-19 22:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:43:05' and `end` < '2025-03-19 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-03-19 22:43:17] Production.INFO: count ==1056 [2025-03-19 22:43:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:43:05 - End Time 2025-03-19 22:43:05 [2025-03-19 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718631', 'tblTempUsageDetail_20' ) start [2025-03-19 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718631', 'tblTempUsageDetail_20' ) end [2025-03-19 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718631', 'tblTempVendorCDR_20' ) start [2025-03-19 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718631', 'tblTempVendorCDR_20' ) end [2025-03-19 22:43:18] Production.INFO: ProcessCDR(1,14718631,1,1,2) [2025-03-19 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718631', 'tblTempUsageDetail_20' ) start [2025-03-19 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718631', 'tblTempUsageDetail_20' ) end [2025-03-19 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:43:21] Production.INFO: ==12959== Releasing lock... [2025-03-19 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:43:21] Production.INFO: 36 MB #Memory Used# [2025-03-19 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:44:05 [end_date_ymd] => 2025-03-19 22:44:05 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:44:05' and `end` < '2025-03-19 22: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-03-19 22:44:18] Production.INFO: count ==1055 [2025-03-19 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:44:05 - End Time 2025-03-19 22:44:05 [2025-03-19 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718636', 'tblTempUsageDetail_20' ) start [2025-03-19 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718636', 'tblTempUsageDetail_20' ) end [2025-03-19 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718636', 'tblTempVendorCDR_20' ) start [2025-03-19 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718636', 'tblTempVendorCDR_20' ) end [2025-03-19 22:44:18] Production.INFO: ProcessCDR(1,14718636,1,1,2) [2025-03-19 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718636', 'tblTempUsageDetail_20' ) start [2025-03-19 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718636', 'tblTempUsageDetail_20' ) end [2025-03-19 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:44:21] Production.INFO: ==13042== Releasing lock... [2025-03-19 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:44:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-19 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:45:05 [end_date_ymd] => 2025-03-19 22:45:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:45:05' and `end` < '2025-03-19 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-03-19 22:45:17] Production.INFO: count ==1055 [2025-03-19 22:45:17] Production.ERROR: pbx CDR StartTime 2025-03-19 19:45:05 - End Time 2025-03-19 22:45:05 [2025-03-19 22:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718641', 'tblTempUsageDetail_20' ) start [2025-03-19 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718641', 'tblTempUsageDetail_20' ) end [2025-03-19 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718641', 'tblTempVendorCDR_20' ) start [2025-03-19 22:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718641', 'tblTempVendorCDR_20' ) end [2025-03-19 22:45:17] Production.INFO: ProcessCDR(1,14718641,1,1,2) [2025-03-19 22:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718641', 'tblTempUsageDetail_20' ) start [2025-03-19 22:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718641', 'tblTempUsageDetail_20' ) end [2025-03-19 22:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:45:20] Production.INFO: ==13129== Releasing lock... [2025-03-19 22:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:45:20] Production.INFO: 36.5 MB #Memory Used# [2025-03-19 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:46:05 [end_date_ymd] => 2025-03-19 22:46:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:46:05' and `end` < '2025-03-19 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-03-19 22:46:18] Production.INFO: count ==1054 [2025-03-19 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:46:05 - End Time 2025-03-19 22:46:05 [2025-03-19 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718646', 'tblTempUsageDetail_20' ) start [2025-03-19 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718646', 'tblTempUsageDetail_20' ) end [2025-03-19 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718646', 'tblTempVendorCDR_20' ) start [2025-03-19 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718646', 'tblTempVendorCDR_20' ) end [2025-03-19 22:46:18] Production.INFO: ProcessCDR(1,14718646,1,1,2) [2025-03-19 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718646', 'tblTempUsageDetail_20' ) start [2025-03-19 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718646', 'tblTempUsageDetail_20' ) end [2025-03-19 22:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:46:21] Production.INFO: ==13225== Releasing lock... [2025-03-19 22:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:46:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-19 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:47:05 [end_date_ymd] => 2025-03-19 22:47:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:47:05' and `end` < '2025-03-19 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-03-19 22:47:17] Production.INFO: count ==1042 [2025-03-19 22:47:17] Production.ERROR: pbx CDR StartTime 2025-03-19 19:47:05 - End Time 2025-03-19 22:47:05 [2025-03-19 22:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718651', 'tblTempUsageDetail_20' ) start [2025-03-19 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718651', 'tblTempUsageDetail_20' ) end [2025-03-19 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718651', 'tblTempVendorCDR_20' ) start [2025-03-19 22:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718651', 'tblTempVendorCDR_20' ) end [2025-03-19 22:47:17] Production.INFO: ProcessCDR(1,14718651,1,1,2) [2025-03-19 22:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718651', 'tblTempUsageDetail_20' ) start [2025-03-19 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718651', 'tblTempUsageDetail_20' ) end [2025-03-19 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:47:21] Production.INFO: ==13343== Releasing lock... [2025-03-19 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:47:21] Production.INFO: 35.75 MB #Memory Used# [2025-03-19 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:48:05 [end_date_ymd] => 2025-03-19 22:48:05 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:48:05' and `end` < '2025-03-19 22: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-03-19 22:48:18] Production.INFO: count ==1040 [2025-03-19 22:48:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:48:05 - End Time 2025-03-19 22:48:05 [2025-03-19 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718656', 'tblTempUsageDetail_20' ) start [2025-03-19 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718656', 'tblTempUsageDetail_20' ) end [2025-03-19 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718656', 'tblTempVendorCDR_20' ) start [2025-03-19 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718656', 'tblTempVendorCDR_20' ) end [2025-03-19 22:48:18] Production.INFO: ProcessCDR(1,14718656,1,1,2) [2025-03-19 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718656', 'tblTempUsageDetail_20' ) start [2025-03-19 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718656', 'tblTempUsageDetail_20' ) end [2025-03-19 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:48:22] Production.INFO: ==13452== Releasing lock... [2025-03-19 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:48:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-19 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:49:04 [end_date_ymd] => 2025-03-19 22:49:04 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:49:04' and `end` < '2025-03-19 22: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-03-19 22:49:17] Production.INFO: count ==1041 [2025-03-19 22:49:17] Production.ERROR: pbx CDR StartTime 2025-03-19 19:49:04 - End Time 2025-03-19 22:49:04 [2025-03-19 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718661', 'tblTempUsageDetail_20' ) start [2025-03-19 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718661', 'tblTempUsageDetail_20' ) end [2025-03-19 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718661', 'tblTempVendorCDR_20' ) start [2025-03-19 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718661', 'tblTempVendorCDR_20' ) end [2025-03-19 22:49:17] Production.INFO: ProcessCDR(1,14718661,1,1,2) [2025-03-19 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718661', 'tblTempUsageDetail_20' ) start [2025-03-19 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718661', 'tblTempUsageDetail_20' ) end [2025-03-19 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:49:21] Production.INFO: ==13544== Releasing lock... [2025-03-19 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:49:21] Production.INFO: 36 MB #Memory Used# [2025-03-19 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:50:06 [end_date_ymd] => 2025-03-19 22:50:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:50:06' and `end` < '2025-03-19 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-03-19 22:50:18] Production.INFO: count ==1029 [2025-03-19 22:50:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:50:06 - End Time 2025-03-19 22:50:06 [2025-03-19 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718667', 'tblTempUsageDetail_20' ) start [2025-03-19 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718667', 'tblTempUsageDetail_20' ) end [2025-03-19 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718667', 'tblTempVendorCDR_20' ) start [2025-03-19 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718667', 'tblTempVendorCDR_20' ) end [2025-03-19 22:50:18] Production.INFO: ProcessCDR(1,14718667,1,1,2) [2025-03-19 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718667', 'tblTempUsageDetail_20' ) start [2025-03-19 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718667', 'tblTempUsageDetail_20' ) end [2025-03-19 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:50:22] Production.INFO: ==13640== Releasing lock... [2025-03-19 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:50:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-19 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:51:05 [end_date_ymd] => 2025-03-19 22:51:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:51:05' and `end` < '2025-03-19 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-03-19 22:51:17] Production.INFO: count ==945 [2025-03-19 22:51:17] Production.ERROR: pbx CDR StartTime 2025-03-19 19:51:05 - End Time 2025-03-19 22:51:05 [2025-03-19 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718672', 'tblTempUsageDetail_20' ) start [2025-03-19 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718672', 'tblTempUsageDetail_20' ) end [2025-03-19 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718672', 'tblTempVendorCDR_20' ) start [2025-03-19 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718672', 'tblTempVendorCDR_20' ) end [2025-03-19 22:51:18] Production.INFO: ProcessCDR(1,14718672,1,1,2) [2025-03-19 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718672', 'tblTempUsageDetail_20' ) start [2025-03-19 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718672', 'tblTempUsageDetail_20' ) end [2025-03-19 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:51:21] Production.INFO: ==13724== Releasing lock... [2025-03-19 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:51:21] Production.INFO: 35.25 MB #Memory Used# [2025-03-19 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:52:05 [end_date_ymd] => 2025-03-19 22:52:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:52:05' and `end` < '2025-03-19 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-03-19 22:52:17] Production.INFO: count ==915 [2025-03-19 22:52:17] Production.ERROR: pbx CDR StartTime 2025-03-19 19:52:05 - End Time 2025-03-19 22:52:05 [2025-03-19 22:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718677', 'tblTempUsageDetail_20' ) start [2025-03-19 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718677', 'tblTempUsageDetail_20' ) end [2025-03-19 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718677', 'tblTempVendorCDR_20' ) start [2025-03-19 22:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718677', 'tblTempVendorCDR_20' ) end [2025-03-19 22:52:17] Production.INFO: ProcessCDR(1,14718677,1,1,2) [2025-03-19 22:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718677', 'tblTempUsageDetail_20' ) start [2025-03-19 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718677', 'tblTempUsageDetail_20' ) end [2025-03-19 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:52:21] Production.INFO: ==13805== Releasing lock... [2025-03-19 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:52:21] Production.INFO: 35 MB #Memory Used# [2025-03-19 22:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:53:06 [end_date_ymd] => 2025-03-19 22:53:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:53:06' and `end` < '2025-03-19 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-03-19 22:53:18] Production.INFO: count ==910 [2025-03-19 22:53:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:53:06 - End Time 2025-03-19 22:53:06 [2025-03-19 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718682', 'tblTempUsageDetail_20' ) start [2025-03-19 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718682', 'tblTempUsageDetail_20' ) end [2025-03-19 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718682', 'tblTempVendorCDR_20' ) start [2025-03-19 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718682', 'tblTempVendorCDR_20' ) end [2025-03-19 22:53:18] Production.INFO: ProcessCDR(1,14718682,1,1,2) [2025-03-19 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718682', 'tblTempUsageDetail_20' ) start [2025-03-19 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718682', 'tblTempUsageDetail_20' ) end [2025-03-19 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:53:22] Production.INFO: ==13928== Releasing lock... [2025-03-19 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:53:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-19 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:54:05 [end_date_ymd] => 2025-03-19 22:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:54:05' and `end` < '2025-03-19 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-03-19 22:54:18] Production.INFO: count ==905 [2025-03-19 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:54:05 - End Time 2025-03-19 22:54:05 [2025-03-19 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718687', 'tblTempUsageDetail_20' ) start [2025-03-19 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718687', 'tblTempUsageDetail_20' ) end [2025-03-19 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718687', 'tblTempVendorCDR_20' ) start [2025-03-19 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718687', 'tblTempVendorCDR_20' ) end [2025-03-19 22:54:18] Production.INFO: ProcessCDR(1,14718687,1,1,2) [2025-03-19 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718687', 'tblTempUsageDetail_20' ) start [2025-03-19 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718687', 'tblTempUsageDetail_20' ) end [2025-03-19 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:54:21] Production.INFO: ==14008== Releasing lock... [2025-03-19 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:54:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-19 22:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:55:06 [end_date_ymd] => 2025-03-19 22:55:06 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:55:06' and `end` < '2025-03-19 22: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-03-19 22:55:18] Production.INFO: count ==904 [2025-03-19 22:55:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:55:06 - End Time 2025-03-19 22:55:06 [2025-03-19 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718692', 'tblTempUsageDetail_20' ) start [2025-03-19 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718692', 'tblTempUsageDetail_20' ) end [2025-03-19 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718692', 'tblTempVendorCDR_20' ) start [2025-03-19 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718692', 'tblTempVendorCDR_20' ) end [2025-03-19 22:55:18] Production.INFO: ProcessCDR(1,14718692,1,1,2) [2025-03-19 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718692', 'tblTempUsageDetail_20' ) start [2025-03-19 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718692', 'tblTempUsageDetail_20' ) end [2025-03-19 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:55:22] Production.INFO: ==14088== Releasing lock... [2025-03-19 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:55:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-19 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:56:05 [end_date_ymd] => 2025-03-19 22:56:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:56:05' and `end` < '2025-03-19 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-03-19 22:56:17] Production.INFO: count ==903 [2025-03-19 22:56:17] Production.ERROR: pbx CDR StartTime 2025-03-19 19:56:05 - End Time 2025-03-19 22:56:05 [2025-03-19 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718697', 'tblTempUsageDetail_20' ) start [2025-03-19 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718697', 'tblTempUsageDetail_20' ) end [2025-03-19 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718697', 'tblTempVendorCDR_20' ) start [2025-03-19 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718697', 'tblTempVendorCDR_20' ) end [2025-03-19 22:56:17] Production.INFO: ProcessCDR(1,14718697,1,1,2) [2025-03-19 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718697', 'tblTempUsageDetail_20' ) start [2025-03-19 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718697', 'tblTempUsageDetail_20' ) end [2025-03-19 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:56:21] Production.INFO: ==14173== Releasing lock... [2025-03-19 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:56:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-19 22:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:57:06 [end_date_ymd] => 2025-03-19 22:57:06 [RateCDR] => 1 ) [2025-03-19 22: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-03-19 19:57:06' and `end` < '2025-03-19 22: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-03-19 22:57:18] Production.INFO: count ==901 [2025-03-19 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:57:06 - End Time 2025-03-19 22:57:06 [2025-03-19 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718702', 'tblTempUsageDetail_20' ) start [2025-03-19 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718702', 'tblTempUsageDetail_20' ) end [2025-03-19 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718702', 'tblTempVendorCDR_20' ) start [2025-03-19 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718702', 'tblTempVendorCDR_20' ) end [2025-03-19 22:57:18] Production.INFO: ProcessCDR(1,14718702,1,1,2) [2025-03-19 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718702', 'tblTempUsageDetail_20' ) start [2025-03-19 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718702', 'tblTempUsageDetail_20' ) end [2025-03-19 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:57:22] Production.INFO: ==14256== Releasing lock... [2025-03-19 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:57:22] Production.INFO: 35 MB #Memory Used# [2025-03-19 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:58:05 [end_date_ymd] => 2025-03-19 22:58:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:58:05' and `end` < '2025-03-19 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-03-19 22:58:17] Production.INFO: count ==898 [2025-03-19 22:58:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:58:05 - End Time 2025-03-19 22:58:05 [2025-03-19 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718707', 'tblTempUsageDetail_20' ) start [2025-03-19 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718707', 'tblTempUsageDetail_20' ) end [2025-03-19 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718707', 'tblTempVendorCDR_20' ) start [2025-03-19 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718707', 'tblTempVendorCDR_20' ) end [2025-03-19 22:58:18] Production.INFO: ProcessCDR(1,14718707,1,1,2) [2025-03-19 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718707', 'tblTempUsageDetail_20' ) start [2025-03-19 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718707', 'tblTempUsageDetail_20' ) end [2025-03-19 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:58:21] Production.INFO: ==14339== Releasing lock... [2025-03-19 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:58:21] Production.INFO: 35.5 MB #Memory Used# [2025-03-19 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 19:59:05 [end_date_ymd] => 2025-03-19 22:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 19:59:05' and `end` < '2025-03-19 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-03-19 22:59:18] Production.INFO: count ==897 [2025-03-19 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-19 19:59:05 - End Time 2025-03-19 22:59:05 [2025-03-19 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718712', 'tblTempUsageDetail_20' ) start [2025-03-19 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718712', 'tblTempUsageDetail_20' ) end [2025-03-19 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718712', 'tblTempVendorCDR_20' ) start [2025-03-19 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718712', 'tblTempVendorCDR_20' ) end [2025-03-19 22:59:18] Production.INFO: ProcessCDR(1,14718712,1,1,2) [2025-03-19 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718712', 'tblTempUsageDetail_20' ) start [2025-03-19 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718712', 'tblTempUsageDetail_20' ) end [2025-03-19 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 22:59:22] Production.INFO: ==14423== Releasing lock... [2025-03-19 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 22:59:22] Production.INFO: 35.25 MB #Memory Used# [2025-03-19 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:00:06 [end_date_ymd] => 2025-03-19 23:00:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:00:06' and `end` < '2025-03-19 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-03-19 23:00:19] Production.INFO: count ==894 [2025-03-19 23:00:19] Production.ERROR: pbx CDR StartTime 2025-03-19 20:00:06 - End Time 2025-03-19 23:00:06 [2025-03-19 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718718', 'tblTempUsageDetail_20' ) start [2025-03-19 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718718', 'tblTempUsageDetail_20' ) end [2025-03-19 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718718', 'tblTempVendorCDR_20' ) start [2025-03-19 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718718', 'tblTempVendorCDR_20' ) end [2025-03-19 23:00:19] Production.INFO: ProcessCDR(1,14718718,1,1,2) [2025-03-19 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718718', 'tblTempUsageDetail_20' ) start [2025-03-19 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718718', 'tblTempUsageDetail_20' ) end [2025-03-19 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:00:22] Production.INFO: ==14511== Releasing lock... [2025-03-19 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:00:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-19 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:01:06 [end_date_ymd] => 2025-03-19 23:01:06 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:01:06' and `end` < '2025-03-19 23: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-03-19 23:01:18] Production.INFO: count ==853 [2025-03-19 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:01:06 - End Time 2025-03-19 23:01:06 [2025-03-19 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718723', 'tblTempUsageDetail_20' ) start [2025-03-19 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718723', 'tblTempUsageDetail_20' ) end [2025-03-19 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718723', 'tblTempVendorCDR_20' ) start [2025-03-19 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718723', 'tblTempVendorCDR_20' ) end [2025-03-19 23:01:18] Production.INFO: ProcessCDR(1,14718723,1,1,2) [2025-03-19 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718723', 'tblTempUsageDetail_20' ) start [2025-03-19 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718723', 'tblTempUsageDetail_20' ) end [2025-03-19 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:01:21] Production.INFO: ==14689== Releasing lock... [2025-03-19 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:01:21] Production.INFO: 35 MB #Memory Used# [2025-03-19 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:02:05 [end_date_ymd] => 2025-03-19 23:02:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:02:05' and `end` < '2025-03-19 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-03-19 23:02:17] Production.INFO: count ==848 [2025-03-19 23:02:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:02:05 - End Time 2025-03-19 23:02:05 [2025-03-19 23:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718728', 'tblTempUsageDetail_20' ) start [2025-03-19 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718728', 'tblTempUsageDetail_20' ) end [2025-03-19 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718728', 'tblTempVendorCDR_20' ) start [2025-03-19 23:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718728', 'tblTempVendorCDR_20' ) end [2025-03-19 23:02:17] Production.INFO: ProcessCDR(1,14718728,1,1,2) [2025-03-19 23:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718728', 'tblTempUsageDetail_20' ) start [2025-03-19 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718728', 'tblTempUsageDetail_20' ) end [2025-03-19 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:02:21] Production.INFO: ==14773== Releasing lock... [2025-03-19 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:02:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-19 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:03:05 [end_date_ymd] => 2025-03-19 23:03:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:03:05' and `end` < '2025-03-19 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-03-19 23:03:17] Production.INFO: count ==852 [2025-03-19 23:03:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:03:05 - End Time 2025-03-19 23:03:05 [2025-03-19 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718733', 'tblTempUsageDetail_20' ) start [2025-03-19 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718733', 'tblTempUsageDetail_20' ) end [2025-03-19 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718733', 'tblTempVendorCDR_20' ) start [2025-03-19 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718733', 'tblTempVendorCDR_20' ) end [2025-03-19 23:03:18] Production.INFO: ProcessCDR(1,14718733,1,1,2) [2025-03-19 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718733', 'tblTempUsageDetail_20' ) start [2025-03-19 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718733', 'tblTempUsageDetail_20' ) end [2025-03-19 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:03:23] Production.INFO: ==14862== Releasing lock... [2025-03-19 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:03:23] Production.INFO: 35 MB #Memory Used# [2025-03-19 23:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:04:04 [end_date_ymd] => 2025-03-19 23:04:04 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:04:04' and `end` < '2025-03-19 23: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-03-19 23:04:17] Production.INFO: count ==853 [2025-03-19 23:04:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:04:04 - End Time 2025-03-19 23:04:04 [2025-03-19 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718738', 'tblTempUsageDetail_20' ) start [2025-03-19 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718738', 'tblTempUsageDetail_20' ) end [2025-03-19 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718738', 'tblTempVendorCDR_20' ) start [2025-03-19 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718738', 'tblTempVendorCDR_20' ) end [2025-03-19 23:04:17] Production.INFO: ProcessCDR(1,14718738,1,1,2) [2025-03-19 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718738', 'tblTempUsageDetail_20' ) start [2025-03-19 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718738', 'tblTempUsageDetail_20' ) end [2025-03-19 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:04:21] Production.INFO: ==14945== Releasing lock... [2025-03-19 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:04:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-19 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:05:05 [end_date_ymd] => 2025-03-19 23:05:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:05:05' and `end` < '2025-03-19 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-03-19 23:05:18] Production.INFO: count ==855 [2025-03-19 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:05:05 - End Time 2025-03-19 23:05:05 [2025-03-19 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718743', 'tblTempUsageDetail_20' ) start [2025-03-19 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718743', 'tblTempUsageDetail_20' ) end [2025-03-19 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718743', 'tblTempVendorCDR_20' ) start [2025-03-19 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718743', 'tblTempVendorCDR_20' ) end [2025-03-19 23:05:18] Production.INFO: ProcessCDR(1,14718743,1,1,2) [2025-03-19 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718743', 'tblTempUsageDetail_20' ) start [2025-03-19 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718743', 'tblTempUsageDetail_20' ) end [2025-03-19 23:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:05:23] Production.INFO: ==15105== Releasing lock... [2025-03-19 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:05:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-19 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:06:05 [end_date_ymd] => 2025-03-19 23:06:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:06:05' and `end` < '2025-03-19 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-03-19 23:06:17] Production.INFO: count ==845 [2025-03-19 23:06:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:06:05 - End Time 2025-03-19 23:06:05 [2025-03-19 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718748', 'tblTempUsageDetail_20' ) start [2025-03-19 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718748', 'tblTempUsageDetail_20' ) end [2025-03-19 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718748', 'tblTempVendorCDR_20' ) start [2025-03-19 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718748', 'tblTempVendorCDR_20' ) end [2025-03-19 23:06:17] Production.INFO: ProcessCDR(1,14718748,1,1,2) [2025-03-19 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718748', 'tblTempUsageDetail_20' ) start [2025-03-19 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718748', 'tblTempUsageDetail_20' ) end [2025-03-19 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:06:21] Production.INFO: ==15189== Releasing lock... [2025-03-19 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:06:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-19 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:07:05 [end_date_ymd] => 2025-03-19 23:07:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:07:05' and `end` < '2025-03-19 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-03-19 23:07:17] Production.INFO: count ==837 [2025-03-19 23:07:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:07:05 - End Time 2025-03-19 23:07:05 [2025-03-19 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718753', 'tblTempUsageDetail_20' ) start [2025-03-19 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718753', 'tblTempUsageDetail_20' ) end [2025-03-19 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718753', 'tblTempVendorCDR_20' ) start [2025-03-19 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718753', 'tblTempVendorCDR_20' ) end [2025-03-19 23:07:18] Production.INFO: ProcessCDR(1,14718753,1,1,2) [2025-03-19 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718753', 'tblTempUsageDetail_20' ) start [2025-03-19 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718753', 'tblTempUsageDetail_20' ) end [2025-03-19 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:07:21] Production.INFO: ==15275== Releasing lock... [2025-03-19 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:07:21] Production.INFO: 35 MB #Memory Used# [2025-03-19 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:08:06 [end_date_ymd] => 2025-03-19 23:08:06 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:08:06' and `end` < '2025-03-19 23: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-03-19 23:08:18] Production.INFO: count ==837 [2025-03-19 23:08:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:08:06 - End Time 2025-03-19 23:08:06 [2025-03-19 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718758', 'tblTempUsageDetail_20' ) start [2025-03-19 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718758', 'tblTempUsageDetail_20' ) end [2025-03-19 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718758', 'tblTempVendorCDR_20' ) start [2025-03-19 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718758', 'tblTempVendorCDR_20' ) end [2025-03-19 23:08:18] Production.INFO: ProcessCDR(1,14718758,1,1,2) [2025-03-19 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718758', 'tblTempUsageDetail_20' ) start [2025-03-19 23:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718758', 'tblTempUsageDetail_20' ) end [2025-03-19 23:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:08:23] Production.INFO: ==15444== Releasing lock... [2025-03-19 23:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:08:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-19 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:09:06 [end_date_ymd] => 2025-03-19 23:09:06 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:09:06' and `end` < '2025-03-19 23: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-03-19 23:09:19] Production.INFO: count ==834 [2025-03-19 23:09:19] Production.ERROR: pbx CDR StartTime 2025-03-19 20:09:06 - End Time 2025-03-19 23:09:06 [2025-03-19 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718763', 'tblTempUsageDetail_20' ) start [2025-03-19 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718763', 'tblTempUsageDetail_20' ) end [2025-03-19 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718763', 'tblTempVendorCDR_20' ) start [2025-03-19 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718763', 'tblTempVendorCDR_20' ) end [2025-03-19 23:09:19] Production.INFO: ProcessCDR(1,14718763,1,1,2) [2025-03-19 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718763', 'tblTempUsageDetail_20' ) start [2025-03-19 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718763', 'tblTempUsageDetail_20' ) end [2025-03-19 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:09:22] Production.INFO: ==15564== Releasing lock... [2025-03-19 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:09:22] Production.INFO: 35 MB #Memory Used# [2025-03-19 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:10:06 [end_date_ymd] => 2025-03-19 23:10:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:10:06' and `end` < '2025-03-19 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-03-19 23:10:18] Production.INFO: count ==833 [2025-03-19 23:10:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:10:06 - End Time 2025-03-19 23:10:06 [2025-03-19 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718769', 'tblTempUsageDetail_20' ) start [2025-03-19 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718769', 'tblTempUsageDetail_20' ) end [2025-03-19 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718769', 'tblTempVendorCDR_20' ) start [2025-03-19 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718769', 'tblTempVendorCDR_20' ) end [2025-03-19 23:10:18] Production.INFO: ProcessCDR(1,14718769,1,1,2) [2025-03-19 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718769', 'tblTempUsageDetail_20' ) start [2025-03-19 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718769', 'tblTempUsageDetail_20' ) end [2025-03-19 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:10:21] Production.INFO: ==15648== Releasing lock... [2025-03-19 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:10:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-19 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:11:06 [end_date_ymd] => 2025-03-19 23:11:06 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:11:06' and `end` < '2025-03-19 23: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-03-19 23:11:18] Production.INFO: count ==799 [2025-03-19 23:11:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:11:06 - End Time 2025-03-19 23:11:06 [2025-03-19 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718774', 'tblTempUsageDetail_20' ) start [2025-03-19 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718774', 'tblTempUsageDetail_20' ) end [2025-03-19 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718774', 'tblTempVendorCDR_20' ) start [2025-03-19 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718774', 'tblTempVendorCDR_20' ) end [2025-03-19 23:11:18] Production.INFO: ProcessCDR(1,14718774,1,1,2) [2025-03-19 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718774', 'tblTempUsageDetail_20' ) start [2025-03-19 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718774', 'tblTempUsageDetail_20' ) end [2025-03-19 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:11:22] Production.INFO: ==15734== Releasing lock... [2025-03-19 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:11:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-19 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:12:05 [end_date_ymd] => 2025-03-19 23:12:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:12:05' and `end` < '2025-03-19 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-03-19 23:12:17] Production.INFO: count ==802 [2025-03-19 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:12:05 - End Time 2025-03-19 23:12:05 [2025-03-19 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718779', 'tblTempUsageDetail_20' ) start [2025-03-19 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718779', 'tblTempUsageDetail_20' ) end [2025-03-19 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718779', 'tblTempVendorCDR_20' ) start [2025-03-19 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718779', 'tblTempVendorCDR_20' ) end [2025-03-19 23:12:18] Production.INFO: ProcessCDR(1,14718779,1,1,2) [2025-03-19 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718779', 'tblTempUsageDetail_20' ) start [2025-03-19 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718779', 'tblTempUsageDetail_20' ) end [2025-03-19 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:12:21] Production.INFO: ==15894== Releasing lock... [2025-03-19 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:12:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-19 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:13:05 [end_date_ymd] => 2025-03-19 23:13:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:13:05' and `end` < '2025-03-19 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-03-19 23:13:17] Production.INFO: count ==800 [2025-03-19 23:13:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:13:05 - End Time 2025-03-19 23:13:05 [2025-03-19 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718784', 'tblTempUsageDetail_20' ) start [2025-03-19 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718784', 'tblTempUsageDetail_20' ) end [2025-03-19 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718784', 'tblTempVendorCDR_20' ) start [2025-03-19 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718784', 'tblTempVendorCDR_20' ) end [2025-03-19 23:13:18] Production.INFO: ProcessCDR(1,14718784,1,1,2) [2025-03-19 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718784', 'tblTempUsageDetail_20' ) start [2025-03-19 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718784', 'tblTempUsageDetail_20' ) end [2025-03-19 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:13:21] Production.INFO: ==15977== Releasing lock... [2025-03-19 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:13:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-19 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:14:05 [end_date_ymd] => 2025-03-19 23:14:05 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:14:05' and `end` < '2025-03-19 23: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-03-19 23:14:18] Production.INFO: count ==800 [2025-03-19 23:14:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:14:05 - End Time 2025-03-19 23:14:05 [2025-03-19 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718789', 'tblTempUsageDetail_20' ) start [2025-03-19 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718789', 'tblTempUsageDetail_20' ) end [2025-03-19 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718789', 'tblTempVendorCDR_20' ) start [2025-03-19 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718789', 'tblTempVendorCDR_20' ) end [2025-03-19 23:14:18] Production.INFO: ProcessCDR(1,14718789,1,1,2) [2025-03-19 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718789', 'tblTempUsageDetail_20' ) start [2025-03-19 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718789', 'tblTempUsageDetail_20' ) end [2025-03-19 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:14:21] Production.INFO: ==16060== Releasing lock... [2025-03-19 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:14:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-19 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:15:05 [end_date_ymd] => 2025-03-19 23:15:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:15:05' and `end` < '2025-03-19 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-03-19 23:15:17] Production.INFO: count ==803 [2025-03-19 23:15:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:15:05 - End Time 2025-03-19 23:15:05 [2025-03-19 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718794', 'tblTempUsageDetail_20' ) start [2025-03-19 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718794', 'tblTempUsageDetail_20' ) end [2025-03-19 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718794', 'tblTempVendorCDR_20' ) start [2025-03-19 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718794', 'tblTempVendorCDR_20' ) end [2025-03-19 23:15:17] Production.INFO: ProcessCDR(1,14718794,1,1,2) [2025-03-19 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718794', 'tblTempUsageDetail_20' ) start [2025-03-19 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718794', 'tblTempUsageDetail_20' ) end [2025-03-19 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:15:21] Production.INFO: ==16215== Releasing lock... [2025-03-19 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:15:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-19 23:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:16:06 [end_date_ymd] => 2025-03-19 23:16:06 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:16:06' and `end` < '2025-03-19 23: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-03-19 23:16:18] Production.INFO: count ==807 [2025-03-19 23:16:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:16:06 - End Time 2025-03-19 23:16:06 [2025-03-19 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718799', 'tblTempUsageDetail_20' ) start [2025-03-19 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718799', 'tblTempUsageDetail_20' ) end [2025-03-19 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718799', 'tblTempVendorCDR_20' ) start [2025-03-19 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718799', 'tblTempVendorCDR_20' ) end [2025-03-19 23:16:18] Production.INFO: ProcessCDR(1,14718799,1,1,2) [2025-03-19 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718799', 'tblTempUsageDetail_20' ) start [2025-03-19 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718799', 'tblTempUsageDetail_20' ) end [2025-03-19 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:16:21] Production.INFO: ==16290== Releasing lock... [2025-03-19 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:16:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-19 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:17:05 [end_date_ymd] => 2025-03-19 23:17:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:17:05' and `end` < '2025-03-19 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-03-19 23:17:18] Production.INFO: count ==805 [2025-03-19 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:17:05 - End Time 2025-03-19 23:17:05 [2025-03-19 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718804', 'tblTempUsageDetail_20' ) start [2025-03-19 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718804', 'tblTempUsageDetail_20' ) end [2025-03-19 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718804', 'tblTempVendorCDR_20' ) start [2025-03-19 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718804', 'tblTempVendorCDR_20' ) end [2025-03-19 23:17:18] Production.INFO: ProcessCDR(1,14718804,1,1,2) [2025-03-19 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718804', 'tblTempUsageDetail_20' ) start [2025-03-19 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718804', 'tblTempUsageDetail_20' ) end [2025-03-19 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:17:21] Production.INFO: ==16363== Releasing lock... [2025-03-19 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:17:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-19 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:18:05 [end_date_ymd] => 2025-03-19 23:18:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:18:05' and `end` < '2025-03-19 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-03-19 23:18:17] Production.INFO: count ==812 [2025-03-19 23:18:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:18:05 - End Time 2025-03-19 23:18:05 [2025-03-19 23:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718809', 'tblTempUsageDetail_20' ) start [2025-03-19 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718809', 'tblTempUsageDetail_20' ) end [2025-03-19 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718809', 'tblTempVendorCDR_20' ) start [2025-03-19 23:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718809', 'tblTempVendorCDR_20' ) end [2025-03-19 23:18:17] Production.INFO: ProcessCDR(1,14718809,1,1,2) [2025-03-19 23:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718809', 'tblTempUsageDetail_20' ) start [2025-03-19 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718809', 'tblTempUsageDetail_20' ) end [2025-03-19 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:18:21] Production.INFO: ==16433== Releasing lock... [2025-03-19 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:18:21] Production.INFO: 34.75 MB #Memory Used# [2025-03-19 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:19:05 [end_date_ymd] => 2025-03-19 23:19:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:19:05' and `end` < '2025-03-19 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-03-19 23:19:17] Production.INFO: count ==811 [2025-03-19 23:19:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:19:05 - End Time 2025-03-19 23:19:05 [2025-03-19 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718814', 'tblTempUsageDetail_20' ) start [2025-03-19 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718814', 'tblTempUsageDetail_20' ) end [2025-03-19 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718814', 'tblTempVendorCDR_20' ) start [2025-03-19 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718814', 'tblTempVendorCDR_20' ) end [2025-03-19 23:19:17] Production.INFO: ProcessCDR(1,14718814,1,1,2) [2025-03-19 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718814', 'tblTempUsageDetail_20' ) start [2025-03-19 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718814', 'tblTempUsageDetail_20' ) end [2025-03-19 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:19:21] Production.INFO: ==16509== Releasing lock... [2025-03-19 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:19:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-19 23:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:20:07 [end_date_ymd] => 2025-03-19 23:20:07 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:20:07' and `end` < '2025-03-19 23: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-03-19 23:20:19] Production.INFO: count ==806 [2025-03-19 23:20:19] Production.ERROR: pbx CDR StartTime 2025-03-19 20:20:07 - End Time 2025-03-19 23:20:07 [2025-03-19 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718820', 'tblTempUsageDetail_20' ) start [2025-03-19 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718820', 'tblTempUsageDetail_20' ) end [2025-03-19 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718820', 'tblTempVendorCDR_20' ) start [2025-03-19 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718820', 'tblTempVendorCDR_20' ) end [2025-03-19 23:20:19] Production.INFO: ProcessCDR(1,14718820,1,1,2) [2025-03-19 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718820', 'tblTempUsageDetail_20' ) start [2025-03-19 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718820', 'tblTempUsageDetail_20' ) end [2025-03-19 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:20:23] Production.INFO: ==16583== Releasing lock... [2025-03-19 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:20:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-19 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:21:05 [end_date_ymd] => 2025-03-19 23:21:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:21:05' and `end` < '2025-03-19 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-03-19 23:21:17] Production.INFO: count ==794 [2025-03-19 23:21:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:21:05 - End Time 2025-03-19 23:21:05 [2025-03-19 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718825', 'tblTempUsageDetail_20' ) start [2025-03-19 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718825', 'tblTempUsageDetail_20' ) end [2025-03-19 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718825', 'tblTempVendorCDR_20' ) start [2025-03-19 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718825', 'tblTempVendorCDR_20' ) end [2025-03-19 23:21:17] Production.INFO: ProcessCDR(1,14718825,1,1,2) [2025-03-19 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718825', 'tblTempUsageDetail_20' ) start [2025-03-19 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718825', 'tblTempUsageDetail_20' ) end [2025-03-19 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:21:21] Production.INFO: ==16657== Releasing lock... [2025-03-19 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:21:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-19 23:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:22:06 [end_date_ymd] => 2025-03-19 23:22:06 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:22:06' and `end` < '2025-03-19 23: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-03-19 23:22:18] Production.INFO: count ==783 [2025-03-19 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:22:06 - End Time 2025-03-19 23:22:06 [2025-03-19 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718830', 'tblTempUsageDetail_20' ) start [2025-03-19 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718830', 'tblTempUsageDetail_20' ) end [2025-03-19 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718830', 'tblTempVendorCDR_20' ) start [2025-03-19 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718830', 'tblTempVendorCDR_20' ) end [2025-03-19 23:22:18] Production.INFO: ProcessCDR(1,14718830,1,1,2) [2025-03-19 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718830', 'tblTempUsageDetail_20' ) start [2025-03-19 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718830', 'tblTempUsageDetail_20' ) end [2025-03-19 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:22:22] Production.INFO: ==16731== Releasing lock... [2025-03-19 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:22:22] Production.INFO: 34 MB #Memory Used# [2025-03-19 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:23:05 [end_date_ymd] => 2025-03-19 23:23:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:23:05' and `end` < '2025-03-19 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-03-19 23:23:17] Production.INFO: count ==780 [2025-03-19 23:23:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:23:05 - End Time 2025-03-19 23:23:05 [2025-03-19 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718835', 'tblTempUsageDetail_20' ) start [2025-03-19 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718835', 'tblTempUsageDetail_20' ) end [2025-03-19 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718835', 'tblTempVendorCDR_20' ) start [2025-03-19 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718835', 'tblTempVendorCDR_20' ) end [2025-03-19 23:23:17] Production.INFO: ProcessCDR(1,14718835,1,1,2) [2025-03-19 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718835', 'tblTempUsageDetail_20' ) start [2025-03-19 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718835', 'tblTempUsageDetail_20' ) end [2025-03-19 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:23:21] Production.INFO: ==16803== Releasing lock... [2025-03-19 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:23:21] Production.INFO: 34 MB #Memory Used# [2025-03-19 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:24:06 [end_date_ymd] => 2025-03-19 23:24:06 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:24:06' and `end` < '2025-03-19 23: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-03-19 23:24:18] Production.INFO: count ==780 [2025-03-19 23:24:19] Production.ERROR: pbx CDR StartTime 2025-03-19 20:24:06 - End Time 2025-03-19 23:24:06 [2025-03-19 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718840', 'tblTempUsageDetail_20' ) start [2025-03-19 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718840', 'tblTempUsageDetail_20' ) end [2025-03-19 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718840', 'tblTempVendorCDR_20' ) start [2025-03-19 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718840', 'tblTempVendorCDR_20' ) end [2025-03-19 23:24:19] Production.INFO: ProcessCDR(1,14718840,1,1,2) [2025-03-19 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718840', 'tblTempUsageDetail_20' ) start [2025-03-19 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718840', 'tblTempUsageDetail_20' ) end [2025-03-19 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:24:22] Production.INFO: ==16918== Releasing lock... [2025-03-19 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:24:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-19 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:25:05 [end_date_ymd] => 2025-03-19 23:25:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:25:05' and `end` < '2025-03-19 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-03-19 23:25:18] Production.INFO: count ==775 [2025-03-19 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:25:05 - End Time 2025-03-19 23:25:05 [2025-03-19 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718845', 'tblTempUsageDetail_20' ) start [2025-03-19 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718845', 'tblTempUsageDetail_20' ) end [2025-03-19 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718845', 'tblTempVendorCDR_20' ) start [2025-03-19 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718845', 'tblTempVendorCDR_20' ) end [2025-03-19 23:25:18] Production.INFO: ProcessCDR(1,14718845,1,1,2) [2025-03-19 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718845', 'tblTempUsageDetail_20' ) start [2025-03-19 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718845', 'tblTempUsageDetail_20' ) end [2025-03-19 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:25:23] Production.INFO: ==16986== Releasing lock... [2025-03-19 23:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:25:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-19 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:26:05 [end_date_ymd] => 2025-03-19 23:26:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:26:05' and `end` < '2025-03-19 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-03-19 23:26:18] Production.INFO: count ==773 [2025-03-19 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:26:05 - End Time 2025-03-19 23:26:05 [2025-03-19 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718850', 'tblTempUsageDetail_20' ) start [2025-03-19 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718850', 'tblTempUsageDetail_20' ) end [2025-03-19 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718850', 'tblTempVendorCDR_20' ) start [2025-03-19 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718850', 'tblTempVendorCDR_20' ) end [2025-03-19 23:26:18] Production.INFO: ProcessCDR(1,14718850,1,1,2) [2025-03-19 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718850', 'tblTempUsageDetail_20' ) start [2025-03-19 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718850', 'tblTempUsageDetail_20' ) end [2025-03-19 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:26:21] Production.INFO: ==17057== Releasing lock... [2025-03-19 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:26:21] Production.INFO: 34 MB #Memory Used# [2025-03-19 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:27:05 [end_date_ymd] => 2025-03-19 23:27:05 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:27:05' and `end` < '2025-03-19 23: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-03-19 23:27:17] Production.INFO: count ==774 [2025-03-19 23:27:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:27:05 - End Time 2025-03-19 23:27:05 [2025-03-19 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718855', 'tblTempUsageDetail_20' ) start [2025-03-19 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718855', 'tblTempUsageDetail_20' ) end [2025-03-19 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718855', 'tblTempVendorCDR_20' ) start [2025-03-19 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718855', 'tblTempVendorCDR_20' ) end [2025-03-19 23:27:17] Production.INFO: ProcessCDR(1,14718855,1,1,2) [2025-03-19 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718855', 'tblTempUsageDetail_20' ) start [2025-03-19 23:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718855', 'tblTempUsageDetail_20' ) end [2025-03-19 23:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:27:20] Production.INFO: ==17132== Releasing lock... [2025-03-19 23:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:27:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-19 23:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:28:06 [end_date_ymd] => 2025-03-19 23:28:06 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:28:06' and `end` < '2025-03-19 23: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-03-19 23:28:18] Production.INFO: count ==772 [2025-03-19 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:28:06 - End Time 2025-03-19 23:28:06 [2025-03-19 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718860', 'tblTempUsageDetail_20' ) start [2025-03-19 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718860', 'tblTempUsageDetail_20' ) end [2025-03-19 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718860', 'tblTempVendorCDR_20' ) start [2025-03-19 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718860', 'tblTempVendorCDR_20' ) end [2025-03-19 23:28:18] Production.INFO: ProcessCDR(1,14718860,1,1,2) [2025-03-19 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718860', 'tblTempUsageDetail_20' ) start [2025-03-19 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718860', 'tblTempUsageDetail_20' ) end [2025-03-19 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:28:22] Production.INFO: ==17206== Releasing lock... [2025-03-19 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:28:22] Production.INFO: 34 MB #Memory Used# [2025-03-19 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:29:05 [end_date_ymd] => 2025-03-19 23:29:05 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:29:05' and `end` < '2025-03-19 23: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-03-19 23:29:17] Production.INFO: count ==770 [2025-03-19 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:29:05 - End Time 2025-03-19 23:29:05 [2025-03-19 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718865', 'tblTempUsageDetail_20' ) start [2025-03-19 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718865', 'tblTempUsageDetail_20' ) end [2025-03-19 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718865', 'tblTempVendorCDR_20' ) start [2025-03-19 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718865', 'tblTempVendorCDR_20' ) end [2025-03-19 23:29:18] Production.INFO: ProcessCDR(1,14718865,1,1,2) [2025-03-19 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718865', 'tblTempUsageDetail_20' ) start [2025-03-19 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718865', 'tblTempUsageDetail_20' ) end [2025-03-19 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:29:21] Production.INFO: ==17280== Releasing lock... [2025-03-19 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:29:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-19 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:30:06 [end_date_ymd] => 2025-03-19 23:30:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:30:06' and `end` < '2025-03-19 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-03-19 23:30:18] Production.INFO: count ==770 [2025-03-19 23:30:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:30:06 - End Time 2025-03-19 23:30:06 [2025-03-19 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718871', 'tblTempUsageDetail_20' ) start [2025-03-19 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718871', 'tblTempUsageDetail_20' ) end [2025-03-19 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718871', 'tblTempVendorCDR_20' ) start [2025-03-19 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718871', 'tblTempVendorCDR_20' ) end [2025-03-19 23:30:18] Production.INFO: ProcessCDR(1,14718871,1,1,2) [2025-03-19 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718871', 'tblTempUsageDetail_20' ) start [2025-03-19 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718871', 'tblTempUsageDetail_20' ) end [2025-03-19 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:30:22] Production.INFO: ==17354== Releasing lock... [2025-03-19 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:30:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-19 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:31:05 [end_date_ymd] => 2025-03-19 23:31:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:31:05' and `end` < '2025-03-19 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-03-19 23:31:17] Production.INFO: count ==770 [2025-03-19 23:31:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:31:05 - End Time 2025-03-19 23:31:05 [2025-03-19 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718876', 'tblTempUsageDetail_20' ) start [2025-03-19 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718876', 'tblTempUsageDetail_20' ) end [2025-03-19 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718876', 'tblTempVendorCDR_20' ) start [2025-03-19 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718876', 'tblTempVendorCDR_20' ) end [2025-03-19 23:31:17] Production.INFO: ProcessCDR(1,14718876,1,1,2) [2025-03-19 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718876', 'tblTempUsageDetail_20' ) start [2025-03-19 23:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718876', 'tblTempUsageDetail_20' ) end [2025-03-19 23:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:31:20] Production.INFO: ==17429== Releasing lock... [2025-03-19 23:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:31:20] Production.INFO: 34.25 MB #Memory Used# [2025-03-19 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:32:05 [end_date_ymd] => 2025-03-19 23:32:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:32:05' and `end` < '2025-03-19 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-03-19 23:32:17] Production.INFO: count ==768 [2025-03-19 23:32:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:32:05 - End Time 2025-03-19 23:32:05 [2025-03-19 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718881', 'tblTempUsageDetail_20' ) start [2025-03-19 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718881', 'tblTempUsageDetail_20' ) end [2025-03-19 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718881', 'tblTempVendorCDR_20' ) start [2025-03-19 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718881', 'tblTempVendorCDR_20' ) end [2025-03-19 23:32:17] Production.INFO: ProcessCDR(1,14718881,1,1,2) [2025-03-19 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718881', 'tblTempUsageDetail_20' ) start [2025-03-19 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718881', 'tblTempUsageDetail_20' ) end [2025-03-19 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:32:21] Production.INFO: ==17507== Releasing lock... [2025-03-19 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:32:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-19 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:33:04 [end_date_ymd] => 2025-03-19 23:33:04 [RateCDR] => 1 ) [2025-03-19 23:33: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-03-19 20:33:04' and `end` < '2025-03-19 23:33: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-03-19 23:33:17] Production.INFO: count ==771 [2025-03-19 23:33:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:33:04 - End Time 2025-03-19 23:33:04 [2025-03-19 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718886', 'tblTempUsageDetail_20' ) start [2025-03-19 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718886', 'tblTempUsageDetail_20' ) end [2025-03-19 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718886', 'tblTempVendorCDR_20' ) start [2025-03-19 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718886', 'tblTempVendorCDR_20' ) end [2025-03-19 23:33:17] Production.INFO: ProcessCDR(1,14718886,1,1,2) [2025-03-19 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718886', 'tblTempUsageDetail_20' ) start [2025-03-19 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718886', 'tblTempUsageDetail_20' ) end [2025-03-19 23:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:33:20] Production.INFO: ==17576== Releasing lock... [2025-03-19 23:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:33:20] Production.INFO: 34 MB #Memory Used# [2025-03-19 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:34:05 [end_date_ymd] => 2025-03-19 23:34:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:34:05' and `end` < '2025-03-19 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-03-19 23:34:17] Production.INFO: count ==771 [2025-03-19 23:34:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:34:05 - End Time 2025-03-19 23:34:05 [2025-03-19 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718891', 'tblTempUsageDetail_20' ) start [2025-03-19 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718891', 'tblTempUsageDetail_20' ) end [2025-03-19 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718891', 'tblTempVendorCDR_20' ) start [2025-03-19 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718891', 'tblTempVendorCDR_20' ) end [2025-03-19 23:34:17] Production.INFO: ProcessCDR(1,14718891,1,1,2) [2025-03-19 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718891', 'tblTempUsageDetail_20' ) start [2025-03-19 23:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718891', 'tblTempUsageDetail_20' ) end [2025-03-19 23:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:34:21] Production.INFO: ==17652== Releasing lock... [2025-03-19 23:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:34:21] Production.INFO: 34 MB #Memory Used# [2025-03-19 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:35:05 [end_date_ymd] => 2025-03-19 23:35:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:35:05' and `end` < '2025-03-19 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-03-19 23:35:18] Production.INFO: count ==765 [2025-03-19 23:35:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:35:05 - End Time 2025-03-19 23:35:05 [2025-03-19 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718896', 'tblTempUsageDetail_20' ) start [2025-03-19 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718896', 'tblTempUsageDetail_20' ) end [2025-03-19 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718896', 'tblTempVendorCDR_20' ) start [2025-03-19 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718896', 'tblTempVendorCDR_20' ) end [2025-03-19 23:35:18] Production.INFO: ProcessCDR(1,14718896,1,1,2) [2025-03-19 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718896', 'tblTempUsageDetail_20' ) start [2025-03-19 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718896', 'tblTempUsageDetail_20' ) end [2025-03-19 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:35:21] Production.INFO: ==17726== Releasing lock... [2025-03-19 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:35:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-19 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:36:06 [end_date_ymd] => 2025-03-19 23:36:06 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:36:06' and `end` < '2025-03-19 23: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-03-19 23:36:18] Production.INFO: count ==765 [2025-03-19 23:36:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:36:06 - End Time 2025-03-19 23:36:06 [2025-03-19 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718901', 'tblTempUsageDetail_20' ) start [2025-03-19 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718901', 'tblTempUsageDetail_20' ) end [2025-03-19 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718901', 'tblTempVendorCDR_20' ) start [2025-03-19 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718901', 'tblTempVendorCDR_20' ) end [2025-03-19 23:36:18] Production.INFO: ProcessCDR(1,14718901,1,1,2) [2025-03-19 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718901', 'tblTempUsageDetail_20' ) start [2025-03-19 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718901', 'tblTempUsageDetail_20' ) end [2025-03-19 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:36:22] Production.INFO: ==17798== Releasing lock... [2025-03-19 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:36:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-19 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:37:05 [end_date_ymd] => 2025-03-19 23:37:05 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:37:05' and `end` < '2025-03-19 23: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-03-19 23:37:18] Production.INFO: count ==767 [2025-03-19 23:37:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:37:05 - End Time 2025-03-19 23:37:05 [2025-03-19 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718906', 'tblTempUsageDetail_20' ) start [2025-03-19 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718906', 'tblTempUsageDetail_20' ) end [2025-03-19 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718906', 'tblTempVendorCDR_20' ) start [2025-03-19 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718906', 'tblTempVendorCDR_20' ) end [2025-03-19 23:37:18] Production.INFO: ProcessCDR(1,14718906,1,1,2) [2025-03-19 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718906', 'tblTempUsageDetail_20' ) start [2025-03-19 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718906', 'tblTempUsageDetail_20' ) end [2025-03-19 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:37:21] Production.INFO: ==17868== Releasing lock... [2025-03-19 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:37:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-19 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:38:05 [end_date_ymd] => 2025-03-19 23:38:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:38:05' and `end` < '2025-03-19 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-03-19 23:38:17] Production.INFO: count ==763 [2025-03-19 23:38:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:38:05 - End Time 2025-03-19 23:38:05 [2025-03-19 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718911', 'tblTempUsageDetail_20' ) start [2025-03-19 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718911', 'tblTempUsageDetail_20' ) end [2025-03-19 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718911', 'tblTempVendorCDR_20' ) start [2025-03-19 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718911', 'tblTempVendorCDR_20' ) end [2025-03-19 23:38:17] Production.INFO: ProcessCDR(1,14718911,1,1,2) [2025-03-19 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718911', 'tblTempUsageDetail_20' ) start [2025-03-19 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718911', 'tblTempUsageDetail_20' ) end [2025-03-19 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:38:21] Production.INFO: ==17939== Releasing lock... [2025-03-19 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:38:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-19 23:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:39:06 [end_date_ymd] => 2025-03-19 23:39:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:39:06' and `end` < '2025-03-19 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-03-19 23:39:18] Production.INFO: count ==789 [2025-03-19 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:39:06 - End Time 2025-03-19 23:39:06 [2025-03-19 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718916', 'tblTempUsageDetail_20' ) start [2025-03-19 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718916', 'tblTempUsageDetail_20' ) end [2025-03-19 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718916', 'tblTempVendorCDR_20' ) start [2025-03-19 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718916', 'tblTempVendorCDR_20' ) end [2025-03-19 23:39:18] Production.INFO: ProcessCDR(1,14718916,1,1,2) [2025-03-19 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718916', 'tblTempUsageDetail_20' ) start [2025-03-19 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718916', 'tblTempUsageDetail_20' ) end [2025-03-19 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:39:21] Production.INFO: ==18009== Releasing lock... [2025-03-19 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:39:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-19 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:40:06 [end_date_ymd] => 2025-03-19 23:40:06 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:40:06' and `end` < '2025-03-19 23: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-03-19 23:40:18] Production.INFO: count ==826 [2025-03-19 23:40:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:40:06 - End Time 2025-03-19 23:40:06 [2025-03-19 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718922', 'tblTempUsageDetail_20' ) start [2025-03-19 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718922', 'tblTempUsageDetail_20' ) end [2025-03-19 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718922', 'tblTempVendorCDR_20' ) start [2025-03-19 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718922', 'tblTempVendorCDR_20' ) end [2025-03-19 23:40:18] Production.INFO: ProcessCDR(1,14718922,1,1,2) [2025-03-19 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718922', 'tblTempUsageDetail_20' ) start [2025-03-19 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718922', 'tblTempUsageDetail_20' ) end [2025-03-19 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:40:22] Production.INFO: ==18124== Releasing lock... [2025-03-19 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:40:22] Production.INFO: 34.75 MB #Memory Used# [2025-03-19 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:41:05 [end_date_ymd] => 2025-03-19 23:41:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:41:05' and `end` < '2025-03-19 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-03-19 23:41:17] Production.INFO: count ==864 [2025-03-19 23:41:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:41:05 - End Time 2025-03-19 23:41:05 [2025-03-19 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718927', 'tblTempUsageDetail_20' ) start [2025-03-19 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718927', 'tblTempUsageDetail_20' ) end [2025-03-19 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718927', 'tblTempVendorCDR_20' ) start [2025-03-19 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718927', 'tblTempVendorCDR_20' ) end [2025-03-19 23:41:18] Production.INFO: ProcessCDR(1,14718927,1,1,2) [2025-03-19 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718927', 'tblTempUsageDetail_20' ) start [2025-03-19 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718927', 'tblTempUsageDetail_20' ) end [2025-03-19 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:41:21] Production.INFO: ==18197== Releasing lock... [2025-03-19 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:41:21] Production.INFO: 34.5 MB #Memory Used# [2025-03-19 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:42:06 [end_date_ymd] => 2025-03-19 23:42:06 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:42:06' and `end` < '2025-03-19 23: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-03-19 23:42:18] Production.INFO: count ==900 [2025-03-19 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:42:06 - End Time 2025-03-19 23:42:06 [2025-03-19 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718932', 'tblTempUsageDetail_20' ) start [2025-03-19 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718932', 'tblTempUsageDetail_20' ) end [2025-03-19 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718932', 'tblTempVendorCDR_20' ) start [2025-03-19 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718932', 'tblTempVendorCDR_20' ) end [2025-03-19 23:42:18] Production.INFO: ProcessCDR(1,14718932,1,1,2) [2025-03-19 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718932', 'tblTempUsageDetail_20' ) start [2025-03-19 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718932', 'tblTempUsageDetail_20' ) end [2025-03-19 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:42:22] Production.INFO: ==18274== Releasing lock... [2025-03-19 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:42:22] Production.INFO: 35 MB #Memory Used# [2025-03-19 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:43:05 [end_date_ymd] => 2025-03-19 23:43:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:43:05' and `end` < '2025-03-19 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-03-19 23:43:18] Production.INFO: count ==1080 [2025-03-19 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:43:05 - End Time 2025-03-19 23:43:05 [2025-03-19 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718937', 'tblTempUsageDetail_20' ) start [2025-03-19 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718937', 'tblTempUsageDetail_20' ) end [2025-03-19 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718937', 'tblTempVendorCDR_20' ) start [2025-03-19 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718937', 'tblTempVendorCDR_20' ) end [2025-03-19 23:43:18] Production.INFO: ProcessCDR(1,14718937,1,1,2) [2025-03-19 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718937', 'tblTempUsageDetail_20' ) start [2025-03-19 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718937', 'tblTempUsageDetail_20' ) end [2025-03-19 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:43:22] Production.INFO: ==18346== Releasing lock... [2025-03-19 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:43:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-19 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:44:05 [end_date_ymd] => 2025-03-19 23:44:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:44:05' and `end` < '2025-03-19 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-03-19 23:44:17] Production.INFO: count ==1152 [2025-03-19 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:44:05 - End Time 2025-03-19 23:44:05 [2025-03-19 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718942', 'tblTempUsageDetail_20' ) start [2025-03-19 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718942', 'tblTempUsageDetail_20' ) end [2025-03-19 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718942', 'tblTempVendorCDR_20' ) start [2025-03-19 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718942', 'tblTempVendorCDR_20' ) end [2025-03-19 23:44:18] Production.INFO: ProcessCDR(1,14718942,1,1,2) [2025-03-19 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718942', 'tblTempUsageDetail_20' ) start [2025-03-19 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718942', 'tblTempUsageDetail_20' ) end [2025-03-19 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:44:21] Production.INFO: ==18418== Releasing lock... [2025-03-19 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:44:21] Production.INFO: 37 MB #Memory Used# [2025-03-19 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:45:05 [end_date_ymd] => 2025-03-19 23:45:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:45:05' and `end` < '2025-03-19 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-03-19 23:45:17] Production.INFO: count ==1155 [2025-03-19 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:45:05 - End Time 2025-03-19 23:45:05 [2025-03-19 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718947', 'tblTempUsageDetail_20' ) start [2025-03-19 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718947', 'tblTempUsageDetail_20' ) end [2025-03-19 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718947', 'tblTempVendorCDR_20' ) start [2025-03-19 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718947', 'tblTempVendorCDR_20' ) end [2025-03-19 23:45:18] Production.INFO: ProcessCDR(1,14718947,1,1,2) [2025-03-19 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718947', 'tblTempUsageDetail_20' ) start [2025-03-19 23:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718947', 'tblTempUsageDetail_20' ) end [2025-03-19 23:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:45:23] Production.INFO: ==18489== Releasing lock... [2025-03-19 23:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:45:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:46:06 [end_date_ymd] => 2025-03-19 23:46:06 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:46:06' and `end` < '2025-03-19 23: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-03-19 23:46:18] Production.INFO: count ==1143 [2025-03-19 23:46:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:46:06 - End Time 2025-03-19 23:46:06 [2025-03-19 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718952', 'tblTempUsageDetail_20' ) start [2025-03-19 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718952', 'tblTempUsageDetail_20' ) end [2025-03-19 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718952', 'tblTempVendorCDR_20' ) start [2025-03-19 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718952', 'tblTempVendorCDR_20' ) end [2025-03-19 23:46:18] Production.INFO: ProcessCDR(1,14718952,1,1,2) [2025-03-19 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718952', 'tblTempUsageDetail_20' ) start [2025-03-19 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718952', 'tblTempUsageDetail_20' ) end [2025-03-19 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:46:21] Production.INFO: ==18559== Releasing lock... [2025-03-19 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:46:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:47:05 [end_date_ymd] => 2025-03-19 23:47:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:47:05' and `end` < '2025-03-19 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-03-19 23:47:17] Production.INFO: count ==1148 [2025-03-19 23:47:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:47:05 - End Time 2025-03-19 23:47:05 [2025-03-19 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718957', 'tblTempUsageDetail_20' ) start [2025-03-19 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718957', 'tblTempUsageDetail_20' ) end [2025-03-19 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718957', 'tblTempVendorCDR_20' ) start [2025-03-19 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718957', 'tblTempVendorCDR_20' ) end [2025-03-19 23:47:17] Production.INFO: ProcessCDR(1,14718957,1,1,2) [2025-03-19 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718957', 'tblTempUsageDetail_20' ) start [2025-03-19 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718957', 'tblTempUsageDetail_20' ) end [2025-03-19 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:47:21] Production.INFO: ==18639== Releasing lock... [2025-03-19 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:47:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:48:05 [end_date_ymd] => 2025-03-19 23:48:05 [RateCDR] => 1 ) [2025-03-19 23: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-03-19 20:48:05' and `end` < '2025-03-19 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-03-19 23:48:18] Production.INFO: count ==1148 [2025-03-19 23:48:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:48:05 - End Time 2025-03-19 23:48:05 [2025-03-19 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718962', 'tblTempUsageDetail_20' ) start [2025-03-19 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718962', 'tblTempUsageDetail_20' ) end [2025-03-19 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718962', 'tblTempVendorCDR_20' ) start [2025-03-19 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718962', 'tblTempVendorCDR_20' ) end [2025-03-19 23:48:18] Production.INFO: ProcessCDR(1,14718962,1,1,2) [2025-03-19 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718962', 'tblTempUsageDetail_20' ) start [2025-03-19 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718962', 'tblTempUsageDetail_20' ) end [2025-03-19 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:48:22] Production.INFO: ==18721== Releasing lock... [2025-03-19 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:48:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:49:05 [end_date_ymd] => 2025-03-19 23:49:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:49:05' and `end` < '2025-03-19 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-03-19 23:49:17] Production.INFO: count ==1144 [2025-03-19 23:49:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:49:05 - End Time 2025-03-19 23:49:05 [2025-03-19 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718967', 'tblTempUsageDetail_20' ) start [2025-03-19 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718967', 'tblTempUsageDetail_20' ) end [2025-03-19 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718967', 'tblTempVendorCDR_20' ) start [2025-03-19 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718967', 'tblTempVendorCDR_20' ) end [2025-03-19 23:49:18] Production.INFO: ProcessCDR(1,14718967,1,1,2) [2025-03-19 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718967', 'tblTempUsageDetail_20' ) start [2025-03-19 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718967', 'tblTempUsageDetail_20' ) end [2025-03-19 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:49:21] Production.INFO: ==18797== Releasing lock... [2025-03-19 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:49:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-19 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:50:06 [end_date_ymd] => 2025-03-19 23:50:06 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:50:06' and `end` < '2025-03-19 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-03-19 23:50:19] Production.INFO: count ==1136 [2025-03-19 23:50:19] Production.ERROR: pbx CDR StartTime 2025-03-19 20:50:06 - End Time 2025-03-19 23:50:06 [2025-03-19 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718973', 'tblTempUsageDetail_20' ) start [2025-03-19 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718973', 'tblTempUsageDetail_20' ) end [2025-03-19 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718973', 'tblTempVendorCDR_20' ) start [2025-03-19 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718973', 'tblTempVendorCDR_20' ) end [2025-03-19 23:50:19] Production.INFO: ProcessCDR(1,14718973,1,1,2) [2025-03-19 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718973', 'tblTempUsageDetail_20' ) start [2025-03-19 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718973', 'tblTempUsageDetail_20' ) end [2025-03-19 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:50:22] Production.INFO: ==18870== Releasing lock... [2025-03-19 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:50:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:51:05 [end_date_ymd] => 2025-03-19 23:51:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:51:05' and `end` < '2025-03-19 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-03-19 23:51:17] Production.INFO: count ==1128 [2025-03-19 23:51:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:51:05 - End Time 2025-03-19 23:51:05 [2025-03-19 23:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718978', 'tblTempUsageDetail_20' ) start [2025-03-19 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718978', 'tblTempUsageDetail_20' ) end [2025-03-19 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718978', 'tblTempVendorCDR_20' ) start [2025-03-19 23:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718978', 'tblTempVendorCDR_20' ) end [2025-03-19 23:51:17] Production.INFO: ProcessCDR(1,14718978,1,1,2) [2025-03-19 23:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718978', 'tblTempUsageDetail_20' ) start [2025-03-19 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718978', 'tblTempUsageDetail_20' ) end [2025-03-19 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:51:21] Production.INFO: ==18941== Releasing lock... [2025-03-19 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:51:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:52:05 [end_date_ymd] => 2025-03-19 23:52:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:52:05' and `end` < '2025-03-19 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-03-19 23:52:17] Production.INFO: count ==1127 [2025-03-19 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:52:05 - End Time 2025-03-19 23:52:05 [2025-03-19 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718983', 'tblTempUsageDetail_20' ) start [2025-03-19 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718983', 'tblTempUsageDetail_20' ) end [2025-03-19 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718983', 'tblTempVendorCDR_20' ) start [2025-03-19 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718983', 'tblTempVendorCDR_20' ) end [2025-03-19 23:52:18] Production.INFO: ProcessCDR(1,14718983,1,1,2) [2025-03-19 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718983', 'tblTempUsageDetail_20' ) start [2025-03-19 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718983', 'tblTempUsageDetail_20' ) end [2025-03-19 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:52:21] Production.INFO: ==19012== Releasing lock... [2025-03-19 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:52:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:53:05 [end_date_ymd] => 2025-03-19 23:53:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:53:05' and `end` < '2025-03-19 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-03-19 23:53:17] Production.INFO: count ==1126 [2025-03-19 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:53:05 - End Time 2025-03-19 23:53:05 [2025-03-19 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718988', 'tblTempUsageDetail_20' ) start [2025-03-19 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718988', 'tblTempUsageDetail_20' ) end [2025-03-19 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718988', 'tblTempVendorCDR_20' ) start [2025-03-19 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718988', 'tblTempVendorCDR_20' ) end [2025-03-19 23:53:18] Production.INFO: ProcessCDR(1,14718988,1,1,2) [2025-03-19 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718988', 'tblTempUsageDetail_20' ) start [2025-03-19 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718988', 'tblTempUsageDetail_20' ) end [2025-03-19 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:53:21] Production.INFO: ==19097== Releasing lock... [2025-03-19 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:53:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:54:05 [end_date_ymd] => 2025-03-19 23:54:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:54:05' and `end` < '2025-03-19 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-03-19 23:54:18] Production.INFO: count ==1125 [2025-03-19 23:54:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:54:05 - End Time 2025-03-19 23:54:05 [2025-03-19 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718993', 'tblTempUsageDetail_20' ) start [2025-03-19 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718993', 'tblTempUsageDetail_20' ) end [2025-03-19 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718993', 'tblTempVendorCDR_20' ) start [2025-03-19 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718993', 'tblTempVendorCDR_20' ) end [2025-03-19 23:54:18] Production.INFO: ProcessCDR(1,14718993,1,1,2) [2025-03-19 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718993', 'tblTempUsageDetail_20' ) start [2025-03-19 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718993', 'tblTempUsageDetail_20' ) end [2025-03-19 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:54:21] Production.INFO: ==19175== Releasing lock... [2025-03-19 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:54:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:55:05 [end_date_ymd] => 2025-03-19 23:55:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:55:05' and `end` < '2025-03-19 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-03-19 23:55:17] Production.INFO: count ==1128 [2025-03-19 23:55:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:55:05 - End Time 2025-03-19 23:55:05 [2025-03-19 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718998', 'tblTempUsageDetail_20' ) start [2025-03-19 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14718998', 'tblTempUsageDetail_20' ) end [2025-03-19 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718998', 'tblTempVendorCDR_20' ) start [2025-03-19 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14718998', 'tblTempVendorCDR_20' ) end [2025-03-19 23:55:17] Production.INFO: ProcessCDR(1,14718998,1,1,2) [2025-03-19 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14718998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14718998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14718998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14718998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718998', 'tblTempUsageDetail_20' ) start [2025-03-19 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14718998', 'tblTempUsageDetail_20' ) end [2025-03-19 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:55:21] Production.INFO: ==19297== Releasing lock... [2025-03-19 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:55:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-19 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:56:05 [end_date_ymd] => 2025-03-19 23:56:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:56:05' and `end` < '2025-03-19 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-03-19 23:56:17] Production.INFO: count ==1121 [2025-03-19 23:56:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:56:05 - End Time 2025-03-19 23:56:05 [2025-03-19 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719003', 'tblTempUsageDetail_20' ) start [2025-03-19 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719003', 'tblTempUsageDetail_20' ) end [2025-03-19 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719003', 'tblTempVendorCDR_20' ) start [2025-03-19 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719003', 'tblTempVendorCDR_20' ) end [2025-03-19 23:56:18] Production.INFO: ProcessCDR(1,14719003,1,1,2) [2025-03-19 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719003', 'tblTempUsageDetail_20' ) start [2025-03-19 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719003', 'tblTempUsageDetail_20' ) end [2025-03-19 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:56:21] Production.INFO: ==19379== Releasing lock... [2025-03-19 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:56:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-19 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:57:05 [end_date_ymd] => 2025-03-19 23:57:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:57:05' and `end` < '2025-03-19 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-03-19 23:57:17] Production.INFO: count ==1116 [2025-03-19 23:57:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:57:05 - End Time 2025-03-19 23:57:05 [2025-03-19 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719008', 'tblTempUsageDetail_20' ) start [2025-03-19 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719008', 'tblTempUsageDetail_20' ) end [2025-03-19 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719008', 'tblTempVendorCDR_20' ) start [2025-03-19 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719008', 'tblTempVendorCDR_20' ) end [2025-03-19 23:57:17] Production.INFO: ProcessCDR(1,14719008,1,1,2) [2025-03-19 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719008', 'tblTempUsageDetail_20' ) start [2025-03-19 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719008', 'tblTempUsageDetail_20' ) end [2025-03-19 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:57:22] Production.INFO: ==19456== Releasing lock... [2025-03-19 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:57:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-19 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:58:05 [end_date_ymd] => 2025-03-19 23:58:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:58:05' and `end` < '2025-03-19 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-03-19 23:58:17] Production.INFO: count ==1108 [2025-03-19 23:58:17] Production.ERROR: pbx CDR StartTime 2025-03-19 20:58:05 - End Time 2025-03-19 23:58:05 [2025-03-19 23:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719013', 'tblTempUsageDetail_20' ) start [2025-03-19 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719013', 'tblTempUsageDetail_20' ) end [2025-03-19 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719013', 'tblTempVendorCDR_20' ) start [2025-03-19 23:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719013', 'tblTempVendorCDR_20' ) end [2025-03-19 23:58:17] Production.INFO: ProcessCDR(1,14719013,1,1,2) [2025-03-19 23:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719013', 'tblTempUsageDetail_20' ) start [2025-03-19 23:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719013', 'tblTempUsageDetail_20' ) end [2025-03-19 23:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:58:20] Production.INFO: ==19534== Releasing lock... [2025-03-19 23:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:58:20] Production.INFO: 36.5 MB #Memory Used# [2025-03-19 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-19 20:59:05 [end_date_ymd] => 2025-03-19 23:59:05 [RateCDR] => 1 ) [2025-03-19 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-03-19 20:59:05' and `end` < '2025-03-19 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-03-19 23:59:18] Production.INFO: count ==1098 [2025-03-19 23:59:18] Production.ERROR: pbx CDR StartTime 2025-03-19 20:59:05 - End Time 2025-03-19 23:59:05 [2025-03-19 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-19 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719018', 'tblTempUsageDetail_20' ) start [2025-03-19 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14719018', 'tblTempUsageDetail_20' ) end [2025-03-19 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719018', 'tblTempVendorCDR_20' ) start [2025-03-19 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14719018', 'tblTempVendorCDR_20' ) end [2025-03-19 23:59:18] Production.INFO: ProcessCDR(1,14719018,1,1,2) [2025-03-19 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14719018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14719018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-19 23:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14719018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14719018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-19 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719018', 'tblTempUsageDetail_20' ) start [2025-03-19 23:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14719018', 'tblTempUsageDetail_20' ) end [2025-03-19 23:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-19 23:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-19 23:59:23] Production.INFO: ==19612== Releasing lock... [2025-03-19 23:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-19 23:59:23] Production.INFO: 36.5 MB #Memory Used#