[2025-03-21 00:00:05] Production.INFO: next invoice date [2025-03-21 00:00:05] Production.INFO: 2025-04-21 [2025-03-21 00:00:05] Production.INFO: getdaysdiff [2025-03-21 00:00:05] Production.INFO: +31 [2025-03-21 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (18,19,1,31,31,'RMScheduler',2025-03-21 00:00:05,1,0,,,0) [2025-03-21 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:00:06 [end_date_ymd] => 2025-03-21 00:00:06 [RateCDR] => 1 ) [2025-03-21 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-20 21:00:06' and `end` < '2025-03-21 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-21 00:00:19] Production.INFO: count ==923 [2025-03-21 00:00:19] Production.ERROR: pbx CDR StartTime 2025-03-20 21:00:06 - End Time 2025-03-21 00:00:06 [2025-03-21 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726364', 'tblTempUsageDetail_20' ) start [2025-03-21 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726364', 'tblTempUsageDetail_20' ) end [2025-03-21 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726364', 'tblTempVendorCDR_20' ) start [2025-03-21 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726364', 'tblTempVendorCDR_20' ) end [2025-03-21 00:00:19] Production.INFO: ProcessCDR(1,14726364,1,1,2) [2025-03-21 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726364', 'tblTempUsageDetail_20' ) start [2025-03-21 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726364', 'tblTempUsageDetail_20' ) end [2025-03-21 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:00:25] Production.INFO: ==24301== Releasing lock... [2025-03-21 00:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:00:25] Production.INFO: 37 MB #Memory Used# [2025-03-21 00:01:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:01:07 [end_date_ymd] => 2025-03-21 00:01:07 [RateCDR] => 1 ) [2025-03-21 00:01: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-20 21:01:07' and `end` < '2025-03-21 00:01: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-21 00:01:20] Production.INFO: count ==498 [2025-03-21 00:01:21] Production.ERROR: pbx CDR StartTime 2025-03-20 21:01:07 - End Time 2025-03-21 00:01:07 [2025-03-21 00:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726369', 'tblTempUsageDetail_20' ) start [2025-03-21 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726369', 'tblTempUsageDetail_20' ) end [2025-03-21 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726369', 'tblTempVendorCDR_20' ) start [2025-03-21 00:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726369', 'tblTempVendorCDR_20' ) end [2025-03-21 00:01:21] Production.INFO: ProcessCDR(1,14726369,1,1,2) [2025-03-21 00:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726369', 'tblTempUsageDetail_20' ) start [2025-03-21 00:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726369', 'tblTempUsageDetail_20' ) end [2025-03-21 00:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:01:26] Production.INFO: ==24443== Releasing lock... [2025-03-21 00:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:01:26] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:02:05 [end_date_ymd] => 2025-03-21 00:02:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:02:05' and `end` < '2025-03-21 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-21 00:02:17] Production.INFO: count ==493 [2025-03-21 00:02:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:02:05 - End Time 2025-03-21 00:02:05 [2025-03-21 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726374', 'tblTempUsageDetail_20' ) start [2025-03-21 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726374', 'tblTempUsageDetail_20' ) end [2025-03-21 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726374', 'tblTempVendorCDR_20' ) start [2025-03-21 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726374', 'tblTempVendorCDR_20' ) end [2025-03-21 00:02:18] Production.INFO: ProcessCDR(1,14726374,1,1,2) [2025-03-21 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726374', 'tblTempUsageDetail_20' ) start [2025-03-21 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726374', 'tblTempUsageDetail_20' ) end [2025-03-21 00:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:02:21] Production.INFO: ==24581== Releasing lock... [2025-03-21 00:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:02:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:03:05 [end_date_ymd] => 2025-03-21 00:03:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:03:05' and `end` < '2025-03-21 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-21 00:03:17] Production.INFO: count ==492 [2025-03-21 00:03:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:03:05 - End Time 2025-03-21 00:03:05 [2025-03-21 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726379', 'tblTempUsageDetail_20' ) start [2025-03-21 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726379', 'tblTempUsageDetail_20' ) end [2025-03-21 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726379', 'tblTempVendorCDR_20' ) start [2025-03-21 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726379', 'tblTempVendorCDR_20' ) end [2025-03-21 00:03:18] Production.INFO: ProcessCDR(1,14726379,1,1,2) [2025-03-21 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726379', 'tblTempUsageDetail_20' ) start [2025-03-21 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726379', 'tblTempUsageDetail_20' ) end [2025-03-21 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:03:21] Production.INFO: ==24712== Releasing lock... [2025-03-21 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:03:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:04:05 [end_date_ymd] => 2025-03-21 00:04:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:04:05' and `end` < '2025-03-21 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-21 00:04:18] Production.INFO: count ==489 [2025-03-21 00:04:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:04:05 - End Time 2025-03-21 00:04:05 [2025-03-21 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726384', 'tblTempUsageDetail_20' ) start [2025-03-21 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726384', 'tblTempUsageDetail_20' ) end [2025-03-21 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726384', 'tblTempVendorCDR_20' ) start [2025-03-21 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726384', 'tblTempVendorCDR_20' ) end [2025-03-21 00:04:18] Production.INFO: ProcessCDR(1,14726384,1,1,2) [2025-03-21 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726384', 'tblTempUsageDetail_20' ) start [2025-03-21 00:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726384', 'tblTempUsageDetail_20' ) end [2025-03-21 00:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:04:22] Production.INFO: ==24840== Releasing lock... [2025-03-21 00:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:04:22] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:05:05 [end_date_ymd] => 2025-03-21 00:05:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:05:05' and `end` < '2025-03-21 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-21 00:05:33] Production.INFO: count ==492 [2025-03-21 00:05:33] Production.ERROR: pbx CDR StartTime 2025-03-20 21:05:05 - End Time 2025-03-21 00:05:05 [2025-03-21 00:05:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726389', 'tblTempUsageDetail_20' ) start [2025-03-21 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726389', 'tblTempUsageDetail_20' ) end [2025-03-21 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726389', 'tblTempVendorCDR_20' ) start [2025-03-21 00:05:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726389', 'tblTempVendorCDR_20' ) end [2025-03-21 00:05:33] Production.INFO: ProcessCDR(1,14726389,1,1,2) [2025-03-21 00:05:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726389', 'tblTempUsageDetail_20' ) start [2025-03-21 00:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726389', 'tblTempUsageDetail_20' ) end [2025-03-21 00:05:37] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:05:37] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:05:37] Production.INFO: ==24969== Releasing lock... [2025-03-21 00:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:05:37] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:06:05 [end_date_ymd] => 2025-03-21 00:06:05 [RateCDR] => 1 ) [2025-03-21 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 21:06:05' and `end` < '2025-03-21 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 00:06:26] Production.INFO: count ==495 [2025-03-21 00:06:26] Production.ERROR: pbx CDR StartTime 2025-03-20 21:06:05 - End Time 2025-03-21 00:06:05 [2025-03-21 00:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726394', 'tblTempUsageDetail_20' ) start [2025-03-21 00:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726394', 'tblTempUsageDetail_20' ) end [2025-03-21 00:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726394', 'tblTempVendorCDR_20' ) start [2025-03-21 00:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726394', 'tblTempVendorCDR_20' ) end [2025-03-21 00:06:26] Production.INFO: ProcessCDR(1,14726394,1,1,2) [2025-03-21 00:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726394', 'tblTempUsageDetail_20' ) start [2025-03-21 00:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726394', 'tblTempUsageDetail_20' ) end [2025-03-21 00:06:29] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:06:29] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:06:29] Production.INFO: ==25099== Releasing lock... [2025-03-21 00:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:06:29] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:07:05 [end_date_ymd] => 2025-03-21 00:07:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:07:05' and `end` < '2025-03-21 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-21 00:07:28] Production.INFO: count ==483 [2025-03-21 00:07:28] Production.ERROR: pbx CDR StartTime 2025-03-20 21:07:05 - End Time 2025-03-21 00:07:05 [2025-03-21 00:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726399', 'tblTempUsageDetail_20' ) start [2025-03-21 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726399', 'tblTempUsageDetail_20' ) end [2025-03-21 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726399', 'tblTempVendorCDR_20' ) start [2025-03-21 00:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726399', 'tblTempVendorCDR_20' ) end [2025-03-21 00:07:28] Production.INFO: ProcessCDR(1,14726399,1,1,2) [2025-03-21 00:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726399', 'tblTempUsageDetail_20' ) start [2025-03-21 00:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726399', 'tblTempUsageDetail_20' ) end [2025-03-21 00:07:31] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:07:31] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:07:31] Production.INFO: ==25225== Releasing lock... [2025-03-21 00:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:07:31] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:08:05 [end_date_ymd] => 2025-03-21 00:08:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:08:05' and `end` < '2025-03-21 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-21 00:08:21] Production.INFO: count ==482 [2025-03-21 00:08:21] Production.ERROR: pbx CDR StartTime 2025-03-20 21:08:05 - End Time 2025-03-21 00:08:05 [2025-03-21 00:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726404', 'tblTempUsageDetail_20' ) start [2025-03-21 00:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726404', 'tblTempUsageDetail_20' ) end [2025-03-21 00:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726404', 'tblTempVendorCDR_20' ) start [2025-03-21 00:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726404', 'tblTempVendorCDR_20' ) end [2025-03-21 00:08:21] Production.INFO: ProcessCDR(1,14726404,1,1,2) [2025-03-21 00:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726404', 'tblTempUsageDetail_20' ) start [2025-03-21 00:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726404', 'tblTempUsageDetail_20' ) end [2025-03-21 00:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:08:24] Production.INFO: ==25353== Releasing lock... [2025-03-21 00:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:08:24] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 00:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:09:06 [end_date_ymd] => 2025-03-21 00:09:06 [RateCDR] => 1 ) [2025-03-21 00: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-20 21:09:06' and `end` < '2025-03-21 00: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-21 00:09:21] Production.INFO: count ==478 [2025-03-21 00:09:21] Production.ERROR: pbx CDR StartTime 2025-03-20 21:09:06 - End Time 2025-03-21 00:09:06 [2025-03-21 00:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726409', 'tblTempUsageDetail_20' ) start [2025-03-21 00:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726409', 'tblTempUsageDetail_20' ) end [2025-03-21 00:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726409', 'tblTempVendorCDR_20' ) start [2025-03-21 00:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726409', 'tblTempVendorCDR_20' ) end [2025-03-21 00:09:21] Production.INFO: ProcessCDR(1,14726409,1,1,2) [2025-03-21 00:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726409', 'tblTempUsageDetail_20' ) start [2025-03-21 00:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726409', 'tblTempUsageDetail_20' ) end [2025-03-21 00:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:09:25] Production.INFO: ==25517== Releasing lock... [2025-03-21 00:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:09:25] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:10:06 [end_date_ymd] => 2025-03-21 00:10:06 [RateCDR] => 1 ) [2025-03-21 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-20 21:10:06' and `end` < '2025-03-21 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-21 00:10:18] Production.INFO: count ==485 [2025-03-21 00:10:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:10:06 - End Time 2025-03-21 00:10:06 [2025-03-21 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726415', 'tblTempUsageDetail_20' ) start [2025-03-21 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726415', 'tblTempUsageDetail_20' ) end [2025-03-21 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726415', 'tblTempVendorCDR_20' ) start [2025-03-21 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726415', 'tblTempVendorCDR_20' ) end [2025-03-21 00:10:18] Production.INFO: ProcessCDR(1,14726415,1,1,2) [2025-03-21 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726415', 'tblTempUsageDetail_20' ) start [2025-03-21 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726415', 'tblTempUsageDetail_20' ) end [2025-03-21 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:10:22] Production.INFO: ==25639== Releasing lock... [2025-03-21 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:10:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:11:05 [end_date_ymd] => 2025-03-21 00:11:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:11:05' and `end` < '2025-03-21 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-21 00:11:18] Production.INFO: count ==498 [2025-03-21 00:11:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:11:05 - End Time 2025-03-21 00:11:05 [2025-03-21 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726420', 'tblTempUsageDetail_20' ) start [2025-03-21 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726420', 'tblTempUsageDetail_20' ) end [2025-03-21 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726420', 'tblTempVendorCDR_20' ) start [2025-03-21 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726420', 'tblTempVendorCDR_20' ) end [2025-03-21 00:11:18] Production.INFO: ProcessCDR(1,14726420,1,1,2) [2025-03-21 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726420', 'tblTempUsageDetail_20' ) start [2025-03-21 00:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726420', 'tblTempUsageDetail_20' ) end [2025-03-21 00:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:11:23] Production.INFO: ==25772== Releasing lock... [2025-03-21 00:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:11:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:12:05 [end_date_ymd] => 2025-03-21 00:12:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:12:05' and `end` < '2025-03-21 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-21 00:12:17] Production.INFO: count ==496 [2025-03-21 00:12:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:12:05 - End Time 2025-03-21 00:12:05 [2025-03-21 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726425', 'tblTempUsageDetail_20' ) start [2025-03-21 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726425', 'tblTempUsageDetail_20' ) end [2025-03-21 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726425', 'tblTempVendorCDR_20' ) start [2025-03-21 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726425', 'tblTempVendorCDR_20' ) end [2025-03-21 00:12:18] Production.INFO: ProcessCDR(1,14726425,1,1,2) [2025-03-21 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726425', 'tblTempUsageDetail_20' ) start [2025-03-21 00:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726425', 'tblTempUsageDetail_20' ) end [2025-03-21 00:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:12:23] Production.INFO: ==25901== Releasing lock... [2025-03-21 00:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:12:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:13:05 [end_date_ymd] => 2025-03-21 00:13:05 [RateCDR] => 1 ) [2025-03-21 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 21:13:05' and `end` < '2025-03-21 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 00:13:18] Production.INFO: count ==494 [2025-03-21 00:13:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:13:05 - End Time 2025-03-21 00:13:05 [2025-03-21 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726430', 'tblTempUsageDetail_20' ) start [2025-03-21 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726430', 'tblTempUsageDetail_20' ) end [2025-03-21 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726430', 'tblTempVendorCDR_20' ) start [2025-03-21 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726430', 'tblTempVendorCDR_20' ) end [2025-03-21 00:13:18] Production.INFO: ProcessCDR(1,14726430,1,1,2) [2025-03-21 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726430', 'tblTempUsageDetail_20' ) start [2025-03-21 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726430', 'tblTempUsageDetail_20' ) end [2025-03-21 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:13:21] Production.INFO: ==26024== Releasing lock... [2025-03-21 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:13:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 00:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:14:04 [end_date_ymd] => 2025-03-21 00:14:04 [RateCDR] => 1 ) [2025-03-21 00:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 21:14:04' and `end` < '2025-03-21 00:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 00:14:17] Production.INFO: count ==494 [2025-03-21 00:14:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:14:04 - End Time 2025-03-21 00:14:04 [2025-03-21 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726435', 'tblTempUsageDetail_20' ) start [2025-03-21 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726435', 'tblTempUsageDetail_20' ) end [2025-03-21 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726435', 'tblTempVendorCDR_20' ) start [2025-03-21 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726435', 'tblTempVendorCDR_20' ) end [2025-03-21 00:14:17] Production.INFO: ProcessCDR(1,14726435,1,1,2) [2025-03-21 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726435', 'tblTempUsageDetail_20' ) start [2025-03-21 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726435', 'tblTempUsageDetail_20' ) end [2025-03-21 00:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:14:20] Production.INFO: ==26146== Releasing lock... [2025-03-21 00:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:14:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:15:05 [end_date_ymd] => 2025-03-21 00:15:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:15:05' and `end` < '2025-03-21 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-21 00:15:17] Production.INFO: count ==488 [2025-03-21 00:15:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:15:05 - End Time 2025-03-21 00:15:05 [2025-03-21 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726440', 'tblTempUsageDetail_20' ) start [2025-03-21 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726440', 'tblTempUsageDetail_20' ) end [2025-03-21 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726440', 'tblTempVendorCDR_20' ) start [2025-03-21 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726440', 'tblTempVendorCDR_20' ) end [2025-03-21 00:15:18] Production.INFO: ProcessCDR(1,14726440,1,1,2) [2025-03-21 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726440', 'tblTempUsageDetail_20' ) start [2025-03-21 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726440', 'tblTempUsageDetail_20' ) end [2025-03-21 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:15:21] Production.INFO: ==26283== Releasing lock... [2025-03-21 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:16:05 [end_date_ymd] => 2025-03-21 00:16:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:16:05' and `end` < '2025-03-21 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-21 00:16:18] Production.INFO: count ==482 [2025-03-21 00:16:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:16:05 - End Time 2025-03-21 00:16:05 [2025-03-21 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726445', 'tblTempUsageDetail_20' ) start [2025-03-21 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726445', 'tblTempUsageDetail_20' ) end [2025-03-21 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726445', 'tblTempVendorCDR_20' ) start [2025-03-21 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726445', 'tblTempVendorCDR_20' ) end [2025-03-21 00:16:18] Production.INFO: ProcessCDR(1,14726445,1,1,2) [2025-03-21 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726445', 'tblTempUsageDetail_20' ) start [2025-03-21 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726445', 'tblTempUsageDetail_20' ) end [2025-03-21 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:16:21] Production.INFO: ==26413== Releasing lock... [2025-03-21 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:16:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:17:05 [end_date_ymd] => 2025-03-21 00:17:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:17:05' and `end` < '2025-03-21 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-21 00:17:17] Production.INFO: count ==487 [2025-03-21 00:17:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:17:05 - End Time 2025-03-21 00:17:05 [2025-03-21 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726450', 'tblTempUsageDetail_20' ) start [2025-03-21 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726450', 'tblTempUsageDetail_20' ) end [2025-03-21 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726450', 'tblTempVendorCDR_20' ) start [2025-03-21 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726450', 'tblTempVendorCDR_20' ) end [2025-03-21 00:17:17] Production.INFO: ProcessCDR(1,14726450,1,1,2) [2025-03-21 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726450', 'tblTempUsageDetail_20' ) start [2025-03-21 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726450', 'tblTempUsageDetail_20' ) end [2025-03-21 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:17:21] Production.INFO: ==26543== Releasing lock... [2025-03-21 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:17:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:18:06 [end_date_ymd] => 2025-03-21 00:18:06 [RateCDR] => 1 ) [2025-03-21 00: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-20 21:18:06' and `end` < '2025-03-21 00: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-21 00:18:19] Production.INFO: count ==478 [2025-03-21 00:18:19] Production.ERROR: pbx CDR StartTime 2025-03-20 21:18:06 - End Time 2025-03-21 00:18:06 [2025-03-21 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726455', 'tblTempUsageDetail_20' ) start [2025-03-21 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726455', 'tblTempUsageDetail_20' ) end [2025-03-21 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726455', 'tblTempVendorCDR_20' ) start [2025-03-21 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726455', 'tblTempVendorCDR_20' ) end [2025-03-21 00:18:19] Production.INFO: ProcessCDR(1,14726455,1,1,2) [2025-03-21 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726455', 'tblTempUsageDetail_20' ) start [2025-03-21 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726455', 'tblTempUsageDetail_20' ) end [2025-03-21 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:18:22] Production.INFO: ==26677== Releasing lock... [2025-03-21 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:18:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:19:05 [end_date_ymd] => 2025-03-21 00:19:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:19:05' and `end` < '2025-03-21 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-21 00:19:17] Production.INFO: count ==479 [2025-03-21 00:19:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:19:05 - End Time 2025-03-21 00:19:05 [2025-03-21 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726460', 'tblTempUsageDetail_20' ) start [2025-03-21 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726460', 'tblTempUsageDetail_20' ) end [2025-03-21 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726460', 'tblTempVendorCDR_20' ) start [2025-03-21 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726460', 'tblTempVendorCDR_20' ) end [2025-03-21 00:19:18] Production.INFO: ProcessCDR(1,14726460,1,1,2) [2025-03-21 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726460', 'tblTempUsageDetail_20' ) start [2025-03-21 00:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726460', 'tblTempUsageDetail_20' ) end [2025-03-21 00:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:19:23] Production.INFO: ==26797== Releasing lock... [2025-03-21 00:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:19:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:20:06 [end_date_ymd] => 2025-03-21 00:20:06 [RateCDR] => 1 ) [2025-03-21 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-20 21:20:06' and `end` < '2025-03-21 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-21 00:20:18] Production.INFO: count ==487 [2025-03-21 00:20:19] Production.ERROR: pbx CDR StartTime 2025-03-20 21:20:06 - End Time 2025-03-21 00:20:06 [2025-03-21 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726466', 'tblTempUsageDetail_20' ) start [2025-03-21 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726466', 'tblTempUsageDetail_20' ) end [2025-03-21 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726466', 'tblTempVendorCDR_20' ) start [2025-03-21 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726466', 'tblTempVendorCDR_20' ) end [2025-03-21 00:20:19] Production.INFO: ProcessCDR(1,14726466,1,1,2) [2025-03-21 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726466', 'tblTempUsageDetail_20' ) start [2025-03-21 00:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726466', 'tblTempUsageDetail_20' ) end [2025-03-21 00:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:20:24] Production.INFO: ==26899== Releasing lock... [2025-03-21 00:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:20:24] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:21:05 [end_date_ymd] => 2025-03-21 00:21:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:21:05' and `end` < '2025-03-21 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-21 00:21:17] Production.INFO: count ==488 [2025-03-21 00:21:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:21:05 - End Time 2025-03-21 00:21:05 [2025-03-21 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726471', 'tblTempUsageDetail_20' ) start [2025-03-21 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726471', 'tblTempUsageDetail_20' ) end [2025-03-21 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726471', 'tblTempVendorCDR_20' ) start [2025-03-21 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726471', 'tblTempVendorCDR_20' ) end [2025-03-21 00:21:18] Production.INFO: ProcessCDR(1,14726471,1,1,2) [2025-03-21 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726471', 'tblTempUsageDetail_20' ) start [2025-03-21 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726471', 'tblTempUsageDetail_20' ) end [2025-03-21 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:21:21] Production.INFO: ==26987== Releasing lock... [2025-03-21 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:21:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:22:05 [end_date_ymd] => 2025-03-21 00:22:05 [RateCDR] => 1 ) [2025-03-21 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 21:22:05' and `end` < '2025-03-21 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 00:22:17] Production.INFO: count ==487 [2025-03-21 00:22:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:22:05 - End Time 2025-03-21 00:22:05 [2025-03-21 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726476', 'tblTempUsageDetail_20' ) start [2025-03-21 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726476', 'tblTempUsageDetail_20' ) end [2025-03-21 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726476', 'tblTempVendorCDR_20' ) start [2025-03-21 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726476', 'tblTempVendorCDR_20' ) end [2025-03-21 00:22:17] Production.INFO: ProcessCDR(1,14726476,1,1,2) [2025-03-21 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726476', 'tblTempUsageDetail_20' ) start [2025-03-21 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726476', 'tblTempUsageDetail_20' ) end [2025-03-21 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:22:21] Production.INFO: ==27067== Releasing lock... [2025-03-21 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:22:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:23:05 [end_date_ymd] => 2025-03-21 00:23:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:23:05' and `end` < '2025-03-21 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-21 00:23:17] Production.INFO: count ==478 [2025-03-21 00:23:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:23:05 - End Time 2025-03-21 00:23:05 [2025-03-21 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726481', 'tblTempUsageDetail_20' ) start [2025-03-21 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726481', 'tblTempUsageDetail_20' ) end [2025-03-21 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726481', 'tblTempVendorCDR_20' ) start [2025-03-21 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726481', 'tblTempVendorCDR_20' ) end [2025-03-21 00:23:18] Production.INFO: ProcessCDR(1,14726481,1,1,2) [2025-03-21 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726481', 'tblTempUsageDetail_20' ) start [2025-03-21 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726481', 'tblTempUsageDetail_20' ) end [2025-03-21 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:23:21] Production.INFO: ==27149== Releasing lock... [2025-03-21 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:23:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:24:05 [end_date_ymd] => 2025-03-21 00:24:05 [RateCDR] => 1 ) [2025-03-21 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 21:24:05' and `end` < '2025-03-21 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 00:24:17] Production.INFO: count ==478 [2025-03-21 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:24:05 - End Time 2025-03-21 00:24:05 [2025-03-21 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726486', 'tblTempUsageDetail_20' ) start [2025-03-21 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726486', 'tblTempUsageDetail_20' ) end [2025-03-21 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726486', 'tblTempVendorCDR_20' ) start [2025-03-21 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726486', 'tblTempVendorCDR_20' ) end [2025-03-21 00:24:18] Production.INFO: ProcessCDR(1,14726486,1,1,2) [2025-03-21 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726486', 'tblTempUsageDetail_20' ) start [2025-03-21 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726486', 'tblTempUsageDetail_20' ) end [2025-03-21 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:24:21] Production.INFO: ==27272== Releasing lock... [2025-03-21 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:24:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:25:05 [end_date_ymd] => 2025-03-21 00:25:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:25:05' and `end` < '2025-03-21 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-21 00:25:17] Production.INFO: count ==478 [2025-03-21 00:25:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:25:05 - End Time 2025-03-21 00:25:05 [2025-03-21 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726491', 'tblTempUsageDetail_20' ) start [2025-03-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726491', 'tblTempUsageDetail_20' ) end [2025-03-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726491', 'tblTempVendorCDR_20' ) start [2025-03-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726491', 'tblTempVendorCDR_20' ) end [2025-03-21 00:25:18] Production.INFO: ProcessCDR(1,14726491,1,1,2) [2025-03-21 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726491', 'tblTempUsageDetail_20' ) start [2025-03-21 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726491', 'tblTempUsageDetail_20' ) end [2025-03-21 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:25:21] Production.INFO: ==27356== Releasing lock... [2025-03-21 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:25:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:26:06 [end_date_ymd] => 2025-03-21 00:26:06 [RateCDR] => 1 ) [2025-03-21 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-20 21:26:06' and `end` < '2025-03-21 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-21 00:26:18] Production.INFO: count ==479 [2025-03-21 00:26:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:26:06 - End Time 2025-03-21 00:26:06 [2025-03-21 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726496', 'tblTempUsageDetail_20' ) start [2025-03-21 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726496', 'tblTempUsageDetail_20' ) end [2025-03-21 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726496', 'tblTempVendorCDR_20' ) start [2025-03-21 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726496', 'tblTempVendorCDR_20' ) end [2025-03-21 00:26:18] Production.INFO: ProcessCDR(1,14726496,1,1,2) [2025-03-21 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726496', 'tblTempUsageDetail_20' ) start [2025-03-21 00:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726496', 'tblTempUsageDetail_20' ) end [2025-03-21 00:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:26:22] Production.INFO: ==27444== Releasing lock... [2025-03-21 00:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:26:22] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:27:05 [end_date_ymd] => 2025-03-21 00:27:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:27:05' and `end` < '2025-03-21 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-21 00:27:17] Production.INFO: count ==479 [2025-03-21 00:27:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:27:05 - End Time 2025-03-21 00:27:05 [2025-03-21 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726501', 'tblTempUsageDetail_20' ) start [2025-03-21 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726501', 'tblTempUsageDetail_20' ) end [2025-03-21 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726501', 'tblTempVendorCDR_20' ) start [2025-03-21 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726501', 'tblTempVendorCDR_20' ) end [2025-03-21 00:27:18] Production.INFO: ProcessCDR(1,14726501,1,1,2) [2025-03-21 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726501', 'tblTempUsageDetail_20' ) start [2025-03-21 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726501', 'tblTempUsageDetail_20' ) end [2025-03-21 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:27:21] Production.INFO: ==27522== Releasing lock... [2025-03-21 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:27:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:28:06 [end_date_ymd] => 2025-03-21 00:28:06 [RateCDR] => 1 ) [2025-03-21 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-20 21:28:06' and `end` < '2025-03-21 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-21 00:28:18] Production.INFO: count ==473 [2025-03-21 00:28:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:28:06 - End Time 2025-03-21 00:28:06 [2025-03-21 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726506', 'tblTempUsageDetail_20' ) start [2025-03-21 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726506', 'tblTempUsageDetail_20' ) end [2025-03-21 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726506', 'tblTempVendorCDR_20' ) start [2025-03-21 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726506', 'tblTempVendorCDR_20' ) end [2025-03-21 00:28:18] Production.INFO: ProcessCDR(1,14726506,1,1,2) [2025-03-21 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726506', 'tblTempUsageDetail_20' ) start [2025-03-21 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726506', 'tblTempUsageDetail_20' ) end [2025-03-21 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:28:22] Production.INFO: ==27616== Releasing lock... [2025-03-21 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:28:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:29:05 [end_date_ymd] => 2025-03-21 00:29:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:29:05' and `end` < '2025-03-21 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-21 00:29:17] Production.INFO: count ==464 [2025-03-21 00:29:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:29:05 - End Time 2025-03-21 00:29:05 [2025-03-21 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726511', 'tblTempUsageDetail_20' ) start [2025-03-21 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726511', 'tblTempUsageDetail_20' ) end [2025-03-21 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726511', 'tblTempVendorCDR_20' ) start [2025-03-21 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726511', 'tblTempVendorCDR_20' ) end [2025-03-21 00:29:18] Production.INFO: ProcessCDR(1,14726511,1,1,2) [2025-03-21 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726511', 'tblTempUsageDetail_20' ) start [2025-03-21 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726511', 'tblTempUsageDetail_20' ) end [2025-03-21 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:29:21] Production.INFO: ==27697== Releasing lock... [2025-03-21 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:30:06 [end_date_ymd] => 2025-03-21 00:30:06 [RateCDR] => 1 ) [2025-03-21 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-20 21:30:06' and `end` < '2025-03-21 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-21 00:30:18] Production.INFO: count ==466 [2025-03-21 00:30:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:30:06 - End Time 2025-03-21 00:30:06 [2025-03-21 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726517', 'tblTempUsageDetail_20' ) start [2025-03-21 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726517', 'tblTempUsageDetail_20' ) end [2025-03-21 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726517', 'tblTempVendorCDR_20' ) start [2025-03-21 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726517', 'tblTempVendorCDR_20' ) end [2025-03-21 00:30:18] Production.INFO: ProcessCDR(1,14726517,1,1,2) [2025-03-21 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726517', 'tblTempUsageDetail_20' ) start [2025-03-21 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726517', 'tblTempUsageDetail_20' ) end [2025-03-21 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:30:22] Production.INFO: ==27782== Releasing lock... [2025-03-21 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:30:22] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:31:06 [end_date_ymd] => 2025-03-21 00:31:06 [RateCDR] => 1 ) [2025-03-21 00:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 21:31:06' and `end` < '2025-03-21 00:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 00:31:18] Production.INFO: count ==458 [2025-03-21 00:31:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:31:06 - End Time 2025-03-21 00:31:06 [2025-03-21 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726522', 'tblTempUsageDetail_20' ) start [2025-03-21 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726522', 'tblTempUsageDetail_20' ) end [2025-03-21 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726522', 'tblTempVendorCDR_20' ) start [2025-03-21 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726522', 'tblTempVendorCDR_20' ) end [2025-03-21 00:31:18] Production.INFO: ProcessCDR(1,14726522,1,1,2) [2025-03-21 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726522', 'tblTempUsageDetail_20' ) start [2025-03-21 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726522', 'tblTempUsageDetail_20' ) end [2025-03-21 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:31:22] Production.INFO: ==27875== Releasing lock... [2025-03-21 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:31:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-21 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:32:06 [end_date_ymd] => 2025-03-21 00:32:06 [RateCDR] => 1 ) [2025-03-21 00: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-20 21:32:06' and `end` < '2025-03-21 00: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-21 00:32:18] Production.INFO: count ==450 [2025-03-21 00:32:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:32:06 - End Time 2025-03-21 00:32:06 [2025-03-21 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726527', 'tblTempUsageDetail_20' ) start [2025-03-21 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726527', 'tblTempUsageDetail_20' ) end [2025-03-21 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726527', 'tblTempVendorCDR_20' ) start [2025-03-21 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726527', 'tblTempVendorCDR_20' ) end [2025-03-21 00:32:18] Production.INFO: ProcessCDR(1,14726527,1,1,2) [2025-03-21 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726527', 'tblTempUsageDetail_20' ) start [2025-03-21 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726527', 'tblTempUsageDetail_20' ) end [2025-03-21 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:32:22] Production.INFO: ==27962== Releasing lock... [2025-03-21 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:32:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:33:05 [end_date_ymd] => 2025-03-21 00:33:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:33:05' and `end` < '2025-03-21 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-21 00:33:17] Production.INFO: count ==446 [2025-03-21 00:33:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:33:05 - End Time 2025-03-21 00:33:05 [2025-03-21 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726532', 'tblTempUsageDetail_20' ) start [2025-03-21 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726532', 'tblTempUsageDetail_20' ) end [2025-03-21 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726532', 'tblTempVendorCDR_20' ) start [2025-03-21 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726532', 'tblTempVendorCDR_20' ) end [2025-03-21 00:33:18] Production.INFO: ProcessCDR(1,14726532,1,1,2) [2025-03-21 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726532', 'tblTempUsageDetail_20' ) start [2025-03-21 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726532', 'tblTempUsageDetail_20' ) end [2025-03-21 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:33:21] Production.INFO: ==28049== Releasing lock... [2025-03-21 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:34:05 [end_date_ymd] => 2025-03-21 00:34:05 [RateCDR] => 1 ) [2025-03-21 00: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-20 21:34:05' and `end` < '2025-03-21 00: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-21 00:34:18] Production.INFO: count ==448 [2025-03-21 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:34:05 - End Time 2025-03-21 00:34:05 [2025-03-21 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726537', 'tblTempUsageDetail_20' ) start [2025-03-21 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726537', 'tblTempUsageDetail_20' ) end [2025-03-21 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726537', 'tblTempVendorCDR_20' ) start [2025-03-21 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726537', 'tblTempVendorCDR_20' ) end [2025-03-21 00:34:18] Production.INFO: ProcessCDR(1,14726537,1,1,2) [2025-03-21 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726537', 'tblTempUsageDetail_20' ) start [2025-03-21 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726537', 'tblTempUsageDetail_20' ) end [2025-03-21 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:34:21] Production.INFO: ==28138== Releasing lock... [2025-03-21 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:34:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:35:05 [end_date_ymd] => 2025-03-21 00:35:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:35:05' and `end` < '2025-03-21 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-21 00:35:17] Production.INFO: count ==447 [2025-03-21 00:35:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:35:05 - End Time 2025-03-21 00:35:05 [2025-03-21 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726542', 'tblTempUsageDetail_20' ) start [2025-03-21 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726542', 'tblTempUsageDetail_20' ) end [2025-03-21 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726542', 'tblTempVendorCDR_20' ) start [2025-03-21 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726542', 'tblTempVendorCDR_20' ) end [2025-03-21 00:35:17] Production.INFO: ProcessCDR(1,14726542,1,1,2) [2025-03-21 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726542', 'tblTempUsageDetail_20' ) start [2025-03-21 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726542', 'tblTempUsageDetail_20' ) end [2025-03-21 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:35:20] Production.INFO: ==28223== Releasing lock... [2025-03-21 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:35:20] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:36:05 [end_date_ymd] => 2025-03-21 00:36:05 [RateCDR] => 1 ) [2025-03-21 00: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-20 21:36:05' and `end` < '2025-03-21 00: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-21 00:36:17] Production.INFO: count ==446 [2025-03-21 00:36:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:36:05 - End Time 2025-03-21 00:36:05 [2025-03-21 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726547', 'tblTempUsageDetail_20' ) start [2025-03-21 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726547', 'tblTempUsageDetail_20' ) end [2025-03-21 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726547', 'tblTempVendorCDR_20' ) start [2025-03-21 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726547', 'tblTempVendorCDR_20' ) end [2025-03-21 00:36:17] Production.INFO: ProcessCDR(1,14726547,1,1,2) [2025-03-21 00:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726547', 'tblTempUsageDetail_20' ) start [2025-03-21 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726547', 'tblTempUsageDetail_20' ) end [2025-03-21 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:36:21] Production.INFO: ==28306== Releasing lock... [2025-03-21 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:36:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:37:05 [end_date_ymd] => 2025-03-21 00:37:05 [RateCDR] => 1 ) [2025-03-21 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 21:37:05' and `end` < '2025-03-21 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 00:37:18] Production.INFO: count ==443 [2025-03-21 00:37:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:37:05 - End Time 2025-03-21 00:37:05 [2025-03-21 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726552', 'tblTempUsageDetail_20' ) start [2025-03-21 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726552', 'tblTempUsageDetail_20' ) end [2025-03-21 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726552', 'tblTempVendorCDR_20' ) start [2025-03-21 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726552', 'tblTempVendorCDR_20' ) end [2025-03-21 00:37:18] Production.INFO: ProcessCDR(1,14726552,1,1,2) [2025-03-21 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726552', 'tblTempUsageDetail_20' ) start [2025-03-21 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726552', 'tblTempUsageDetail_20' ) end [2025-03-21 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:37:21] Production.INFO: ==28385== Releasing lock... [2025-03-21 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:37:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:38:06 [end_date_ymd] => 2025-03-21 00:38:06 [RateCDR] => 1 ) [2025-03-21 00:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 21:38:06' and `end` < '2025-03-21 00:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 00:38:18] Production.INFO: count ==441 [2025-03-21 00:38:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:38:06 - End Time 2025-03-21 00:38:06 [2025-03-21 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726557', 'tblTempUsageDetail_20' ) start [2025-03-21 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726557', 'tblTempUsageDetail_20' ) end [2025-03-21 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726557', 'tblTempVendorCDR_20' ) start [2025-03-21 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726557', 'tblTempVendorCDR_20' ) end [2025-03-21 00:38:18] Production.INFO: ProcessCDR(1,14726557,1,1,2) [2025-03-21 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726557', 'tblTempUsageDetail_20' ) start [2025-03-21 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726557', 'tblTempUsageDetail_20' ) end [2025-03-21 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:38:21] Production.INFO: ==28481== Releasing lock... [2025-03-21 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:38:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:39:05 [end_date_ymd] => 2025-03-21 00:39:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:39:05' and `end` < '2025-03-21 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-21 00:39:17] Production.INFO: count ==440 [2025-03-21 00:39:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:39:05 - End Time 2025-03-21 00:39:05 [2025-03-21 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726562', 'tblTempUsageDetail_20' ) start [2025-03-21 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726562', 'tblTempUsageDetail_20' ) end [2025-03-21 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726562', 'tblTempVendorCDR_20' ) start [2025-03-21 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726562', 'tblTempVendorCDR_20' ) end [2025-03-21 00:39:18] Production.INFO: ProcessCDR(1,14726562,1,1,2) [2025-03-21 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726562', 'tblTempUsageDetail_20' ) start [2025-03-21 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726562', 'tblTempUsageDetail_20' ) end [2025-03-21 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:39:21] Production.INFO: ==28572== Releasing lock... [2025-03-21 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:39:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:40:06 [end_date_ymd] => 2025-03-21 00:40:06 [RateCDR] => 1 ) [2025-03-21 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 21:40:06' and `end` < '2025-03-21 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 00:40:19] Production.INFO: count ==449 [2025-03-21 00:40:19] Production.ERROR: pbx CDR StartTime 2025-03-20 21:40:06 - End Time 2025-03-21 00:40:06 [2025-03-21 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726567', 'tblTempUsageDetail_20' ) start [2025-03-21 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726567', 'tblTempUsageDetail_20' ) end [2025-03-21 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726567', 'tblTempVendorCDR_20' ) start [2025-03-21 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726567', 'tblTempVendorCDR_20' ) end [2025-03-21 00:40:19] Production.INFO: ProcessCDR(1,14726567,1,1,2) [2025-03-21 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726567', 'tblTempUsageDetail_20' ) start [2025-03-21 00:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726567', 'tblTempUsageDetail_20' ) end [2025-03-21 00:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:40:24] Production.INFO: ==28695== Releasing lock... [2025-03-21 00:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:40:24] Production.INFO: 31.75 MB #Memory Used# [2025-03-21 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:41:05 [end_date_ymd] => 2025-03-21 00:41:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:41:05' and `end` < '2025-03-21 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-21 00:41:17] Production.INFO: count ==473 [2025-03-21 00:41:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:41:05 - End Time 2025-03-21 00:41:05 [2025-03-21 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726573', 'tblTempUsageDetail_20' ) start [2025-03-21 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726573', 'tblTempUsageDetail_20' ) end [2025-03-21 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726573', 'tblTempVendorCDR_20' ) start [2025-03-21 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726573', 'tblTempVendorCDR_20' ) end [2025-03-21 00:41:17] Production.INFO: ProcessCDR(1,14726573,1,1,2) [2025-03-21 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726573', 'tblTempUsageDetail_20' ) start [2025-03-21 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726573', 'tblTempUsageDetail_20' ) end [2025-03-21 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:41:21] Production.INFO: ==28783== Releasing lock... [2025-03-21 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:41:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:42:05 [end_date_ymd] => 2025-03-21 00:42:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:42:05' and `end` < '2025-03-21 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-21 00:42:18] Production.INFO: count ==474 [2025-03-21 00:42:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:42:05 - End Time 2025-03-21 00:42:05 [2025-03-21 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726578', 'tblTempUsageDetail_20' ) start [2025-03-21 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726578', 'tblTempUsageDetail_20' ) end [2025-03-21 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726578', 'tblTempVendorCDR_20' ) start [2025-03-21 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726578', 'tblTempVendorCDR_20' ) end [2025-03-21 00:42:18] Production.INFO: ProcessCDR(1,14726578,1,1,2) [2025-03-21 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726578', 'tblTempUsageDetail_20' ) start [2025-03-21 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726578', 'tblTempUsageDetail_20' ) end [2025-03-21 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:42:21] Production.INFO: ==28867== Releasing lock... [2025-03-21 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:42:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:43:05 [end_date_ymd] => 2025-03-21 00:43:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:43:05' and `end` < '2025-03-21 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-21 00:43:17] Production.INFO: count ==475 [2025-03-21 00:43:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:43:05 - End Time 2025-03-21 00:43:05 [2025-03-21 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726583', 'tblTempUsageDetail_20' ) start [2025-03-21 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726583', 'tblTempUsageDetail_20' ) end [2025-03-21 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726583', 'tblTempVendorCDR_20' ) start [2025-03-21 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726583', 'tblTempVendorCDR_20' ) end [2025-03-21 00:43:17] Production.INFO: ProcessCDR(1,14726583,1,1,2) [2025-03-21 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726583', 'tblTempUsageDetail_20' ) start [2025-03-21 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726583', 'tblTempUsageDetail_20' ) end [2025-03-21 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:43:21] Production.INFO: ==28955== Releasing lock... [2025-03-21 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:43:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:44:06 [end_date_ymd] => 2025-03-21 00:44:06 [RateCDR] => 1 ) [2025-03-21 00: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-20 21:44:06' and `end` < '2025-03-21 00: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-21 00:44:18] Production.INFO: count ==465 [2025-03-21 00:44:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:44:06 - End Time 2025-03-21 00:44:06 [2025-03-21 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726588', 'tblTempUsageDetail_20' ) start [2025-03-21 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726588', 'tblTempUsageDetail_20' ) end [2025-03-21 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726588', 'tblTempVendorCDR_20' ) start [2025-03-21 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726588', 'tblTempVendorCDR_20' ) end [2025-03-21 00:44:18] Production.INFO: ProcessCDR(1,14726588,1,1,2) [2025-03-21 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726588', 'tblTempUsageDetail_20' ) start [2025-03-21 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726588', 'tblTempUsageDetail_20' ) end [2025-03-21 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:44:21] Production.INFO: ==29044== Releasing lock... [2025-03-21 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:44:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:45:05 [end_date_ymd] => 2025-03-21 00:45:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:45:05' and `end` < '2025-03-21 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-21 00:45:17] Production.INFO: count ==465 [2025-03-21 00:45:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:45:05 - End Time 2025-03-21 00:45:05 [2025-03-21 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726593', 'tblTempUsageDetail_20' ) start [2025-03-21 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726593', 'tblTempUsageDetail_20' ) end [2025-03-21 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726593', 'tblTempVendorCDR_20' ) start [2025-03-21 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726593', 'tblTempVendorCDR_20' ) end [2025-03-21 00:45:17] Production.INFO: ProcessCDR(1,14726593,1,1,2) [2025-03-21 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726593', 'tblTempUsageDetail_20' ) start [2025-03-21 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726593', 'tblTempUsageDetail_20' ) end [2025-03-21 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:45:21] Production.INFO: ==29125== Releasing lock... [2025-03-21 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:45:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:46:05 [end_date_ymd] => 2025-03-21 00:46:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:46:05' and `end` < '2025-03-21 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-21 00:46:18] Production.INFO: count ==465 [2025-03-21 00:46:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:46:05 - End Time 2025-03-21 00:46:05 [2025-03-21 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726598', 'tblTempUsageDetail_20' ) start [2025-03-21 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726598', 'tblTempUsageDetail_20' ) end [2025-03-21 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726598', 'tblTempVendorCDR_20' ) start [2025-03-21 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726598', 'tblTempVendorCDR_20' ) end [2025-03-21 00:46:18] Production.INFO: ProcessCDR(1,14726598,1,1,2) [2025-03-21 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726598', 'tblTempUsageDetail_20' ) start [2025-03-21 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726598', 'tblTempUsageDetail_20' ) end [2025-03-21 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:46:21] Production.INFO: ==29201== Releasing lock... [2025-03-21 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:46:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:47:05 [end_date_ymd] => 2025-03-21 00:47:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:47:05' and `end` < '2025-03-21 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-21 00:47:17] Production.INFO: count ==460 [2025-03-21 00:47:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:47:05 - End Time 2025-03-21 00:47:05 [2025-03-21 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726603', 'tblTempUsageDetail_20' ) start [2025-03-21 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726603', 'tblTempUsageDetail_20' ) end [2025-03-21 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726603', 'tblTempVendorCDR_20' ) start [2025-03-21 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726603', 'tblTempVendorCDR_20' ) end [2025-03-21 00:47:17] Production.INFO: ProcessCDR(1,14726603,1,1,2) [2025-03-21 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726603', 'tblTempUsageDetail_20' ) start [2025-03-21 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726603', 'tblTempUsageDetail_20' ) end [2025-03-21 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:47:21] Production.INFO: ==29291== Releasing lock... [2025-03-21 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:47:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:48:06 [end_date_ymd] => 2025-03-21 00:48:06 [RateCDR] => 1 ) [2025-03-21 00: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-20 21:48:06' and `end` < '2025-03-21 00: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-21 00:48:18] Production.INFO: count ==449 [2025-03-21 00:48:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:48:06 - End Time 2025-03-21 00:48:06 [2025-03-21 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726608', 'tblTempUsageDetail_20' ) start [2025-03-21 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726608', 'tblTempUsageDetail_20' ) end [2025-03-21 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726608', 'tblTempVendorCDR_20' ) start [2025-03-21 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726608', 'tblTempVendorCDR_20' ) end [2025-03-21 00:48:18] Production.INFO: ProcessCDR(1,14726608,1,1,2) [2025-03-21 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726608', 'tblTempUsageDetail_20' ) start [2025-03-21 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726608', 'tblTempUsageDetail_20' ) end [2025-03-21 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:48:22] Production.INFO: ==29371== Releasing lock... [2025-03-21 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:48:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:49:05 [end_date_ymd] => 2025-03-21 00:49:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:49:05' and `end` < '2025-03-21 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-21 00:49:17] Production.INFO: count ==448 [2025-03-21 00:49:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:49:05 - End Time 2025-03-21 00:49:05 [2025-03-21 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726613', 'tblTempUsageDetail_20' ) start [2025-03-21 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726613', 'tblTempUsageDetail_20' ) end [2025-03-21 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726613', 'tblTempVendorCDR_20' ) start [2025-03-21 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726613', 'tblTempVendorCDR_20' ) end [2025-03-21 00:49:17] Production.INFO: ProcessCDR(1,14726613,1,1,2) [2025-03-21 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726613', 'tblTempUsageDetail_20' ) start [2025-03-21 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726613', 'tblTempUsageDetail_20' ) end [2025-03-21 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:49:22] Production.INFO: ==29455== Releasing lock... [2025-03-21 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:49:22] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:50:06 [end_date_ymd] => 2025-03-21 00:50:06 [RateCDR] => 1 ) [2025-03-21 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-20 21:50:06' and `end` < '2025-03-21 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-21 00:50:18] Production.INFO: count ==458 [2025-03-21 00:50:19] Production.ERROR: pbx CDR StartTime 2025-03-20 21:50:06 - End Time 2025-03-21 00:50:06 [2025-03-21 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726619', 'tblTempUsageDetail_20' ) start [2025-03-21 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726619', 'tblTempUsageDetail_20' ) end [2025-03-21 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726619', 'tblTempVendorCDR_20' ) start [2025-03-21 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726619', 'tblTempVendorCDR_20' ) end [2025-03-21 00:50:19] Production.INFO: ProcessCDR(1,14726619,1,1,2) [2025-03-21 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726619', 'tblTempUsageDetail_20' ) start [2025-03-21 00:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726619', 'tblTempUsageDetail_20' ) end [2025-03-21 00:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:50:24] Production.INFO: ==29541== Releasing lock... [2025-03-21 00:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:50:24] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:51:05 [end_date_ymd] => 2025-03-21 00:51:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:51:05' and `end` < '2025-03-21 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-21 00:51:17] Production.INFO: count ==478 [2025-03-21 00:51:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:51:05 - End Time 2025-03-21 00:51:05 [2025-03-21 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726624', 'tblTempUsageDetail_20' ) start [2025-03-21 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726624', 'tblTempUsageDetail_20' ) end [2025-03-21 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726624', 'tblTempVendorCDR_20' ) start [2025-03-21 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726624', 'tblTempVendorCDR_20' ) end [2025-03-21 00:51:17] Production.INFO: ProcessCDR(1,14726624,1,1,2) [2025-03-21 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726624', 'tblTempUsageDetail_20' ) start [2025-03-21 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726624', 'tblTempUsageDetail_20' ) end [2025-03-21 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:51:22] Production.INFO: ==29618== Releasing lock... [2025-03-21 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:51:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:52:05 [end_date_ymd] => 2025-03-21 00:52:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:52:05' and `end` < '2025-03-21 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-21 00:52:17] Production.INFO: count ==478 [2025-03-21 00:52:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:52:05 - End Time 2025-03-21 00:52:05 [2025-03-21 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726629', 'tblTempUsageDetail_20' ) start [2025-03-21 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726629', 'tblTempUsageDetail_20' ) end [2025-03-21 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726629', 'tblTempVendorCDR_20' ) start [2025-03-21 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726629', 'tblTempVendorCDR_20' ) end [2025-03-21 00:52:17] Production.INFO: ProcessCDR(1,14726629,1,1,2) [2025-03-21 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726629', 'tblTempUsageDetail_20' ) start [2025-03-21 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726629', 'tblTempUsageDetail_20' ) end [2025-03-21 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:52:21] Production.INFO: ==29704== Releasing lock... [2025-03-21 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:52:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:53:05 [end_date_ymd] => 2025-03-21 00:53:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:53:05' and `end` < '2025-03-21 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-21 00:53:17] Production.INFO: count ==476 [2025-03-21 00:53:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:53:05 - End Time 2025-03-21 00:53:05 [2025-03-21 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726634', 'tblTempUsageDetail_20' ) start [2025-03-21 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726634', 'tblTempUsageDetail_20' ) end [2025-03-21 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726634', 'tblTempVendorCDR_20' ) start [2025-03-21 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726634', 'tblTempVendorCDR_20' ) end [2025-03-21 00:53:18] Production.INFO: ProcessCDR(1,14726634,1,1,2) [2025-03-21 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726634', 'tblTempUsageDetail_20' ) start [2025-03-21 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726634', 'tblTempUsageDetail_20' ) end [2025-03-21 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:53:21] Production.INFO: ==29788== Releasing lock... [2025-03-21 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:53:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-21 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:54:05 [end_date_ymd] => 2025-03-21 00:54:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:54:05' and `end` < '2025-03-21 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-21 00:54:17] Production.INFO: count ==480 [2025-03-21 00:54:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:54:05 - End Time 2025-03-21 00:54:05 [2025-03-21 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726639', 'tblTempUsageDetail_20' ) start [2025-03-21 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726639', 'tblTempUsageDetail_20' ) end [2025-03-21 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726639', 'tblTempVendorCDR_20' ) start [2025-03-21 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726639', 'tblTempVendorCDR_20' ) end [2025-03-21 00:54:18] Production.INFO: ProcessCDR(1,14726639,1,1,2) [2025-03-21 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726639', 'tblTempUsageDetail_20' ) start [2025-03-21 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726639', 'tblTempUsageDetail_20' ) end [2025-03-21 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:54:21] Production.INFO: ==29874== Releasing lock... [2025-03-21 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:54:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:55:05 [end_date_ymd] => 2025-03-21 00:55:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:55:05' and `end` < '2025-03-21 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-21 00:55:17] Production.INFO: count ==484 [2025-03-21 00:55:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:55:05 - End Time 2025-03-21 00:55:05 [2025-03-21 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726644', 'tblTempUsageDetail_20' ) start [2025-03-21 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726644', 'tblTempUsageDetail_20' ) end [2025-03-21 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726644', 'tblTempVendorCDR_20' ) start [2025-03-21 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726644', 'tblTempVendorCDR_20' ) end [2025-03-21 00:55:18] Production.INFO: ProcessCDR(1,14726644,1,1,2) [2025-03-21 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726644', 'tblTempUsageDetail_20' ) start [2025-03-21 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726644', 'tblTempUsageDetail_20' ) end [2025-03-21 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:55:21] Production.INFO: ==30003== Releasing lock... [2025-03-21 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:55:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:56:05 [end_date_ymd] => 2025-03-21 00:56:05 [RateCDR] => 1 ) [2025-03-21 00: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-20 21:56:05' and `end` < '2025-03-21 00: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-21 00:56:17] Production.INFO: count ==483 [2025-03-21 00:56:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:56:05 - End Time 2025-03-21 00:56:05 [2025-03-21 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726649', 'tblTempUsageDetail_20' ) start [2025-03-21 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726649', 'tblTempUsageDetail_20' ) end [2025-03-21 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726649', 'tblTempVendorCDR_20' ) start [2025-03-21 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726649', 'tblTempVendorCDR_20' ) end [2025-03-21 00:56:17] Production.INFO: ProcessCDR(1,14726649,1,1,2) [2025-03-21 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726649', 'tblTempUsageDetail_20' ) start [2025-03-21 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726649', 'tblTempUsageDetail_20' ) end [2025-03-21 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:56:21] Production.INFO: ==30090== Releasing lock... [2025-03-21 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:56:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:57:06 [end_date_ymd] => 2025-03-21 00:57:06 [RateCDR] => 1 ) [2025-03-21 00: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-20 21:57:06' and `end` < '2025-03-21 00: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-21 00:57:18] Production.INFO: count ==483 [2025-03-21 00:57:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:57:06 - End Time 2025-03-21 00:57:06 [2025-03-21 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726654', 'tblTempUsageDetail_20' ) start [2025-03-21 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726654', 'tblTempUsageDetail_20' ) end [2025-03-21 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726654', 'tblTempVendorCDR_20' ) start [2025-03-21 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726654', 'tblTempVendorCDR_20' ) end [2025-03-21 00:57:18] Production.INFO: ProcessCDR(1,14726654,1,1,2) [2025-03-21 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726654', 'tblTempUsageDetail_20' ) start [2025-03-21 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726654', 'tblTempUsageDetail_20' ) end [2025-03-21 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:57:21] Production.INFO: ==30182== Releasing lock... [2025-03-21 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:57:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:58:05 [end_date_ymd] => 2025-03-21 00:58:05 [RateCDR] => 1 ) [2025-03-21 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-20 21:58:05' and `end` < '2025-03-21 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-21 00:58:17] Production.INFO: count ==485 [2025-03-21 00:58:17] Production.ERROR: pbx CDR StartTime 2025-03-20 21:58:05 - End Time 2025-03-21 00:58:05 [2025-03-21 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726659', 'tblTempUsageDetail_20' ) start [2025-03-21 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726659', 'tblTempUsageDetail_20' ) end [2025-03-21 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726659', 'tblTempVendorCDR_20' ) start [2025-03-21 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726659', 'tblTempVendorCDR_20' ) end [2025-03-21 00:58:17] Production.INFO: ProcessCDR(1,14726659,1,1,2) [2025-03-21 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726659', 'tblTempUsageDetail_20' ) start [2025-03-21 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726659', 'tblTempUsageDetail_20' ) end [2025-03-21 00:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:58:20] Production.INFO: ==30259== Releasing lock... [2025-03-21 00:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:58:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 00:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 21:59:06 [end_date_ymd] => 2025-03-21 00:59:06 [RateCDR] => 1 ) [2025-03-21 00: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-20 21:59:06' and `end` < '2025-03-21 00: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-21 00:59:18] Production.INFO: count ==485 [2025-03-21 00:59:18] Production.ERROR: pbx CDR StartTime 2025-03-20 21:59:06 - End Time 2025-03-21 00:59:06 [2025-03-21 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726664', 'tblTempUsageDetail_20' ) start [2025-03-21 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726664', 'tblTempUsageDetail_20' ) end [2025-03-21 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726664', 'tblTempVendorCDR_20' ) start [2025-03-21 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726664', 'tblTempVendorCDR_20' ) end [2025-03-21 00:59:18] Production.INFO: ProcessCDR(1,14726664,1,1,2) [2025-03-21 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726664', 'tblTempUsageDetail_20' ) start [2025-03-21 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726664', 'tblTempUsageDetail_20' ) end [2025-03-21 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 00:59:21] Production.INFO: ==30340== Releasing lock... [2025-03-21 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 00:59:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:00:05 [end_date_ymd] => 2025-03-21 01:00:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:00:05' and `end` < '2025-03-21 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-21 01:00:18] Production.INFO: count ==487 [2025-03-21 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:00:05 - End Time 2025-03-21 01:00:05 [2025-03-21 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726670', 'tblTempUsageDetail_20' ) start [2025-03-21 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726670', 'tblTempUsageDetail_20' ) end [2025-03-21 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726670', 'tblTempVendorCDR_20' ) start [2025-03-21 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726670', 'tblTempVendorCDR_20' ) end [2025-03-21 01:00:18] Production.INFO: ProcessCDR(1,14726670,1,1,2) [2025-03-21 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726670', 'tblTempUsageDetail_20' ) start [2025-03-21 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726670', 'tblTempUsageDetail_20' ) end [2025-03-21 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:00:22] Production.INFO: ==30429== Releasing lock... [2025-03-21 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:00:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:01:05 [end_date_ymd] => 2025-03-21 01:01:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:01:05' and `end` < '2025-03-21 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-21 01:01:17] Production.INFO: count ==488 [2025-03-21 01:01:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:01:05 - End Time 2025-03-21 01:01:05 [2025-03-21 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726675', 'tblTempUsageDetail_20' ) start [2025-03-21 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726675', 'tblTempUsageDetail_20' ) end [2025-03-21 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726675', 'tblTempVendorCDR_20' ) start [2025-03-21 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726675', 'tblTempVendorCDR_20' ) end [2025-03-21 01:01:18] Production.INFO: ProcessCDR(1,14726675,1,1,2) [2025-03-21 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726675', 'tblTempUsageDetail_20' ) start [2025-03-21 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726675', 'tblTempUsageDetail_20' ) end [2025-03-21 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:01:21] Production.INFO: ==30533== Releasing lock... [2025-03-21 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:01:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:02:06 [end_date_ymd] => 2025-03-21 01:02:06 [RateCDR] => 1 ) [2025-03-21 01: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-20 22:02:06' and `end` < '2025-03-21 01: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-21 01:02:18] Production.INFO: count ==492 [2025-03-21 01:02:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:02:06 - End Time 2025-03-21 01:02:06 [2025-03-21 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726680', 'tblTempUsageDetail_20' ) start [2025-03-21 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726680', 'tblTempUsageDetail_20' ) end [2025-03-21 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726680', 'tblTempVendorCDR_20' ) start [2025-03-21 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726680', 'tblTempVendorCDR_20' ) end [2025-03-21 01:02:18] Production.INFO: ProcessCDR(1,14726680,1,1,2) [2025-03-21 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726680', 'tblTempUsageDetail_20' ) start [2025-03-21 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726680', 'tblTempUsageDetail_20' ) end [2025-03-21 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:02:21] Production.INFO: ==30617== Releasing lock... [2025-03-21 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:02:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:03:05 [end_date_ymd] => 2025-03-21 01:03:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:03:05' and `end` < '2025-03-21 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-21 01:03:18] Production.INFO: count ==498 [2025-03-21 01:03:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:03:05 - End Time 2025-03-21 01:03:05 [2025-03-21 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726685', 'tblTempUsageDetail_20' ) start [2025-03-21 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726685', 'tblTempUsageDetail_20' ) end [2025-03-21 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726685', 'tblTempVendorCDR_20' ) start [2025-03-21 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726685', 'tblTempVendorCDR_20' ) end [2025-03-21 01:03:18] Production.INFO: ProcessCDR(1,14726685,1,1,2) [2025-03-21 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726685', 'tblTempUsageDetail_20' ) start [2025-03-21 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726685', 'tblTempUsageDetail_20' ) end [2025-03-21 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:03:21] Production.INFO: ==30701== Releasing lock... [2025-03-21 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:03:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:04:05 [end_date_ymd] => 2025-03-21 01:04:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:04:05' and `end` < '2025-03-21 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-21 01:04:17] Production.INFO: count ==492 [2025-03-21 01:04:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:04:05 - End Time 2025-03-21 01:04:05 [2025-03-21 01:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726690', 'tblTempUsageDetail_20' ) start [2025-03-21 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726690', 'tblTempUsageDetail_20' ) end [2025-03-21 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726690', 'tblTempVendorCDR_20' ) start [2025-03-21 01:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726690', 'tblTempVendorCDR_20' ) end [2025-03-21 01:04:17] Production.INFO: ProcessCDR(1,14726690,1,1,2) [2025-03-21 01:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726690', 'tblTempUsageDetail_20' ) start [2025-03-21 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726690', 'tblTempUsageDetail_20' ) end [2025-03-21 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:04:21] Production.INFO: ==30782== Releasing lock... [2025-03-21 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:04:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:05:05 [end_date_ymd] => 2025-03-21 01:05:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:05:05' and `end` < '2025-03-21 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-21 01:05:17] Production.INFO: count ==489 [2025-03-21 01:05:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:05:05 - End Time 2025-03-21 01:05:05 [2025-03-21 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726695', 'tblTempUsageDetail_20' ) start [2025-03-21 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726695', 'tblTempUsageDetail_20' ) end [2025-03-21 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726695', 'tblTempVendorCDR_20' ) start [2025-03-21 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726695', 'tblTempVendorCDR_20' ) end [2025-03-21 01:05:18] Production.INFO: ProcessCDR(1,14726695,1,1,2) [2025-03-21 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726695', 'tblTempUsageDetail_20' ) start [2025-03-21 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726695', 'tblTempUsageDetail_20' ) end [2025-03-21 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:05:21] Production.INFO: ==30868== Releasing lock... [2025-03-21 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:05:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:06:05 [end_date_ymd] => 2025-03-21 01:06:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:06:05' and `end` < '2025-03-21 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-21 01:06:17] Production.INFO: count ==488 [2025-03-21 01:06:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:06:05 - End Time 2025-03-21 01:06:05 [2025-03-21 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726700', 'tblTempUsageDetail_20' ) start [2025-03-21 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726700', 'tblTempUsageDetail_20' ) end [2025-03-21 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726700', 'tblTempVendorCDR_20' ) start [2025-03-21 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726700', 'tblTempVendorCDR_20' ) end [2025-03-21 01:06:18] Production.INFO: ProcessCDR(1,14726700,1,1,2) [2025-03-21 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726700', 'tblTempUsageDetail_20' ) start [2025-03-21 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726700', 'tblTempUsageDetail_20' ) end [2025-03-21 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:06:21] Production.INFO: ==30951== Releasing lock... [2025-03-21 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:06:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:07:05 [end_date_ymd] => 2025-03-21 01:07:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:07:05' and `end` < '2025-03-21 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-21 01:07:17] Production.INFO: count ==490 [2025-03-21 01:07:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:07:05 - End Time 2025-03-21 01:07:05 [2025-03-21 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726705', 'tblTempUsageDetail_20' ) start [2025-03-21 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726705', 'tblTempUsageDetail_20' ) end [2025-03-21 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726705', 'tblTempVendorCDR_20' ) start [2025-03-21 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726705', 'tblTempVendorCDR_20' ) end [2025-03-21 01:07:17] Production.INFO: ProcessCDR(1,14726705,1,1,2) [2025-03-21 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726705', 'tblTempUsageDetail_20' ) start [2025-03-21 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726705', 'tblTempUsageDetail_20' ) end [2025-03-21 01:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:07:20] Production.INFO: ==31041== Releasing lock... [2025-03-21 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:07:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:08:05 [end_date_ymd] => 2025-03-21 01:08:05 [RateCDR] => 1 ) [2025-03-21 01:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:08:05' and `end` < '2025-03-21 01:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:08:18] Production.INFO: count ==494 [2025-03-21 01:08:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:08:05 - End Time 2025-03-21 01:08:05 [2025-03-21 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726710', 'tblTempUsageDetail_20' ) start [2025-03-21 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726710', 'tblTempUsageDetail_20' ) end [2025-03-21 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726710', 'tblTempVendorCDR_20' ) start [2025-03-21 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726710', 'tblTempVendorCDR_20' ) end [2025-03-21 01:08:18] Production.INFO: ProcessCDR(1,14726710,1,1,2) [2025-03-21 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726710', 'tblTempUsageDetail_20' ) start [2025-03-21 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726710', 'tblTempUsageDetail_20' ) end [2025-03-21 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:08:21] Production.INFO: ==31124== Releasing lock... [2025-03-21 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:08:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:09:05 [end_date_ymd] => 2025-03-21 01:09:05 [RateCDR] => 1 ) [2025-03-21 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:09:05' and `end` < '2025-03-21 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:09:17] Production.INFO: count ==488 [2025-03-21 01:09:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:09:05 - End Time 2025-03-21 01:09:05 [2025-03-21 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726715', 'tblTempUsageDetail_20' ) start [2025-03-21 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726715', 'tblTempUsageDetail_20' ) end [2025-03-21 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726715', 'tblTempVendorCDR_20' ) start [2025-03-21 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726715', 'tblTempVendorCDR_20' ) end [2025-03-21 01:09:17] Production.INFO: ProcessCDR(1,14726715,1,1,2) [2025-03-21 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726715', 'tblTempUsageDetail_20' ) start [2025-03-21 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726715', 'tblTempUsageDetail_20' ) end [2025-03-21 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:09:22] Production.INFO: ==31206== Releasing lock... [2025-03-21 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:09:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:10:06 [end_date_ymd] => 2025-03-21 01:10:06 [RateCDR] => 1 ) [2025-03-21 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-20 22:10:06' and `end` < '2025-03-21 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-21 01:10:18] Production.INFO: count ==501 [2025-03-21 01:10:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:10:06 - End Time 2025-03-21 01:10:06 [2025-03-21 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726721', 'tblTempUsageDetail_20' ) start [2025-03-21 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726721', 'tblTempUsageDetail_20' ) end [2025-03-21 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726721', 'tblTempVendorCDR_20' ) start [2025-03-21 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726721', 'tblTempVendorCDR_20' ) end [2025-03-21 01:10:18] Production.INFO: ProcessCDR(1,14726721,1,1,2) [2025-03-21 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726721', 'tblTempUsageDetail_20' ) start [2025-03-21 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726721', 'tblTempUsageDetail_20' ) end [2025-03-21 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:10:23] Production.INFO: ==31334== Releasing lock... [2025-03-21 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:10:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:11:05 [end_date_ymd] => 2025-03-21 01:11:05 [RateCDR] => 1 ) [2025-03-21 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:11:05' and `end` < '2025-03-21 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:11:17] Production.INFO: count ==525 [2025-03-21 01:11:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:11:05 - End Time 2025-03-21 01:11:05 [2025-03-21 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726726', 'tblTempUsageDetail_20' ) start [2025-03-21 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726726', 'tblTempUsageDetail_20' ) end [2025-03-21 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726726', 'tblTempVendorCDR_20' ) start [2025-03-21 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726726', 'tblTempVendorCDR_20' ) end [2025-03-21 01:11:17] Production.INFO: ProcessCDR(1,14726726,1,1,2) [2025-03-21 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726726', 'tblTempUsageDetail_20' ) start [2025-03-21 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726726', 'tblTempUsageDetail_20' ) end [2025-03-21 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:11:22] Production.INFO: ==31413== Releasing lock... [2025-03-21 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:11:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:12:05 [end_date_ymd] => 2025-03-21 01:12:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:12:05' and `end` < '2025-03-21 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-21 01:12:17] Production.INFO: count ==523 [2025-03-21 01:12:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:12:05 - End Time 2025-03-21 01:12:05 [2025-03-21 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726731', 'tblTempUsageDetail_20' ) start [2025-03-21 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726731', 'tblTempUsageDetail_20' ) end [2025-03-21 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726731', 'tblTempVendorCDR_20' ) start [2025-03-21 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726731', 'tblTempVendorCDR_20' ) end [2025-03-21 01:12:17] Production.INFO: ProcessCDR(1,14726731,1,1,2) [2025-03-21 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726731', 'tblTempUsageDetail_20' ) start [2025-03-21 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726731', 'tblTempUsageDetail_20' ) end [2025-03-21 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:12:21] Production.INFO: ==31492== Releasing lock... [2025-03-21 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:12:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:13:06 [end_date_ymd] => 2025-03-21 01:13:06 [RateCDR] => 1 ) [2025-03-21 01: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-20 22:13:06' and `end` < '2025-03-21 01: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-21 01:13:18] Production.INFO: count ==517 [2025-03-21 01:13:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:13:06 - End Time 2025-03-21 01:13:06 [2025-03-21 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726736', 'tblTempUsageDetail_20' ) start [2025-03-21 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726736', 'tblTempUsageDetail_20' ) end [2025-03-21 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726736', 'tblTempVendorCDR_20' ) start [2025-03-21 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726736', 'tblTempVendorCDR_20' ) end [2025-03-21 01:13:18] Production.INFO: ProcessCDR(1,14726736,1,1,2) [2025-03-21 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726736', 'tblTempUsageDetail_20' ) start [2025-03-21 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726736', 'tblTempUsageDetail_20' ) end [2025-03-21 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:13:21] Production.INFO: ==31569== Releasing lock... [2025-03-21 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:13:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:14:06 [end_date_ymd] => 2025-03-21 01:14:06 [RateCDR] => 1 ) [2025-03-21 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-20 22:14:06' and `end` < '2025-03-21 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-21 01:14:18] Production.INFO: count ==521 [2025-03-21 01:14:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:14:06 - End Time 2025-03-21 01:14:06 [2025-03-21 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726741', 'tblTempUsageDetail_20' ) start [2025-03-21 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726741', 'tblTempUsageDetail_20' ) end [2025-03-21 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726741', 'tblTempVendorCDR_20' ) start [2025-03-21 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726741', 'tblTempVendorCDR_20' ) end [2025-03-21 01:14:18] Production.INFO: ProcessCDR(1,14726741,1,1,2) [2025-03-21 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726741', 'tblTempUsageDetail_20' ) start [2025-03-21 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726741', 'tblTempUsageDetail_20' ) end [2025-03-21 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:14:21] Production.INFO: ==31654== Releasing lock... [2025-03-21 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:14:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:15:05 [end_date_ymd] => 2025-03-21 01:15:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:15:05' and `end` < '2025-03-21 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-21 01:15:18] Production.INFO: count ==518 [2025-03-21 01:15:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:15:05 - End Time 2025-03-21 01:15:05 [2025-03-21 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726746', 'tblTempUsageDetail_20' ) start [2025-03-21 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726746', 'tblTempUsageDetail_20' ) end [2025-03-21 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726746', 'tblTempVendorCDR_20' ) start [2025-03-21 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726746', 'tblTempVendorCDR_20' ) end [2025-03-21 01:15:18] Production.INFO: ProcessCDR(1,14726746,1,1,2) [2025-03-21 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726746', 'tblTempUsageDetail_20' ) start [2025-03-21 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726746', 'tblTempUsageDetail_20' ) end [2025-03-21 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:15:21] Production.INFO: ==31743== Releasing lock... [2025-03-21 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:15:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:16:05 [end_date_ymd] => 2025-03-21 01:16:05 [RateCDR] => 1 ) [2025-03-21 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:16:05' and `end` < '2025-03-21 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:16:17] Production.INFO: count ==512 [2025-03-21 01:16:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:16:05 - End Time 2025-03-21 01:16:05 [2025-03-21 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726751', 'tblTempUsageDetail_20' ) start [2025-03-21 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726751', 'tblTempUsageDetail_20' ) end [2025-03-21 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726751', 'tblTempVendorCDR_20' ) start [2025-03-21 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726751', 'tblTempVendorCDR_20' ) end [2025-03-21 01:16:17] Production.INFO: ProcessCDR(1,14726751,1,1,2) [2025-03-21 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726751', 'tblTempUsageDetail_20' ) start [2025-03-21 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726751', 'tblTempUsageDetail_20' ) end [2025-03-21 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:16:21] Production.INFO: ==31824== Releasing lock... [2025-03-21 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:16:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:17:05 [end_date_ymd] => 2025-03-21 01:17:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:17:05' and `end` < '2025-03-21 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-21 01:17:18] Production.INFO: count ==504 [2025-03-21 01:17:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:17:05 - End Time 2025-03-21 01:17:05 [2025-03-21 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726756', 'tblTempUsageDetail_20' ) start [2025-03-21 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726756', 'tblTempUsageDetail_20' ) end [2025-03-21 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726756', 'tblTempVendorCDR_20' ) start [2025-03-21 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726756', 'tblTempVendorCDR_20' ) end [2025-03-21 01:17:18] Production.INFO: ProcessCDR(1,14726756,1,1,2) [2025-03-21 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726756', 'tblTempUsageDetail_20' ) start [2025-03-21 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726756', 'tblTempUsageDetail_20' ) end [2025-03-21 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:17:21] Production.INFO: ==31913== Releasing lock... [2025-03-21 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:17:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:18:05 [end_date_ymd] => 2025-03-21 01:18:05 [RateCDR] => 1 ) [2025-03-21 01: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-20 22:18:05' and `end` < '2025-03-21 01: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-21 01:18:17] Production.INFO: count ==503 [2025-03-21 01:18:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:18:05 - End Time 2025-03-21 01:18:05 [2025-03-21 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726761', 'tblTempUsageDetail_20' ) start [2025-03-21 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726761', 'tblTempUsageDetail_20' ) end [2025-03-21 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726761', 'tblTempVendorCDR_20' ) start [2025-03-21 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726761', 'tblTempVendorCDR_20' ) end [2025-03-21 01:18:17] Production.INFO: ProcessCDR(1,14726761,1,1,2) [2025-03-21 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726761', 'tblTempUsageDetail_20' ) start [2025-03-21 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726761', 'tblTempUsageDetail_20' ) end [2025-03-21 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:18:21] Production.INFO: ==32006== Releasing lock... [2025-03-21 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:18:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:19:05 [end_date_ymd] => 2025-03-21 01:19:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:19:05' and `end` < '2025-03-21 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-21 01:19:17] Production.INFO: count ==503 [2025-03-21 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:19:05 - End Time 2025-03-21 01:19:05 [2025-03-21 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726766', 'tblTempUsageDetail_20' ) start [2025-03-21 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726766', 'tblTempUsageDetail_20' ) end [2025-03-21 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726766', 'tblTempVendorCDR_20' ) start [2025-03-21 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726766', 'tblTempVendorCDR_20' ) end [2025-03-21 01:19:17] Production.INFO: ProcessCDR(1,14726766,1,1,2) [2025-03-21 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726766', 'tblTempUsageDetail_20' ) start [2025-03-21 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726766', 'tblTempUsageDetail_20' ) end [2025-03-21 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:19:21] Production.INFO: ==32084== Releasing lock... [2025-03-21 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:20:05 [end_date_ymd] => 2025-03-21 01:20:05 [RateCDR] => 1 ) [2025-03-21 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:20:05' and `end` < '2025-03-21 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:20:17] Production.INFO: count ==510 [2025-03-21 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:20:05 - End Time 2025-03-21 01:20:05 [2025-03-21 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726772', 'tblTempUsageDetail_20' ) start [2025-03-21 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726772', 'tblTempUsageDetail_20' ) end [2025-03-21 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726772', 'tblTempVendorCDR_20' ) start [2025-03-21 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726772', 'tblTempVendorCDR_20' ) end [2025-03-21 01:20:18] Production.INFO: ProcessCDR(1,14726772,1,1,2) [2025-03-21 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726772', 'tblTempUsageDetail_20' ) start [2025-03-21 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726772', 'tblTempUsageDetail_20' ) end [2025-03-21 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:20:21] Production.INFO: ==32165== Releasing lock... [2025-03-21 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:20:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:21:05 [end_date_ymd] => 2025-03-21 01:21:05 [RateCDR] => 1 ) [2025-03-21 01: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-20 22:21:05' and `end` < '2025-03-21 01: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-21 01:21:17] Production.INFO: count ==510 [2025-03-21 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:21:05 - End Time 2025-03-21 01:21:05 [2025-03-21 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726777', 'tblTempUsageDetail_20' ) start [2025-03-21 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726777', 'tblTempUsageDetail_20' ) end [2025-03-21 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726777', 'tblTempVendorCDR_20' ) start [2025-03-21 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726777', 'tblTempVendorCDR_20' ) end [2025-03-21 01:21:18] Production.INFO: ProcessCDR(1,14726777,1,1,2) [2025-03-21 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726777', 'tblTempUsageDetail_20' ) start [2025-03-21 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726777', 'tblTempUsageDetail_20' ) end [2025-03-21 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:21:21] Production.INFO: ==32248== Releasing lock... [2025-03-21 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:21:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:22:05 [end_date_ymd] => 2025-03-21 01:22:05 [RateCDR] => 1 ) [2025-03-21 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:22:05' and `end` < '2025-03-21 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:22:17] Production.INFO: count ==512 [2025-03-21 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:22:05 - End Time 2025-03-21 01:22:05 [2025-03-21 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726782', 'tblTempUsageDetail_20' ) start [2025-03-21 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726782', 'tblTempUsageDetail_20' ) end [2025-03-21 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726782', 'tblTempVendorCDR_20' ) start [2025-03-21 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726782', 'tblTempVendorCDR_20' ) end [2025-03-21 01:22:18] Production.INFO: ProcessCDR(1,14726782,1,1,2) [2025-03-21 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726782', 'tblTempUsageDetail_20' ) start [2025-03-21 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726782', 'tblTempUsageDetail_20' ) end [2025-03-21 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:22:21] Production.INFO: ==32332== Releasing lock... [2025-03-21 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:22:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:23:05 [end_date_ymd] => 2025-03-21 01:23:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:23:05' and `end` < '2025-03-21 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-21 01:23:17] Production.INFO: count ==504 [2025-03-21 01:23:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:23:05 - End Time 2025-03-21 01:23:05 [2025-03-21 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726787', 'tblTempUsageDetail_20' ) start [2025-03-21 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726787', 'tblTempUsageDetail_20' ) end [2025-03-21 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726787', 'tblTempVendorCDR_20' ) start [2025-03-21 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726787', 'tblTempVendorCDR_20' ) end [2025-03-21 01:23:18] Production.INFO: ProcessCDR(1,14726787,1,1,2) [2025-03-21 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726787', 'tblTempUsageDetail_20' ) start [2025-03-21 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726787', 'tblTempUsageDetail_20' ) end [2025-03-21 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:23:21] Production.INFO: ==32418== Releasing lock... [2025-03-21 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:23:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:24:05 [end_date_ymd] => 2025-03-21 01:24:05 [RateCDR] => 1 ) [2025-03-21 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:24:05' and `end` < '2025-03-21 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:24:17] Production.INFO: count ==502 [2025-03-21 01:24:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:24:05 - End Time 2025-03-21 01:24:05 [2025-03-21 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726792', 'tblTempUsageDetail_20' ) start [2025-03-21 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726792', 'tblTempUsageDetail_20' ) end [2025-03-21 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726792', 'tblTempVendorCDR_20' ) start [2025-03-21 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726792', 'tblTempVendorCDR_20' ) end [2025-03-21 01:24:17] Production.INFO: ProcessCDR(1,14726792,1,1,2) [2025-03-21 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726792', 'tblTempUsageDetail_20' ) start [2025-03-21 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726792', 'tblTempUsageDetail_20' ) end [2025-03-21 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:24:21] Production.INFO: ==32501== Releasing lock... [2025-03-21 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:24:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:25:05 [end_date_ymd] => 2025-03-21 01:25:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:25:05' and `end` < '2025-03-21 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-21 01:25:17] Production.INFO: count ==497 [2025-03-21 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:25:05 - End Time 2025-03-21 01:25:05 [2025-03-21 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726797', 'tblTempUsageDetail_20' ) start [2025-03-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726797', 'tblTempUsageDetail_20' ) end [2025-03-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726797', 'tblTempVendorCDR_20' ) start [2025-03-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726797', 'tblTempVendorCDR_20' ) end [2025-03-21 01:25:18] Production.INFO: ProcessCDR(1,14726797,1,1,2) [2025-03-21 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726797', 'tblTempUsageDetail_20' ) start [2025-03-21 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726797', 'tblTempUsageDetail_20' ) end [2025-03-21 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:25:23] Production.INFO: ==32586== Releasing lock... [2025-03-21 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:25:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:26:06 [end_date_ymd] => 2025-03-21 01:26:06 [RateCDR] => 1 ) [2025-03-21 01: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-20 22:26:06' and `end` < '2025-03-21 01: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-21 01:26:18] Production.INFO: count ==497 [2025-03-21 01:26:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:26:06 - End Time 2025-03-21 01:26:06 [2025-03-21 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726802', 'tblTempUsageDetail_20' ) start [2025-03-21 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726802', 'tblTempUsageDetail_20' ) end [2025-03-21 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726802', 'tblTempVendorCDR_20' ) start [2025-03-21 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726802', 'tblTempVendorCDR_20' ) end [2025-03-21 01:26:18] Production.INFO: ProcessCDR(1,14726802,1,1,2) [2025-03-21 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726802', 'tblTempUsageDetail_20' ) start [2025-03-21 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726802', 'tblTempUsageDetail_20' ) end [2025-03-21 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:26:22] Production.INFO: ==32711== Releasing lock... [2025-03-21 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:26:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:27:05 [end_date_ymd] => 2025-03-21 01:27:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:27:05' and `end` < '2025-03-21 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-21 01:27:17] Production.INFO: count ==493 [2025-03-21 01:27:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:27:05 - End Time 2025-03-21 01:27:05 [2025-03-21 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726807', 'tblTempUsageDetail_20' ) start [2025-03-21 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726807', 'tblTempUsageDetail_20' ) end [2025-03-21 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726807', 'tblTempVendorCDR_20' ) start [2025-03-21 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726807', 'tblTempVendorCDR_20' ) end [2025-03-21 01:27:17] Production.INFO: ProcessCDR(1,14726807,1,1,2) [2025-03-21 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726807', 'tblTempUsageDetail_20' ) start [2025-03-21 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726807', 'tblTempUsageDetail_20' ) end [2025-03-21 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:27:22] Production.INFO: ==336== Releasing lock... [2025-03-21 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:27:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:28:06 [end_date_ymd] => 2025-03-21 01:28:06 [RateCDR] => 1 ) [2025-03-21 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-20 22:28:06' and `end` < '2025-03-21 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-21 01:28:18] Production.INFO: count ==497 [2025-03-21 01:28:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:28:06 - End Time 2025-03-21 01:28:06 [2025-03-21 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726812', 'tblTempUsageDetail_20' ) start [2025-03-21 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726812', 'tblTempUsageDetail_20' ) end [2025-03-21 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726812', 'tblTempVendorCDR_20' ) start [2025-03-21 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726812', 'tblTempVendorCDR_20' ) end [2025-03-21 01:28:18] Production.INFO: ProcessCDR(1,14726812,1,1,2) [2025-03-21 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726812', 'tblTempUsageDetail_20' ) start [2025-03-21 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726812', 'tblTempUsageDetail_20' ) end [2025-03-21 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:28:21] Production.INFO: ==431== Releasing lock... [2025-03-21 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:28:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:29:06 [end_date_ymd] => 2025-03-21 01:29:06 [RateCDR] => 1 ) [2025-03-21 01: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-20 22:29:06' and `end` < '2025-03-21 01: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-21 01:29:18] Production.INFO: count ==499 [2025-03-21 01:29:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:29:06 - End Time 2025-03-21 01:29:06 [2025-03-21 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726817', 'tblTempUsageDetail_20' ) start [2025-03-21 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726817', 'tblTempUsageDetail_20' ) end [2025-03-21 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726817', 'tblTempVendorCDR_20' ) start [2025-03-21 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726817', 'tblTempVendorCDR_20' ) end [2025-03-21 01:29:18] Production.INFO: ProcessCDR(1,14726817,1,1,2) [2025-03-21 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726817', 'tblTempUsageDetail_20' ) start [2025-03-21 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726817', 'tblTempUsageDetail_20' ) end [2025-03-21 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:29:22] Production.INFO: ==518== Releasing lock... [2025-03-21 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:29:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:30:06 [end_date_ymd] => 2025-03-21 01:30:06 [RateCDR] => 1 ) [2025-03-21 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-20 22:30:06' and `end` < '2025-03-21 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-21 01:30:18] Production.INFO: count ==512 [2025-03-21 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:30:06 - End Time 2025-03-21 01:30:06 [2025-03-21 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726823', 'tblTempUsageDetail_20' ) start [2025-03-21 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726823', 'tblTempUsageDetail_20' ) end [2025-03-21 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726823', 'tblTempVendorCDR_20' ) start [2025-03-21 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726823', 'tblTempVendorCDR_20' ) end [2025-03-21 01:30:18] Production.INFO: ProcessCDR(1,14726823,1,1,2) [2025-03-21 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726823', 'tblTempUsageDetail_20' ) start [2025-03-21 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726823', 'tblTempUsageDetail_20' ) end [2025-03-21 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:30:22] Production.INFO: ==601== Releasing lock... [2025-03-21 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:30:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:31:05 [end_date_ymd] => 2025-03-21 01:31:05 [RateCDR] => 1 ) [2025-03-21 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:31:05' and `end` < '2025-03-21 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:31:17] Production.INFO: count ==512 [2025-03-21 01:31:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:31:05 - End Time 2025-03-21 01:31:05 [2025-03-21 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726828', 'tblTempUsageDetail_20' ) start [2025-03-21 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726828', 'tblTempUsageDetail_20' ) end [2025-03-21 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726828', 'tblTempVendorCDR_20' ) start [2025-03-21 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726828', 'tblTempVendorCDR_20' ) end [2025-03-21 01:31:17] Production.INFO: ProcessCDR(1,14726828,1,1,2) [2025-03-21 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726828', 'tblTempUsageDetail_20' ) start [2025-03-21 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726828', 'tblTempUsageDetail_20' ) end [2025-03-21 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:31:21] Production.INFO: ==717== Releasing lock... [2025-03-21 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:31:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:32:05 [end_date_ymd] => 2025-03-21 01:32:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:32:05' and `end` < '2025-03-21 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-21 01:32:17] Production.INFO: count ==514 [2025-03-21 01:32:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:32:05 - End Time 2025-03-21 01:32:05 [2025-03-21 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726833', 'tblTempUsageDetail_20' ) start [2025-03-21 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726833', 'tblTempUsageDetail_20' ) end [2025-03-21 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726833', 'tblTempVendorCDR_20' ) start [2025-03-21 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726833', 'tblTempVendorCDR_20' ) end [2025-03-21 01:32:17] Production.INFO: ProcessCDR(1,14726833,1,1,2) [2025-03-21 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726833', 'tblTempUsageDetail_20' ) start [2025-03-21 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726833', 'tblTempUsageDetail_20' ) end [2025-03-21 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:32:21] Production.INFO: ==801== Releasing lock... [2025-03-21 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:33:04 [end_date_ymd] => 2025-03-21 01:33:04 [RateCDR] => 1 ) [2025-03-21 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-20 22:33:04' and `end` < '2025-03-21 01: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-21 01:33:17] Production.INFO: count ==514 [2025-03-21 01:33:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:33:04 - End Time 2025-03-21 01:33:04 [2025-03-21 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726838', 'tblTempUsageDetail_20' ) start [2025-03-21 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726838', 'tblTempUsageDetail_20' ) end [2025-03-21 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726838', 'tblTempVendorCDR_20' ) start [2025-03-21 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726838', 'tblTempVendorCDR_20' ) end [2025-03-21 01:33:17] Production.INFO: ProcessCDR(1,14726838,1,1,2) [2025-03-21 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726838', 'tblTempUsageDetail_20' ) start [2025-03-21 01:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726838', 'tblTempUsageDetail_20' ) end [2025-03-21 01:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:33:20] Production.INFO: ==883== Releasing lock... [2025-03-21 01:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:33:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:34:05 [end_date_ymd] => 2025-03-21 01:34:05 [RateCDR] => 1 ) [2025-03-21 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:34:05' and `end` < '2025-03-21 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:34:17] Production.INFO: count ==512 [2025-03-21 01:34:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:34:05 - End Time 2025-03-21 01:34:05 [2025-03-21 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726843', 'tblTempUsageDetail_20' ) start [2025-03-21 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726843', 'tblTempUsageDetail_20' ) end [2025-03-21 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726843', 'tblTempVendorCDR_20' ) start [2025-03-21 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726843', 'tblTempVendorCDR_20' ) end [2025-03-21 01:34:18] Production.INFO: ProcessCDR(1,14726843,1,1,2) [2025-03-21 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726843', 'tblTempUsageDetail_20' ) start [2025-03-21 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726843', 'tblTempUsageDetail_20' ) end [2025-03-21 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:34:21] Production.INFO: ==966== Releasing lock... [2025-03-21 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:34:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:35:05 [end_date_ymd] => 2025-03-21 01:35:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:35:05' and `end` < '2025-03-21 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-21 01:35:17] Production.INFO: count ==513 [2025-03-21 01:35:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:35:05 - End Time 2025-03-21 01:35:05 [2025-03-21 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726848', 'tblTempUsageDetail_20' ) start [2025-03-21 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726848', 'tblTempUsageDetail_20' ) end [2025-03-21 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726848', 'tblTempVendorCDR_20' ) start [2025-03-21 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726848', 'tblTempVendorCDR_20' ) end [2025-03-21 01:35:17] Production.INFO: ProcessCDR(1,14726848,1,1,2) [2025-03-21 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726848', 'tblTempUsageDetail_20' ) start [2025-03-21 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726848', 'tblTempUsageDetail_20' ) end [2025-03-21 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:35:22] Production.INFO: ==1052== Releasing lock... [2025-03-21 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:35:22] Production.INFO: 32 MB #Memory Used# [2025-03-21 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:36:05 [end_date_ymd] => 2025-03-21 01:36:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:36:05' and `end` < '2025-03-21 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-21 01:36:18] Production.INFO: count ==511 [2025-03-21 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:36:05 - End Time 2025-03-21 01:36:05 [2025-03-21 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726853', 'tblTempUsageDetail_20' ) start [2025-03-21 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726853', 'tblTempUsageDetail_20' ) end [2025-03-21 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726853', 'tblTempVendorCDR_20' ) start [2025-03-21 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726853', 'tblTempVendorCDR_20' ) end [2025-03-21 01:36:18] Production.INFO: ProcessCDR(1,14726853,1,1,2) [2025-03-21 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726853', 'tblTempUsageDetail_20' ) start [2025-03-21 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726853', 'tblTempUsageDetail_20' ) end [2025-03-21 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:36:21] Production.INFO: ==1152== Releasing lock... [2025-03-21 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:36:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:37:05 [end_date_ymd] => 2025-03-21 01:37:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:37:05' and `end` < '2025-03-21 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-21 01:37:17] Production.INFO: count ==507 [2025-03-21 01:37:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:37:05 - End Time 2025-03-21 01:37:05 [2025-03-21 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726858', 'tblTempUsageDetail_20' ) start [2025-03-21 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726858', 'tblTempUsageDetail_20' ) end [2025-03-21 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726858', 'tblTempVendorCDR_20' ) start [2025-03-21 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726858', 'tblTempVendorCDR_20' ) end [2025-03-21 01:37:17] Production.INFO: ProcessCDR(1,14726858,1,1,2) [2025-03-21 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726858', 'tblTempUsageDetail_20' ) start [2025-03-21 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726858', 'tblTempUsageDetail_20' ) end [2025-03-21 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:37:21] Production.INFO: ==1239== Releasing lock... [2025-03-21 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:37:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:38:05 [end_date_ymd] => 2025-03-21 01:38:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:38:05' and `end` < '2025-03-21 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-21 01:38:17] Production.INFO: count ==506 [2025-03-21 01:38:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:38:05 - End Time 2025-03-21 01:38:05 [2025-03-21 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726863', 'tblTempUsageDetail_20' ) start [2025-03-21 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726863', 'tblTempUsageDetail_20' ) end [2025-03-21 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726863', 'tblTempVendorCDR_20' ) start [2025-03-21 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726863', 'tblTempVendorCDR_20' ) end [2025-03-21 01:38:17] Production.INFO: ProcessCDR(1,14726863,1,1,2) [2025-03-21 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726863', 'tblTempUsageDetail_20' ) start [2025-03-21 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726863', 'tblTempUsageDetail_20' ) end [2025-03-21 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:38:21] Production.INFO: ==1336== Releasing lock... [2025-03-21 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:38:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 01:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:39:04 [end_date_ymd] => 2025-03-21 01:39:04 [RateCDR] => 1 ) [2025-03-21 01:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:39:04' and `end` < '2025-03-21 01:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:39:17] Production.INFO: count ==503 [2025-03-21 01:39:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:39:04 - End Time 2025-03-21 01:39:04 [2025-03-21 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726868', 'tblTempUsageDetail_20' ) start [2025-03-21 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726868', 'tblTempUsageDetail_20' ) end [2025-03-21 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726868', 'tblTempVendorCDR_20' ) start [2025-03-21 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726868', 'tblTempVendorCDR_20' ) end [2025-03-21 01:39:17] Production.INFO: ProcessCDR(1,14726868,1,1,2) [2025-03-21 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726868', 'tblTempUsageDetail_20' ) start [2025-03-21 01:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726868', 'tblTempUsageDetail_20' ) end [2025-03-21 01:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:39:20] Production.INFO: ==1430== Releasing lock... [2025-03-21 01:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:39:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:40:06 [end_date_ymd] => 2025-03-21 01:40:06 [RateCDR] => 1 ) [2025-03-21 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-20 22:40:06' and `end` < '2025-03-21 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-21 01:40:18] Production.INFO: count ==511 [2025-03-21 01:40:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:40:06 - End Time 2025-03-21 01:40:06 [2025-03-21 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726874', 'tblTempUsageDetail_20' ) start [2025-03-21 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726874', 'tblTempUsageDetail_20' ) end [2025-03-21 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726874', 'tblTempVendorCDR_20' ) start [2025-03-21 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726874', 'tblTempVendorCDR_20' ) end [2025-03-21 01:40:18] Production.INFO: ProcessCDR(1,14726874,1,1,2) [2025-03-21 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726874', 'tblTempUsageDetail_20' ) start [2025-03-21 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726874', 'tblTempUsageDetail_20' ) end [2025-03-21 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:40:22] Production.INFO: ==1543== Releasing lock... [2025-03-21 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:40:22] Production.INFO: 33 MB #Memory Used# [2025-03-21 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:41:06 [end_date_ymd] => 2025-03-21 01:41:06 [RateCDR] => 1 ) [2025-03-21 01: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-20 22:41:06' and `end` < '2025-03-21 01: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-21 01:41:18] Production.INFO: count ==517 [2025-03-21 01:41:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:41:06 - End Time 2025-03-21 01:41:06 [2025-03-21 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726879', 'tblTempUsageDetail_20' ) start [2025-03-21 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726879', 'tblTempUsageDetail_20' ) end [2025-03-21 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726879', 'tblTempVendorCDR_20' ) start [2025-03-21 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726879', 'tblTempVendorCDR_20' ) end [2025-03-21 01:41:18] Production.INFO: ProcessCDR(1,14726879,1,1,2) [2025-03-21 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726879', 'tblTempUsageDetail_20' ) start [2025-03-21 01:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726879', 'tblTempUsageDetail_20' ) end [2025-03-21 01:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:41:23] Production.INFO: ==1678== Releasing lock... [2025-03-21 01:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:41:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:42:05 [end_date_ymd] => 2025-03-21 01:42:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:42:05' and `end` < '2025-03-21 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-21 01:42:17] Production.INFO: count ==516 [2025-03-21 01:42:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:42:05 - End Time 2025-03-21 01:42:05 [2025-03-21 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726884', 'tblTempUsageDetail_20' ) start [2025-03-21 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726884', 'tblTempUsageDetail_20' ) end [2025-03-21 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726884', 'tblTempVendorCDR_20' ) start [2025-03-21 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726884', 'tblTempVendorCDR_20' ) end [2025-03-21 01:42:17] Production.INFO: ProcessCDR(1,14726884,1,1,2) [2025-03-21 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726884', 'tblTempUsageDetail_20' ) start [2025-03-21 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726884', 'tblTempUsageDetail_20' ) end [2025-03-21 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:42:21] Production.INFO: ==1766== Releasing lock... [2025-03-21 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:42:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:43:05 [end_date_ymd] => 2025-03-21 01:43:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:43:05' and `end` < '2025-03-21 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-21 01:43:17] Production.INFO: count ==516 [2025-03-21 01:43:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:43:05 - End Time 2025-03-21 01:43:05 [2025-03-21 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726889', 'tblTempUsageDetail_20' ) start [2025-03-21 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726889', 'tblTempUsageDetail_20' ) end [2025-03-21 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726889', 'tblTempVendorCDR_20' ) start [2025-03-21 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726889', 'tblTempVendorCDR_20' ) end [2025-03-21 01:43:18] Production.INFO: ProcessCDR(1,14726889,1,1,2) [2025-03-21 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726889', 'tblTempUsageDetail_20' ) start [2025-03-21 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726889', 'tblTempUsageDetail_20' ) end [2025-03-21 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:43:21] Production.INFO: ==1858== Releasing lock... [2025-03-21 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:43:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:44:04 [end_date_ymd] => 2025-03-21 01:44:04 [RateCDR] => 1 ) [2025-03-21 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-20 22:44:04' and `end` < '2025-03-21 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-21 01:44:17] Production.INFO: count ==519 [2025-03-21 01:44:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:44:04 - End Time 2025-03-21 01:44:04 [2025-03-21 01:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726894', 'tblTempUsageDetail_20' ) start [2025-03-21 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726894', 'tblTempUsageDetail_20' ) end [2025-03-21 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726894', 'tblTempVendorCDR_20' ) start [2025-03-21 01:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726894', 'tblTempVendorCDR_20' ) end [2025-03-21 01:44:17] Production.INFO: ProcessCDR(1,14726894,1,1,2) [2025-03-21 01:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726894', 'tblTempUsageDetail_20' ) start [2025-03-21 01:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726894', 'tblTempUsageDetail_20' ) end [2025-03-21 01:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:44:20] Production.INFO: ==1932== Releasing lock... [2025-03-21 01:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:44:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:45:06 [end_date_ymd] => 2025-03-21 01:45:06 [RateCDR] => 1 ) [2025-03-21 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-20 22:45:06' and `end` < '2025-03-21 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-21 01:45:18] Production.INFO: count ==515 [2025-03-21 01:45:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:45:06 - End Time 2025-03-21 01:45:06 [2025-03-21 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726899', 'tblTempUsageDetail_20' ) start [2025-03-21 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726899', 'tblTempUsageDetail_20' ) end [2025-03-21 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726899', 'tblTempVendorCDR_20' ) start [2025-03-21 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726899', 'tblTempVendorCDR_20' ) end [2025-03-21 01:45:18] Production.INFO: ProcessCDR(1,14726899,1,1,2) [2025-03-21 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726899', 'tblTempUsageDetail_20' ) start [2025-03-21 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726899', 'tblTempUsageDetail_20' ) end [2025-03-21 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:45:22] Production.INFO: ==2019== Releasing lock... [2025-03-21 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:45:22] Production.INFO: 33 MB #Memory Used# [2025-03-21 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:46:05 [end_date_ymd] => 2025-03-21 01:46:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:46:05' and `end` < '2025-03-21 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-21 01:46:17] Production.INFO: count ==510 [2025-03-21 01:46:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:46:05 - End Time 2025-03-21 01:46:05 [2025-03-21 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726904', 'tblTempUsageDetail_20' ) start [2025-03-21 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726904', 'tblTempUsageDetail_20' ) end [2025-03-21 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726904', 'tblTempVendorCDR_20' ) start [2025-03-21 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726904', 'tblTempVendorCDR_20' ) end [2025-03-21 01:46:17] Production.INFO: ProcessCDR(1,14726904,1,1,2) [2025-03-21 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726904', 'tblTempUsageDetail_20' ) start [2025-03-21 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726904', 'tblTempUsageDetail_20' ) end [2025-03-21 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:46:21] Production.INFO: ==2104== Releasing lock... [2025-03-21 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:46:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:47:05 [end_date_ymd] => 2025-03-21 01:47:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:47:05' and `end` < '2025-03-21 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-21 01:47:17] Production.INFO: count ==501 [2025-03-21 01:47:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:47:05 - End Time 2025-03-21 01:47:05 [2025-03-21 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726909', 'tblTempUsageDetail_20' ) start [2025-03-21 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726909', 'tblTempUsageDetail_20' ) end [2025-03-21 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726909', 'tblTempVendorCDR_20' ) start [2025-03-21 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726909', 'tblTempVendorCDR_20' ) end [2025-03-21 01:47:17] Production.INFO: ProcessCDR(1,14726909,1,1,2) [2025-03-21 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726909', 'tblTempUsageDetail_20' ) start [2025-03-21 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726909', 'tblTempUsageDetail_20' ) end [2025-03-21 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:47:21] Production.INFO: ==2179== Releasing lock... [2025-03-21 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:47:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:48:05 [end_date_ymd] => 2025-03-21 01:48:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:48:05' and `end` < '2025-03-21 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-21 01:48:17] Production.INFO: count ==503 [2025-03-21 01:48:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:48:05 - End Time 2025-03-21 01:48:05 [2025-03-21 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726914', 'tblTempUsageDetail_20' ) start [2025-03-21 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726914', 'tblTempUsageDetail_20' ) end [2025-03-21 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726914', 'tblTempVendorCDR_20' ) start [2025-03-21 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726914', 'tblTempVendorCDR_20' ) end [2025-03-21 01:48:18] Production.INFO: ProcessCDR(1,14726914,1,1,2) [2025-03-21 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726914', 'tblTempUsageDetail_20' ) start [2025-03-21 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726914', 'tblTempUsageDetail_20' ) end [2025-03-21 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:48:21] Production.INFO: ==2262== Releasing lock... [2025-03-21 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:48:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:49:05 [end_date_ymd] => 2025-03-21 01:49:05 [RateCDR] => 1 ) [2025-03-21 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:49:05' and `end` < '2025-03-21 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:49:17] Production.INFO: count ==503 [2025-03-21 01:49:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:49:05 - End Time 2025-03-21 01:49:05 [2025-03-21 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726919', 'tblTempUsageDetail_20' ) start [2025-03-21 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726919', 'tblTempUsageDetail_20' ) end [2025-03-21 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726919', 'tblTempVendorCDR_20' ) start [2025-03-21 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726919', 'tblTempVendorCDR_20' ) end [2025-03-21 01:49:18] Production.INFO: ProcessCDR(1,14726919,1,1,2) [2025-03-21 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726919', 'tblTempUsageDetail_20' ) start [2025-03-21 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726919', 'tblTempUsageDetail_20' ) end [2025-03-21 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:49:21] Production.INFO: ==2350== Releasing lock... [2025-03-21 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:50:06 [end_date_ymd] => 2025-03-21 01:50:06 [RateCDR] => 1 ) [2025-03-21 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-20 22:50:06' and `end` < '2025-03-21 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-21 01:50:18] Production.INFO: count ==501 [2025-03-21 01:50:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:50:06 - End Time 2025-03-21 01:50:06 [2025-03-21 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726925', 'tblTempUsageDetail_20' ) start [2025-03-21 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726925', 'tblTempUsageDetail_20' ) end [2025-03-21 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726925', 'tblTempVendorCDR_20' ) start [2025-03-21 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726925', 'tblTempVendorCDR_20' ) end [2025-03-21 01:50:18] Production.INFO: ProcessCDR(1,14726925,1,1,2) [2025-03-21 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726925', 'tblTempUsageDetail_20' ) start [2025-03-21 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726925', 'tblTempUsageDetail_20' ) end [2025-03-21 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:50:21] Production.INFO: ==2435== Releasing lock... [2025-03-21 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:50:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:51:05 [end_date_ymd] => 2025-03-21 01:51:05 [RateCDR] => 1 ) [2025-03-21 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:51:05' and `end` < '2025-03-21 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:51:17] Production.INFO: count ==501 [2025-03-21 01:51:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:51:05 - End Time 2025-03-21 01:51:05 [2025-03-21 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726930', 'tblTempUsageDetail_20' ) start [2025-03-21 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726930', 'tblTempUsageDetail_20' ) end [2025-03-21 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726930', 'tblTempVendorCDR_20' ) start [2025-03-21 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726930', 'tblTempVendorCDR_20' ) end [2025-03-21 01:51:17] Production.INFO: ProcessCDR(1,14726930,1,1,2) [2025-03-21 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726930', 'tblTempUsageDetail_20' ) start [2025-03-21 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726930', 'tblTempUsageDetail_20' ) end [2025-03-21 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:51:21] Production.INFO: ==2517== Releasing lock... [2025-03-21 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:51:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:52:06 [end_date_ymd] => 2025-03-21 01:52:06 [RateCDR] => 1 ) [2025-03-21 01:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:52:06' and `end` < '2025-03-21 01:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:52:18] Production.INFO: count ==501 [2025-03-21 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:52:06 - End Time 2025-03-21 01:52:06 [2025-03-21 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726935', 'tblTempUsageDetail_20' ) start [2025-03-21 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726935', 'tblTempUsageDetail_20' ) end [2025-03-21 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726935', 'tblTempVendorCDR_20' ) start [2025-03-21 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726935', 'tblTempVendorCDR_20' ) end [2025-03-21 01:52:18] Production.INFO: ProcessCDR(1,14726935,1,1,2) [2025-03-21 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726935', 'tblTempUsageDetail_20' ) start [2025-03-21 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726935', 'tblTempUsageDetail_20' ) end [2025-03-21 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:52:22] Production.INFO: ==2594== Releasing lock... [2025-03-21 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:52:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:53:05 [end_date_ymd] => 2025-03-21 01:53:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:53:05' and `end` < '2025-03-21 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-21 01:53:17] Production.INFO: count ==499 [2025-03-21 01:53:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:53:05 - End Time 2025-03-21 01:53:05 [2025-03-21 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726940', 'tblTempUsageDetail_20' ) start [2025-03-21 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726940', 'tblTempUsageDetail_20' ) end [2025-03-21 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726940', 'tblTempVendorCDR_20' ) start [2025-03-21 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726940', 'tblTempVendorCDR_20' ) end [2025-03-21 01:53:17] Production.INFO: ProcessCDR(1,14726940,1,1,2) [2025-03-21 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726940', 'tblTempUsageDetail_20' ) start [2025-03-21 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726940', 'tblTempUsageDetail_20' ) end [2025-03-21 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:53:21] Production.INFO: ==2677== Releasing lock... [2025-03-21 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:53:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:54:06 [end_date_ymd] => 2025-03-21 01:54:06 [RateCDR] => 1 ) [2025-03-21 01: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-20 22:54:06' and `end` < '2025-03-21 01: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-21 01:54:18] Production.INFO: count ==500 [2025-03-21 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:54:06 - End Time 2025-03-21 01:54:06 [2025-03-21 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726945', 'tblTempUsageDetail_20' ) start [2025-03-21 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726945', 'tblTempUsageDetail_20' ) end [2025-03-21 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726945', 'tblTempVendorCDR_20' ) start [2025-03-21 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726945', 'tblTempVendorCDR_20' ) end [2025-03-21 01:54:18] Production.INFO: ProcessCDR(1,14726945,1,1,2) [2025-03-21 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726945', 'tblTempUsageDetail_20' ) start [2025-03-21 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726945', 'tblTempUsageDetail_20' ) end [2025-03-21 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:54:21] Production.INFO: ==2757== Releasing lock... [2025-03-21 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:54:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:55:05 [end_date_ymd] => 2025-03-21 01:55:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:55:05' and `end` < '2025-03-21 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-21 01:55:18] Production.INFO: count ==500 [2025-03-21 01:55:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:55:05 - End Time 2025-03-21 01:55:05 [2025-03-21 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726950', 'tblTempUsageDetail_20' ) start [2025-03-21 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726950', 'tblTempUsageDetail_20' ) end [2025-03-21 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726950', 'tblTempVendorCDR_20' ) start [2025-03-21 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726950', 'tblTempVendorCDR_20' ) end [2025-03-21 01:55:18] Production.INFO: ProcessCDR(1,14726950,1,1,2) [2025-03-21 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726950', 'tblTempUsageDetail_20' ) start [2025-03-21 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726950', 'tblTempUsageDetail_20' ) end [2025-03-21 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:55:21] Production.INFO: ==2844== Releasing lock... [2025-03-21 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:55:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:56:05 [end_date_ymd] => 2025-03-21 01:56:05 [RateCDR] => 1 ) [2025-03-21 01:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:56:05' and `end` < '2025-03-21 01:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:56:18] Production.INFO: count ==500 [2025-03-21 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-20 22:56:05 - End Time 2025-03-21 01:56:05 [2025-03-21 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726955', 'tblTempUsageDetail_20' ) start [2025-03-21 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726955', 'tblTempUsageDetail_20' ) end [2025-03-21 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726955', 'tblTempVendorCDR_20' ) start [2025-03-21 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726955', 'tblTempVendorCDR_20' ) end [2025-03-21 01:56:18] Production.INFO: ProcessCDR(1,14726955,1,1,2) [2025-03-21 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726955', 'tblTempUsageDetail_20' ) start [2025-03-21 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726955', 'tblTempUsageDetail_20' ) end [2025-03-21 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:56:21] Production.INFO: ==2922== Releasing lock... [2025-03-21 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:56:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:57:05 [end_date_ymd] => 2025-03-21 01:57:05 [RateCDR] => 1 ) [2025-03-21 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-20 22:57:05' and `end` < '2025-03-21 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-21 01:57:17] Production.INFO: count ==500 [2025-03-21 01:57:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:57:05 - End Time 2025-03-21 01:57:05 [2025-03-21 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726960', 'tblTempUsageDetail_20' ) start [2025-03-21 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726960', 'tblTempUsageDetail_20' ) end [2025-03-21 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726960', 'tblTempVendorCDR_20' ) start [2025-03-21 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726960', 'tblTempVendorCDR_20' ) end [2025-03-21 01:57:17] Production.INFO: ProcessCDR(1,14726960,1,1,2) [2025-03-21 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726960', 'tblTempUsageDetail_20' ) start [2025-03-21 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726960', 'tblTempUsageDetail_20' ) end [2025-03-21 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:57:21] Production.INFO: ==3038== Releasing lock... [2025-03-21 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:57:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:58:05 [end_date_ymd] => 2025-03-21 01:58:05 [RateCDR] => 1 ) [2025-03-21 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:58:05' and `end` < '2025-03-21 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:58:17] Production.INFO: count ==498 [2025-03-21 01:58:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:58:05 - End Time 2025-03-21 01:58:05 [2025-03-21 01:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726965', 'tblTempUsageDetail_20' ) start [2025-03-21 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726965', 'tblTempUsageDetail_20' ) end [2025-03-21 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726965', 'tblTempVendorCDR_20' ) start [2025-03-21 01:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726965', 'tblTempVendorCDR_20' ) end [2025-03-21 01:58:17] Production.INFO: ProcessCDR(1,14726965,1,1,2) [2025-03-21 01:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726965', 'tblTempUsageDetail_20' ) start [2025-03-21 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726965', 'tblTempUsageDetail_20' ) end [2025-03-21 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:58:21] Production.INFO: ==3124== Releasing lock... [2025-03-21 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:58:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 22:59:05 [end_date_ymd] => 2025-03-21 01:59:05 [RateCDR] => 1 ) [2025-03-21 01:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 22:59:05' and `end` < '2025-03-21 01:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 01:59:17] Production.INFO: count ==497 [2025-03-21 01:59:17] Production.ERROR: pbx CDR StartTime 2025-03-20 22:59:05 - End Time 2025-03-21 01:59:05 [2025-03-21 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726970', 'tblTempUsageDetail_20' ) start [2025-03-21 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726970', 'tblTempUsageDetail_20' ) end [2025-03-21 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726970', 'tblTempVendorCDR_20' ) start [2025-03-21 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726970', 'tblTempVendorCDR_20' ) end [2025-03-21 01:59:17] Production.INFO: ProcessCDR(1,14726970,1,1,2) [2025-03-21 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726970', 'tblTempUsageDetail_20' ) start [2025-03-21 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726970', 'tblTempUsageDetail_20' ) end [2025-03-21 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 01:59:21] Production.INFO: ==3207== Releasing lock... [2025-03-21 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 01:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:00:06 [end_date_ymd] => 2025-03-21 02:00:06 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:00:06' and `end` < '2025-03-21 02: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-21 02:00:19] Production.INFO: count ==511 [2025-03-21 02:00:19] Production.ERROR: pbx CDR StartTime 2025-03-20 23:00:06 - End Time 2025-03-21 02:00:06 [2025-03-21 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726975', 'tblTempUsageDetail_20' ) start [2025-03-21 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726975', 'tblTempUsageDetail_20' ) end [2025-03-21 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726975', 'tblTempVendorCDR_20' ) start [2025-03-21 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726975', 'tblTempVendorCDR_20' ) end [2025-03-21 02:00:19] Production.INFO: ProcessCDR(1,14726975,1,1,2) [2025-03-21 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726975', 'tblTempUsageDetail_20' ) start [2025-03-21 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726975', 'tblTempUsageDetail_20' ) end [2025-03-21 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:00:22] Production.INFO: ==3291== Releasing lock... [2025-03-21 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:00:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:01:05 [end_date_ymd] => 2025-03-21 02:01:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:01:05' and `end` < '2025-03-21 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-21 02:01:17] Production.INFO: count ==503 [2025-03-21 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:01:05 - End Time 2025-03-21 02:01:05 [2025-03-21 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726981', 'tblTempUsageDetail_20' ) start [2025-03-21 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726981', 'tblTempUsageDetail_20' ) end [2025-03-21 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726981', 'tblTempVendorCDR_20' ) start [2025-03-21 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726981', 'tblTempVendorCDR_20' ) end [2025-03-21 02:01:18] Production.INFO: ProcessCDR(1,14726981,1,1,2) [2025-03-21 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726981', 'tblTempUsageDetail_20' ) start [2025-03-21 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726981', 'tblTempUsageDetail_20' ) end [2025-03-21 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:01:22] Production.INFO: ==3390== Releasing lock... [2025-03-21 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:01:22] Production.INFO: 32 MB #Memory Used# [2025-03-21 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:02:05 [end_date_ymd] => 2025-03-21 02:02:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:02:05' and `end` < '2025-03-21 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-21 02:02:17] Production.INFO: count ==501 [2025-03-21 02:02:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:02:05 - End Time 2025-03-21 02:02:05 [2025-03-21 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726986', 'tblTempUsageDetail_20' ) start [2025-03-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726986', 'tblTempUsageDetail_20' ) end [2025-03-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726986', 'tblTempVendorCDR_20' ) start [2025-03-21 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726986', 'tblTempVendorCDR_20' ) end [2025-03-21 02:02:17] Production.INFO: ProcessCDR(1,14726986,1,1,2) [2025-03-21 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726986', 'tblTempUsageDetail_20' ) start [2025-03-21 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726986', 'tblTempUsageDetail_20' ) end [2025-03-21 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:02:21] Production.INFO: ==3559== Releasing lock... [2025-03-21 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:02:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:03:05 [end_date_ymd] => 2025-03-21 02:03:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:03:05' and `end` < '2025-03-21 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-21 02:03:17] Production.INFO: count ==504 [2025-03-21 02:03:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:03:05 - End Time 2025-03-21 02:03:05 [2025-03-21 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726991', 'tblTempUsageDetail_20' ) start [2025-03-21 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726991', 'tblTempUsageDetail_20' ) end [2025-03-21 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726991', 'tblTempVendorCDR_20' ) start [2025-03-21 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726991', 'tblTempVendorCDR_20' ) end [2025-03-21 02:03:17] Production.INFO: ProcessCDR(1,14726991,1,1,2) [2025-03-21 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726991', 'tblTempUsageDetail_20' ) start [2025-03-21 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726991', 'tblTempUsageDetail_20' ) end [2025-03-21 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:03:21] Production.INFO: ==3640== Releasing lock... [2025-03-21 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:03:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:04:05 [end_date_ymd] => 2025-03-21 02:04:05 [RateCDR] => 1 ) [2025-03-21 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:04:05' and `end` < '2025-03-21 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:04:17] Production.INFO: count ==509 [2025-03-21 02:04:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:04:05 - End Time 2025-03-21 02:04:05 [2025-03-21 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726996', 'tblTempUsageDetail_20' ) start [2025-03-21 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14726996', 'tblTempUsageDetail_20' ) end [2025-03-21 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726996', 'tblTempVendorCDR_20' ) start [2025-03-21 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14726996', 'tblTempVendorCDR_20' ) end [2025-03-21 02:04:17] Production.INFO: ProcessCDR(1,14726996,1,1,2) [2025-03-21 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14726996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14726996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14726996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14726996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726996', 'tblTempUsageDetail_20' ) start [2025-03-21 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14726996', 'tblTempUsageDetail_20' ) end [2025-03-21 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:04:21] Production.INFO: ==3719== Releasing lock... [2025-03-21 02:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:04:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:05:05 [end_date_ymd] => 2025-03-21 02:05:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:05:05' and `end` < '2025-03-21 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-21 02:05:18] Production.INFO: count ==513 [2025-03-21 02:05:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:05:05 - End Time 2025-03-21 02:05:05 [2025-03-21 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727001', 'tblTempUsageDetail_20' ) start [2025-03-21 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727001', 'tblTempUsageDetail_20' ) end [2025-03-21 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727001', 'tblTempVendorCDR_20' ) start [2025-03-21 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727001', 'tblTempVendorCDR_20' ) end [2025-03-21 02:05:18] Production.INFO: ProcessCDR(1,14727001,1,1,2) [2025-03-21 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727001', 'tblTempUsageDetail_20' ) start [2025-03-21 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727001', 'tblTempUsageDetail_20' ) end [2025-03-21 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:05:21] Production.INFO: ==3804== Releasing lock... [2025-03-21 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:05:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:06:05 [end_date_ymd] => 2025-03-21 02:06:05 [RateCDR] => 1 ) [2025-03-21 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:06:05' and `end` < '2025-03-21 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:06:17] Production.INFO: count ==515 [2025-03-21 02:06:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:06:05 - End Time 2025-03-21 02:06:05 [2025-03-21 02:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727006', 'tblTempUsageDetail_20' ) start [2025-03-21 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727006', 'tblTempUsageDetail_20' ) end [2025-03-21 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727006', 'tblTempVendorCDR_20' ) start [2025-03-21 02:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727006', 'tblTempVendorCDR_20' ) end [2025-03-21 02:06:17] Production.INFO: ProcessCDR(1,14727006,1,1,2) [2025-03-21 02:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727006', 'tblTempUsageDetail_20' ) start [2025-03-21 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727006', 'tblTempUsageDetail_20' ) end [2025-03-21 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:06:21] Production.INFO: ==3879== Releasing lock... [2025-03-21 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:06:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:07:06 [end_date_ymd] => 2025-03-21 02:07:06 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:07:06' and `end` < '2025-03-21 02: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-21 02:07:18] Production.INFO: count ==526 [2025-03-21 02:07:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:07:06 - End Time 2025-03-21 02:07:06 [2025-03-21 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727011', 'tblTempUsageDetail_20' ) start [2025-03-21 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727011', 'tblTempUsageDetail_20' ) end [2025-03-21 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727011', 'tblTempVendorCDR_20' ) start [2025-03-21 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727011', 'tblTempVendorCDR_20' ) end [2025-03-21 02:07:18] Production.INFO: ProcessCDR(1,14727011,1,1,2) [2025-03-21 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727011', 'tblTempUsageDetail_20' ) start [2025-03-21 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727011', 'tblTempUsageDetail_20' ) end [2025-03-21 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:07:22] Production.INFO: ==3968== Releasing lock... [2025-03-21 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:07:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:08:06 [end_date_ymd] => 2025-03-21 02:08:06 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:08:06' and `end` < '2025-03-21 02: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-21 02:08:18] Production.INFO: count ==526 [2025-03-21 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:08:06 - End Time 2025-03-21 02:08:06 [2025-03-21 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727016', 'tblTempUsageDetail_20' ) start [2025-03-21 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727016', 'tblTempUsageDetail_20' ) end [2025-03-21 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727016', 'tblTempVendorCDR_20' ) start [2025-03-21 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727016', 'tblTempVendorCDR_20' ) end [2025-03-21 02:08:18] Production.INFO: ProcessCDR(1,14727016,1,1,2) [2025-03-21 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727016', 'tblTempUsageDetail_20' ) start [2025-03-21 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727016', 'tblTempUsageDetail_20' ) end [2025-03-21 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:08:22] Production.INFO: ==4058== Releasing lock... [2025-03-21 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:08:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:09:05 [end_date_ymd] => 2025-03-21 02:09:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:09:05' and `end` < '2025-03-21 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-21 02:09:17] Production.INFO: count ==526 [2025-03-21 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:09:05 - End Time 2025-03-21 02:09:05 [2025-03-21 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727021', 'tblTempUsageDetail_20' ) start [2025-03-21 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727021', 'tblTempUsageDetail_20' ) end [2025-03-21 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727021', 'tblTempVendorCDR_20' ) start [2025-03-21 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727021', 'tblTempVendorCDR_20' ) end [2025-03-21 02:09:17] Production.INFO: ProcessCDR(1,14727021,1,1,2) [2025-03-21 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727021', 'tblTempUsageDetail_20' ) start [2025-03-21 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727021', 'tblTempUsageDetail_20' ) end [2025-03-21 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:09:21] Production.INFO: ==4147== Releasing lock... [2025-03-21 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:09:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:10:06 [end_date_ymd] => 2025-03-21 02:10:06 [RateCDR] => 1 ) [2025-03-21 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-20 23:10:06' and `end` < '2025-03-21 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-21 02:10:18] Production.INFO: count ==528 [2025-03-21 02:10:19] Production.ERROR: pbx CDR StartTime 2025-03-20 23:10:06 - End Time 2025-03-21 02:10:06 [2025-03-21 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727027', 'tblTempUsageDetail_20' ) start [2025-03-21 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727027', 'tblTempUsageDetail_20' ) end [2025-03-21 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727027', 'tblTempVendorCDR_20' ) start [2025-03-21 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727027', 'tblTempVendorCDR_20' ) end [2025-03-21 02:10:19] Production.INFO: ProcessCDR(1,14727027,1,1,2) [2025-03-21 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727027', 'tblTempUsageDetail_20' ) start [2025-03-21 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727027', 'tblTempUsageDetail_20' ) end [2025-03-21 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:10:22] Production.INFO: ==4236== Releasing lock... [2025-03-21 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:10:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:11:06 [end_date_ymd] => 2025-03-21 02:11:06 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:11:06' and `end` < '2025-03-21 02: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-21 02:11:18] Production.INFO: count ==522 [2025-03-21 02:11:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:11:06 - End Time 2025-03-21 02:11:06 [2025-03-21 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727032', 'tblTempUsageDetail_20' ) start [2025-03-21 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727032', 'tblTempUsageDetail_20' ) end [2025-03-21 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727032', 'tblTempVendorCDR_20' ) start [2025-03-21 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727032', 'tblTempVendorCDR_20' ) end [2025-03-21 02:11:18] Production.INFO: ProcessCDR(1,14727032,1,1,2) [2025-03-21 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727032', 'tblTempUsageDetail_20' ) start [2025-03-21 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727032', 'tblTempUsageDetail_20' ) end [2025-03-21 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:11:22] Production.INFO: ==4330== Releasing lock... [2025-03-21 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:11:22] Production.INFO: 33 MB #Memory Used# [2025-03-21 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:12:05 [end_date_ymd] => 2025-03-21 02:12:05 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:12:05' and `end` < '2025-03-21 02: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-21 02:12:17] Production.INFO: count ==523 [2025-03-21 02:12:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:12:05 - End Time 2025-03-21 02:12:05 [2025-03-21 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727037', 'tblTempUsageDetail_20' ) start [2025-03-21 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727037', 'tblTempUsageDetail_20' ) end [2025-03-21 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727037', 'tblTempVendorCDR_20' ) start [2025-03-21 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727037', 'tblTempVendorCDR_20' ) end [2025-03-21 02:12:18] Production.INFO: ProcessCDR(1,14727037,1,1,2) [2025-03-21 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727037', 'tblTempUsageDetail_20' ) start [2025-03-21 02:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727037', 'tblTempUsageDetail_20' ) end [2025-03-21 02:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:12:23] Production.INFO: ==4451== Releasing lock... [2025-03-21 02:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:12:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:13:06 [end_date_ymd] => 2025-03-21 02:13:06 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:13:06' and `end` < '2025-03-21 02: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-21 02:13:18] Production.INFO: count ==523 [2025-03-21 02:13:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:13:06 - End Time 2025-03-21 02:13:06 [2025-03-21 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727042', 'tblTempUsageDetail_20' ) start [2025-03-21 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727042', 'tblTempUsageDetail_20' ) end [2025-03-21 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727042', 'tblTempVendorCDR_20' ) start [2025-03-21 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727042', 'tblTempVendorCDR_20' ) end [2025-03-21 02:13:18] Production.INFO: ProcessCDR(1,14727042,1,1,2) [2025-03-21 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727042', 'tblTempUsageDetail_20' ) start [2025-03-21 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727042', 'tblTempUsageDetail_20' ) end [2025-03-21 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:13:21] Production.INFO: ==4539== Releasing lock... [2025-03-21 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:13:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:14:05 [end_date_ymd] => 2025-03-21 02:14:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:14:05' and `end` < '2025-03-21 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-21 02:14:17] Production.INFO: count ==512 [2025-03-21 02:14:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:14:05 - End Time 2025-03-21 02:14:05 [2025-03-21 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727047', 'tblTempUsageDetail_20' ) start [2025-03-21 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727047', 'tblTempUsageDetail_20' ) end [2025-03-21 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727047', 'tblTempVendorCDR_20' ) start [2025-03-21 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727047', 'tblTempVendorCDR_20' ) end [2025-03-21 02:14:18] Production.INFO: ProcessCDR(1,14727047,1,1,2) [2025-03-21 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727047', 'tblTempUsageDetail_20' ) start [2025-03-21 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727047', 'tblTempUsageDetail_20' ) end [2025-03-21 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:14:22] Production.INFO: ==4640== Releasing lock... [2025-03-21 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:14:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:15:06 [end_date_ymd] => 2025-03-21 02:15:06 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:15:06' and `end` < '2025-03-21 02: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-21 02:15:18] Production.INFO: count ==521 [2025-03-21 02:15:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:15:06 - End Time 2025-03-21 02:15:06 [2025-03-21 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727052', 'tblTempUsageDetail_20' ) start [2025-03-21 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727052', 'tblTempUsageDetail_20' ) end [2025-03-21 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727052', 'tblTempVendorCDR_20' ) start [2025-03-21 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727052', 'tblTempVendorCDR_20' ) end [2025-03-21 02:15:18] Production.INFO: ProcessCDR(1,14727052,1,1,2) [2025-03-21 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727052', 'tblTempUsageDetail_20' ) start [2025-03-21 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727052', 'tblTempUsageDetail_20' ) end [2025-03-21 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:15:22] Production.INFO: ==4737== Releasing lock... [2025-03-21 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:15:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:16:05 [end_date_ymd] => 2025-03-21 02:16:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:16:05' and `end` < '2025-03-21 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-21 02:16:17] Production.INFO: count ==528 [2025-03-21 02:16:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:16:05 - End Time 2025-03-21 02:16:05 [2025-03-21 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727057', 'tblTempUsageDetail_20' ) start [2025-03-21 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727057', 'tblTempUsageDetail_20' ) end [2025-03-21 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727057', 'tblTempVendorCDR_20' ) start [2025-03-21 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727057', 'tblTempVendorCDR_20' ) end [2025-03-21 02:16:17] Production.INFO: ProcessCDR(1,14727057,1,1,2) [2025-03-21 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727057', 'tblTempUsageDetail_20' ) start [2025-03-21 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727057', 'tblTempUsageDetail_20' ) end [2025-03-21 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:16:22] Production.INFO: ==4828== Releasing lock... [2025-03-21 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:16:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:17:06 [end_date_ymd] => 2025-03-21 02:17:06 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:17:06' and `end` < '2025-03-21 02: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-21 02:17:18] Production.INFO: count ==525 [2025-03-21 02:17:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:17:06 - End Time 2025-03-21 02:17:06 [2025-03-21 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727062', 'tblTempUsageDetail_20' ) start [2025-03-21 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727062', 'tblTempUsageDetail_20' ) end [2025-03-21 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727062', 'tblTempVendorCDR_20' ) start [2025-03-21 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727062', 'tblTempVendorCDR_20' ) end [2025-03-21 02:17:18] Production.INFO: ProcessCDR(1,14727062,1,1,2) [2025-03-21 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727062', 'tblTempUsageDetail_20' ) start [2025-03-21 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727062', 'tblTempUsageDetail_20' ) end [2025-03-21 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:17:22] Production.INFO: ==4922== Releasing lock... [2025-03-21 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:17:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:18:05 [end_date_ymd] => 2025-03-21 02:18:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:18:05' and `end` < '2025-03-21 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-21 02:18:17] Production.INFO: count ==531 [2025-03-21 02:18:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:18:05 - End Time 2025-03-21 02:18:05 [2025-03-21 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727067', 'tblTempUsageDetail_20' ) start [2025-03-21 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727067', 'tblTempUsageDetail_20' ) end [2025-03-21 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727067', 'tblTempVendorCDR_20' ) start [2025-03-21 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727067', 'tblTempVendorCDR_20' ) end [2025-03-21 02:18:17] Production.INFO: ProcessCDR(1,14727067,1,1,2) [2025-03-21 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727067', 'tblTempUsageDetail_20' ) start [2025-03-21 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727067', 'tblTempUsageDetail_20' ) end [2025-03-21 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:18:21] Production.INFO: ==5021== Releasing lock... [2025-03-21 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:18:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:19:06 [end_date_ymd] => 2025-03-21 02:19:06 [RateCDR] => 1 ) [2025-03-21 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-20 23:19:06' and `end` < '2025-03-21 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-21 02:19:18] Production.INFO: count ==530 [2025-03-21 02:19:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:19:06 - End Time 2025-03-21 02:19:06 [2025-03-21 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727072', 'tblTempUsageDetail_20' ) start [2025-03-21 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727072', 'tblTempUsageDetail_20' ) end [2025-03-21 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727072', 'tblTempVendorCDR_20' ) start [2025-03-21 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727072', 'tblTempVendorCDR_20' ) end [2025-03-21 02:19:18] Production.INFO: ProcessCDR(1,14727072,1,1,2) [2025-03-21 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727072', 'tblTempUsageDetail_20' ) start [2025-03-21 02:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727072', 'tblTempUsageDetail_20' ) end [2025-03-21 02:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:19:23] Production.INFO: ==5118== Releasing lock... [2025-03-21 02:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:19:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:20:06 [end_date_ymd] => 2025-03-21 02:20:06 [RateCDR] => 1 ) [2025-03-21 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-20 23:20:06' and `end` < '2025-03-21 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-21 02:20:18] Production.INFO: count ==528 [2025-03-21 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:20:06 - End Time 2025-03-21 02:20:06 [2025-03-21 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727077', 'tblTempUsageDetail_20' ) start [2025-03-21 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727077', 'tblTempUsageDetail_20' ) end [2025-03-21 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727077', 'tblTempVendorCDR_20' ) start [2025-03-21 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727077', 'tblTempVendorCDR_20' ) end [2025-03-21 02:20:18] Production.INFO: ProcessCDR(1,14727077,1,1,2) [2025-03-21 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727077', 'tblTempUsageDetail_20' ) start [2025-03-21 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727077', 'tblTempUsageDetail_20' ) end [2025-03-21 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:20:21] Production.INFO: ==5204== Releasing lock... [2025-03-21 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:20:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:21:05 [end_date_ymd] => 2025-03-21 02:21:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:21:05' and `end` < '2025-03-21 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-21 02:21:17] Production.INFO: count ==525 [2025-03-21 02:21:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:21:05 - End Time 2025-03-21 02:21:05 [2025-03-21 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727083', 'tblTempUsageDetail_20' ) start [2025-03-21 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727083', 'tblTempUsageDetail_20' ) end [2025-03-21 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727083', 'tblTempVendorCDR_20' ) start [2025-03-21 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727083', 'tblTempVendorCDR_20' ) end [2025-03-21 02:21:17] Production.INFO: ProcessCDR(1,14727083,1,1,2) [2025-03-21 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727083', 'tblTempUsageDetail_20' ) start [2025-03-21 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727083', 'tblTempUsageDetail_20' ) end [2025-03-21 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:21:21] Production.INFO: ==5306== Releasing lock... [2025-03-21 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:21:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:22:05 [end_date_ymd] => 2025-03-21 02:22:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:22:05' and `end` < '2025-03-21 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-21 02:22:17] Production.INFO: count ==524 [2025-03-21 02:22:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:22:05 - End Time 2025-03-21 02:22:05 [2025-03-21 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727088', 'tblTempUsageDetail_20' ) start [2025-03-21 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727088', 'tblTempUsageDetail_20' ) end [2025-03-21 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727088', 'tblTempVendorCDR_20' ) start [2025-03-21 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727088', 'tblTempVendorCDR_20' ) end [2025-03-21 02:22:17] Production.INFO: ProcessCDR(1,14727088,1,1,2) [2025-03-21 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727088', 'tblTempUsageDetail_20' ) start [2025-03-21 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727088', 'tblTempUsageDetail_20' ) end [2025-03-21 02:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:22:20] Production.INFO: ==5399== Releasing lock... [2025-03-21 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:22:20] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:23:05 [end_date_ymd] => 2025-03-21 02:23:05 [RateCDR] => 1 ) [2025-03-21 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:23:05' and `end` < '2025-03-21 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:23:17] Production.INFO: count ==526 [2025-03-21 02:23:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:23:05 - End Time 2025-03-21 02:23:05 [2025-03-21 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727093', 'tblTempUsageDetail_20' ) start [2025-03-21 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727093', 'tblTempUsageDetail_20' ) end [2025-03-21 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727093', 'tblTempVendorCDR_20' ) start [2025-03-21 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727093', 'tblTempVendorCDR_20' ) end [2025-03-21 02:23:17] Production.INFO: ProcessCDR(1,14727093,1,1,2) [2025-03-21 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727093', 'tblTempUsageDetail_20' ) start [2025-03-21 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727093', 'tblTempUsageDetail_20' ) end [2025-03-21 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:23:21] Production.INFO: ==5497== Releasing lock... [2025-03-21 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:23:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:24:06 [end_date_ymd] => 2025-03-21 02:24:06 [RateCDR] => 1 ) [2025-03-21 02:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:24:06' and `end` < '2025-03-21 02:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:24:18] Production.INFO: count ==518 [2025-03-21 02:24:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:24:06 - End Time 2025-03-21 02:24:06 [2025-03-21 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727098', 'tblTempUsageDetail_20' ) start [2025-03-21 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727098', 'tblTempUsageDetail_20' ) end [2025-03-21 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727098', 'tblTempVendorCDR_20' ) start [2025-03-21 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727098', 'tblTempVendorCDR_20' ) end [2025-03-21 02:24:18] Production.INFO: ProcessCDR(1,14727098,1,1,2) [2025-03-21 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727098', 'tblTempUsageDetail_20' ) start [2025-03-21 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727098', 'tblTempUsageDetail_20' ) end [2025-03-21 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:24:21] Production.INFO: ==5599== Releasing lock... [2025-03-21 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:25:05 [end_date_ymd] => 2025-03-21 02:25:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:25:05' and `end` < '2025-03-21 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-21 02:25:17] Production.INFO: count ==515 [2025-03-21 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:25:05 - End Time 2025-03-21 02:25:05 [2025-03-21 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727103', 'tblTempUsageDetail_20' ) start [2025-03-21 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727103', 'tblTempUsageDetail_20' ) end [2025-03-21 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727103', 'tblTempVendorCDR_20' ) start [2025-03-21 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727103', 'tblTempVendorCDR_20' ) end [2025-03-21 02:25:17] Production.INFO: ProcessCDR(1,14727103,1,1,2) [2025-03-21 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727103', 'tblTempUsageDetail_20' ) start [2025-03-21 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727103', 'tblTempUsageDetail_20' ) end [2025-03-21 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:25:21] Production.INFO: ==5686== Releasing lock... [2025-03-21 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:25:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:26:06 [end_date_ymd] => 2025-03-21 02:26:06 [RateCDR] => 1 ) [2025-03-21 02:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:26:06' and `end` < '2025-03-21 02:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:26:18] Production.INFO: count ==516 [2025-03-21 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:26:06 - End Time 2025-03-21 02:26:06 [2025-03-21 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727108', 'tblTempUsageDetail_20' ) start [2025-03-21 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727108', 'tblTempUsageDetail_20' ) end [2025-03-21 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727108', 'tblTempVendorCDR_20' ) start [2025-03-21 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727108', 'tblTempVendorCDR_20' ) end [2025-03-21 02:26:18] Production.INFO: ProcessCDR(1,14727108,1,1,2) [2025-03-21 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727108', 'tblTempUsageDetail_20' ) start [2025-03-21 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727108', 'tblTempUsageDetail_20' ) end [2025-03-21 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:26:21] Production.INFO: ==5779== Releasing lock... [2025-03-21 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:26:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:27:05 [end_date_ymd] => 2025-03-21 02:27:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:27:05' and `end` < '2025-03-21 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-21 02:27:17] Production.INFO: count ==519 [2025-03-21 02:27:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:27:05 - End Time 2025-03-21 02:27:05 [2025-03-21 02:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727113', 'tblTempUsageDetail_20' ) start [2025-03-21 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727113', 'tblTempUsageDetail_20' ) end [2025-03-21 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727113', 'tblTempVendorCDR_20' ) start [2025-03-21 02:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727113', 'tblTempVendorCDR_20' ) end [2025-03-21 02:27:17] Production.INFO: ProcessCDR(1,14727113,1,1,2) [2025-03-21 02:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727113', 'tblTempUsageDetail_20' ) start [2025-03-21 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727113', 'tblTempUsageDetail_20' ) end [2025-03-21 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:27:21] Production.INFO: ==5873== Releasing lock... [2025-03-21 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:27:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:28:06 [end_date_ymd] => 2025-03-21 02:28:06 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:28:06' and `end` < '2025-03-21 02: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-21 02:28:18] Production.INFO: count ==516 [2025-03-21 02:28:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:28:06 - End Time 2025-03-21 02:28:06 [2025-03-21 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727118', 'tblTempUsageDetail_20' ) start [2025-03-21 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727118', 'tblTempUsageDetail_20' ) end [2025-03-21 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727118', 'tblTempVendorCDR_20' ) start [2025-03-21 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727118', 'tblTempVendorCDR_20' ) end [2025-03-21 02:28:18] Production.INFO: ProcessCDR(1,14727118,1,1,2) [2025-03-21 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727118', 'tblTempUsageDetail_20' ) start [2025-03-21 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727118', 'tblTempUsageDetail_20' ) end [2025-03-21 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:28:21] Production.INFO: ==6012== Releasing lock... [2025-03-21 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:28:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:29:05 [end_date_ymd] => 2025-03-21 02:29:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:29:05' and `end` < '2025-03-21 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-21 02:29:17] Production.INFO: count ==509 [2025-03-21 02:29:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:29:05 - End Time 2025-03-21 02:29:05 [2025-03-21 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727123', 'tblTempUsageDetail_20' ) start [2025-03-21 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727123', 'tblTempUsageDetail_20' ) end [2025-03-21 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727123', 'tblTempVendorCDR_20' ) start [2025-03-21 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727123', 'tblTempVendorCDR_20' ) end [2025-03-21 02:29:18] Production.INFO: ProcessCDR(1,14727123,1,1,2) [2025-03-21 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727123', 'tblTempUsageDetail_20' ) start [2025-03-21 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727123', 'tblTempUsageDetail_20' ) end [2025-03-21 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:29:21] Production.INFO: ==6104== Releasing lock... [2025-03-21 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:30:06 [end_date_ymd] => 2025-03-21 02:30:06 [RateCDR] => 1 ) [2025-03-21 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-20 23:30:06' and `end` < '2025-03-21 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-21 02:30:19] Production.INFO: count ==511 [2025-03-21 02:30:19] Production.ERROR: pbx CDR StartTime 2025-03-20 23:30:06 - End Time 2025-03-21 02:30:06 [2025-03-21 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727129', 'tblTempUsageDetail_20' ) start [2025-03-21 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727129', 'tblTempUsageDetail_20' ) end [2025-03-21 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727129', 'tblTempVendorCDR_20' ) start [2025-03-21 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727129', 'tblTempVendorCDR_20' ) end [2025-03-21 02:30:19] Production.INFO: ProcessCDR(1,14727129,1,1,2) [2025-03-21 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727129', 'tblTempUsageDetail_20' ) start [2025-03-21 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727129', 'tblTempUsageDetail_20' ) end [2025-03-21 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:30:22] Production.INFO: ==6201== Releasing lock... [2025-03-21 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:30:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:31:05 [end_date_ymd] => 2025-03-21 02:31:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:31:05' and `end` < '2025-03-21 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-21 02:31:17] Production.INFO: count ==510 [2025-03-21 02:31:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:31:05 - End Time 2025-03-21 02:31:05 [2025-03-21 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727134', 'tblTempUsageDetail_20' ) start [2025-03-21 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727134', 'tblTempUsageDetail_20' ) end [2025-03-21 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727134', 'tblTempVendorCDR_20' ) start [2025-03-21 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727134', 'tblTempVendorCDR_20' ) end [2025-03-21 02:31:17] Production.INFO: ProcessCDR(1,14727134,1,1,2) [2025-03-21 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727134', 'tblTempUsageDetail_20' ) start [2025-03-21 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727134', 'tblTempUsageDetail_20' ) end [2025-03-21 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:31:20] Production.INFO: ==6305== Releasing lock... [2025-03-21 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:31:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:32:06 [end_date_ymd] => 2025-03-21 02:32:06 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:32:06' and `end` < '2025-03-21 02: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-21 02:32:18] Production.INFO: count ==510 [2025-03-21 02:32:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:32:06 - End Time 2025-03-21 02:32:06 [2025-03-21 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727139', 'tblTempUsageDetail_20' ) start [2025-03-21 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727139', 'tblTempUsageDetail_20' ) end [2025-03-21 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727139', 'tblTempVendorCDR_20' ) start [2025-03-21 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727139', 'tblTempVendorCDR_20' ) end [2025-03-21 02:32:18] Production.INFO: ProcessCDR(1,14727139,1,1,2) [2025-03-21 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727139', 'tblTempUsageDetail_20' ) start [2025-03-21 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727139', 'tblTempUsageDetail_20' ) end [2025-03-21 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:32:21] Production.INFO: ==6395== Releasing lock... [2025-03-21 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:33:05 [end_date_ymd] => 2025-03-21 02:33:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:33:05' and `end` < '2025-03-21 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-21 02:33:17] Production.INFO: count ==510 [2025-03-21 02:33:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:33:05 - End Time 2025-03-21 02:33:05 [2025-03-21 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727144', 'tblTempUsageDetail_20' ) start [2025-03-21 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727144', 'tblTempUsageDetail_20' ) end [2025-03-21 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727144', 'tblTempVendorCDR_20' ) start [2025-03-21 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727144', 'tblTempVendorCDR_20' ) end [2025-03-21 02:33:17] Production.INFO: ProcessCDR(1,14727144,1,1,2) [2025-03-21 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727144', 'tblTempUsageDetail_20' ) start [2025-03-21 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727144', 'tblTempUsageDetail_20' ) end [2025-03-21 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:33:21] Production.INFO: ==6492== Releasing lock... [2025-03-21 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:34:06 [end_date_ymd] => 2025-03-21 02:34:06 [RateCDR] => 1 ) [2025-03-21 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-20 23:34:06' and `end` < '2025-03-21 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-21 02:34:18] Production.INFO: count ==507 [2025-03-21 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:34:06 - End Time 2025-03-21 02:34:06 [2025-03-21 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727149', 'tblTempUsageDetail_20' ) start [2025-03-21 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727149', 'tblTempUsageDetail_20' ) end [2025-03-21 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727149', 'tblTempVendorCDR_20' ) start [2025-03-21 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727149', 'tblTempVendorCDR_20' ) end [2025-03-21 02:34:18] Production.INFO: ProcessCDR(1,14727149,1,1,2) [2025-03-21 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727149', 'tblTempUsageDetail_20' ) start [2025-03-21 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727149', 'tblTempUsageDetail_20' ) end [2025-03-21 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:34:22] Production.INFO: ==6599== Releasing lock... [2025-03-21 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:35:06 [end_date_ymd] => 2025-03-21 02:35:06 [RateCDR] => 1 ) [2025-03-21 02:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:35:06' and `end` < '2025-03-21 02:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:35:18] Production.INFO: count ==502 [2025-03-21 02:35:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:35:06 - End Time 2025-03-21 02:35:06 [2025-03-21 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727154', 'tblTempUsageDetail_20' ) start [2025-03-21 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727154', 'tblTempUsageDetail_20' ) end [2025-03-21 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727154', 'tblTempVendorCDR_20' ) start [2025-03-21 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727154', 'tblTempVendorCDR_20' ) end [2025-03-21 02:35:18] Production.INFO: ProcessCDR(1,14727154,1,1,2) [2025-03-21 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727154', 'tblTempUsageDetail_20' ) start [2025-03-21 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727154', 'tblTempUsageDetail_20' ) end [2025-03-21 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:35:22] Production.INFO: ==6694== Releasing lock... [2025-03-21 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:35:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:36:06 [end_date_ymd] => 2025-03-21 02:36:06 [RateCDR] => 1 ) [2025-03-21 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-20 23:36:06' and `end` < '2025-03-21 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-21 02:36:18] Production.INFO: count ==499 [2025-03-21 02:36:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:36:06 - End Time 2025-03-21 02:36:06 [2025-03-21 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727159', 'tblTempUsageDetail_20' ) start [2025-03-21 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727159', 'tblTempUsageDetail_20' ) end [2025-03-21 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727159', 'tblTempVendorCDR_20' ) start [2025-03-21 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727159', 'tblTempVendorCDR_20' ) end [2025-03-21 02:36:18] Production.INFO: ProcessCDR(1,14727159,1,1,2) [2025-03-21 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727159', 'tblTempUsageDetail_20' ) start [2025-03-21 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727159', 'tblTempUsageDetail_20' ) end [2025-03-21 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:36:22] Production.INFO: ==6802== Releasing lock... [2025-03-21 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:36:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:37:05 [end_date_ymd] => 2025-03-21 02:37:05 [RateCDR] => 1 ) [2025-03-21 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:37:05' and `end` < '2025-03-21 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:37:17] Production.INFO: count ==498 [2025-03-21 02:37:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:37:05 - End Time 2025-03-21 02:37:05 [2025-03-21 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727164', 'tblTempUsageDetail_20' ) start [2025-03-21 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727164', 'tblTempUsageDetail_20' ) end [2025-03-21 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727164', 'tblTempVendorCDR_20' ) start [2025-03-21 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727164', 'tblTempVendorCDR_20' ) end [2025-03-21 02:37:18] Production.INFO: ProcessCDR(1,14727164,1,1,2) [2025-03-21 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727164', 'tblTempUsageDetail_20' ) start [2025-03-21 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727164', 'tblTempUsageDetail_20' ) end [2025-03-21 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:37:21] Production.INFO: ==6906== Releasing lock... [2025-03-21 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:38:06 [end_date_ymd] => 2025-03-21 02:38:06 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:38:06' and `end` < '2025-03-21 02: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-21 02:38:18] Production.INFO: count ==498 [2025-03-21 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:38:06 - End Time 2025-03-21 02:38:06 [2025-03-21 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727169', 'tblTempUsageDetail_20' ) start [2025-03-21 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727169', 'tblTempUsageDetail_20' ) end [2025-03-21 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727169', 'tblTempVendorCDR_20' ) start [2025-03-21 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727169', 'tblTempVendorCDR_20' ) end [2025-03-21 02:38:18] Production.INFO: ProcessCDR(1,14727169,1,1,2) [2025-03-21 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727169', 'tblTempUsageDetail_20' ) start [2025-03-21 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727169', 'tblTempUsageDetail_20' ) end [2025-03-21 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:38:22] Production.INFO: ==7013== Releasing lock... [2025-03-21 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:38:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:39:05 [end_date_ymd] => 2025-03-21 02:39:05 [RateCDR] => 1 ) [2025-03-21 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:39:05' and `end` < '2025-03-21 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:39:17] Production.INFO: count ==495 [2025-03-21 02:39:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:39:05 - End Time 2025-03-21 02:39:05 [2025-03-21 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727174', 'tblTempUsageDetail_20' ) start [2025-03-21 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727174', 'tblTempUsageDetail_20' ) end [2025-03-21 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727174', 'tblTempVendorCDR_20' ) start [2025-03-21 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727174', 'tblTempVendorCDR_20' ) end [2025-03-21 02:39:18] Production.INFO: ProcessCDR(1,14727174,1,1,2) [2025-03-21 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727174', 'tblTempUsageDetail_20' ) start [2025-03-21 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727174', 'tblTempUsageDetail_20' ) end [2025-03-21 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:39:22] Production.INFO: ==7114== Releasing lock... [2025-03-21 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:39:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:40:06 [end_date_ymd] => 2025-03-21 02:40:06 [RateCDR] => 1 ) [2025-03-21 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-20 23:40:06' and `end` < '2025-03-21 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-21 02:40:18] Production.INFO: count ==505 [2025-03-21 02:40:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:40:06 - End Time 2025-03-21 02:40:06 [2025-03-21 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727179', 'tblTempUsageDetail_20' ) start [2025-03-21 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727179', 'tblTempUsageDetail_20' ) end [2025-03-21 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727179', 'tblTempVendorCDR_20' ) start [2025-03-21 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727179', 'tblTempVendorCDR_20' ) end [2025-03-21 02:40:18] Production.INFO: ProcessCDR(1,14727179,1,1,2) [2025-03-21 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727179', 'tblTempUsageDetail_20' ) start [2025-03-21 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727179', 'tblTempUsageDetail_20' ) end [2025-03-21 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:40:22] Production.INFO: ==7211== Releasing lock... [2025-03-21 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:40:22] Production.INFO: 32 MB #Memory Used# [2025-03-21 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:41:06 [end_date_ymd] => 2025-03-21 02:41:06 [RateCDR] => 1 ) [2025-03-21 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-20 23:41:06' and `end` < '2025-03-21 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-21 02:41:18] Production.INFO: count ==500 [2025-03-21 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:41:06 - End Time 2025-03-21 02:41:06 [2025-03-21 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727185', 'tblTempUsageDetail_20' ) start [2025-03-21 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727185', 'tblTempUsageDetail_20' ) end [2025-03-21 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727185', 'tblTempVendorCDR_20' ) start [2025-03-21 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727185', 'tblTempVendorCDR_20' ) end [2025-03-21 02:41:18] Production.INFO: ProcessCDR(1,14727185,1,1,2) [2025-03-21 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727185', 'tblTempUsageDetail_20' ) start [2025-03-21 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727185', 'tblTempUsageDetail_20' ) end [2025-03-21 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:41:22] Production.INFO: ==7312== Releasing lock... [2025-03-21 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:42:06 [end_date_ymd] => 2025-03-21 02:42:06 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:42:06' and `end` < '2025-03-21 02: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-21 02:42:18] Production.INFO: count ==500 [2025-03-21 02:42:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:42:06 - End Time 2025-03-21 02:42:06 [2025-03-21 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727190', 'tblTempUsageDetail_20' ) start [2025-03-21 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727190', 'tblTempUsageDetail_20' ) end [2025-03-21 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727190', 'tblTempVendorCDR_20' ) start [2025-03-21 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727190', 'tblTempVendorCDR_20' ) end [2025-03-21 02:42:18] Production.INFO: ProcessCDR(1,14727190,1,1,2) [2025-03-21 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727190', 'tblTempUsageDetail_20' ) start [2025-03-21 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727190', 'tblTempUsageDetail_20' ) end [2025-03-21 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:42:22] Production.INFO: ==7415== Releasing lock... [2025-03-21 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:42:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:43:05 [end_date_ymd] => 2025-03-21 02:43:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:43:05' and `end` < '2025-03-21 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-21 02:43:17] Production.INFO: count ==497 [2025-03-21 02:43:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:43:05 - End Time 2025-03-21 02:43:05 [2025-03-21 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727195', 'tblTempUsageDetail_20' ) start [2025-03-21 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727195', 'tblTempUsageDetail_20' ) end [2025-03-21 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727195', 'tblTempVendorCDR_20' ) start [2025-03-21 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727195', 'tblTempVendorCDR_20' ) end [2025-03-21 02:43:18] Production.INFO: ProcessCDR(1,14727195,1,1,2) [2025-03-21 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727195', 'tblTempUsageDetail_20' ) start [2025-03-21 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727195', 'tblTempUsageDetail_20' ) end [2025-03-21 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:43:21] Production.INFO: ==7555== Releasing lock... [2025-03-21 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:43:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:44:06 [end_date_ymd] => 2025-03-21 02:44:06 [RateCDR] => 1 ) [2025-03-21 02:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:44:06' and `end` < '2025-03-21 02:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:44:18] Production.INFO: count ==496 [2025-03-21 02:44:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:44:06 - End Time 2025-03-21 02:44:06 [2025-03-21 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727200', 'tblTempUsageDetail_20' ) start [2025-03-21 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727200', 'tblTempUsageDetail_20' ) end [2025-03-21 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727200', 'tblTempVendorCDR_20' ) start [2025-03-21 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727200', 'tblTempVendorCDR_20' ) end [2025-03-21 02:44:18] Production.INFO: ProcessCDR(1,14727200,1,1,2) [2025-03-21 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727200', 'tblTempUsageDetail_20' ) start [2025-03-21 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727200', 'tblTempUsageDetail_20' ) end [2025-03-21 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:44:22] Production.INFO: ==7657== Releasing lock... [2025-03-21 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:44:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:45:05 [end_date_ymd] => 2025-03-21 02:45:05 [RateCDR] => 1 ) [2025-03-21 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:45:05' and `end` < '2025-03-21 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:45:17] Production.INFO: count ==501 [2025-03-21 02:45:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:45:05 - End Time 2025-03-21 02:45:05 [2025-03-21 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727205', 'tblTempUsageDetail_20' ) start [2025-03-21 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727205', 'tblTempUsageDetail_20' ) end [2025-03-21 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727205', 'tblTempVendorCDR_20' ) start [2025-03-21 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727205', 'tblTempVendorCDR_20' ) end [2025-03-21 02:45:17] Production.INFO: ProcessCDR(1,14727205,1,1,2) [2025-03-21 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727205', 'tblTempUsageDetail_20' ) start [2025-03-21 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727205', 'tblTempUsageDetail_20' ) end [2025-03-21 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:45:21] Production.INFO: ==7758== Releasing lock... [2025-03-21 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:45:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:46:06 [end_date_ymd] => 2025-03-21 02:46:06 [RateCDR] => 1 ) [2025-03-21 02:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:46:06' and `end` < '2025-03-21 02:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:46:18] Production.INFO: count ==504 [2025-03-21 02:46:19] Production.ERROR: pbx CDR StartTime 2025-03-20 23:46:06 - End Time 2025-03-21 02:46:06 [2025-03-21 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727210', 'tblTempUsageDetail_20' ) start [2025-03-21 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727210', 'tblTempUsageDetail_20' ) end [2025-03-21 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727210', 'tblTempVendorCDR_20' ) start [2025-03-21 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727210', 'tblTempVendorCDR_20' ) end [2025-03-21 02:46:19] Production.INFO: ProcessCDR(1,14727210,1,1,2) [2025-03-21 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727210', 'tblTempUsageDetail_20' ) start [2025-03-21 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727210', 'tblTempUsageDetail_20' ) end [2025-03-21 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:46:23] Production.INFO: ==7859== Releasing lock... [2025-03-21 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:46:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:47:05 [end_date_ymd] => 2025-03-21 02:47:05 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:47:05' and `end` < '2025-03-21 02: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-21 02:47:18] Production.INFO: count ==503 [2025-03-21 02:47:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:47:05 - End Time 2025-03-21 02:47:05 [2025-03-21 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727215', 'tblTempUsageDetail_20' ) start [2025-03-21 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727215', 'tblTempUsageDetail_20' ) end [2025-03-21 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727215', 'tblTempVendorCDR_20' ) start [2025-03-21 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727215', 'tblTempVendorCDR_20' ) end [2025-03-21 02:47:18] Production.INFO: ProcessCDR(1,14727215,1,1,2) [2025-03-21 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727215', 'tblTempUsageDetail_20' ) start [2025-03-21 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727215', 'tblTempUsageDetail_20' ) end [2025-03-21 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:47:22] Production.INFO: ==7961== Releasing lock... [2025-03-21 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:47:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:48:06 [end_date_ymd] => 2025-03-21 02:48:06 [RateCDR] => 1 ) [2025-03-21 02:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:48:06' and `end` < '2025-03-21 02:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:48:19] Production.INFO: count ==505 [2025-03-21 02:48:19] Production.ERROR: pbx CDR StartTime 2025-03-20 23:48:06 - End Time 2025-03-21 02:48:06 [2025-03-21 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727220', 'tblTempUsageDetail_20' ) start [2025-03-21 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727220', 'tblTempUsageDetail_20' ) end [2025-03-21 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727220', 'tblTempVendorCDR_20' ) start [2025-03-21 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727220', 'tblTempVendorCDR_20' ) end [2025-03-21 02:48:19] Production.INFO: ProcessCDR(1,14727220,1,1,2) [2025-03-21 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727220', 'tblTempUsageDetail_20' ) start [2025-03-21 02:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727220', 'tblTempUsageDetail_20' ) end [2025-03-21 02:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:48:25] Production.INFO: ==8059== Releasing lock... [2025-03-21 02:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:48:25] Production.INFO: 32 MB #Memory Used# [2025-03-21 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:49:06 [end_date_ymd] => 2025-03-21 02:49:06 [RateCDR] => 1 ) [2025-03-21 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-20 23:49:06' and `end` < '2025-03-21 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-21 02:49:18] Production.INFO: count ==511 [2025-03-21 02:49:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:49:06 - End Time 2025-03-21 02:49:06 [2025-03-21 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727225', 'tblTempUsageDetail_20' ) start [2025-03-21 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727225', 'tblTempUsageDetail_20' ) end [2025-03-21 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727225', 'tblTempVendorCDR_20' ) start [2025-03-21 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727225', 'tblTempVendorCDR_20' ) end [2025-03-21 02:49:18] Production.INFO: ProcessCDR(1,14727225,1,1,2) [2025-03-21 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727225', 'tblTempUsageDetail_20' ) start [2025-03-21 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727225', 'tblTempUsageDetail_20' ) end [2025-03-21 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:49:22] Production.INFO: ==8169== Releasing lock... [2025-03-21 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:49:22] Production.INFO: 33 MB #Memory Used# [2025-03-21 02:50:08] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:50:08 [end_date_ymd] => 2025-03-21 02:50:08 [RateCDR] => 1 ) [2025-03-21 02:50:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:50:08' and `end` < '2025-03-21 02:50:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:50:20] Production.INFO: count ==528 [2025-03-21 02:50:20] Production.ERROR: pbx CDR StartTime 2025-03-20 23:50:08 - End Time 2025-03-21 02:50:08 [2025-03-21 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727231', 'tblTempUsageDetail_20' ) start [2025-03-21 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727231', 'tblTempUsageDetail_20' ) end [2025-03-21 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727231', 'tblTempVendorCDR_20' ) start [2025-03-21 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727231', 'tblTempVendorCDR_20' ) end [2025-03-21 02:50:20] Production.INFO: ProcessCDR(1,14727231,1,1,2) [2025-03-21 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727231', 'tblTempUsageDetail_20' ) start [2025-03-21 02:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727231', 'tblTempUsageDetail_20' ) end [2025-03-21 02:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:50:26] Production.INFO: ==8271== Releasing lock... [2025-03-21 02:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:50:26] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:51:06 [end_date_ymd] => 2025-03-21 02:51:06 [RateCDR] => 1 ) [2025-03-21 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-20 23:51:06' and `end` < '2025-03-21 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-21 02:51:18] Production.INFO: count ==550 [2025-03-21 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:51:06 - End Time 2025-03-21 02:51:06 [2025-03-21 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727236', 'tblTempUsageDetail_20' ) start [2025-03-21 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727236', 'tblTempUsageDetail_20' ) end [2025-03-21 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727236', 'tblTempVendorCDR_20' ) start [2025-03-21 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727236', 'tblTempVendorCDR_20' ) end [2025-03-21 02:51:18] Production.INFO: ProcessCDR(1,14727236,1,1,2) [2025-03-21 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727236', 'tblTempUsageDetail_20' ) start [2025-03-21 02:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727236', 'tblTempUsageDetail_20' ) end [2025-03-21 02:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:51:24] Production.INFO: ==8375== Releasing lock... [2025-03-21 02:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:51:24] Production.INFO: 33 MB #Memory Used# [2025-03-21 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:52:05 [end_date_ymd] => 2025-03-21 02:52:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:52:05' and `end` < '2025-03-21 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-21 02:52:17] Production.INFO: count ==555 [2025-03-21 02:52:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:52:05 - End Time 2025-03-21 02:52:05 [2025-03-21 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727241', 'tblTempUsageDetail_20' ) start [2025-03-21 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727241', 'tblTempUsageDetail_20' ) end [2025-03-21 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727241', 'tblTempVendorCDR_20' ) start [2025-03-21 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727241', 'tblTempVendorCDR_20' ) end [2025-03-21 02:52:18] Production.INFO: ProcessCDR(1,14727241,1,1,2) [2025-03-21 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727241', 'tblTempUsageDetail_20' ) start [2025-03-21 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727241', 'tblTempUsageDetail_20' ) end [2025-03-21 02:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:52:23] Production.INFO: ==8481== Releasing lock... [2025-03-21 02:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:52:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:53:06 [end_date_ymd] => 2025-03-21 02:53:06 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:53:06' and `end` < '2025-03-21 02: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-21 02:53:18] Production.INFO: count ==554 [2025-03-21 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:53:06 - End Time 2025-03-21 02:53:06 [2025-03-21 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727246', 'tblTempUsageDetail_20' ) start [2025-03-21 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727246', 'tblTempUsageDetail_20' ) end [2025-03-21 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727246', 'tblTempVendorCDR_20' ) start [2025-03-21 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727246', 'tblTempVendorCDR_20' ) end [2025-03-21 02:53:18] Production.INFO: ProcessCDR(1,14727246,1,1,2) [2025-03-21 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727246', 'tblTempUsageDetail_20' ) start [2025-03-21 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727246', 'tblTempUsageDetail_20' ) end [2025-03-21 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:53:22] Production.INFO: ==8584== Releasing lock... [2025-03-21 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:54:05 [end_date_ymd] => 2025-03-21 02:54:05 [RateCDR] => 1 ) [2025-03-21 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:54:05' and `end` < '2025-03-21 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:54:17] Production.INFO: count ==561 [2025-03-21 02:54:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:54:05 - End Time 2025-03-21 02:54:05 [2025-03-21 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727251', 'tblTempUsageDetail_20' ) start [2025-03-21 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727251', 'tblTempUsageDetail_20' ) end [2025-03-21 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727251', 'tblTempVendorCDR_20' ) start [2025-03-21 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727251', 'tblTempVendorCDR_20' ) end [2025-03-21 02:54:18] Production.INFO: ProcessCDR(1,14727251,1,1,2) [2025-03-21 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727251', 'tblTempUsageDetail_20' ) start [2025-03-21 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727251', 'tblTempUsageDetail_20' ) end [2025-03-21 02:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:54:23] Production.INFO: ==8680== Releasing lock... [2025-03-21 02:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:54:23] Production.INFO: 33 MB #Memory Used# [2025-03-21 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:55:06 [end_date_ymd] => 2025-03-21 02:55:06 [RateCDR] => 1 ) [2025-03-21 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-20 23:55:06' and `end` < '2025-03-21 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-21 02:55:18] Production.INFO: count ==567 [2025-03-21 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:55:06 - End Time 2025-03-21 02:55:06 [2025-03-21 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727256', 'tblTempUsageDetail_20' ) start [2025-03-21 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727256', 'tblTempUsageDetail_20' ) end [2025-03-21 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727256', 'tblTempVendorCDR_20' ) start [2025-03-21 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727256', 'tblTempVendorCDR_20' ) end [2025-03-21 02:55:18] Production.INFO: ProcessCDR(1,14727256,1,1,2) [2025-03-21 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727256', 'tblTempUsageDetail_20' ) start [2025-03-21 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727256', 'tblTempUsageDetail_20' ) end [2025-03-21 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:55:22] Production.INFO: ==8784== Releasing lock... [2025-03-21 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:55:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:56:05 [end_date_ymd] => 2025-03-21 02:56:05 [RateCDR] => 1 ) [2025-03-21 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-20 23:56:05' and `end` < '2025-03-21 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 02:56:17] Production.INFO: count ==578 [2025-03-21 02:56:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:56:05 - End Time 2025-03-21 02:56:05 [2025-03-21 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727261', 'tblTempUsageDetail_20' ) start [2025-03-21 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727261', 'tblTempUsageDetail_20' ) end [2025-03-21 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727261', 'tblTempVendorCDR_20' ) start [2025-03-21 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727261', 'tblTempVendorCDR_20' ) end [2025-03-21 02:56:18] Production.INFO: ProcessCDR(1,14727261,1,1,2) [2025-03-21 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727261', 'tblTempUsageDetail_20' ) start [2025-03-21 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727261', 'tblTempUsageDetail_20' ) end [2025-03-21 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:56:23] Production.INFO: ==8874== Releasing lock... [2025-03-21 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:56:23] Production.INFO: 33 MB #Memory Used# [2025-03-21 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:57:05 [end_date_ymd] => 2025-03-21 02:57:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:57:05' and `end` < '2025-03-21 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-21 02:57:17] Production.INFO: count ==589 [2025-03-21 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-20 23:57:05 - End Time 2025-03-21 02:57:05 [2025-03-21 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727265', 'tblTempUsageDetail_20' ) start [2025-03-21 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727265', 'tblTempUsageDetail_20' ) end [2025-03-21 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727265', 'tblTempVendorCDR_20' ) start [2025-03-21 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727265', 'tblTempVendorCDR_20' ) end [2025-03-21 02:57:18] Production.INFO: ProcessCDR(1,14727265,1,1,2) [2025-03-21 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727265', 'tblTempUsageDetail_20' ) start [2025-03-21 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727265', 'tblTempUsageDetail_20' ) end [2025-03-21 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:57:21] Production.INFO: ==8974== Releasing lock... [2025-03-21 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:57:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:58:06 [end_date_ymd] => 2025-03-21 02:58:06 [RateCDR] => 1 ) [2025-03-21 02: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-20 23:58:06' and `end` < '2025-03-21 02: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-21 02:58:19] Production.INFO: count ==591 [2025-03-21 02:58:19] Production.ERROR: pbx CDR StartTime 2025-03-20 23:58:06 - End Time 2025-03-21 02:58:06 [2025-03-21 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727271', 'tblTempUsageDetail_20' ) start [2025-03-21 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727271', 'tblTempUsageDetail_20' ) end [2025-03-21 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727271', 'tblTempVendorCDR_20' ) start [2025-03-21 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727271', 'tblTempVendorCDR_20' ) end [2025-03-21 02:58:19] Production.INFO: ProcessCDR(1,14727271,1,1,2) [2025-03-21 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727271', 'tblTempUsageDetail_20' ) start [2025-03-21 02:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727271', 'tblTempUsageDetail_20' ) end [2025-03-21 02:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:58:24] Production.INFO: ==9103== Releasing lock... [2025-03-21 02:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:58:24] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-20 23:59:05 [end_date_ymd] => 2025-03-21 02:59:05 [RateCDR] => 1 ) [2025-03-21 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-20 23:59:05' and `end` < '2025-03-21 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-21 02:59:17] Production.INFO: count ==595 [2025-03-21 02:59:17] Production.ERROR: pbx CDR StartTime 2025-03-20 23:59:05 - End Time 2025-03-21 02:59:05 [2025-03-21 02:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727276', 'tblTempUsageDetail_20' ) start [2025-03-21 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727276', 'tblTempUsageDetail_20' ) end [2025-03-21 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727276', 'tblTempVendorCDR_20' ) start [2025-03-21 02:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727276', 'tblTempVendorCDR_20' ) end [2025-03-21 02:59:17] Production.INFO: ProcessCDR(1,14727276,1,1,2) [2025-03-21 02:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727276', 'tblTempUsageDetail_20' ) start [2025-03-21 02:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727276', 'tblTempUsageDetail_20' ) end [2025-03-21 02:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 02:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 02:59:23] Production.INFO: ==9191== Releasing lock... [2025-03-21 02:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 02:59:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:00:07 [end_date_ymd] => 2025-03-21 03:00:07 [RateCDR] => 1 ) [2025-03-21 03: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-21 00:00:07' and `end` < '2025-03-21 03: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-21 03:00:19] Production.INFO: count ==609 [2025-03-21 03:00:19] Production.ERROR: pbx CDR StartTime 2025-03-21 00:00:07 - End Time 2025-03-21 03:00:07 [2025-03-21 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727281', 'tblTempUsageDetail_20' ) start [2025-03-21 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727281', 'tblTempUsageDetail_20' ) end [2025-03-21 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727281', 'tblTempVendorCDR_20' ) start [2025-03-21 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727281', 'tblTempVendorCDR_20' ) end [2025-03-21 03:00:19] Production.INFO: ProcessCDR(1,14727281,1,1,2) [2025-03-21 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727281', 'tblTempUsageDetail_20' ) start [2025-03-21 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727281', 'tblTempUsageDetail_20' ) end [2025-03-21 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:00:23] Production.INFO: ==9290== Releasing lock... [2025-03-21 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:00:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:01:06 [end_date_ymd] => 2025-03-21 03:01:06 [RateCDR] => 1 ) [2025-03-21 03: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-21 00:01:06' and `end` < '2025-03-21 03: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-21 03:01:19] Production.INFO: count ==615 [2025-03-21 03:01:19] Production.ERROR: pbx CDR StartTime 2025-03-21 00:01:06 - End Time 2025-03-21 03:01:06 [2025-03-21 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727287', 'tblTempUsageDetail_20' ) start [2025-03-21 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727287', 'tblTempUsageDetail_20' ) end [2025-03-21 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727287', 'tblTempVendorCDR_20' ) start [2025-03-21 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727287', 'tblTempVendorCDR_20' ) end [2025-03-21 03:01:19] Production.INFO: ProcessCDR(1,14727287,1,1,2) [2025-03-21 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727287', 'tblTempUsageDetail_20' ) start [2025-03-21 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727287', 'tblTempUsageDetail_20' ) end [2025-03-21 03:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:01:23] Production.INFO: ==9393== Releasing lock... [2025-03-21 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:01:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-21 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:02:06 [end_date_ymd] => 2025-03-21 03:02:06 [RateCDR] => 1 ) [2025-03-21 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-21 00:02:06' and `end` < '2025-03-21 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-21 03:02:18] Production.INFO: count ==618 [2025-03-21 03:02:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:02:06 - End Time 2025-03-21 03:02:06 [2025-03-21 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727292', 'tblTempUsageDetail_20' ) start [2025-03-21 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727292', 'tblTempUsageDetail_20' ) end [2025-03-21 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727292', 'tblTempVendorCDR_20' ) start [2025-03-21 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727292', 'tblTempVendorCDR_20' ) end [2025-03-21 03:02:18] Production.INFO: ProcessCDR(1,14727292,1,1,2) [2025-03-21 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727292', 'tblTempUsageDetail_20' ) start [2025-03-21 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727292', 'tblTempUsageDetail_20' ) end [2025-03-21 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:02:22] Production.INFO: ==9561== Releasing lock... [2025-03-21 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:02:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-21 03:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:03:06 [end_date_ymd] => 2025-03-21 03:03:06 [RateCDR] => 1 ) [2025-03-21 03:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:03:06' and `end` < '2025-03-21 03:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:03:18] Production.INFO: count ==655 [2025-03-21 03:03:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:03:06 - End Time 2025-03-21 03:03:06 [2025-03-21 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727297', 'tblTempUsageDetail_20' ) start [2025-03-21 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727297', 'tblTempUsageDetail_20' ) end [2025-03-21 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727297', 'tblTempVendorCDR_20' ) start [2025-03-21 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727297', 'tblTempVendorCDR_20' ) end [2025-03-21 03:03:18] Production.INFO: ProcessCDR(1,14727297,1,1,2) [2025-03-21 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727297', 'tblTempUsageDetail_20' ) start [2025-03-21 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727297', 'tblTempUsageDetail_20' ) end [2025-03-21 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:03:22] Production.INFO: ==9655== Releasing lock... [2025-03-21 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:03:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-21 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:04:05 [end_date_ymd] => 2025-03-21 03:04:05 [RateCDR] => 1 ) [2025-03-21 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:04:05' and `end` < '2025-03-21 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:04:18] Production.INFO: count ==655 [2025-03-21 03:04:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:04:05 - End Time 2025-03-21 03:04:05 [2025-03-21 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727302', 'tblTempUsageDetail_20' ) start [2025-03-21 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727302', 'tblTempUsageDetail_20' ) end [2025-03-21 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727302', 'tblTempVendorCDR_20' ) start [2025-03-21 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727302', 'tblTempVendorCDR_20' ) end [2025-03-21 03:04:18] Production.INFO: ProcessCDR(1,14727302,1,1,2) [2025-03-21 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727302', 'tblTempUsageDetail_20' ) start [2025-03-21 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727302', 'tblTempUsageDetail_20' ) end [2025-03-21 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:04:22] Production.INFO: ==9743== Releasing lock... [2025-03-21 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:04:22] Production.INFO: 33.75 MB #Memory Used# [2025-03-21 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:05:05 [end_date_ymd] => 2025-03-21 03:05:05 [RateCDR] => 1 ) [2025-03-21 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:05:05' and `end` < '2025-03-21 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:05:18] Production.INFO: count ==652 [2025-03-21 03:05:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:05:05 - End Time 2025-03-21 03:05:05 [2025-03-21 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727307', 'tblTempUsageDetail_20' ) start [2025-03-21 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727307', 'tblTempUsageDetail_20' ) end [2025-03-21 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727307', 'tblTempVendorCDR_20' ) start [2025-03-21 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727307', 'tblTempVendorCDR_20' ) end [2025-03-21 03:05:18] Production.INFO: ProcessCDR(1,14727307,1,1,2) [2025-03-21 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727307', 'tblTempUsageDetail_20' ) start [2025-03-21 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727307', 'tblTempUsageDetail_20' ) end [2025-03-21 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:05:21] Production.INFO: ==9830== Releasing lock... [2025-03-21 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:05:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:06:05 [end_date_ymd] => 2025-03-21 03:06:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:06:05' and `end` < '2025-03-21 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-21 03:06:17] Production.INFO: count ==646 [2025-03-21 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:06:05 - End Time 2025-03-21 03:06:05 [2025-03-21 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727312', 'tblTempUsageDetail_20' ) start [2025-03-21 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727312', 'tblTempUsageDetail_20' ) end [2025-03-21 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727312', 'tblTempVendorCDR_20' ) start [2025-03-21 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727312', 'tblTempVendorCDR_20' ) end [2025-03-21 03:06:18] Production.INFO: ProcessCDR(1,14727312,1,1,2) [2025-03-21 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727312', 'tblTempUsageDetail_20' ) start [2025-03-21 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727312', 'tblTempUsageDetail_20' ) end [2025-03-21 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:06:21] Production.INFO: ==10000== Releasing lock... [2025-03-21 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:06:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:07:05 [end_date_ymd] => 2025-03-21 03:07:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:07:05' and `end` < '2025-03-21 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-21 03:07:17] Production.INFO: count ==649 [2025-03-21 03:07:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:07:05 - End Time 2025-03-21 03:07:05 [2025-03-21 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727317', 'tblTempUsageDetail_20' ) start [2025-03-21 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727317', 'tblTempUsageDetail_20' ) end [2025-03-21 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727317', 'tblTempVendorCDR_20' ) start [2025-03-21 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727317', 'tblTempVendorCDR_20' ) end [2025-03-21 03:07:18] Production.INFO: ProcessCDR(1,14727317,1,1,2) [2025-03-21 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727317', 'tblTempUsageDetail_20' ) start [2025-03-21 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727317', 'tblTempUsageDetail_20' ) end [2025-03-21 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:07:21] Production.INFO: ==10121== Releasing lock... [2025-03-21 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:07:21] Production.INFO: 33.75 MB #Memory Used# [2025-03-21 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:08:05 [end_date_ymd] => 2025-03-21 03:08:05 [RateCDR] => 1 ) [2025-03-21 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:08:05' and `end` < '2025-03-21 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:08:17] Production.INFO: count ==645 [2025-03-21 03:08:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:08:05 - End Time 2025-03-21 03:08:05 [2025-03-21 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727322', 'tblTempUsageDetail_20' ) start [2025-03-21 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727322', 'tblTempUsageDetail_20' ) end [2025-03-21 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727322', 'tblTempVendorCDR_20' ) start [2025-03-21 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727322', 'tblTempVendorCDR_20' ) end [2025-03-21 03:08:17] Production.INFO: ProcessCDR(1,14727322,1,1,2) [2025-03-21 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727322', 'tblTempUsageDetail_20' ) start [2025-03-21 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727322', 'tblTempUsageDetail_20' ) end [2025-03-21 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:08:20] Production.INFO: ==10218== Releasing lock... [2025-03-21 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:08:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:09:05 [end_date_ymd] => 2025-03-21 03:09:05 [RateCDR] => 1 ) [2025-03-21 03:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:09:05' and `end` < '2025-03-21 03:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:09:18] Production.INFO: count ==645 [2025-03-21 03:09:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:09:05 - End Time 2025-03-21 03:09:05 [2025-03-21 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727327', 'tblTempUsageDetail_20' ) start [2025-03-21 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727327', 'tblTempUsageDetail_20' ) end [2025-03-21 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727327', 'tblTempVendorCDR_20' ) start [2025-03-21 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727327', 'tblTempVendorCDR_20' ) end [2025-03-21 03:09:18] Production.INFO: ProcessCDR(1,14727327,1,1,2) [2025-03-21 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727327', 'tblTempUsageDetail_20' ) start [2025-03-21 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727327', 'tblTempUsageDetail_20' ) end [2025-03-21 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:09:21] Production.INFO: ==10388== Releasing lock... [2025-03-21 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:09:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:10:06 [end_date_ymd] => 2025-03-21 03:10:06 [RateCDR] => 1 ) [2025-03-21 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-21 00:10:06' and `end` < '2025-03-21 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-21 03:10:19] Production.INFO: count ==635 [2025-03-21 03:10:19] Production.ERROR: pbx CDR StartTime 2025-03-21 00:10:06 - End Time 2025-03-21 03:10:06 [2025-03-21 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727333', 'tblTempUsageDetail_20' ) start [2025-03-21 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727333', 'tblTempUsageDetail_20' ) end [2025-03-21 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727333', 'tblTempVendorCDR_20' ) start [2025-03-21 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727333', 'tblTempVendorCDR_20' ) end [2025-03-21 03:10:19] Production.INFO: ProcessCDR(1,14727333,1,1,2) [2025-03-21 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727333', 'tblTempUsageDetail_20' ) start [2025-03-21 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727333', 'tblTempUsageDetail_20' ) end [2025-03-21 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:10:22] Production.INFO: ==10484== Releasing lock... [2025-03-21 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:10:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-21 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:11:05 [end_date_ymd] => 2025-03-21 03:11:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:11:05' and `end` < '2025-03-21 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-21 03:11:17] Production.INFO: count ==621 [2025-03-21 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:11:05 - End Time 2025-03-21 03:11:05 [2025-03-21 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727338', 'tblTempUsageDetail_20' ) start [2025-03-21 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727338', 'tblTempUsageDetail_20' ) end [2025-03-21 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727338', 'tblTempVendorCDR_20' ) start [2025-03-21 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727338', 'tblTempVendorCDR_20' ) end [2025-03-21 03:11:17] Production.INFO: ProcessCDR(1,14727338,1,1,2) [2025-03-21 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727338', 'tblTempUsageDetail_20' ) start [2025-03-21 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727338', 'tblTempUsageDetail_20' ) end [2025-03-21 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:11:21] Production.INFO: ==10569== Releasing lock... [2025-03-21 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:11:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-21 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:12:06 [end_date_ymd] => 2025-03-21 03:12:06 [RateCDR] => 1 ) [2025-03-21 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-21 00:12:06' and `end` < '2025-03-21 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-21 03:12:18] Production.INFO: count ==617 [2025-03-21 03:12:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:12:06 - End Time 2025-03-21 03:12:06 [2025-03-21 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727343', 'tblTempUsageDetail_20' ) start [2025-03-21 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727343', 'tblTempUsageDetail_20' ) end [2025-03-21 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727343', 'tblTempVendorCDR_20' ) start [2025-03-21 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727343', 'tblTempVendorCDR_20' ) end [2025-03-21 03:12:18] Production.INFO: ProcessCDR(1,14727343,1,1,2) [2025-03-21 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727343', 'tblTempUsageDetail_20' ) start [2025-03-21 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727343', 'tblTempUsageDetail_20' ) end [2025-03-21 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:12:21] Production.INFO: ==10662== Releasing lock... [2025-03-21 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:12:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:13:05 [end_date_ymd] => 2025-03-21 03:13:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:13:05' and `end` < '2025-03-21 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-21 03:13:17] Production.INFO: count ==617 [2025-03-21 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:13:05 - End Time 2025-03-21 03:13:05 [2025-03-21 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727348', 'tblTempUsageDetail_20' ) start [2025-03-21 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727348', 'tblTempUsageDetail_20' ) end [2025-03-21 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727348', 'tblTempVendorCDR_20' ) start [2025-03-21 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727348', 'tblTempVendorCDR_20' ) end [2025-03-21 03:13:17] Production.INFO: ProcessCDR(1,14727348,1,1,2) [2025-03-21 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727348', 'tblTempUsageDetail_20' ) start [2025-03-21 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727348', 'tblTempUsageDetail_20' ) end [2025-03-21 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:13:21] Production.INFO: ==10833== Releasing lock... [2025-03-21 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:13:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:14:05 [end_date_ymd] => 2025-03-21 03:14:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:14:05' and `end` < '2025-03-21 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-21 03:14:17] Production.INFO: count ==616 [2025-03-21 03:14:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:14:05 - End Time 2025-03-21 03:14:05 [2025-03-21 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727353', 'tblTempUsageDetail_20' ) start [2025-03-21 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727353', 'tblTempUsageDetail_20' ) end [2025-03-21 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727353', 'tblTempVendorCDR_20' ) start [2025-03-21 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727353', 'tblTempVendorCDR_20' ) end [2025-03-21 03:14:17] Production.INFO: ProcessCDR(1,14727353,1,1,2) [2025-03-21 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727353', 'tblTempUsageDetail_20' ) start [2025-03-21 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727353', 'tblTempUsageDetail_20' ) end [2025-03-21 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:14:23] Production.INFO: ==10957== Releasing lock... [2025-03-21 03:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:14:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:15:05 [end_date_ymd] => 2025-03-21 03:15:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:15:05' and `end` < '2025-03-21 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-21 03:15:17] Production.INFO: count ==616 [2025-03-21 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:15:05 - End Time 2025-03-21 03:15:05 [2025-03-21 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727358', 'tblTempUsageDetail_20' ) start [2025-03-21 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727358', 'tblTempUsageDetail_20' ) end [2025-03-21 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727358', 'tblTempVendorCDR_20' ) start [2025-03-21 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727358', 'tblTempVendorCDR_20' ) end [2025-03-21 03:15:17] Production.INFO: ProcessCDR(1,14727358,1,1,2) [2025-03-21 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727358', 'tblTempUsageDetail_20' ) start [2025-03-21 03:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727358', 'tblTempUsageDetail_20' ) end [2025-03-21 03:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:15:20] Production.INFO: ==11050== Releasing lock... [2025-03-21 03:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:15:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:16:06 [end_date_ymd] => 2025-03-21 03:16:06 [RateCDR] => 1 ) [2025-03-21 03: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-21 00:16:06' and `end` < '2025-03-21 03: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-21 03:16:18] Production.INFO: count ==614 [2025-03-21 03:16:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:16:06 - End Time 2025-03-21 03:16:06 [2025-03-21 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727363', 'tblTempUsageDetail_20' ) start [2025-03-21 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727363', 'tblTempUsageDetail_20' ) end [2025-03-21 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727363', 'tblTempVendorCDR_20' ) start [2025-03-21 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727363', 'tblTempVendorCDR_20' ) end [2025-03-21 03:16:18] Production.INFO: ProcessCDR(1,14727363,1,1,2) [2025-03-21 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727363', 'tblTempUsageDetail_20' ) start [2025-03-21 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727363', 'tblTempUsageDetail_20' ) end [2025-03-21 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:16:21] Production.INFO: ==11135== Releasing lock... [2025-03-21 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:16:21] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:17:04 [end_date_ymd] => 2025-03-21 03:17:04 [RateCDR] => 1 ) [2025-03-21 03: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-21 00:17:04' and `end` < '2025-03-21 03: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-21 03:17:16] Production.INFO: count ==612 [2025-03-21 03:17:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:17:04 - End Time 2025-03-21 03:17:04 [2025-03-21 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727364', 'tblTempUsageDetail_20' ) start [2025-03-21 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727364', 'tblTempUsageDetail_20' ) end [2025-03-21 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727364', 'tblTempVendorCDR_20' ) start [2025-03-21 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727364', 'tblTempVendorCDR_20' ) end [2025-03-21 03:17:17] Production.INFO: ProcessCDR(1,14727364,1,1,2) [2025-03-21 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727364', 'tblTempUsageDetail_20' ) start [2025-03-21 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727364', 'tblTempUsageDetail_20' ) end [2025-03-21 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:17:20] Production.INFO: ==11307== Releasing lock... [2025-03-21 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:17:20] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:18:05 [end_date_ymd] => 2025-03-21 03:18:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:18:05' and `end` < '2025-03-21 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-21 03:18:17] Production.INFO: count ==612 [2025-03-21 03:18:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:18:05 - End Time 2025-03-21 03:18:05 [2025-03-21 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727373', 'tblTempUsageDetail_20' ) start [2025-03-21 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727373', 'tblTempUsageDetail_20' ) end [2025-03-21 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727373', 'tblTempVendorCDR_20' ) start [2025-03-21 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727373', 'tblTempVendorCDR_20' ) end [2025-03-21 03:18:18] Production.INFO: ProcessCDR(1,14727373,1,1,2) [2025-03-21 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727373', 'tblTempUsageDetail_20' ) start [2025-03-21 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727373', 'tblTempUsageDetail_20' ) end [2025-03-21 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:18:21] Production.INFO: ==11397== Releasing lock... [2025-03-21 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:18:21] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:19:05 [end_date_ymd] => 2025-03-21 03:19:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:19:05' and `end` < '2025-03-21 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-21 03:19:18] Production.INFO: count ==615 [2025-03-21 03:19:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:19:05 - End Time 2025-03-21 03:19:05 [2025-03-21 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727378', 'tblTempUsageDetail_20' ) start [2025-03-21 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727378', 'tblTempUsageDetail_20' ) end [2025-03-21 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727378', 'tblTempVendorCDR_20' ) start [2025-03-21 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727378', 'tblTempVendorCDR_20' ) end [2025-03-21 03:19:18] Production.INFO: ProcessCDR(1,14727378,1,1,2) [2025-03-21 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727378', 'tblTempUsageDetail_20' ) start [2025-03-21 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727378', 'tblTempUsageDetail_20' ) end [2025-03-21 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:19:21] Production.INFO: ==11505== Releasing lock... [2025-03-21 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:19:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:20:05 [end_date_ymd] => 2025-03-21 03:20:05 [RateCDR] => 1 ) [2025-03-21 03:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:20:05' and `end` < '2025-03-21 03:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:20:18] Production.INFO: count ==618 [2025-03-21 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:20:05 - End Time 2025-03-21 03:20:05 [2025-03-21 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727384', 'tblTempUsageDetail_20' ) start [2025-03-21 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727384', 'tblTempUsageDetail_20' ) end [2025-03-21 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727384', 'tblTempVendorCDR_20' ) start [2025-03-21 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727384', 'tblTempVendorCDR_20' ) end [2025-03-21 03:20:18] Production.INFO: ProcessCDR(1,14727384,1,1,2) [2025-03-21 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727384', 'tblTempUsageDetail_20' ) start [2025-03-21 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727384', 'tblTempUsageDetail_20' ) end [2025-03-21 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:20:21] Production.INFO: ==11601== Releasing lock... [2025-03-21 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:20:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-21 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:21:04 [end_date_ymd] => 2025-03-21 03:21:04 [RateCDR] => 1 ) [2025-03-21 03:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:21:04' and `end` < '2025-03-21 03:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:21:17] Production.INFO: count ==613 [2025-03-21 03:21:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:21:04 - End Time 2025-03-21 03:21:04 [2025-03-21 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727389', 'tblTempUsageDetail_20' ) start [2025-03-21 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727389', 'tblTempUsageDetail_20' ) end [2025-03-21 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727389', 'tblTempVendorCDR_20' ) start [2025-03-21 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727389', 'tblTempVendorCDR_20' ) end [2025-03-21 03:21:17] Production.INFO: ProcessCDR(1,14727389,1,1,2) [2025-03-21 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727389', 'tblTempUsageDetail_20' ) start [2025-03-21 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727389', 'tblTempUsageDetail_20' ) end [2025-03-21 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:21:20] Production.INFO: ==11688== Releasing lock... [2025-03-21 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:21:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:22:05 [end_date_ymd] => 2025-03-21 03:22:05 [RateCDR] => 1 ) [2025-03-21 03:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:22:05' and `end` < '2025-03-21 03:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:22:17] Production.INFO: count ==613 [2025-03-21 03:22:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:22:05 - End Time 2025-03-21 03:22:05 [2025-03-21 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727394', 'tblTempUsageDetail_20' ) start [2025-03-21 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727394', 'tblTempUsageDetail_20' ) end [2025-03-21 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727394', 'tblTempVendorCDR_20' ) start [2025-03-21 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727394', 'tblTempVendorCDR_20' ) end [2025-03-21 03:22:18] Production.INFO: ProcessCDR(1,14727394,1,1,2) [2025-03-21 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727394', 'tblTempUsageDetail_20' ) start [2025-03-21 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727394', 'tblTempUsageDetail_20' ) end [2025-03-21 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:22:21] Production.INFO: ==11774== Releasing lock... [2025-03-21 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:22:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:23:06 [end_date_ymd] => 2025-03-21 03:23:06 [RateCDR] => 1 ) [2025-03-21 03: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-21 00:23:06' and `end` < '2025-03-21 03: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-21 03:23:18] Production.INFO: count ==613 [2025-03-21 03:23:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:23:06 - End Time 2025-03-21 03:23:06 [2025-03-21 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727399', 'tblTempUsageDetail_20' ) start [2025-03-21 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727399', 'tblTempUsageDetail_20' ) end [2025-03-21 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727399', 'tblTempVendorCDR_20' ) start [2025-03-21 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727399', 'tblTempVendorCDR_20' ) end [2025-03-21 03:23:18] Production.INFO: ProcessCDR(1,14727399,1,1,2) [2025-03-21 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727399', 'tblTempUsageDetail_20' ) start [2025-03-21 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727399', 'tblTempUsageDetail_20' ) end [2025-03-21 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:23:21] Production.INFO: ==11862== Releasing lock... [2025-03-21 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:23:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:24:05 [end_date_ymd] => 2025-03-21 03:24:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:24:05' and `end` < '2025-03-21 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-21 03:24:17] Production.INFO: count ==613 [2025-03-21 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:24:05 - End Time 2025-03-21 03:24:05 [2025-03-21 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727404', 'tblTempUsageDetail_20' ) start [2025-03-21 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727404', 'tblTempUsageDetail_20' ) end [2025-03-21 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727404', 'tblTempVendorCDR_20' ) start [2025-03-21 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727404', 'tblTempVendorCDR_20' ) end [2025-03-21 03:24:17] Production.INFO: ProcessCDR(1,14727404,1,1,2) [2025-03-21 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727404', 'tblTempUsageDetail_20' ) start [2025-03-21 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727404', 'tblTempUsageDetail_20' ) end [2025-03-21 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:24:20] Production.INFO: ==11939== Releasing lock... [2025-03-21 03:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:24:20] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:25:05 [end_date_ymd] => 2025-03-21 03:25:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:25:05' and `end` < '2025-03-21 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-21 03:25:17] Production.INFO: count ==613 [2025-03-21 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:25:05 - End Time 2025-03-21 03:25:05 [2025-03-21 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727409', 'tblTempUsageDetail_20' ) start [2025-03-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727409', 'tblTempUsageDetail_20' ) end [2025-03-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727409', 'tblTempVendorCDR_20' ) start [2025-03-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727409', 'tblTempVendorCDR_20' ) end [2025-03-21 03:25:17] Production.INFO: ProcessCDR(1,14727409,1,1,2) [2025-03-21 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727409', 'tblTempUsageDetail_20' ) start [2025-03-21 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727409', 'tblTempUsageDetail_20' ) end [2025-03-21 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:25:21] Production.INFO: ==12035== Releasing lock... [2025-03-21 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:26:05 [end_date_ymd] => 2025-03-21 03:26:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:26:05' and `end` < '2025-03-21 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-21 03:26:17] Production.INFO: count ==610 [2025-03-21 03:26:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:26:05 - End Time 2025-03-21 03:26:05 [2025-03-21 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727414', 'tblTempUsageDetail_20' ) start [2025-03-21 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727414', 'tblTempUsageDetail_20' ) end [2025-03-21 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727414', 'tblTempVendorCDR_20' ) start [2025-03-21 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727414', 'tblTempVendorCDR_20' ) end [2025-03-21 03:26:18] Production.INFO: ProcessCDR(1,14727414,1,1,2) [2025-03-21 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727414', 'tblTempUsageDetail_20' ) start [2025-03-21 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727414', 'tblTempUsageDetail_20' ) end [2025-03-21 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:26:21] Production.INFO: ==12117== Releasing lock... [2025-03-21 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:26:21] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:27:06 [end_date_ymd] => 2025-03-21 03:27:06 [RateCDR] => 1 ) [2025-03-21 03: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-21 00:27:06' and `end` < '2025-03-21 03: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-21 03:27:18] Production.INFO: count ==610 [2025-03-21 03:27:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:27:06 - End Time 2025-03-21 03:27:06 [2025-03-21 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727419', 'tblTempUsageDetail_20' ) start [2025-03-21 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727419', 'tblTempUsageDetail_20' ) end [2025-03-21 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727419', 'tblTempVendorCDR_20' ) start [2025-03-21 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727419', 'tblTempVendorCDR_20' ) end [2025-03-21 03:27:18] Production.INFO: ProcessCDR(1,14727419,1,1,2) [2025-03-21 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727419', 'tblTempUsageDetail_20' ) start [2025-03-21 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727419', 'tblTempUsageDetail_20' ) end [2025-03-21 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:27:21] Production.INFO: ==12201== Releasing lock... [2025-03-21 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:27:21] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:28:05 [end_date_ymd] => 2025-03-21 03:28:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:28:05' and `end` < '2025-03-21 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-21 03:28:17] Production.INFO: count ==610 [2025-03-21 03:28:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:28:05 - End Time 2025-03-21 03:28:05 [2025-03-21 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727424', 'tblTempUsageDetail_20' ) start [2025-03-21 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727424', 'tblTempUsageDetail_20' ) end [2025-03-21 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727424', 'tblTempVendorCDR_20' ) start [2025-03-21 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727424', 'tblTempVendorCDR_20' ) end [2025-03-21 03:28:18] Production.INFO: ProcessCDR(1,14727424,1,1,2) [2025-03-21 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727424', 'tblTempUsageDetail_20' ) start [2025-03-21 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727424', 'tblTempUsageDetail_20' ) end [2025-03-21 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:28:21] Production.INFO: ==12281== Releasing lock... [2025-03-21 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:28:21] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:29:05 [end_date_ymd] => 2025-03-21 03:29:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:29:05' and `end` < '2025-03-21 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-21 03:29:17] Production.INFO: count ==610 [2025-03-21 03:29:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:29:05 - End Time 2025-03-21 03:29:05 [2025-03-21 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727429', 'tblTempUsageDetail_20' ) start [2025-03-21 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727429', 'tblTempUsageDetail_20' ) end [2025-03-21 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727429', 'tblTempVendorCDR_20' ) start [2025-03-21 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727429', 'tblTempVendorCDR_20' ) end [2025-03-21 03:29:18] Production.INFO: ProcessCDR(1,14727429,1,1,2) [2025-03-21 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727429', 'tblTempUsageDetail_20' ) start [2025-03-21 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727429', 'tblTempUsageDetail_20' ) end [2025-03-21 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:29:21] Production.INFO: ==12364== Releasing lock... [2025-03-21 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:29:21] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:30:06 [end_date_ymd] => 2025-03-21 03:30:06 [RateCDR] => 1 ) [2025-03-21 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-21 00:30:06' and `end` < '2025-03-21 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-21 03:30:18] Production.INFO: count ==617 [2025-03-21 03:30:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:30:06 - End Time 2025-03-21 03:30:06 [2025-03-21 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727435', 'tblTempUsageDetail_20' ) start [2025-03-21 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727435', 'tblTempUsageDetail_20' ) end [2025-03-21 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727435', 'tblTempVendorCDR_20' ) start [2025-03-21 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727435', 'tblTempVendorCDR_20' ) end [2025-03-21 03:30:18] Production.INFO: ProcessCDR(1,14727435,1,1,2) [2025-03-21 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727435', 'tblTempUsageDetail_20' ) start [2025-03-21 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727435', 'tblTempUsageDetail_20' ) end [2025-03-21 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:30:22] Production.INFO: ==12451== Releasing lock... [2025-03-21 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:30:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:31:06 [end_date_ymd] => 2025-03-21 03:31:06 [RateCDR] => 1 ) [2025-03-21 03: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-21 00:31:06' and `end` < '2025-03-21 03: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-21 03:31:18] Production.INFO: count ==617 [2025-03-21 03:31:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:31:06 - End Time 2025-03-21 03:31:06 [2025-03-21 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727440', 'tblTempUsageDetail_20' ) start [2025-03-21 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727440', 'tblTempUsageDetail_20' ) end [2025-03-21 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727440', 'tblTempVendorCDR_20' ) start [2025-03-21 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727440', 'tblTempVendorCDR_20' ) end [2025-03-21 03:31:18] Production.INFO: ProcessCDR(1,14727440,1,1,2) [2025-03-21 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727440', 'tblTempUsageDetail_20' ) start [2025-03-21 03:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727440', 'tblTempUsageDetail_20' ) end [2025-03-21 03:31:29] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:31:29] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:31:29] Production.INFO: ==12589== Releasing lock... [2025-03-21 03:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:31:29] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:32:05 [end_date_ymd] => 2025-03-21 03:32:05 [RateCDR] => 1 ) [2025-03-21 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:32:05' and `end` < '2025-03-21 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:32:17] Production.INFO: count ==615 [2025-03-21 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:32:05 - End Time 2025-03-21 03:32:05 [2025-03-21 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727445', 'tblTempUsageDetail_20' ) start [2025-03-21 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727445', 'tblTempUsageDetail_20' ) end [2025-03-21 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727445', 'tblTempVendorCDR_20' ) start [2025-03-21 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727445', 'tblTempVendorCDR_20' ) end [2025-03-21 03:32:18] Production.INFO: ProcessCDR(1,14727445,1,1,2) [2025-03-21 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727445', 'tblTempUsageDetail_20' ) start [2025-03-21 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727445', 'tblTempUsageDetail_20' ) end [2025-03-21 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:32:21] Production.INFO: ==12672== Releasing lock... [2025-03-21 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:32:21] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:33:06 [end_date_ymd] => 2025-03-21 03:33:06 [RateCDR] => 1 ) [2025-03-21 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-21 00:33:06' and `end` < '2025-03-21 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-21 03:33:18] Production.INFO: count ==615 [2025-03-21 03:33:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:33:06 - End Time 2025-03-21 03:33:06 [2025-03-21 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727450', 'tblTempUsageDetail_20' ) start [2025-03-21 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727450', 'tblTempUsageDetail_20' ) end [2025-03-21 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727450', 'tblTempVendorCDR_20' ) start [2025-03-21 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727450', 'tblTempVendorCDR_20' ) end [2025-03-21 03:33:18] Production.INFO: ProcessCDR(1,14727450,1,1,2) [2025-03-21 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727450', 'tblTempUsageDetail_20' ) start [2025-03-21 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727450', 'tblTempUsageDetail_20' ) end [2025-03-21 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:33:22] Production.INFO: ==12756== Releasing lock... [2025-03-21 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:33:22] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:34:05 [end_date_ymd] => 2025-03-21 03:34:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:34:05' and `end` < '2025-03-21 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-21 03:34:17] Production.INFO: count ==614 [2025-03-21 03:34:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:34:05 - End Time 2025-03-21 03:34:05 [2025-03-21 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727455', 'tblTempUsageDetail_20' ) start [2025-03-21 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727455', 'tblTempUsageDetail_20' ) end [2025-03-21 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727455', 'tblTempVendorCDR_20' ) start [2025-03-21 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727455', 'tblTempVendorCDR_20' ) end [2025-03-21 03:34:17] Production.INFO: ProcessCDR(1,14727455,1,1,2) [2025-03-21 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727455', 'tblTempUsageDetail_20' ) start [2025-03-21 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727455', 'tblTempUsageDetail_20' ) end [2025-03-21 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:34:21] Production.INFO: ==12840== Releasing lock... [2025-03-21 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:34:21] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:35:06 [end_date_ymd] => 2025-03-21 03:35:06 [RateCDR] => 1 ) [2025-03-21 03: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-21 00:35:06' and `end` < '2025-03-21 03: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-21 03:35:18] Production.INFO: count ==614 [2025-03-21 03:35:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:35:06 - End Time 2025-03-21 03:35:06 [2025-03-21 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727460', 'tblTempUsageDetail_20' ) start [2025-03-21 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727460', 'tblTempUsageDetail_20' ) end [2025-03-21 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727460', 'tblTempVendorCDR_20' ) start [2025-03-21 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727460', 'tblTempVendorCDR_20' ) end [2025-03-21 03:35:18] Production.INFO: ProcessCDR(1,14727460,1,1,2) [2025-03-21 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727460', 'tblTempUsageDetail_20' ) start [2025-03-21 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727460', 'tblTempUsageDetail_20' ) end [2025-03-21 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:35:22] Production.INFO: ==12923== Releasing lock... [2025-03-21 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:35:22] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:36:06 [end_date_ymd] => 2025-03-21 03:36:06 [RateCDR] => 1 ) [2025-03-21 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:36:06' and `end` < '2025-03-21 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:36:18] Production.INFO: count ==614 [2025-03-21 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:36:06 - End Time 2025-03-21 03:36:06 [2025-03-21 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727465', 'tblTempUsageDetail_20' ) start [2025-03-21 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727465', 'tblTempUsageDetail_20' ) end [2025-03-21 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727465', 'tblTempVendorCDR_20' ) start [2025-03-21 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727465', 'tblTempVendorCDR_20' ) end [2025-03-21 03:36:18] Production.INFO: ProcessCDR(1,14727465,1,1,2) [2025-03-21 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727465', 'tblTempUsageDetail_20' ) start [2025-03-21 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727465', 'tblTempUsageDetail_20' ) end [2025-03-21 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:36:22] Production.INFO: ==13006== Releasing lock... [2025-03-21 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:36:22] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:37:06 [end_date_ymd] => 2025-03-21 03:37:06 [RateCDR] => 1 ) [2025-03-21 03: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-21 00:37:06' and `end` < '2025-03-21 03: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-21 03:37:18] Production.INFO: count ==612 [2025-03-21 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:37:06 - End Time 2025-03-21 03:37:06 [2025-03-21 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727470', 'tblTempUsageDetail_20' ) start [2025-03-21 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727470', 'tblTempUsageDetail_20' ) end [2025-03-21 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727470', 'tblTempVendorCDR_20' ) start [2025-03-21 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727470', 'tblTempVendorCDR_20' ) end [2025-03-21 03:37:18] Production.INFO: ProcessCDR(1,14727470,1,1,2) [2025-03-21 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727470', 'tblTempUsageDetail_20' ) start [2025-03-21 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727470', 'tblTempUsageDetail_20' ) end [2025-03-21 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:37:22] Production.INFO: ==13093== Releasing lock... [2025-03-21 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:37:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:38:05 [end_date_ymd] => 2025-03-21 03:38:05 [RateCDR] => 1 ) [2025-03-21 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:38:05' and `end` < '2025-03-21 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:38:18] Production.INFO: count ==612 [2025-03-21 03:38:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:38:05 - End Time 2025-03-21 03:38:05 [2025-03-21 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727475', 'tblTempUsageDetail_20' ) start [2025-03-21 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727475', 'tblTempUsageDetail_20' ) end [2025-03-21 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727475', 'tblTempVendorCDR_20' ) start [2025-03-21 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727475', 'tblTempVendorCDR_20' ) end [2025-03-21 03:38:18] Production.INFO: ProcessCDR(1,14727475,1,1,2) [2025-03-21 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727475', 'tblTempUsageDetail_20' ) start [2025-03-21 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727475', 'tblTempUsageDetail_20' ) end [2025-03-21 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:38:21] Production.INFO: ==13175== Releasing lock... [2025-03-21 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:38:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:39:06 [end_date_ymd] => 2025-03-21 03:39:06 [RateCDR] => 1 ) [2025-03-21 03: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-21 00:39:06' and `end` < '2025-03-21 03: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-21 03:39:18] Production.INFO: count ==611 [2025-03-21 03:39:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:39:06 - End Time 2025-03-21 03:39:06 [2025-03-21 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727480', 'tblTempUsageDetail_20' ) start [2025-03-21 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727480', 'tblTempUsageDetail_20' ) end [2025-03-21 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727480', 'tblTempVendorCDR_20' ) start [2025-03-21 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727480', 'tblTempVendorCDR_20' ) end [2025-03-21 03:39:18] Production.INFO: ProcessCDR(1,14727480,1,1,2) [2025-03-21 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727480', 'tblTempUsageDetail_20' ) start [2025-03-21 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727480', 'tblTempUsageDetail_20' ) end [2025-03-21 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:39:22] Production.INFO: ==13262== Releasing lock... [2025-03-21 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:39:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-21 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:40:06 [end_date_ymd] => 2025-03-21 03:40:06 [RateCDR] => 1 ) [2025-03-21 03: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-21 00:40:06' and `end` < '2025-03-21 03: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-21 03:40:18] Production.INFO: count ==597 [2025-03-21 03:40:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:40:06 - End Time 2025-03-21 03:40:06 [2025-03-21 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727485', 'tblTempUsageDetail_20' ) start [2025-03-21 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727485', 'tblTempUsageDetail_20' ) end [2025-03-21 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727485', 'tblTempVendorCDR_20' ) start [2025-03-21 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727485', 'tblTempVendorCDR_20' ) end [2025-03-21 03:40:18] Production.INFO: ProcessCDR(1,14727485,1,1,2) [2025-03-21 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727485', 'tblTempUsageDetail_20' ) start [2025-03-21 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727485', 'tblTempUsageDetail_20' ) end [2025-03-21 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:40:22] Production.INFO: ==13349== Releasing lock... [2025-03-21 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:40:22] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:41:06 [end_date_ymd] => 2025-03-21 03:41:06 [RateCDR] => 1 ) [2025-03-21 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-21 00:41:06' and `end` < '2025-03-21 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-21 03:41:18] Production.INFO: count ==572 [2025-03-21 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:41:06 - End Time 2025-03-21 03:41:06 [2025-03-21 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727491', 'tblTempUsageDetail_20' ) start [2025-03-21 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727491', 'tblTempUsageDetail_20' ) end [2025-03-21 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727491', 'tblTempVendorCDR_20' ) start [2025-03-21 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727491', 'tblTempVendorCDR_20' ) end [2025-03-21 03:41:18] Production.INFO: ProcessCDR(1,14727491,1,1,2) [2025-03-21 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727491', 'tblTempUsageDetail_20' ) start [2025-03-21 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727491', 'tblTempUsageDetail_20' ) end [2025-03-21 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:41:22] Production.INFO: ==13435== Releasing lock... [2025-03-21 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:41:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:42:05 [end_date_ymd] => 2025-03-21 03:42:05 [RateCDR] => 1 ) [2025-03-21 03:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:42:05' and `end` < '2025-03-21 03:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:42:18] Production.INFO: count ==570 [2025-03-21 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:42:05 - End Time 2025-03-21 03:42:05 [2025-03-21 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727496', 'tblTempUsageDetail_20' ) start [2025-03-21 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727496', 'tblTempUsageDetail_20' ) end [2025-03-21 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727496', 'tblTempVendorCDR_20' ) start [2025-03-21 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727496', 'tblTempVendorCDR_20' ) end [2025-03-21 03:42:18] Production.INFO: ProcessCDR(1,14727496,1,1,2) [2025-03-21 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727496', 'tblTempUsageDetail_20' ) start [2025-03-21 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727496', 'tblTempUsageDetail_20' ) end [2025-03-21 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:42:22] Production.INFO: ==13513== Releasing lock... [2025-03-21 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:42:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:43:05 [end_date_ymd] => 2025-03-21 03:43:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:43:05' and `end` < '2025-03-21 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-21 03:43:18] Production.INFO: count ==571 [2025-03-21 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:43:05 - End Time 2025-03-21 03:43:05 [2025-03-21 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727501', 'tblTempUsageDetail_20' ) start [2025-03-21 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727501', 'tblTempUsageDetail_20' ) end [2025-03-21 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727501', 'tblTempVendorCDR_20' ) start [2025-03-21 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727501', 'tblTempVendorCDR_20' ) end [2025-03-21 03:43:18] Production.INFO: ProcessCDR(1,14727501,1,1,2) [2025-03-21 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727501', 'tblTempUsageDetail_20' ) start [2025-03-21 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727501', 'tblTempUsageDetail_20' ) end [2025-03-21 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:43:22] Production.INFO: ==13586== Releasing lock... [2025-03-21 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:43:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:44:05 [end_date_ymd] => 2025-03-21 03:44:05 [RateCDR] => 1 ) [2025-03-21 03:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:44:05' and `end` < '2025-03-21 03:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:44:17] Production.INFO: count ==571 [2025-03-21 03:44:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:44:05 - End Time 2025-03-21 03:44:05 [2025-03-21 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727506', 'tblTempUsageDetail_20' ) start [2025-03-21 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727506', 'tblTempUsageDetail_20' ) end [2025-03-21 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727506', 'tblTempVendorCDR_20' ) start [2025-03-21 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727506', 'tblTempVendorCDR_20' ) end [2025-03-21 03:44:17] Production.INFO: ProcessCDR(1,14727506,1,1,2) [2025-03-21 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727506', 'tblTempUsageDetail_20' ) start [2025-03-21 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727506', 'tblTempUsageDetail_20' ) end [2025-03-21 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:44:21] Production.INFO: ==13671== Releasing lock... [2025-03-21 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:44:21] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:45:06 [end_date_ymd] => 2025-03-21 03:45:06 [RateCDR] => 1 ) [2025-03-21 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-21 00:45:06' and `end` < '2025-03-21 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-21 03:45:18] Production.INFO: count ==571 [2025-03-21 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:45:06 - End Time 2025-03-21 03:45:06 [2025-03-21 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727511', 'tblTempUsageDetail_20' ) start [2025-03-21 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727511', 'tblTempUsageDetail_20' ) end [2025-03-21 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727511', 'tblTempVendorCDR_20' ) start [2025-03-21 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727511', 'tblTempVendorCDR_20' ) end [2025-03-21 03:45:18] Production.INFO: ProcessCDR(1,14727511,1,1,2) [2025-03-21 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727511', 'tblTempUsageDetail_20' ) start [2025-03-21 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727511', 'tblTempUsageDetail_20' ) end [2025-03-21 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:45:22] Production.INFO: ==13759== Releasing lock... [2025-03-21 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:45:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:46:05 [end_date_ymd] => 2025-03-21 03:46:05 [RateCDR] => 1 ) [2025-03-21 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:46:05' and `end` < '2025-03-21 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:46:17] Production.INFO: count ==564 [2025-03-21 03:46:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:46:05 - End Time 2025-03-21 03:46:05 [2025-03-21 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727516', 'tblTempUsageDetail_20' ) start [2025-03-21 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727516', 'tblTempUsageDetail_20' ) end [2025-03-21 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727516', 'tblTempVendorCDR_20' ) start [2025-03-21 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727516', 'tblTempVendorCDR_20' ) end [2025-03-21 03:46:17] Production.INFO: ProcessCDR(1,14727516,1,1,2) [2025-03-21 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727516', 'tblTempUsageDetail_20' ) start [2025-03-21 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727516', 'tblTempUsageDetail_20' ) end [2025-03-21 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:46:21] Production.INFO: ==13894== Releasing lock... [2025-03-21 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:46:21] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:47:06 [end_date_ymd] => 2025-03-21 03:47:06 [RateCDR] => 1 ) [2025-03-21 03: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-21 00:47:06' and `end` < '2025-03-21 03: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-21 03:47:18] Production.INFO: count ==564 [2025-03-21 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:47:06 - End Time 2025-03-21 03:47:06 [2025-03-21 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727521', 'tblTempUsageDetail_20' ) start [2025-03-21 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727521', 'tblTempUsageDetail_20' ) end [2025-03-21 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727521', 'tblTempVendorCDR_20' ) start [2025-03-21 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727521', 'tblTempVendorCDR_20' ) end [2025-03-21 03:47:18] Production.INFO: ProcessCDR(1,14727521,1,1,2) [2025-03-21 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727521', 'tblTempUsageDetail_20' ) start [2025-03-21 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727521', 'tblTempUsageDetail_20' ) end [2025-03-21 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:47:22] Production.INFO: ==13971== Releasing lock... [2025-03-21 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:47:22] Production.INFO: 33 MB #Memory Used# [2025-03-21 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:48:06 [end_date_ymd] => 2025-03-21 03:48:06 [RateCDR] => 1 ) [2025-03-21 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-21 00:48:06' and `end` < '2025-03-21 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-21 03:48:18] Production.INFO: count ==561 [2025-03-21 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:48:06 - End Time 2025-03-21 03:48:06 [2025-03-21 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727526', 'tblTempUsageDetail_20' ) start [2025-03-21 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727526', 'tblTempUsageDetail_20' ) end [2025-03-21 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727526', 'tblTempVendorCDR_20' ) start [2025-03-21 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727526', 'tblTempVendorCDR_20' ) end [2025-03-21 03:48:18] Production.INFO: ProcessCDR(1,14727526,1,1,2) [2025-03-21 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727526', 'tblTempUsageDetail_20' ) start [2025-03-21 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727526', 'tblTempUsageDetail_20' ) end [2025-03-21 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:48:22] Production.INFO: ==14052== Releasing lock... [2025-03-21 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:48:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:49:05 [end_date_ymd] => 2025-03-21 03:49:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:49:05' and `end` < '2025-03-21 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-21 03:49:17] Production.INFO: count ==558 [2025-03-21 03:49:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:49:05 - End Time 2025-03-21 03:49:05 [2025-03-21 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727531', 'tblTempUsageDetail_20' ) start [2025-03-21 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727531', 'tblTempUsageDetail_20' ) end [2025-03-21 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727531', 'tblTempVendorCDR_20' ) start [2025-03-21 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727531', 'tblTempVendorCDR_20' ) end [2025-03-21 03:49:17] Production.INFO: ProcessCDR(1,14727531,1,1,2) [2025-03-21 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727531', 'tblTempUsageDetail_20' ) start [2025-03-21 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727531', 'tblTempUsageDetail_20' ) end [2025-03-21 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:49:21] Production.INFO: ==14134== Releasing lock... [2025-03-21 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:49:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:50:06 [end_date_ymd] => 2025-03-21 03:50:06 [RateCDR] => 1 ) [2025-03-21 03: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-21 00:50:06' and `end` < '2025-03-21 03: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-21 03:50:19] Production.INFO: count ==545 [2025-03-21 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-21 00:50:06 - End Time 2025-03-21 03:50:06 [2025-03-21 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727537', 'tblTempUsageDetail_20' ) start [2025-03-21 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727537', 'tblTempUsageDetail_20' ) end [2025-03-21 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727537', 'tblTempVendorCDR_20' ) start [2025-03-21 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727537', 'tblTempVendorCDR_20' ) end [2025-03-21 03:50:19] Production.INFO: ProcessCDR(1,14727537,1,1,2) [2025-03-21 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727537', 'tblTempUsageDetail_20' ) start [2025-03-21 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727537', 'tblTempUsageDetail_20' ) end [2025-03-21 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:50:23] Production.INFO: ==14218== Releasing lock... [2025-03-21 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:50:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:51:06 [end_date_ymd] => 2025-03-21 03:51:06 [RateCDR] => 1 ) [2025-03-21 03: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-21 00:51:06' and `end` < '2025-03-21 03: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-21 03:51:18] Production.INFO: count ==520 [2025-03-21 03:51:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:51:06 - End Time 2025-03-21 03:51:06 [2025-03-21 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727542', 'tblTempUsageDetail_20' ) start [2025-03-21 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727542', 'tblTempUsageDetail_20' ) end [2025-03-21 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727542', 'tblTempVendorCDR_20' ) start [2025-03-21 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727542', 'tblTempVendorCDR_20' ) end [2025-03-21 03:51:18] Production.INFO: ProcessCDR(1,14727542,1,1,2) [2025-03-21 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727542', 'tblTempUsageDetail_20' ) start [2025-03-21 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727542', 'tblTempUsageDetail_20' ) end [2025-03-21 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:51:22] Production.INFO: ==14299== Releasing lock... [2025-03-21 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:51:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:52:05 [end_date_ymd] => 2025-03-21 03:52:05 [RateCDR] => 1 ) [2025-03-21 03:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:52:05' and `end` < '2025-03-21 03:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:52:18] Production.INFO: count ==515 [2025-03-21 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:52:05 - End Time 2025-03-21 03:52:05 [2025-03-21 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727547', 'tblTempUsageDetail_20' ) start [2025-03-21 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727547', 'tblTempUsageDetail_20' ) end [2025-03-21 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727547', 'tblTempVendorCDR_20' ) start [2025-03-21 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727547', 'tblTempVendorCDR_20' ) end [2025-03-21 03:52:18] Production.INFO: ProcessCDR(1,14727547,1,1,2) [2025-03-21 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727547', 'tblTempUsageDetail_20' ) start [2025-03-21 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727547', 'tblTempUsageDetail_20' ) end [2025-03-21 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:52:21] Production.INFO: ==14391== Releasing lock... [2025-03-21 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:52:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:53:06 [end_date_ymd] => 2025-03-21 03:53:06 [RateCDR] => 1 ) [2025-03-21 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-21 00:53:06' and `end` < '2025-03-21 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-21 03:53:18] Production.INFO: count ==507 [2025-03-21 03:53:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:53:06 - End Time 2025-03-21 03:53:06 [2025-03-21 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727552', 'tblTempUsageDetail_20' ) start [2025-03-21 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727552', 'tblTempUsageDetail_20' ) end [2025-03-21 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727552', 'tblTempVendorCDR_20' ) start [2025-03-21 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727552', 'tblTempVendorCDR_20' ) end [2025-03-21 03:53:18] Production.INFO: ProcessCDR(1,14727552,1,1,2) [2025-03-21 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727552', 'tblTempUsageDetail_20' ) start [2025-03-21 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727552', 'tblTempUsageDetail_20' ) end [2025-03-21 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:53:21] Production.INFO: ==14468== Releasing lock... [2025-03-21 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:53:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:54:05 [end_date_ymd] => 2025-03-21 03:54:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:54:05' and `end` < '2025-03-21 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-21 03:54:17] Production.INFO: count ==504 [2025-03-21 03:54:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:54:05 - End Time 2025-03-21 03:54:05 [2025-03-21 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727557', 'tblTempUsageDetail_20' ) start [2025-03-21 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727557', 'tblTempUsageDetail_20' ) end [2025-03-21 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727557', 'tblTempVendorCDR_20' ) start [2025-03-21 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727557', 'tblTempVendorCDR_20' ) end [2025-03-21 03:54:17] Production.INFO: ProcessCDR(1,14727557,1,1,2) [2025-03-21 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727557', 'tblTempUsageDetail_20' ) start [2025-03-21 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727557', 'tblTempUsageDetail_20' ) end [2025-03-21 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:54:21] Production.INFO: ==14554== Releasing lock... [2025-03-21 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:54:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:55:06 [end_date_ymd] => 2025-03-21 03:55:06 [RateCDR] => 1 ) [2025-03-21 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-21 00:55:06' and `end` < '2025-03-21 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-21 03:55:18] Production.INFO: count ==503 [2025-03-21 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:55:06 - End Time 2025-03-21 03:55:06 [2025-03-21 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727562', 'tblTempUsageDetail_20' ) start [2025-03-21 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727562', 'tblTempUsageDetail_20' ) end [2025-03-21 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727562', 'tblTempVendorCDR_20' ) start [2025-03-21 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727562', 'tblTempVendorCDR_20' ) end [2025-03-21 03:55:18] Production.INFO: ProcessCDR(1,14727562,1,1,2) [2025-03-21 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727562', 'tblTempUsageDetail_20' ) start [2025-03-21 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727562', 'tblTempUsageDetail_20' ) end [2025-03-21 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:55:22] Production.INFO: ==14637== Releasing lock... [2025-03-21 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:55:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:56:06 [end_date_ymd] => 2025-03-21 03:56:06 [RateCDR] => 1 ) [2025-03-21 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-21 00:56:06' and `end` < '2025-03-21 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-21 03:56:18] Production.INFO: count ==503 [2025-03-21 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:56:06 - End Time 2025-03-21 03:56:06 [2025-03-21 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727567', 'tblTempUsageDetail_20' ) start [2025-03-21 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727567', 'tblTempUsageDetail_20' ) end [2025-03-21 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727567', 'tblTempVendorCDR_20' ) start [2025-03-21 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727567', 'tblTempVendorCDR_20' ) end [2025-03-21 03:56:18] Production.INFO: ProcessCDR(1,14727567,1,1,2) [2025-03-21 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727567', 'tblTempUsageDetail_20' ) start [2025-03-21 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727567', 'tblTempUsageDetail_20' ) end [2025-03-21 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:56:22] Production.INFO: ==14722== Releasing lock... [2025-03-21 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:56:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:57:06 [end_date_ymd] => 2025-03-21 03:57:06 [RateCDR] => 1 ) [2025-03-21 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-21 00:57:06' and `end` < '2025-03-21 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-21 03:57:18] Production.INFO: count ==505 [2025-03-21 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-21 00:57:06 - End Time 2025-03-21 03:57:06 [2025-03-21 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727572', 'tblTempUsageDetail_20' ) start [2025-03-21 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727572', 'tblTempUsageDetail_20' ) end [2025-03-21 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727572', 'tblTempVendorCDR_20' ) start [2025-03-21 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727572', 'tblTempVendorCDR_20' ) end [2025-03-21 03:57:18] Production.INFO: ProcessCDR(1,14727572,1,1,2) [2025-03-21 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727572', 'tblTempUsageDetail_20' ) start [2025-03-21 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727572', 'tblTempUsageDetail_20' ) end [2025-03-21 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:57:22] Production.INFO: ==14806== Releasing lock... [2025-03-21 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:57:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:58:05 [end_date_ymd] => 2025-03-21 03:58:05 [RateCDR] => 1 ) [2025-03-21 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-21 00:58:05' and `end` < '2025-03-21 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-21 03:58:17] Production.INFO: count ==504 [2025-03-21 03:58:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:58:05 - End Time 2025-03-21 03:58:05 [2025-03-21 03:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727577', 'tblTempUsageDetail_20' ) start [2025-03-21 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727577', 'tblTempUsageDetail_20' ) end [2025-03-21 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727577', 'tblTempVendorCDR_20' ) start [2025-03-21 03:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727577', 'tblTempVendorCDR_20' ) end [2025-03-21 03:58:17] Production.INFO: ProcessCDR(1,14727577,1,1,2) [2025-03-21 03:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727577', 'tblTempUsageDetail_20' ) start [2025-03-21 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727577', 'tblTempUsageDetail_20' ) end [2025-03-21 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:58:21] Production.INFO: ==14902== Releasing lock... [2025-03-21 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:58:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 00:59:05 [end_date_ymd] => 2025-03-21 03:59:05 [RateCDR] => 1 ) [2025-03-21 03:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 00:59:05' and `end` < '2025-03-21 03:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 03:59:17] Production.INFO: count ==504 [2025-03-21 03:59:17] Production.ERROR: pbx CDR StartTime 2025-03-21 00:59:05 - End Time 2025-03-21 03:59:05 [2025-03-21 03:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 03:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727582', 'tblTempUsageDetail_20' ) start [2025-03-21 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727582', 'tblTempUsageDetail_20' ) end [2025-03-21 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727582', 'tblTempVendorCDR_20' ) start [2025-03-21 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727582', 'tblTempVendorCDR_20' ) end [2025-03-21 03:59:18] Production.INFO: ProcessCDR(1,14727582,1,1,2) [2025-03-21 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727582', 'tblTempUsageDetail_20' ) start [2025-03-21 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727582', 'tblTempUsageDetail_20' ) end [2025-03-21 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 03:59:21] Production.INFO: ==14995== Releasing lock... [2025-03-21 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 03:59:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:00:06 [end_date_ymd] => 2025-03-21 04:00:06 [RateCDR] => 1 ) [2025-03-21 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-21 01:00:06' and `end` < '2025-03-21 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-21 04:00:19] Production.INFO: count ==495 [2025-03-21 04:00:19] Production.ERROR: pbx CDR StartTime 2025-03-21 01:00:06 - End Time 2025-03-21 04:00:06 [2025-03-21 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727588', 'tblTempUsageDetail_20' ) start [2025-03-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727588', 'tblTempUsageDetail_20' ) end [2025-03-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727588', 'tblTempVendorCDR_20' ) start [2025-03-21 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727588', 'tblTempVendorCDR_20' ) end [2025-03-21 04:00:19] Production.INFO: ProcessCDR(1,14727588,1,1,2) [2025-03-21 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727588', 'tblTempUsageDetail_20' ) start [2025-03-21 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727588', 'tblTempUsageDetail_20' ) end [2025-03-21 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:00:23] Production.INFO: ==15077== Releasing lock... [2025-03-21 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:00:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:01:06 [end_date_ymd] => 2025-03-21 04:01:06 [RateCDR] => 1 ) [2025-03-21 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-21 01:01:06' and `end` < '2025-03-21 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-21 04:01:19] Production.INFO: count ==495 [2025-03-21 04:01:19] Production.ERROR: pbx CDR StartTime 2025-03-21 01:01:06 - End Time 2025-03-21 04:01:06 [2025-03-21 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727594', 'tblTempUsageDetail_20' ) start [2025-03-21 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727594', 'tblTempUsageDetail_20' ) end [2025-03-21 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727594', 'tblTempVendorCDR_20' ) start [2025-03-21 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727594', 'tblTempVendorCDR_20' ) end [2025-03-21 04:01:19] Production.INFO: ProcessCDR(1,14727594,1,1,2) [2025-03-21 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727594', 'tblTempUsageDetail_20' ) start [2025-03-21 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727594', 'tblTempUsageDetail_20' ) end [2025-03-21 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:01:22] Production.INFO: ==15191== Releasing lock... [2025-03-21 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:01:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:02:05 [end_date_ymd] => 2025-03-21 04:02:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:02:05' and `end` < '2025-03-21 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-21 04:02:17] Production.INFO: count ==487 [2025-03-21 04:02:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:02:05 - End Time 2025-03-21 04:02:05 [2025-03-21 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727599', 'tblTempUsageDetail_20' ) start [2025-03-21 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727599', 'tblTempUsageDetail_20' ) end [2025-03-21 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727599', 'tblTempVendorCDR_20' ) start [2025-03-21 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727599', 'tblTempVendorCDR_20' ) end [2025-03-21 04:02:17] Production.INFO: ProcessCDR(1,14727599,1,1,2) [2025-03-21 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727599', 'tblTempUsageDetail_20' ) start [2025-03-21 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727599', 'tblTempUsageDetail_20' ) end [2025-03-21 04:02:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:02:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:02:20] Production.INFO: ==15320== Releasing lock... [2025-03-21 04:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:02:20] Production.INFO: 32 MB #Memory Used# [2025-03-21 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:03:05 [end_date_ymd] => 2025-03-21 04:03:05 [RateCDR] => 1 ) [2025-03-21 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 01:03:05' and `end` < '2025-03-21 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 04:03:18] Production.INFO: count ==478 [2025-03-21 04:03:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:03:05 - End Time 2025-03-21 04:03:05 [2025-03-21 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727604', 'tblTempUsageDetail_20' ) start [2025-03-21 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727604', 'tblTempUsageDetail_20' ) end [2025-03-21 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727604', 'tblTempVendorCDR_20' ) start [2025-03-21 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727604', 'tblTempVendorCDR_20' ) end [2025-03-21 04:03:18] Production.INFO: ProcessCDR(1,14727604,1,1,2) [2025-03-21 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727604', 'tblTempUsageDetail_20' ) start [2025-03-21 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727604', 'tblTempUsageDetail_20' ) end [2025-03-21 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:03:21] Production.INFO: ==15411== Releasing lock... [2025-03-21 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:03:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:04:05 [end_date_ymd] => 2025-03-21 04:04:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:04:05' and `end` < '2025-03-21 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-21 04:04:18] Production.INFO: count ==478 [2025-03-21 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:04:05 - End Time 2025-03-21 04:04:05 [2025-03-21 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727609', 'tblTempUsageDetail_20' ) start [2025-03-21 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727609', 'tblTempUsageDetail_20' ) end [2025-03-21 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727609', 'tblTempVendorCDR_20' ) start [2025-03-21 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727609', 'tblTempVendorCDR_20' ) end [2025-03-21 04:04:18] Production.INFO: ProcessCDR(1,14727609,1,1,2) [2025-03-21 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727609', 'tblTempUsageDetail_20' ) start [2025-03-21 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727609', 'tblTempUsageDetail_20' ) end [2025-03-21 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:04:21] Production.INFO: ==15508== Releasing lock... [2025-03-21 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:04:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:05:05 [end_date_ymd] => 2025-03-21 04:05:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:05:05' and `end` < '2025-03-21 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-21 04:05:18] Production.INFO: count ==473 [2025-03-21 04:05:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:05:05 - End Time 2025-03-21 04:05:05 [2025-03-21 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727614', 'tblTempUsageDetail_20' ) start [2025-03-21 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727614', 'tblTempUsageDetail_20' ) end [2025-03-21 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727614', 'tblTempVendorCDR_20' ) start [2025-03-21 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727614', 'tblTempVendorCDR_20' ) end [2025-03-21 04:05:18] Production.INFO: ProcessCDR(1,14727614,1,1,2) [2025-03-21 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727614', 'tblTempUsageDetail_20' ) start [2025-03-21 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727614', 'tblTempUsageDetail_20' ) end [2025-03-21 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:05:21] Production.INFO: ==15607== Releasing lock... [2025-03-21 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:05:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:06:05 [end_date_ymd] => 2025-03-21 04:06:05 [RateCDR] => 1 ) [2025-03-21 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 01:06:05' and `end` < '2025-03-21 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 04:06:17] Production.INFO: count ==469 [2025-03-21 04:06:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:06:05 - End Time 2025-03-21 04:06:05 [2025-03-21 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727619', 'tblTempUsageDetail_20' ) start [2025-03-21 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727619', 'tblTempUsageDetail_20' ) end [2025-03-21 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727619', 'tblTempVendorCDR_20' ) start [2025-03-21 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727619', 'tblTempVendorCDR_20' ) end [2025-03-21 04:06:18] Production.INFO: ProcessCDR(1,14727619,1,1,2) [2025-03-21 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727619', 'tblTempUsageDetail_20' ) start [2025-03-21 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727619', 'tblTempUsageDetail_20' ) end [2025-03-21 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:06:21] Production.INFO: ==15696== Releasing lock... [2025-03-21 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:06:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:07:06 [end_date_ymd] => 2025-03-21 04:07:06 [RateCDR] => 1 ) [2025-03-21 04: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-21 01:07:06' and `end` < '2025-03-21 04: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-21 04:07:18] Production.INFO: count ==469 [2025-03-21 04:07:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:07:06 - End Time 2025-03-21 04:07:06 [2025-03-21 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727624', 'tblTempUsageDetail_20' ) start [2025-03-21 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727624', 'tblTempUsageDetail_20' ) end [2025-03-21 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727624', 'tblTempVendorCDR_20' ) start [2025-03-21 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727624', 'tblTempVendorCDR_20' ) end [2025-03-21 04:07:18] Production.INFO: ProcessCDR(1,14727624,1,1,2) [2025-03-21 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727624', 'tblTempUsageDetail_20' ) start [2025-03-21 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727624', 'tblTempUsageDetail_20' ) end [2025-03-21 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:07:22] Production.INFO: ==15789== Releasing lock... [2025-03-21 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:07:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:08:06 [end_date_ymd] => 2025-03-21 04:08:06 [RateCDR] => 1 ) [2025-03-21 04: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-21 01:08:06' and `end` < '2025-03-21 04: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-21 04:08:18] Production.INFO: count ==465 [2025-03-21 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:08:06 - End Time 2025-03-21 04:08:06 [2025-03-21 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727629', 'tblTempUsageDetail_20' ) start [2025-03-21 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727629', 'tblTempUsageDetail_20' ) end [2025-03-21 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727629', 'tblTempVendorCDR_20' ) start [2025-03-21 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727629', 'tblTempVendorCDR_20' ) end [2025-03-21 04:08:18] Production.INFO: ProcessCDR(1,14727629,1,1,2) [2025-03-21 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727629', 'tblTempUsageDetail_20' ) start [2025-03-21 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727629', 'tblTempUsageDetail_20' ) end [2025-03-21 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:08:22] Production.INFO: ==15877== Releasing lock... [2025-03-21 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:08:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-21 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:09:05 [end_date_ymd] => 2025-03-21 04:09:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:09:05' and `end` < '2025-03-21 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-21 04:09:17] Production.INFO: count ==456 [2025-03-21 04:09:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:09:05 - End Time 2025-03-21 04:09:05 [2025-03-21 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727634', 'tblTempUsageDetail_20' ) start [2025-03-21 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727634', 'tblTempUsageDetail_20' ) end [2025-03-21 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727634', 'tblTempVendorCDR_20' ) start [2025-03-21 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727634', 'tblTempVendorCDR_20' ) end [2025-03-21 04:09:17] Production.INFO: ProcessCDR(1,14727634,1,1,2) [2025-03-21 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727634', 'tblTempUsageDetail_20' ) start [2025-03-21 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727634', 'tblTempUsageDetail_20' ) end [2025-03-21 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:09:20] Production.INFO: ==15964== Releasing lock... [2025-03-21 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:09:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:10:06 [end_date_ymd] => 2025-03-21 04:10:06 [RateCDR] => 1 ) [2025-03-21 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-21 01:10:06' and `end` < '2025-03-21 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-21 04:10:19] Production.INFO: count ==445 [2025-03-21 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-21 01:10:06 - End Time 2025-03-21 04:10:06 [2025-03-21 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727639', 'tblTempUsageDetail_20' ) start [2025-03-21 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727639', 'tblTempUsageDetail_20' ) end [2025-03-21 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727639', 'tblTempVendorCDR_20' ) start [2025-03-21 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727639', 'tblTempVendorCDR_20' ) end [2025-03-21 04:10:19] Production.INFO: ProcessCDR(1,14727639,1,1,2) [2025-03-21 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727639', 'tblTempUsageDetail_20' ) start [2025-03-21 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727639', 'tblTempUsageDetail_20' ) end [2025-03-21 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:10:22] Production.INFO: ==16052== Releasing lock... [2025-03-21 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:11:05 [end_date_ymd] => 2025-03-21 04:11:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:11:05' and `end` < '2025-03-21 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-21 04:11:17] Production.INFO: count ==426 [2025-03-21 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:11:05 - End Time 2025-03-21 04:11:05 [2025-03-21 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727645', 'tblTempUsageDetail_20' ) start [2025-03-21 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727645', 'tblTempUsageDetail_20' ) end [2025-03-21 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727645', 'tblTempVendorCDR_20' ) start [2025-03-21 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727645', 'tblTempVendorCDR_20' ) end [2025-03-21 04:11:17] Production.INFO: ProcessCDR(1,14727645,1,1,2) [2025-03-21 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727645', 'tblTempUsageDetail_20' ) start [2025-03-21 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727645', 'tblTempUsageDetail_20' ) end [2025-03-21 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:11:20] Production.INFO: ==16157== Releasing lock... [2025-03-21 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:11:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-21 04:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:12:06 [end_date_ymd] => 2025-03-21 04:12:06 [RateCDR] => 1 ) [2025-03-21 04: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-21 01:12:06' and `end` < '2025-03-21 04: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-21 04:12:18] Production.INFO: count ==425 [2025-03-21 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:12:06 - End Time 2025-03-21 04:12:06 [2025-03-21 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727650', 'tblTempUsageDetail_20' ) start [2025-03-21 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727650', 'tblTempUsageDetail_20' ) end [2025-03-21 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727650', 'tblTempVendorCDR_20' ) start [2025-03-21 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727650', 'tblTempVendorCDR_20' ) end [2025-03-21 04:12:18] Production.INFO: ProcessCDR(1,14727650,1,1,2) [2025-03-21 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727650', 'tblTempUsageDetail_20' ) start [2025-03-21 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727650', 'tblTempUsageDetail_20' ) end [2025-03-21 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:12:22] Production.INFO: ==16255== Releasing lock... [2025-03-21 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:12:22] Production.INFO: 32 MB #Memory Used# [2025-03-21 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:13:05 [end_date_ymd] => 2025-03-21 04:13:05 [RateCDR] => 1 ) [2025-03-21 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 01:13:05' and `end` < '2025-03-21 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 04:13:17] Production.INFO: count ==422 [2025-03-21 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:13:05 - End Time 2025-03-21 04:13:05 [2025-03-21 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727655', 'tblTempUsageDetail_20' ) start [2025-03-21 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727655', 'tblTempUsageDetail_20' ) end [2025-03-21 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727655', 'tblTempVendorCDR_20' ) start [2025-03-21 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727655', 'tblTempVendorCDR_20' ) end [2025-03-21 04:13:17] Production.INFO: ProcessCDR(1,14727655,1,1,2) [2025-03-21 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727655', 'tblTempUsageDetail_20' ) start [2025-03-21 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727655', 'tblTempUsageDetail_20' ) end [2025-03-21 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:13:21] Production.INFO: ==16340== Releasing lock... [2025-03-21 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:13:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 04:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:14:06 [end_date_ymd] => 2025-03-21 04:14:06 [RateCDR] => 1 ) [2025-03-21 04:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 01:14:06' and `end` < '2025-03-21 04:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 04:14:18] Production.INFO: count ==421 [2025-03-21 04:14:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:14:06 - End Time 2025-03-21 04:14:06 [2025-03-21 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727660', 'tblTempUsageDetail_20' ) start [2025-03-21 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727660', 'tblTempUsageDetail_20' ) end [2025-03-21 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727660', 'tblTempVendorCDR_20' ) start [2025-03-21 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727660', 'tblTempVendorCDR_20' ) end [2025-03-21 04:14:18] Production.INFO: ProcessCDR(1,14727660,1,1,2) [2025-03-21 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727660', 'tblTempUsageDetail_20' ) start [2025-03-21 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727660', 'tblTempUsageDetail_20' ) end [2025-03-21 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:14:21] Production.INFO: ==16437== Releasing lock... [2025-03-21 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:14:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:15:05 [end_date_ymd] => 2025-03-21 04:15:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:15:05' and `end` < '2025-03-21 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-21 04:15:18] Production.INFO: count ==421 [2025-03-21 04:15:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:15:05 - End Time 2025-03-21 04:15:05 [2025-03-21 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727665', 'tblTempUsageDetail_20' ) start [2025-03-21 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727665', 'tblTempUsageDetail_20' ) end [2025-03-21 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727665', 'tblTempVendorCDR_20' ) start [2025-03-21 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727665', 'tblTempVendorCDR_20' ) end [2025-03-21 04:15:18] Production.INFO: ProcessCDR(1,14727665,1,1,2) [2025-03-21 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727665', 'tblTempUsageDetail_20' ) start [2025-03-21 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727665', 'tblTempUsageDetail_20' ) end [2025-03-21 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:15:21] Production.INFO: ==16534== Releasing lock... [2025-03-21 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:15:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:16:06 [end_date_ymd] => 2025-03-21 04:16:06 [RateCDR] => 1 ) [2025-03-21 04:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 01:16:06' and `end` < '2025-03-21 04:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 04:16:18] Production.INFO: count ==421 [2025-03-21 04:16:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:16:06 - End Time 2025-03-21 04:16:06 [2025-03-21 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727670', 'tblTempUsageDetail_20' ) start [2025-03-21 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727670', 'tblTempUsageDetail_20' ) end [2025-03-21 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727670', 'tblTempVendorCDR_20' ) start [2025-03-21 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727670', 'tblTempVendorCDR_20' ) end [2025-03-21 04:16:18] Production.INFO: ProcessCDR(1,14727670,1,1,2) [2025-03-21 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727670', 'tblTempUsageDetail_20' ) start [2025-03-21 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727670', 'tblTempUsageDetail_20' ) end [2025-03-21 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:16:21] Production.INFO: ==16624== Releasing lock... [2025-03-21 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:16:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:17:05 [end_date_ymd] => 2025-03-21 04:17:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:17:05' and `end` < '2025-03-21 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-21 04:17:17] Production.INFO: count ==421 [2025-03-21 04:17:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:17:05 - End Time 2025-03-21 04:17:05 [2025-03-21 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727675', 'tblTempUsageDetail_20' ) start [2025-03-21 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727675', 'tblTempUsageDetail_20' ) end [2025-03-21 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727675', 'tblTempVendorCDR_20' ) start [2025-03-21 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727675', 'tblTempVendorCDR_20' ) end [2025-03-21 04:17:17] Production.INFO: ProcessCDR(1,14727675,1,1,2) [2025-03-21 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727675', 'tblTempUsageDetail_20' ) start [2025-03-21 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727675', 'tblTempUsageDetail_20' ) end [2025-03-21 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:17:21] Production.INFO: ==16761== Releasing lock... [2025-03-21 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:17:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:18:05 [end_date_ymd] => 2025-03-21 04:18:05 [RateCDR] => 1 ) [2025-03-21 04:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 01:18:05' and `end` < '2025-03-21 04:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 04:18:17] Production.INFO: count ==421 [2025-03-21 04:18:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:18:05 - End Time 2025-03-21 04:18:05 [2025-03-21 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727680', 'tblTempUsageDetail_20' ) start [2025-03-21 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727680', 'tblTempUsageDetail_20' ) end [2025-03-21 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727680', 'tblTempVendorCDR_20' ) start [2025-03-21 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727680', 'tblTempVendorCDR_20' ) end [2025-03-21 04:18:17] Production.INFO: ProcessCDR(1,14727680,1,1,2) [2025-03-21 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727680', 'tblTempUsageDetail_20' ) start [2025-03-21 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727680', 'tblTempUsageDetail_20' ) end [2025-03-21 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:18:21] Production.INFO: ==16847== Releasing lock... [2025-03-21 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:18:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:19:05 [end_date_ymd] => 2025-03-21 04:19:05 [RateCDR] => 1 ) [2025-03-21 04: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-21 01:19:05' and `end` < '2025-03-21 04: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-21 04:19:17] Production.INFO: count ==419 [2025-03-21 04:19:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:19:05 - End Time 2025-03-21 04:19:05 [2025-03-21 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727685', 'tblTempUsageDetail_20' ) start [2025-03-21 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727685', 'tblTempUsageDetail_20' ) end [2025-03-21 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727685', 'tblTempVendorCDR_20' ) start [2025-03-21 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727685', 'tblTempVendorCDR_20' ) end [2025-03-21 04:19:17] Production.INFO: ProcessCDR(1,14727685,1,1,2) [2025-03-21 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727685', 'tblTempUsageDetail_20' ) start [2025-03-21 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727685', 'tblTempUsageDetail_20' ) end [2025-03-21 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:19:21] Production.INFO: ==16937== Releasing lock... [2025-03-21 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:19:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:20:06 [end_date_ymd] => 2025-03-21 04:20:06 [RateCDR] => 1 ) [2025-03-21 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-21 01:20:06' and `end` < '2025-03-21 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-21 04:20:18] Production.INFO: count ==411 [2025-03-21 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:20:06 - End Time 2025-03-21 04:20:06 [2025-03-21 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727691', 'tblTempUsageDetail_20' ) start [2025-03-21 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727691', 'tblTempUsageDetail_20' ) end [2025-03-21 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727691', 'tblTempVendorCDR_20' ) start [2025-03-21 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727691', 'tblTempVendorCDR_20' ) end [2025-03-21 04:20:18] Production.INFO: ProcessCDR(1,14727691,1,1,2) [2025-03-21 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727691', 'tblTempUsageDetail_20' ) start [2025-03-21 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727691', 'tblTempUsageDetail_20' ) end [2025-03-21 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:20:22] Production.INFO: ==17034== Releasing lock... [2025-03-21 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:20:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-21 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:21:05 [end_date_ymd] => 2025-03-21 04:21:05 [RateCDR] => 1 ) [2025-03-21 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 01:21:05' and `end` < '2025-03-21 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-21 04:21:17] Production.INFO: count ==411 [2025-03-21 04:21:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:21:05 - End Time 2025-03-21 04:21:05 [2025-03-21 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727696', 'tblTempUsageDetail_20' ) start [2025-03-21 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727696', 'tblTempUsageDetail_20' ) end [2025-03-21 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727696', 'tblTempVendorCDR_20' ) start [2025-03-21 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727696', 'tblTempVendorCDR_20' ) end [2025-03-21 04:21:17] Production.INFO: ProcessCDR(1,14727696,1,1,2) [2025-03-21 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727696', 'tblTempUsageDetail_20' ) start [2025-03-21 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727696', 'tblTempUsageDetail_20' ) end [2025-03-21 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:21:21] Production.INFO: ==17130== Releasing lock... [2025-03-21 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-21 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:22:05 [end_date_ymd] => 2025-03-21 04:22:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:22:05' and `end` < '2025-03-21 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-21 04:22:18] Production.INFO: count ==408 [2025-03-21 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:22:05 - End Time 2025-03-21 04:22:05 [2025-03-21 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727701', 'tblTempUsageDetail_20' ) start [2025-03-21 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727701', 'tblTempUsageDetail_20' ) end [2025-03-21 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727701', 'tblTempVendorCDR_20' ) start [2025-03-21 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727701', 'tblTempVendorCDR_20' ) end [2025-03-21 04:22:18] Production.INFO: ProcessCDR(1,14727701,1,1,2) [2025-03-21 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727701', 'tblTempUsageDetail_20' ) start [2025-03-21 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727701', 'tblTempUsageDetail_20' ) end [2025-03-21 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:22:21] Production.INFO: ==17216== Releasing lock... [2025-03-21 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:22:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-21 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:23:05 [end_date_ymd] => 2025-03-21 04:23:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:23:05' and `end` < '2025-03-21 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-21 04:23:18] Production.INFO: count ==408 [2025-03-21 04:23:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:23:05 - End Time 2025-03-21 04:23:05 [2025-03-21 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727706', 'tblTempUsageDetail_20' ) start [2025-03-21 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727706', 'tblTempUsageDetail_20' ) end [2025-03-21 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727706', 'tblTempVendorCDR_20' ) start [2025-03-21 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727706', 'tblTempVendorCDR_20' ) end [2025-03-21 04:23:18] Production.INFO: ProcessCDR(1,14727706,1,1,2) [2025-03-21 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727706', 'tblTempUsageDetail_20' ) start [2025-03-21 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727706', 'tblTempUsageDetail_20' ) end [2025-03-21 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:23:21] Production.INFO: ==17315== Releasing lock... [2025-03-21 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:23:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-21 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:24:06 [end_date_ymd] => 2025-03-21 04:24:06 [RateCDR] => 1 ) [2025-03-21 04: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-21 01:24:06' and `end` < '2025-03-21 04: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-21 04:24:18] Production.INFO: count ==408 [2025-03-21 04:24:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:24:06 - End Time 2025-03-21 04:24:06 [2025-03-21 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727711', 'tblTempUsageDetail_20' ) start [2025-03-21 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727711', 'tblTempUsageDetail_20' ) end [2025-03-21 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727711', 'tblTempVendorCDR_20' ) start [2025-03-21 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727711', 'tblTempVendorCDR_20' ) end [2025-03-21 04:24:18] Production.INFO: ProcessCDR(1,14727711,1,1,2) [2025-03-21 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727711', 'tblTempUsageDetail_20' ) start [2025-03-21 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727711', 'tblTempUsageDetail_20' ) end [2025-03-21 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:24:21] Production.INFO: ==17412== Releasing lock... [2025-03-21 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:24:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-21 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:25:05 [end_date_ymd] => 2025-03-21 04:25:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:25:05' and `end` < '2025-03-21 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-21 04:25:17] Production.INFO: count ==406 [2025-03-21 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:25:05 - End Time 2025-03-21 04:25:05 [2025-03-21 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727716', 'tblTempUsageDetail_20' ) start [2025-03-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727716', 'tblTempUsageDetail_20' ) end [2025-03-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727716', 'tblTempVendorCDR_20' ) start [2025-03-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727716', 'tblTempVendorCDR_20' ) end [2025-03-21 04:25:17] Production.INFO: ProcessCDR(1,14727716,1,1,2) [2025-03-21 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727716', 'tblTempUsageDetail_20' ) start [2025-03-21 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727716', 'tblTempUsageDetail_20' ) end [2025-03-21 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:25:21] Production.INFO: ==17503== Releasing lock... [2025-03-21 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-21 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:26:05 [end_date_ymd] => 2025-03-21 04:26:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:26:05' and `end` < '2025-03-21 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-21 04:26:17] Production.INFO: count ==405 [2025-03-21 04:26:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:26:05 - End Time 2025-03-21 04:26:05 [2025-03-21 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727721', 'tblTempUsageDetail_20' ) start [2025-03-21 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727721', 'tblTempUsageDetail_20' ) end [2025-03-21 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727721', 'tblTempVendorCDR_20' ) start [2025-03-21 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727721', 'tblTempVendorCDR_20' ) end [2025-03-21 04:26:17] Production.INFO: ProcessCDR(1,14727721,1,1,2) [2025-03-21 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727721', 'tblTempUsageDetail_20' ) start [2025-03-21 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727721', 'tblTempUsageDetail_20' ) end [2025-03-21 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:26:21] Production.INFO: ==17590== Releasing lock... [2025-03-21 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-21 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:27:04 [end_date_ymd] => 2025-03-21 04:27:04 [RateCDR] => 1 ) [2025-03-21 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-21 01:27:04' and `end` < '2025-03-21 04: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-21 04:27:17] Production.INFO: count ==403 [2025-03-21 04:27:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:27:04 - End Time 2025-03-21 04:27:04 [2025-03-21 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727726', 'tblTempUsageDetail_20' ) start [2025-03-21 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727726', 'tblTempUsageDetail_20' ) end [2025-03-21 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727726', 'tblTempVendorCDR_20' ) start [2025-03-21 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727726', 'tblTempVendorCDR_20' ) end [2025-03-21 04:27:17] Production.INFO: ProcessCDR(1,14727726,1,1,2) [2025-03-21 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727726', 'tblTempUsageDetail_20' ) start [2025-03-21 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727726', 'tblTempUsageDetail_20' ) end [2025-03-21 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:27:20] Production.INFO: ==17683== Releasing lock... [2025-03-21 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:27:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-21 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:28:05 [end_date_ymd] => 2025-03-21 04:28:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:28:05' and `end` < '2025-03-21 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-21 04:28:17] Production.INFO: count ==394 [2025-03-21 04:28:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:28:05 - End Time 2025-03-21 04:28:05 [2025-03-21 04:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727731', 'tblTempUsageDetail_20' ) start [2025-03-21 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727731', 'tblTempUsageDetail_20' ) end [2025-03-21 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727731', 'tblTempVendorCDR_20' ) start [2025-03-21 04:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727731', 'tblTempVendorCDR_20' ) end [2025-03-21 04:28:17] Production.INFO: ProcessCDR(1,14727731,1,1,2) [2025-03-21 04:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727731', 'tblTempUsageDetail_20' ) start [2025-03-21 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727731', 'tblTempUsageDetail_20' ) end [2025-03-21 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:28:21] Production.INFO: ==17771== Releasing lock... [2025-03-21 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:29:04 [end_date_ymd] => 2025-03-21 04:29:04 [RateCDR] => 1 ) [2025-03-21 04:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 01:29:04' and `end` < '2025-03-21 04:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 04:29:17] Production.INFO: count ==393 [2025-03-21 04:29:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:29:04 - End Time 2025-03-21 04:29:04 [2025-03-21 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727736', 'tblTempUsageDetail_20' ) start [2025-03-21 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727736', 'tblTempUsageDetail_20' ) end [2025-03-21 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727736', 'tblTempVendorCDR_20' ) start [2025-03-21 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727736', 'tblTempVendorCDR_20' ) end [2025-03-21 04:29:17] Production.INFO: ProcessCDR(1,14727736,1,1,2) [2025-03-21 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727736', 'tblTempUsageDetail_20' ) start [2025-03-21 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727736', 'tblTempUsageDetail_20' ) end [2025-03-21 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:29:20] Production.INFO: ==17861== Releasing lock... [2025-03-21 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:29:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-21 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:30:06 [end_date_ymd] => 2025-03-21 04:30:06 [RateCDR] => 1 ) [2025-03-21 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 01:30:06' and `end` < '2025-03-21 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 04:30:18] Production.INFO: count ==385 [2025-03-21 04:30:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:30:06 - End Time 2025-03-21 04:30:06 [2025-03-21 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727743', 'tblTempUsageDetail_20' ) start [2025-03-21 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727743', 'tblTempUsageDetail_20' ) end [2025-03-21 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727743', 'tblTempVendorCDR_20' ) start [2025-03-21 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727743', 'tblTempVendorCDR_20' ) end [2025-03-21 04:30:19] Production.INFO: ProcessCDR(1,14727743,1,1,2) [2025-03-21 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727743', 'tblTempUsageDetail_20' ) start [2025-03-21 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727743', 'tblTempUsageDetail_20' ) end [2025-03-21 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:30:23] Production.INFO: ==17961== Releasing lock... [2025-03-21 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:30:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:31:04 [end_date_ymd] => 2025-03-21 04:31:04 [RateCDR] => 1 ) [2025-03-21 04:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 01:31:04' and `end` < '2025-03-21 04:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 04:31:17] Production.INFO: count ==385 [2025-03-21 04:31:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:31:04 - End Time 2025-03-21 04:31:04 [2025-03-21 04:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727748', 'tblTempUsageDetail_20' ) start [2025-03-21 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727748', 'tblTempUsageDetail_20' ) end [2025-03-21 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727748', 'tblTempVendorCDR_20' ) start [2025-03-21 04:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727748', 'tblTempVendorCDR_20' ) end [2025-03-21 04:31:17] Production.INFO: ProcessCDR(1,14727748,1,1,2) [2025-03-21 04:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727748', 'tblTempUsageDetail_20' ) start [2025-03-21 04:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727748', 'tblTempUsageDetail_20' ) end [2025-03-21 04:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:31:20] Production.INFO: ==18172== Releasing lock... [2025-03-21 04:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:31:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:32:05 [end_date_ymd] => 2025-03-21 04:32:05 [RateCDR] => 1 ) [2025-03-21 04: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-21 01:32:05' and `end` < '2025-03-21 04: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-21 04:32:17] Production.INFO: count ==384 [2025-03-21 04:32:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:32:05 - End Time 2025-03-21 04:32:05 [2025-03-21 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727753', 'tblTempUsageDetail_20' ) start [2025-03-21 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727753', 'tblTempUsageDetail_20' ) end [2025-03-21 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727753', 'tblTempVendorCDR_20' ) start [2025-03-21 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727753', 'tblTempVendorCDR_20' ) end [2025-03-21 04:32:18] Production.INFO: ProcessCDR(1,14727753,1,1,2) [2025-03-21 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727753', 'tblTempUsageDetail_20' ) start [2025-03-21 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727753', 'tblTempUsageDetail_20' ) end [2025-03-21 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:32:21] Production.INFO: ==18265== Releasing lock... [2025-03-21 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:33:05 [end_date_ymd] => 2025-03-21 04:33:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:33:05' and `end` < '2025-03-21 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-21 04:33:17] Production.INFO: count ==384 [2025-03-21 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:33:05 - End Time 2025-03-21 04:33:05 [2025-03-21 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727758', 'tblTempUsageDetail_20' ) start [2025-03-21 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727758', 'tblTempUsageDetail_20' ) end [2025-03-21 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727758', 'tblTempVendorCDR_20' ) start [2025-03-21 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727758', 'tblTempVendorCDR_20' ) end [2025-03-21 04:33:18] Production.INFO: ProcessCDR(1,14727758,1,1,2) [2025-03-21 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727758', 'tblTempUsageDetail_20' ) start [2025-03-21 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727758', 'tblTempUsageDetail_20' ) end [2025-03-21 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:33:21] Production.INFO: ==18391== Releasing lock... [2025-03-21 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:33:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:34:05 [end_date_ymd] => 2025-03-21 04:34:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:34:05' and `end` < '2025-03-21 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-21 04:34:17] Production.INFO: count ==384 [2025-03-21 04:34:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:34:05 - End Time 2025-03-21 04:34:05 [2025-03-21 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727763', 'tblTempUsageDetail_20' ) start [2025-03-21 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727763', 'tblTempUsageDetail_20' ) end [2025-03-21 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727763', 'tblTempVendorCDR_20' ) start [2025-03-21 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727763', 'tblTempVendorCDR_20' ) end [2025-03-21 04:34:17] Production.INFO: ProcessCDR(1,14727763,1,1,2) [2025-03-21 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727763', 'tblTempUsageDetail_20' ) start [2025-03-21 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727763', 'tblTempUsageDetail_20' ) end [2025-03-21 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:34:21] Production.INFO: ==18481== Releasing lock... [2025-03-21 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:34:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:35:06 [end_date_ymd] => 2025-03-21 04:35:06 [RateCDR] => 1 ) [2025-03-21 04: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-21 01:35:06' and `end` < '2025-03-21 04: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-21 04:35:18] Production.INFO: count ==383 [2025-03-21 04:35:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:35:06 - End Time 2025-03-21 04:35:06 [2025-03-21 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727768', 'tblTempUsageDetail_20' ) start [2025-03-21 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727768', 'tblTempUsageDetail_20' ) end [2025-03-21 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727768', 'tblTempVendorCDR_20' ) start [2025-03-21 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727768', 'tblTempVendorCDR_20' ) end [2025-03-21 04:35:18] Production.INFO: ProcessCDR(1,14727768,1,1,2) [2025-03-21 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727768', 'tblTempUsageDetail_20' ) start [2025-03-21 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727768', 'tblTempUsageDetail_20' ) end [2025-03-21 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:35:22] Production.INFO: ==18569== Releasing lock... [2025-03-21 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:35:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:36:05 [end_date_ymd] => 2025-03-21 04:36:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:36:05' and `end` < '2025-03-21 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-21 04:36:17] Production.INFO: count ==383 [2025-03-21 04:36:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:36:05 - End Time 2025-03-21 04:36:05 [2025-03-21 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727773', 'tblTempUsageDetail_20' ) start [2025-03-21 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727773', 'tblTempUsageDetail_20' ) end [2025-03-21 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727773', 'tblTempVendorCDR_20' ) start [2025-03-21 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727773', 'tblTempVendorCDR_20' ) end [2025-03-21 04:36:18] Production.INFO: ProcessCDR(1,14727773,1,1,2) [2025-03-21 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727773', 'tblTempUsageDetail_20' ) start [2025-03-21 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727773', 'tblTempUsageDetail_20' ) end [2025-03-21 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:36:21] Production.INFO: ==18658== Releasing lock... [2025-03-21 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:37:06 [end_date_ymd] => 2025-03-21 04:37:06 [RateCDR] => 1 ) [2025-03-21 04:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 01:37:06' and `end` < '2025-03-21 04:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 04:37:18] Production.INFO: count ==383 [2025-03-21 04:37:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:37:06 - End Time 2025-03-21 04:37:06 [2025-03-21 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727778', 'tblTempUsageDetail_20' ) start [2025-03-21 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727778', 'tblTempUsageDetail_20' ) end [2025-03-21 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727778', 'tblTempVendorCDR_20' ) start [2025-03-21 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727778', 'tblTempVendorCDR_20' ) end [2025-03-21 04:37:18] Production.INFO: ProcessCDR(1,14727778,1,1,2) [2025-03-21 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727778', 'tblTempUsageDetail_20' ) start [2025-03-21 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727778', 'tblTempUsageDetail_20' ) end [2025-03-21 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:37:21] Production.INFO: ==18752== Releasing lock... [2025-03-21 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:37:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:38:05 [end_date_ymd] => 2025-03-21 04:38:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:38:05' and `end` < '2025-03-21 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-21 04:38:17] Production.INFO: count ==382 [2025-03-21 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:38:05 - End Time 2025-03-21 04:38:05 [2025-03-21 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727783', 'tblTempUsageDetail_20' ) start [2025-03-21 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727783', 'tblTempUsageDetail_20' ) end [2025-03-21 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727783', 'tblTempVendorCDR_20' ) start [2025-03-21 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727783', 'tblTempVendorCDR_20' ) end [2025-03-21 04:38:17] Production.INFO: ProcessCDR(1,14727783,1,1,2) [2025-03-21 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727783', 'tblTempUsageDetail_20' ) start [2025-03-21 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727783', 'tblTempUsageDetail_20' ) end [2025-03-21 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:38:21] Production.INFO: ==18841== Releasing lock... [2025-03-21 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:38:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:39:05 [end_date_ymd] => 2025-03-21 04:39:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:39:05' and `end` < '2025-03-21 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-21 04:39:17] Production.INFO: count ==382 [2025-03-21 04:39:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:39:05 - End Time 2025-03-21 04:39:05 [2025-03-21 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727788', 'tblTempUsageDetail_20' ) start [2025-03-21 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727788', 'tblTempUsageDetail_20' ) end [2025-03-21 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727788', 'tblTempVendorCDR_20' ) start [2025-03-21 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727788', 'tblTempVendorCDR_20' ) end [2025-03-21 04:39:18] Production.INFO: ProcessCDR(1,14727788,1,1,2) [2025-03-21 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727788', 'tblTempUsageDetail_20' ) start [2025-03-21 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727788', 'tblTempUsageDetail_20' ) end [2025-03-21 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:39:21] Production.INFO: ==18928== Releasing lock... [2025-03-21 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:39:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:40:06 [end_date_ymd] => 2025-03-21 04:40:06 [RateCDR] => 1 ) [2025-03-21 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-21 01:40:06' and `end` < '2025-03-21 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-21 04:40:18] Production.INFO: count ==369 [2025-03-21 04:40:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:40:06 - End Time 2025-03-21 04:40:06 [2025-03-21 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727794', 'tblTempUsageDetail_20' ) start [2025-03-21 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727794', 'tblTempUsageDetail_20' ) end [2025-03-21 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727794', 'tblTempVendorCDR_20' ) start [2025-03-21 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727794', 'tblTempVendorCDR_20' ) end [2025-03-21 04:40:18] Production.INFO: ProcessCDR(1,14727794,1,1,2) [2025-03-21 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727794', 'tblTempUsageDetail_20' ) start [2025-03-21 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727794', 'tblTempUsageDetail_20' ) end [2025-03-21 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:40:22] Production.INFO: ==19024== Releasing lock... [2025-03-21 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:40:22] Production.INFO: 31 MB #Memory Used# [2025-03-21 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:41:05 [end_date_ymd] => 2025-03-21 04:41:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:41:05' and `end` < '2025-03-21 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-21 04:41:17] Production.INFO: count ==361 [2025-03-21 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:41:05 - End Time 2025-03-21 04:41:05 [2025-03-21 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727799', 'tblTempUsageDetail_20' ) start [2025-03-21 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727799', 'tblTempUsageDetail_20' ) end [2025-03-21 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727799', 'tblTempVendorCDR_20' ) start [2025-03-21 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727799', 'tblTempVendorCDR_20' ) end [2025-03-21 04:41:17] Production.INFO: ProcessCDR(1,14727799,1,1,2) [2025-03-21 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727799', 'tblTempUsageDetail_20' ) start [2025-03-21 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727799', 'tblTempUsageDetail_20' ) end [2025-03-21 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:41:21] Production.INFO: ==19115== Releasing lock... [2025-03-21 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:41:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:42:05 [end_date_ymd] => 2025-03-21 04:42:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:42:05' and `end` < '2025-03-21 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-21 04:42:17] Production.INFO: count ==360 [2025-03-21 04:42:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:42:05 - End Time 2025-03-21 04:42:05 [2025-03-21 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727804', 'tblTempUsageDetail_20' ) start [2025-03-21 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727804', 'tblTempUsageDetail_20' ) end [2025-03-21 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727804', 'tblTempVendorCDR_20' ) start [2025-03-21 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727804', 'tblTempVendorCDR_20' ) end [2025-03-21 04:42:17] Production.INFO: ProcessCDR(1,14727804,1,1,2) [2025-03-21 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727804', 'tblTempUsageDetail_20' ) start [2025-03-21 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727804', 'tblTempUsageDetail_20' ) end [2025-03-21 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:42:21] Production.INFO: ==19201== Releasing lock... [2025-03-21 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:42:21] Production.INFO: 31 MB #Memory Used# [2025-03-21 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:43:05 [end_date_ymd] => 2025-03-21 04:43:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:43:05' and `end` < '2025-03-21 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-21 04:43:17] Production.INFO: count ==358 [2025-03-21 04:43:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:43:05 - End Time 2025-03-21 04:43:05 [2025-03-21 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727809', 'tblTempUsageDetail_20' ) start [2025-03-21 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727809', 'tblTempUsageDetail_20' ) end [2025-03-21 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727809', 'tblTempVendorCDR_20' ) start [2025-03-21 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727809', 'tblTempVendorCDR_20' ) end [2025-03-21 04:43:17] Production.INFO: ProcessCDR(1,14727809,1,1,2) [2025-03-21 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727809', 'tblTempUsageDetail_20' ) start [2025-03-21 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727809', 'tblTempUsageDetail_20' ) end [2025-03-21 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:43:21] Production.INFO: ==19285== Releasing lock... [2025-03-21 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:43:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:44:05 [end_date_ymd] => 2025-03-21 04:44:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:44:05' and `end` < '2025-03-21 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-21 04:44:17] Production.INFO: count ==357 [2025-03-21 04:44:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:44:05 - End Time 2025-03-21 04:44:05 [2025-03-21 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727814', 'tblTempUsageDetail_20' ) start [2025-03-21 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727814', 'tblTempUsageDetail_20' ) end [2025-03-21 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727814', 'tblTempVendorCDR_20' ) start [2025-03-21 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727814', 'tblTempVendorCDR_20' ) end [2025-03-21 04:44:17] Production.INFO: ProcessCDR(1,14727814,1,1,2) [2025-03-21 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727814', 'tblTempUsageDetail_20' ) start [2025-03-21 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727814', 'tblTempUsageDetail_20' ) end [2025-03-21 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:44:21] Production.INFO: ==19369== Releasing lock... [2025-03-21 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:44:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:45:05 [end_date_ymd] => 2025-03-21 04:45:05 [RateCDR] => 1 ) [2025-03-21 04:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 01:45:05' and `end` < '2025-03-21 04:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 04:45:17] Production.INFO: count ==354 [2025-03-21 04:45:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:45:05 - End Time 2025-03-21 04:45:05 [2025-03-21 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727819', 'tblTempUsageDetail_20' ) start [2025-03-21 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727819', 'tblTempUsageDetail_20' ) end [2025-03-21 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727819', 'tblTempVendorCDR_20' ) start [2025-03-21 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727819', 'tblTempVendorCDR_20' ) end [2025-03-21 04:45:17] Production.INFO: ProcessCDR(1,14727819,1,1,2) [2025-03-21 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727819', 'tblTempUsageDetail_20' ) start [2025-03-21 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727819', 'tblTempUsageDetail_20' ) end [2025-03-21 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:45:21] Production.INFO: ==19454== Releasing lock... [2025-03-21 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:45:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:46:05 [end_date_ymd] => 2025-03-21 04:46:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:46:05' and `end` < '2025-03-21 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-21 04:46:18] Production.INFO: count ==352 [2025-03-21 04:46:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:46:05 - End Time 2025-03-21 04:46:05 [2025-03-21 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727824', 'tblTempUsageDetail_20' ) start [2025-03-21 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727824', 'tblTempUsageDetail_20' ) end [2025-03-21 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727824', 'tblTempVendorCDR_20' ) start [2025-03-21 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727824', 'tblTempVendorCDR_20' ) end [2025-03-21 04:46:18] Production.INFO: ProcessCDR(1,14727824,1,1,2) [2025-03-21 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727824', 'tblTempUsageDetail_20' ) start [2025-03-21 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727824', 'tblTempUsageDetail_20' ) end [2025-03-21 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:46:22] Production.INFO: ==19538== Releasing lock... [2025-03-21 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:46:22] Production.INFO: 31 MB #Memory Used# [2025-03-21 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:47:06 [end_date_ymd] => 2025-03-21 04:47:06 [RateCDR] => 1 ) [2025-03-21 04: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-21 01:47:06' and `end` < '2025-03-21 04: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-21 04:47:18] Production.INFO: count ==352 [2025-03-21 04:47:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:47:06 - End Time 2025-03-21 04:47:06 [2025-03-21 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727829', 'tblTempUsageDetail_20' ) start [2025-03-21 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727829', 'tblTempUsageDetail_20' ) end [2025-03-21 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727829', 'tblTempVendorCDR_20' ) start [2025-03-21 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727829', 'tblTempVendorCDR_20' ) end [2025-03-21 04:47:18] Production.INFO: ProcessCDR(1,14727829,1,1,2) [2025-03-21 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727829', 'tblTempUsageDetail_20' ) start [2025-03-21 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727829', 'tblTempUsageDetail_20' ) end [2025-03-21 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:47:22] Production.INFO: ==19625== Releasing lock... [2025-03-21 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:47:22] Production.INFO: 31 MB #Memory Used# [2025-03-21 04:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:48:06 [end_date_ymd] => 2025-03-21 04:48:06 [RateCDR] => 1 ) [2025-03-21 04: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-21 01:48:06' and `end` < '2025-03-21 04: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-21 04:48:19] Production.INFO: count ==349 [2025-03-21 04:48:19] Production.ERROR: pbx CDR StartTime 2025-03-21 01:48:06 - End Time 2025-03-21 04:48:06 [2025-03-21 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727834', 'tblTempUsageDetail_20' ) start [2025-03-21 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727834', 'tblTempUsageDetail_20' ) end [2025-03-21 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727834', 'tblTempVendorCDR_20' ) start [2025-03-21 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727834', 'tblTempVendorCDR_20' ) end [2025-03-21 04:48:19] Production.INFO: ProcessCDR(1,14727834,1,1,2) [2025-03-21 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727834', 'tblTempUsageDetail_20' ) start [2025-03-21 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727834', 'tblTempUsageDetail_20' ) end [2025-03-21 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:48:23] Production.INFO: ==19747== Releasing lock... [2025-03-21 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:48:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:49:05 [end_date_ymd] => 2025-03-21 04:49:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:49:05' and `end` < '2025-03-21 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-21 04:49:19] Production.INFO: count ==350 [2025-03-21 04:49:19] Production.ERROR: pbx CDR StartTime 2025-03-21 01:49:05 - End Time 2025-03-21 04:49:05 [2025-03-21 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727839', 'tblTempUsageDetail_20' ) start [2025-03-21 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727839', 'tblTempUsageDetail_20' ) end [2025-03-21 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727839', 'tblTempVendorCDR_20' ) start [2025-03-21 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727839', 'tblTempVendorCDR_20' ) end [2025-03-21 04:49:19] Production.INFO: ProcessCDR(1,14727839,1,1,2) [2025-03-21 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727839', 'tblTempUsageDetail_20' ) start [2025-03-21 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727839', 'tblTempUsageDetail_20' ) end [2025-03-21 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:49:22] Production.INFO: ==19834== Releasing lock... [2025-03-21 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:49:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:50:06 [end_date_ymd] => 2025-03-21 04:50:06 [RateCDR] => 1 ) [2025-03-21 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-21 01:50:06' and `end` < '2025-03-21 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-21 04:50:19] Production.INFO: count ==358 [2025-03-21 04:50:19] Production.ERROR: pbx CDR StartTime 2025-03-21 01:50:06 - End Time 2025-03-21 04:50:06 [2025-03-21 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727845', 'tblTempUsageDetail_20' ) start [2025-03-21 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727845', 'tblTempUsageDetail_20' ) end [2025-03-21 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727845', 'tblTempVendorCDR_20' ) start [2025-03-21 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727845', 'tblTempVendorCDR_20' ) end [2025-03-21 04:50:19] Production.INFO: ProcessCDR(1,14727845,1,1,2) [2025-03-21 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727845', 'tblTempUsageDetail_20' ) start [2025-03-21 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727845', 'tblTempUsageDetail_20' ) end [2025-03-21 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:50:22] Production.INFO: ==19928== Releasing lock... [2025-03-21 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:50:22] Production.INFO: 31 MB #Memory Used# [2025-03-21 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:51:05 [end_date_ymd] => 2025-03-21 04:51:05 [RateCDR] => 1 ) [2025-03-21 04: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-21 01:51:05' and `end` < '2025-03-21 04: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-21 04:51:18] Production.INFO: count ==361 [2025-03-21 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:51:05 - End Time 2025-03-21 04:51:05 [2025-03-21 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727850', 'tblTempUsageDetail_20' ) start [2025-03-21 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727850', 'tblTempUsageDetail_20' ) end [2025-03-21 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727850', 'tblTempVendorCDR_20' ) start [2025-03-21 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727850', 'tblTempVendorCDR_20' ) end [2025-03-21 04:51:18] Production.INFO: ProcessCDR(1,14727850,1,1,2) [2025-03-21 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727850', 'tblTempUsageDetail_20' ) start [2025-03-21 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727850', 'tblTempUsageDetail_20' ) end [2025-03-21 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:51:22] Production.INFO: ==20017== Releasing lock... [2025-03-21 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:51:22] Production.INFO: 31 MB #Memory Used# [2025-03-21 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:52:06 [end_date_ymd] => 2025-03-21 04:52:06 [RateCDR] => 1 ) [2025-03-21 04: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-21 01:52:06' and `end` < '2025-03-21 04: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-21 04:52:19] Production.INFO: count ==359 [2025-03-21 04:52:19] Production.ERROR: pbx CDR StartTime 2025-03-21 01:52:06 - End Time 2025-03-21 04:52:06 [2025-03-21 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727855', 'tblTempUsageDetail_20' ) start [2025-03-21 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727855', 'tblTempUsageDetail_20' ) end [2025-03-21 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727855', 'tblTempVendorCDR_20' ) start [2025-03-21 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727855', 'tblTempVendorCDR_20' ) end [2025-03-21 04:52:19] Production.INFO: ProcessCDR(1,14727855,1,1,2) [2025-03-21 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727855', 'tblTempUsageDetail_20' ) start [2025-03-21 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727855', 'tblTempUsageDetail_20' ) end [2025-03-21 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:52:23] Production.INFO: ==20101== Releasing lock... [2025-03-21 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:52:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:53:05 [end_date_ymd] => 2025-03-21 04:53:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:53:05' and `end` < '2025-03-21 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-21 04:53:18] Production.INFO: count ==359 [2025-03-21 04:53:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:53:05 - End Time 2025-03-21 04:53:05 [2025-03-21 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727860', 'tblTempUsageDetail_20' ) start [2025-03-21 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727860', 'tblTempUsageDetail_20' ) end [2025-03-21 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727860', 'tblTempVendorCDR_20' ) start [2025-03-21 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727860', 'tblTempVendorCDR_20' ) end [2025-03-21 04:53:18] Production.INFO: ProcessCDR(1,14727860,1,1,2) [2025-03-21 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727860', 'tblTempUsageDetail_20' ) start [2025-03-21 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727860', 'tblTempUsageDetail_20' ) end [2025-03-21 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:53:21] Production.INFO: ==20208== Releasing lock... [2025-03-21 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:53:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:54:06 [end_date_ymd] => 2025-03-21 04:54:06 [RateCDR] => 1 ) [2025-03-21 04: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-21 01:54:06' and `end` < '2025-03-21 04: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-21 04:54:18] Production.INFO: count ==358 [2025-03-21 04:54:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:54:06 - End Time 2025-03-21 04:54:06 [2025-03-21 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727865', 'tblTempUsageDetail_20' ) start [2025-03-21 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727865', 'tblTempUsageDetail_20' ) end [2025-03-21 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727865', 'tblTempVendorCDR_20' ) start [2025-03-21 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727865', 'tblTempVendorCDR_20' ) end [2025-03-21 04:54:18] Production.INFO: ProcessCDR(1,14727865,1,1,2) [2025-03-21 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727865', 'tblTempUsageDetail_20' ) start [2025-03-21 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727865', 'tblTempUsageDetail_20' ) end [2025-03-21 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:54:22] Production.INFO: ==20289== Releasing lock... [2025-03-21 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:54:22] Production.INFO: 31 MB #Memory Used# [2025-03-21 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:55:05 [end_date_ymd] => 2025-03-21 04:55:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:55:05' and `end` < '2025-03-21 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-21 04:55:17] Production.INFO: count ==358 [2025-03-21 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:55:05 - End Time 2025-03-21 04:55:05 [2025-03-21 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727870', 'tblTempUsageDetail_20' ) start [2025-03-21 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727870', 'tblTempUsageDetail_20' ) end [2025-03-21 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727870', 'tblTempVendorCDR_20' ) start [2025-03-21 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727870', 'tblTempVendorCDR_20' ) end [2025-03-21 04:55:18] Production.INFO: ProcessCDR(1,14727870,1,1,2) [2025-03-21 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727870', 'tblTempUsageDetail_20' ) start [2025-03-21 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727870', 'tblTempUsageDetail_20' ) end [2025-03-21 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:55:21] Production.INFO: ==20371== Releasing lock... [2025-03-21 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:55:21] Production.INFO: 31 MB #Memory Used# [2025-03-21 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:56:05 [end_date_ymd] => 2025-03-21 04:56:05 [RateCDR] => 1 ) [2025-03-21 04: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-21 01:56:05' and `end` < '2025-03-21 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-21 04:56:18] Production.INFO: count ==358 [2025-03-21 04:56:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:56:05 - End Time 2025-03-21 04:56:05 [2025-03-21 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727875', 'tblTempUsageDetail_20' ) start [2025-03-21 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727875', 'tblTempUsageDetail_20' ) end [2025-03-21 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727875', 'tblTempVendorCDR_20' ) start [2025-03-21 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727875', 'tblTempVendorCDR_20' ) end [2025-03-21 04:56:18] Production.INFO: ProcessCDR(1,14727875,1,1,2) [2025-03-21 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727875', 'tblTempUsageDetail_20' ) start [2025-03-21 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727875', 'tblTempUsageDetail_20' ) end [2025-03-21 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:56:22] Production.INFO: ==20466== Releasing lock... [2025-03-21 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:56:22] Production.INFO: 31 MB #Memory Used# [2025-03-21 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:57:05 [end_date_ymd] => 2025-03-21 04:57:05 [RateCDR] => 1 ) [2025-03-21 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 01:57:05' and `end` < '2025-03-21 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 04:57:17] Production.INFO: count ==358 [2025-03-21 04:57:17] Production.ERROR: pbx CDR StartTime 2025-03-21 01:57:05 - End Time 2025-03-21 04:57:05 [2025-03-21 04:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727880', 'tblTempUsageDetail_20' ) start [2025-03-21 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727880', 'tblTempUsageDetail_20' ) end [2025-03-21 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727880', 'tblTempVendorCDR_20' ) start [2025-03-21 04:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727880', 'tblTempVendorCDR_20' ) end [2025-03-21 04:57:17] Production.INFO: ProcessCDR(1,14727880,1,1,2) [2025-03-21 04:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727880', 'tblTempUsageDetail_20' ) start [2025-03-21 04:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727880', 'tblTempUsageDetail_20' ) end [2025-03-21 04:57:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:57:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:57:20] Production.INFO: ==20551== Releasing lock... [2025-03-21 04:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:57:20] Production.INFO: 31 MB #Memory Used# [2025-03-21 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:58:05 [end_date_ymd] => 2025-03-21 04:58:05 [RateCDR] => 1 ) [2025-03-21 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-21 01:58:05' and `end` < '2025-03-21 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-21 04:58:18] Production.INFO: count ==355 [2025-03-21 04:58:18] Production.ERROR: pbx CDR StartTime 2025-03-21 01:58:05 - End Time 2025-03-21 04:58:05 [2025-03-21 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727885', 'tblTempUsageDetail_20' ) start [2025-03-21 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727885', 'tblTempUsageDetail_20' ) end [2025-03-21 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727885', 'tblTempVendorCDR_20' ) start [2025-03-21 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727885', 'tblTempVendorCDR_20' ) end [2025-03-21 04:58:18] Production.INFO: ProcessCDR(1,14727885,1,1,2) [2025-03-21 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727885', 'tblTempUsageDetail_20' ) start [2025-03-21 04:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727885', 'tblTempUsageDetail_20' ) end [2025-03-21 04:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:58:21] Production.INFO: ==20640== Releasing lock... [2025-03-21 04:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:58:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 01:59:05 [end_date_ymd] => 2025-03-21 04:59:05 [RateCDR] => 1 ) [2025-03-21 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 01:59:05' and `end` < '2025-03-21 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 04:59:20] Production.INFO: count ==360 [2025-03-21 04:59:20] Production.ERROR: pbx CDR StartTime 2025-03-21 01:59:05 - End Time 2025-03-21 04:59:05 [2025-03-21 04:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727890', 'tblTempUsageDetail_20' ) start [2025-03-21 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727890', 'tblTempUsageDetail_20' ) end [2025-03-21 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727890', 'tblTempVendorCDR_20' ) start [2025-03-21 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727890', 'tblTempVendorCDR_20' ) end [2025-03-21 04:59:20] Production.INFO: ProcessCDR(1,14727890,1,1,2) [2025-03-21 04:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 04:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 04:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727890', 'tblTempUsageDetail_20' ) start [2025-03-21 04:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727890', 'tblTempUsageDetail_20' ) end [2025-03-21 04:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 04:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 04:59:24] Production.INFO: ==20723== Releasing lock... [2025-03-21 04:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 04:59:24] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:00:06 [end_date_ymd] => 2025-03-21 05:00:06 [RateCDR] => 1 ) [2025-03-21 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-21 02:00:06' and `end` < '2025-03-21 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-21 05:00:19] Production.INFO: count ==363 [2025-03-21 05:00:19] Production.ERROR: pbx CDR StartTime 2025-03-21 02:00:06 - End Time 2025-03-21 05:00:06 [2025-03-21 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727896', 'tblTempUsageDetail_20' ) start [2025-03-21 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727896', 'tblTempUsageDetail_20' ) end [2025-03-21 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727896', 'tblTempVendorCDR_20' ) start [2025-03-21 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727896', 'tblTempVendorCDR_20' ) end [2025-03-21 05:00:19] Production.INFO: ProcessCDR(1,14727896,1,1,2) [2025-03-21 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727896', 'tblTempUsageDetail_20' ) start [2025-03-21 05:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727896', 'tblTempUsageDetail_20' ) end [2025-03-21 05:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:00:22] Production.INFO: ==20814== Releasing lock... [2025-03-21 05:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:00:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:01:05 [end_date_ymd] => 2025-03-21 05:01:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:01:05' and `end` < '2025-03-21 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-21 05:01:18] Production.INFO: count ==366 [2025-03-21 05:01:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:01:05 - End Time 2025-03-21 05:01:05 [2025-03-21 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727901', 'tblTempUsageDetail_20' ) start [2025-03-21 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727901', 'tblTempUsageDetail_20' ) end [2025-03-21 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727901', 'tblTempVendorCDR_20' ) start [2025-03-21 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727901', 'tblTempVendorCDR_20' ) end [2025-03-21 05:01:18] Production.INFO: ProcessCDR(1,14727901,1,1,2) [2025-03-21 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727901', 'tblTempUsageDetail_20' ) start [2025-03-21 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727901', 'tblTempUsageDetail_20' ) end [2025-03-21 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:01:21] Production.INFO: ==20915== Releasing lock... [2025-03-21 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:01:21] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:02:06 [end_date_ymd] => 2025-03-21 05:02:06 [RateCDR] => 1 ) [2025-03-21 05: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-21 02:02:06' and `end` < '2025-03-21 05: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-21 05:02:19] Production.INFO: count ==366 [2025-03-21 05:02:19] Production.ERROR: pbx CDR StartTime 2025-03-21 02:02:06 - End Time 2025-03-21 05:02:06 [2025-03-21 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727906', 'tblTempUsageDetail_20' ) start [2025-03-21 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727906', 'tblTempUsageDetail_20' ) end [2025-03-21 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727906', 'tblTempVendorCDR_20' ) start [2025-03-21 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727906', 'tblTempVendorCDR_20' ) end [2025-03-21 05:02:19] Production.INFO: ProcessCDR(1,14727906,1,1,2) [2025-03-21 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727906', 'tblTempUsageDetail_20' ) start [2025-03-21 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727906', 'tblTempUsageDetail_20' ) end [2025-03-21 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:02:23] Production.INFO: ==21001== Releasing lock... [2025-03-21 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:02:23] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:03:05 [end_date_ymd] => 2025-03-21 05:03:05 [RateCDR] => 1 ) [2025-03-21 05: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-21 02:03:05' and `end` < '2025-03-21 05: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-21 05:03:17] Production.INFO: count ==358 [2025-03-21 05:03:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:03:05 - End Time 2025-03-21 05:03:05 [2025-03-21 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727911', 'tblTempUsageDetail_20' ) start [2025-03-21 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727911', 'tblTempUsageDetail_20' ) end [2025-03-21 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727911', 'tblTempVendorCDR_20' ) start [2025-03-21 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727911', 'tblTempVendorCDR_20' ) end [2025-03-21 05:03:18] Production.INFO: ProcessCDR(1,14727911,1,1,2) [2025-03-21 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727911', 'tblTempUsageDetail_20' ) start [2025-03-21 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727911', 'tblTempUsageDetail_20' ) end [2025-03-21 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:03:21] Production.INFO: ==21132== Releasing lock... [2025-03-21 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:04:05 [end_date_ymd] => 2025-03-21 05:04:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:04:05' and `end` < '2025-03-21 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-21 05:04:17] Production.INFO: count ==350 [2025-03-21 05:04:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:04:05 - End Time 2025-03-21 05:04:05 [2025-03-21 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727916', 'tblTempUsageDetail_20' ) start [2025-03-21 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727916', 'tblTempUsageDetail_20' ) end [2025-03-21 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727916', 'tblTempVendorCDR_20' ) start [2025-03-21 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727916', 'tblTempVendorCDR_20' ) end [2025-03-21 05:04:18] Production.INFO: ProcessCDR(1,14727916,1,1,2) [2025-03-21 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727916', 'tblTempUsageDetail_20' ) start [2025-03-21 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727916', 'tblTempUsageDetail_20' ) end [2025-03-21 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:04:21] Production.INFO: ==21221== Releasing lock... [2025-03-21 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:05:05 [end_date_ymd] => 2025-03-21 05:05:05 [RateCDR] => 1 ) [2025-03-21 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:05:05' and `end` < '2025-03-21 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:05:17] Production.INFO: count ==340 [2025-03-21 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:05:05 - End Time 2025-03-21 05:05:05 [2025-03-21 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727921', 'tblTempUsageDetail_20' ) start [2025-03-21 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727921', 'tblTempUsageDetail_20' ) end [2025-03-21 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727921', 'tblTempVendorCDR_20' ) start [2025-03-21 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727921', 'tblTempVendorCDR_20' ) end [2025-03-21 05:05:17] Production.INFO: ProcessCDR(1,14727921,1,1,2) [2025-03-21 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727921', 'tblTempUsageDetail_20' ) start [2025-03-21 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727921', 'tblTempUsageDetail_20' ) end [2025-03-21 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:05:20] Production.INFO: ==21313== Releasing lock... [2025-03-21 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:05:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:06:05 [end_date_ymd] => 2025-03-21 05:06:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:06:05' and `end` < '2025-03-21 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-21 05:06:18] Production.INFO: count ==334 [2025-03-21 05:06:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:06:05 - End Time 2025-03-21 05:06:05 [2025-03-21 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727926', 'tblTempUsageDetail_20' ) start [2025-03-21 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727926', 'tblTempUsageDetail_20' ) end [2025-03-21 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727926', 'tblTempVendorCDR_20' ) start [2025-03-21 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727926', 'tblTempVendorCDR_20' ) end [2025-03-21 05:06:18] Production.INFO: ProcessCDR(1,14727926,1,1,2) [2025-03-21 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727926', 'tblTempUsageDetail_20' ) start [2025-03-21 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727926', 'tblTempUsageDetail_20' ) end [2025-03-21 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:06:21] Production.INFO: ==21412== Releasing lock... [2025-03-21 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-21 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:07:05 [end_date_ymd] => 2025-03-21 05:07:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:07:05' and `end` < '2025-03-21 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-21 05:07:17] Production.INFO: count ==333 [2025-03-21 05:07:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:07:05 - End Time 2025-03-21 05:07:05 [2025-03-21 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727931', 'tblTempUsageDetail_20' ) start [2025-03-21 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727931', 'tblTempUsageDetail_20' ) end [2025-03-21 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727931', 'tblTempVendorCDR_20' ) start [2025-03-21 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727931', 'tblTempVendorCDR_20' ) end [2025-03-21 05:07:17] Production.INFO: ProcessCDR(1,14727931,1,1,2) [2025-03-21 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727931', 'tblTempUsageDetail_20' ) start [2025-03-21 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727931', 'tblTempUsageDetail_20' ) end [2025-03-21 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:07:20] Production.INFO: ==21507== Releasing lock... [2025-03-21 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:07:20] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:08:05 [end_date_ymd] => 2025-03-21 05:08:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:08:05' and `end` < '2025-03-21 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-21 05:08:18] Production.INFO: count ==333 [2025-03-21 05:08:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:08:05 - End Time 2025-03-21 05:08:05 [2025-03-21 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727936', 'tblTempUsageDetail_20' ) start [2025-03-21 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727936', 'tblTempUsageDetail_20' ) end [2025-03-21 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727936', 'tblTempVendorCDR_20' ) start [2025-03-21 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727936', 'tblTempVendorCDR_20' ) end [2025-03-21 05:08:18] Production.INFO: ProcessCDR(1,14727936,1,1,2) [2025-03-21 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727936', 'tblTempUsageDetail_20' ) start [2025-03-21 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727936', 'tblTempUsageDetail_20' ) end [2025-03-21 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:08:21] Production.INFO: ==21598== Releasing lock... [2025-03-21 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:08:21] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:09:05 [end_date_ymd] => 2025-03-21 05:09:05 [RateCDR] => 1 ) [2025-03-21 05:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:09:05' and `end` < '2025-03-21 05:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:09:17] Production.INFO: count ==331 [2025-03-21 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:09:05 - End Time 2025-03-21 05:09:05 [2025-03-21 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727941', 'tblTempUsageDetail_20' ) start [2025-03-21 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727941', 'tblTempUsageDetail_20' ) end [2025-03-21 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727941', 'tblTempVendorCDR_20' ) start [2025-03-21 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727941', 'tblTempVendorCDR_20' ) end [2025-03-21 05:09:17] Production.INFO: ProcessCDR(1,14727941,1,1,2) [2025-03-21 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727941', 'tblTempUsageDetail_20' ) start [2025-03-21 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727941', 'tblTempUsageDetail_20' ) end [2025-03-21 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:09:20] Production.INFO: ==21701== Releasing lock... [2025-03-21 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:09:20] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:10:07 [end_date_ymd] => 2025-03-21 05:10:07 [RateCDR] => 1 ) [2025-03-21 05: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-21 02:10:07' and `end` < '2025-03-21 05: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-21 05:10:19] Production.INFO: count ==323 [2025-03-21 05:10:19] Production.ERROR: pbx CDR StartTime 2025-03-21 02:10:07 - End Time 2025-03-21 05:10:07 [2025-03-21 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727947', 'tblTempUsageDetail_20' ) start [2025-03-21 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727947', 'tblTempUsageDetail_20' ) end [2025-03-21 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727947', 'tblTempVendorCDR_20' ) start [2025-03-21 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727947', 'tblTempVendorCDR_20' ) end [2025-03-21 05:10:19] Production.INFO: ProcessCDR(1,14727947,1,1,2) [2025-03-21 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727947', 'tblTempUsageDetail_20' ) start [2025-03-21 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727947', 'tblTempUsageDetail_20' ) end [2025-03-21 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:10:22] Production.INFO: ==21795== Releasing lock... [2025-03-21 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:10:22] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:11:05 [end_date_ymd] => 2025-03-21 05:11:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:11:05' and `end` < '2025-03-21 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-21 05:11:17] Production.INFO: count ==323 [2025-03-21 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:11:05 - End Time 2025-03-21 05:11:05 [2025-03-21 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727952', 'tblTempUsageDetail_20' ) start [2025-03-21 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727952', 'tblTempUsageDetail_20' ) end [2025-03-21 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727952', 'tblTempVendorCDR_20' ) start [2025-03-21 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727952', 'tblTempVendorCDR_20' ) end [2025-03-21 05:11:17] Production.INFO: ProcessCDR(1,14727952,1,1,2) [2025-03-21 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727952', 'tblTempUsageDetail_20' ) start [2025-03-21 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727952', 'tblTempUsageDetail_20' ) end [2025-03-21 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:11:20] Production.INFO: ==21888== Releasing lock... [2025-03-21 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:11:20] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:12:06 [end_date_ymd] => 2025-03-21 05:12:06 [RateCDR] => 1 ) [2025-03-21 05:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:12:06' and `end` < '2025-03-21 05:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:12:18] Production.INFO: count ==321 [2025-03-21 05:12:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:12:06 - End Time 2025-03-21 05:12:06 [2025-03-21 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727957', 'tblTempUsageDetail_20' ) start [2025-03-21 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727957', 'tblTempUsageDetail_20' ) end [2025-03-21 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727957', 'tblTempVendorCDR_20' ) start [2025-03-21 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727957', 'tblTempVendorCDR_20' ) end [2025-03-21 05:12:18] Production.INFO: ProcessCDR(1,14727957,1,1,2) [2025-03-21 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727957', 'tblTempUsageDetail_20' ) start [2025-03-21 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727957', 'tblTempUsageDetail_20' ) end [2025-03-21 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:12:21] Production.INFO: ==21972== Releasing lock... [2025-03-21 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:13:05 [end_date_ymd] => 2025-03-21 05:13:05 [RateCDR] => 1 ) [2025-03-21 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:13:05' and `end` < '2025-03-21 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:13:17] Production.INFO: count ==319 [2025-03-21 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:13:05 - End Time 2025-03-21 05:13:05 [2025-03-21 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727962', 'tblTempUsageDetail_20' ) start [2025-03-21 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727962', 'tblTempUsageDetail_20' ) end [2025-03-21 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727962', 'tblTempVendorCDR_20' ) start [2025-03-21 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727962', 'tblTempVendorCDR_20' ) end [2025-03-21 05:13:17] Production.INFO: ProcessCDR(1,14727962,1,1,2) [2025-03-21 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727962', 'tblTempUsageDetail_20' ) start [2025-03-21 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727962', 'tblTempUsageDetail_20' ) end [2025-03-21 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:13:20] Production.INFO: ==22063== Releasing lock... [2025-03-21 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:13:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:14:05 [end_date_ymd] => 2025-03-21 05:14:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:14:05' and `end` < '2025-03-21 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-21 05:14:17] Production.INFO: count ==315 [2025-03-21 05:14:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:14:05 - End Time 2025-03-21 05:14:05 [2025-03-21 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727967', 'tblTempUsageDetail_20' ) start [2025-03-21 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727967', 'tblTempUsageDetail_20' ) end [2025-03-21 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727967', 'tblTempVendorCDR_20' ) start [2025-03-21 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727967', 'tblTempVendorCDR_20' ) end [2025-03-21 05:14:17] Production.INFO: ProcessCDR(1,14727967,1,1,2) [2025-03-21 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727967', 'tblTempUsageDetail_20' ) start [2025-03-21 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727967', 'tblTempUsageDetail_20' ) end [2025-03-21 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:14:21] Production.INFO: ==22153== Releasing lock... [2025-03-21 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:15:05 [end_date_ymd] => 2025-03-21 05:15:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:15:05' and `end` < '2025-03-21 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-21 05:15:17] Production.INFO: count ==304 [2025-03-21 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:15:05 - End Time 2025-03-21 05:15:05 [2025-03-21 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727972', 'tblTempUsageDetail_20' ) start [2025-03-21 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727972', 'tblTempUsageDetail_20' ) end [2025-03-21 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727972', 'tblTempVendorCDR_20' ) start [2025-03-21 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727972', 'tblTempVendorCDR_20' ) end [2025-03-21 05:15:17] Production.INFO: ProcessCDR(1,14727972,1,1,2) [2025-03-21 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727972', 'tblTempUsageDetail_20' ) start [2025-03-21 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727972', 'tblTempUsageDetail_20' ) end [2025-03-21 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:15:20] Production.INFO: ==22244== Releasing lock... [2025-03-21 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:15:20] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:16:05 [end_date_ymd] => 2025-03-21 05:16:05 [RateCDR] => 1 ) [2025-03-21 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:16:05' and `end` < '2025-03-21 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:16:17] Production.INFO: count ==296 [2025-03-21 05:16:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:16:05 - End Time 2025-03-21 05:16:05 [2025-03-21 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727977', 'tblTempUsageDetail_20' ) start [2025-03-21 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727977', 'tblTempUsageDetail_20' ) end [2025-03-21 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727977', 'tblTempVendorCDR_20' ) start [2025-03-21 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727977', 'tblTempVendorCDR_20' ) end [2025-03-21 05:16:17] Production.INFO: ProcessCDR(1,14727977,1,1,2) [2025-03-21 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727977', 'tblTempUsageDetail_20' ) start [2025-03-21 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727977', 'tblTempUsageDetail_20' ) end [2025-03-21 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:16:20] Production.INFO: ==22330== Releasing lock... [2025-03-21 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:16:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-21 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:17:05 [end_date_ymd] => 2025-03-21 05:17:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:17:05' and `end` < '2025-03-21 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-21 05:17:18] Production.INFO: count ==301 [2025-03-21 05:17:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:17:05 - End Time 2025-03-21 05:17:05 [2025-03-21 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727982', 'tblTempUsageDetail_20' ) start [2025-03-21 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727982', 'tblTempUsageDetail_20' ) end [2025-03-21 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727982', 'tblTempVendorCDR_20' ) start [2025-03-21 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727982', 'tblTempVendorCDR_20' ) end [2025-03-21 05:17:18] Production.INFO: ProcessCDR(1,14727982,1,1,2) [2025-03-21 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727982', 'tblTempUsageDetail_20' ) start [2025-03-21 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727982', 'tblTempUsageDetail_20' ) end [2025-03-21 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:17:21] Production.INFO: ==22409== Releasing lock... [2025-03-21 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-21 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:18:05 [end_date_ymd] => 2025-03-21 05:18:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:18:05' and `end` < '2025-03-21 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-21 05:18:17] Production.INFO: count ==300 [2025-03-21 05:18:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:18:05 - End Time 2025-03-21 05:18:05 [2025-03-21 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727987', 'tblTempUsageDetail_20' ) start [2025-03-21 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727987', 'tblTempUsageDetail_20' ) end [2025-03-21 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727987', 'tblTempVendorCDR_20' ) start [2025-03-21 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727987', 'tblTempVendorCDR_20' ) end [2025-03-21 05:18:17] Production.INFO: ProcessCDR(1,14727987,1,1,2) [2025-03-21 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727987', 'tblTempUsageDetail_20' ) start [2025-03-21 05:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727987', 'tblTempUsageDetail_20' ) end [2025-03-21 05:18:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:18:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:18:20] Production.INFO: ==22513== Releasing lock... [2025-03-21 05:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:18:20] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:19:05 [end_date_ymd] => 2025-03-21 05:19:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:19:05' and `end` < '2025-03-21 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-21 05:19:17] Production.INFO: count ==299 [2025-03-21 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:19:05 - End Time 2025-03-21 05:19:05 [2025-03-21 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727992', 'tblTempUsageDetail_20' ) start [2025-03-21 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727992', 'tblTempUsageDetail_20' ) end [2025-03-21 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727992', 'tblTempVendorCDR_20' ) start [2025-03-21 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727992', 'tblTempVendorCDR_20' ) end [2025-03-21 05:19:17] Production.INFO: ProcessCDR(1,14727992,1,1,2) [2025-03-21 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727992', 'tblTempUsageDetail_20' ) start [2025-03-21 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727992', 'tblTempUsageDetail_20' ) end [2025-03-21 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:19:21] Production.INFO: ==22636== Releasing lock... [2025-03-21 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:20:06 [end_date_ymd] => 2025-03-21 05:20:06 [RateCDR] => 1 ) [2025-03-21 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-21 02:20:06' and `end` < '2025-03-21 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-21 05:20:18] Production.INFO: count ==299 [2025-03-21 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:20:06 - End Time 2025-03-21 05:20:06 [2025-03-21 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727998', 'tblTempUsageDetail_20' ) start [2025-03-21 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14727998', 'tblTempUsageDetail_20' ) end [2025-03-21 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727998', 'tblTempVendorCDR_20' ) start [2025-03-21 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14727998', 'tblTempVendorCDR_20' ) end [2025-03-21 05:20:18] Production.INFO: ProcessCDR(1,14727998,1,1,2) [2025-03-21 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14727998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14727998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14727998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14727998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727998', 'tblTempUsageDetail_20' ) start [2025-03-21 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14727998', 'tblTempUsageDetail_20' ) end [2025-03-21 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:20:22] Production.INFO: ==22730== Releasing lock... [2025-03-21 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:21:05 [end_date_ymd] => 2025-03-21 05:21:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:21:05' and `end` < '2025-03-21 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-21 05:21:17] Production.INFO: count ==299 [2025-03-21 05:21:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:21:05 - End Time 2025-03-21 05:21:05 [2025-03-21 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728003', 'tblTempUsageDetail_20' ) start [2025-03-21 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728003', 'tblTempUsageDetail_20' ) end [2025-03-21 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728003', 'tblTempVendorCDR_20' ) start [2025-03-21 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728003', 'tblTempVendorCDR_20' ) end [2025-03-21 05:21:17] Production.INFO: ProcessCDR(1,14728003,1,1,2) [2025-03-21 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728003', 'tblTempUsageDetail_20' ) start [2025-03-21 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728003', 'tblTempUsageDetail_20' ) end [2025-03-21 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:21:21] Production.INFO: ==22821== Releasing lock... [2025-03-21 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 05:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:22:04 [end_date_ymd] => 2025-03-21 05:22:04 [RateCDR] => 1 ) [2025-03-21 05:22: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-21 02:22:04' and `end` < '2025-03-21 05:22: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-21 05:22:16] Production.INFO: count ==304 [2025-03-21 05:22:16] Production.ERROR: pbx CDR StartTime 2025-03-21 02:22:04 - End Time 2025-03-21 05:22:04 [2025-03-21 05:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728008', 'tblTempUsageDetail_20' ) start [2025-03-21 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728008', 'tblTempUsageDetail_20' ) end [2025-03-21 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728008', 'tblTempVendorCDR_20' ) start [2025-03-21 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728008', 'tblTempVendorCDR_20' ) end [2025-03-21 05:22:17] Production.INFO: ProcessCDR(1,14728008,1,1,2) [2025-03-21 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728008', 'tblTempUsageDetail_20' ) start [2025-03-21 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728008', 'tblTempUsageDetail_20' ) end [2025-03-21 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:22:20] Production.INFO: ==22907== Releasing lock... [2025-03-21 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:22:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:23:05 [end_date_ymd] => 2025-03-21 05:23:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:23:05' and `end` < '2025-03-21 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-21 05:23:18] Production.INFO: count ==301 [2025-03-21 05:23:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:23:05 - End Time 2025-03-21 05:23:05 [2025-03-21 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728013', 'tblTempUsageDetail_20' ) start [2025-03-21 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728013', 'tblTempUsageDetail_20' ) end [2025-03-21 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728013', 'tblTempVendorCDR_20' ) start [2025-03-21 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728013', 'tblTempVendorCDR_20' ) end [2025-03-21 05:23:18] Production.INFO: ProcessCDR(1,14728013,1,1,2) [2025-03-21 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728013', 'tblTempUsageDetail_20' ) start [2025-03-21 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728013', 'tblTempUsageDetail_20' ) end [2025-03-21 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:23:21] Production.INFO: ==22996== Releasing lock... [2025-03-21 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:23:21] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:24:05 [end_date_ymd] => 2025-03-21 05:24:05 [RateCDR] => 1 ) [2025-03-21 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:24:05' and `end` < '2025-03-21 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:24:17] Production.INFO: count ==306 [2025-03-21 05:24:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:24:05 - End Time 2025-03-21 05:24:05 [2025-03-21 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728018', 'tblTempUsageDetail_20' ) start [2025-03-21 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728018', 'tblTempUsageDetail_20' ) end [2025-03-21 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728018', 'tblTempVendorCDR_20' ) start [2025-03-21 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728018', 'tblTempVendorCDR_20' ) end [2025-03-21 05:24:17] Production.INFO: ProcessCDR(1,14728018,1,1,2) [2025-03-21 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728018', 'tblTempUsageDetail_20' ) start [2025-03-21 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728018', 'tblTempUsageDetail_20' ) end [2025-03-21 05:24:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:24:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:24:20] Production.INFO: ==23080== Releasing lock... [2025-03-21 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:24:20] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:25:05 [end_date_ymd] => 2025-03-21 05:25:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:25:05' and `end` < '2025-03-21 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-21 05:25:17] Production.INFO: count ==312 [2025-03-21 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:25:05 - End Time 2025-03-21 05:25:05 [2025-03-21 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728023', 'tblTempUsageDetail_20' ) start [2025-03-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728023', 'tblTempUsageDetail_20' ) end [2025-03-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728023', 'tblTempVendorCDR_20' ) start [2025-03-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728023', 'tblTempVendorCDR_20' ) end [2025-03-21 05:25:17] Production.INFO: ProcessCDR(1,14728023,1,1,2) [2025-03-21 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728023', 'tblTempUsageDetail_20' ) start [2025-03-21 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728023', 'tblTempUsageDetail_20' ) end [2025-03-21 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:25:22] Production.INFO: ==23166== Releasing lock... [2025-03-21 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:25:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 05:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:26:04 [end_date_ymd] => 2025-03-21 05:26:04 [RateCDR] => 1 ) [2025-03-21 05:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:26:04' and `end` < '2025-03-21 05:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:26:17] Production.INFO: count ==308 [2025-03-21 05:26:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:26:04 - End Time 2025-03-21 05:26:04 [2025-03-21 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728028', 'tblTempUsageDetail_20' ) start [2025-03-21 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728028', 'tblTempUsageDetail_20' ) end [2025-03-21 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728028', 'tblTempVendorCDR_20' ) start [2025-03-21 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728028', 'tblTempVendorCDR_20' ) end [2025-03-21 05:26:17] Production.INFO: ProcessCDR(1,14728028,1,1,2) [2025-03-21 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728028', 'tblTempUsageDetail_20' ) start [2025-03-21 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728028', 'tblTempUsageDetail_20' ) end [2025-03-21 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:26:20] Production.INFO: ==23257== Releasing lock... [2025-03-21 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:26:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-21 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:27:05 [end_date_ymd] => 2025-03-21 05:27:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:27:05' and `end` < '2025-03-21 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-21 05:27:17] Production.INFO: count ==305 [2025-03-21 05:27:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:27:05 - End Time 2025-03-21 05:27:05 [2025-03-21 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728033', 'tblTempUsageDetail_20' ) start [2025-03-21 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728033', 'tblTempUsageDetail_20' ) end [2025-03-21 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728033', 'tblTempVendorCDR_20' ) start [2025-03-21 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728033', 'tblTempVendorCDR_20' ) end [2025-03-21 05:27:17] Production.INFO: ProcessCDR(1,14728033,1,1,2) [2025-03-21 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728033', 'tblTempUsageDetail_20' ) start [2025-03-21 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728033', 'tblTempUsageDetail_20' ) end [2025-03-21 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:27:20] Production.INFO: ==23351== Releasing lock... [2025-03-21 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:27:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:28:05 [end_date_ymd] => 2025-03-21 05:28:05 [RateCDR] => 1 ) [2025-03-21 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:28:05' and `end` < '2025-03-21 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:28:17] Production.INFO: count ==305 [2025-03-21 05:28:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:28:05 - End Time 2025-03-21 05:28:05 [2025-03-21 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728038', 'tblTempUsageDetail_20' ) start [2025-03-21 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728038', 'tblTempUsageDetail_20' ) end [2025-03-21 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728038', 'tblTempVendorCDR_20' ) start [2025-03-21 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728038', 'tblTempVendorCDR_20' ) end [2025-03-21 05:28:18] Production.INFO: ProcessCDR(1,14728038,1,1,2) [2025-03-21 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728038', 'tblTempUsageDetail_20' ) start [2025-03-21 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728038', 'tblTempUsageDetail_20' ) end [2025-03-21 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:28:21] Production.INFO: ==23439== Releasing lock... [2025-03-21 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:29:05 [end_date_ymd] => 2025-03-21 05:29:05 [RateCDR] => 1 ) [2025-03-21 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:29:05' and `end` < '2025-03-21 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:29:17] Production.INFO: count ==305 [2025-03-21 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:29:05 - End Time 2025-03-21 05:29:05 [2025-03-21 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728043', 'tblTempUsageDetail_20' ) start [2025-03-21 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728043', 'tblTempUsageDetail_20' ) end [2025-03-21 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728043', 'tblTempVendorCDR_20' ) start [2025-03-21 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728043', 'tblTempVendorCDR_20' ) end [2025-03-21 05:29:17] Production.INFO: ProcessCDR(1,14728043,1,1,2) [2025-03-21 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728043', 'tblTempUsageDetail_20' ) start [2025-03-21 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728043', 'tblTempUsageDetail_20' ) end [2025-03-21 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:29:20] Production.INFO: ==23521== Releasing lock... [2025-03-21 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:29:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:30:06 [end_date_ymd] => 2025-03-21 05:30:06 [RateCDR] => 1 ) [2025-03-21 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-21 02:30:06' and `end` < '2025-03-21 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-21 05:30:18] Production.INFO: count ==303 [2025-03-21 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:30:06 - End Time 2025-03-21 05:30:06 [2025-03-21 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728048', 'tblTempUsageDetail_20' ) start [2025-03-21 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728048', 'tblTempUsageDetail_20' ) end [2025-03-21 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728048', 'tblTempVendorCDR_20' ) start [2025-03-21 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728048', 'tblTempVendorCDR_20' ) end [2025-03-21 05:30:18] Production.INFO: ProcessCDR(1,14728048,1,1,2) [2025-03-21 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728048', 'tblTempUsageDetail_20' ) start [2025-03-21 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728048', 'tblTempUsageDetail_20' ) end [2025-03-21 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:30:21] Production.INFO: ==23604== Releasing lock... [2025-03-21 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:30:21] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:31:05 [end_date_ymd] => 2025-03-21 05:31:05 [RateCDR] => 1 ) [2025-03-21 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:31:05' and `end` < '2025-03-21 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:31:17] Production.INFO: count ==303 [2025-03-21 05:31:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:31:05 - End Time 2025-03-21 05:31:05 [2025-03-21 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728054', 'tblTempUsageDetail_20' ) start [2025-03-21 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728054', 'tblTempUsageDetail_20' ) end [2025-03-21 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728054', 'tblTempVendorCDR_20' ) start [2025-03-21 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728054', 'tblTempVendorCDR_20' ) end [2025-03-21 05:31:18] Production.INFO: ProcessCDR(1,14728054,1,1,2) [2025-03-21 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728054', 'tblTempUsageDetail_20' ) start [2025-03-21 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728054', 'tblTempUsageDetail_20' ) end [2025-03-21 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:31:21] Production.INFO: ==23694== Releasing lock... [2025-03-21 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:31:21] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:32:05 [end_date_ymd] => 2025-03-21 05:32:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:32:05' and `end` < '2025-03-21 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-21 05:32:17] Production.INFO: count ==303 [2025-03-21 05:32:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:32:05 - End Time 2025-03-21 05:32:05 [2025-03-21 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728059', 'tblTempUsageDetail_20' ) start [2025-03-21 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728059', 'tblTempUsageDetail_20' ) end [2025-03-21 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728059', 'tblTempVendorCDR_20' ) start [2025-03-21 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728059', 'tblTempVendorCDR_20' ) end [2025-03-21 05:32:18] Production.INFO: ProcessCDR(1,14728059,1,1,2) [2025-03-21 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728059', 'tblTempUsageDetail_20' ) start [2025-03-21 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728059', 'tblTempUsageDetail_20' ) end [2025-03-21 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:32:21] Production.INFO: ==23775== Releasing lock... [2025-03-21 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:32:21] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:33:05 [end_date_ymd] => 2025-03-21 05:33:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:33:05' and `end` < '2025-03-21 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-21 05:33:17] Production.INFO: count ==303 [2025-03-21 05:33:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:33:05 - End Time 2025-03-21 05:33:05 [2025-03-21 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728064', 'tblTempUsageDetail_20' ) start [2025-03-21 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728064', 'tblTempUsageDetail_20' ) end [2025-03-21 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728064', 'tblTempVendorCDR_20' ) start [2025-03-21 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728064', 'tblTempVendorCDR_20' ) end [2025-03-21 05:33:17] Production.INFO: ProcessCDR(1,14728064,1,1,2) [2025-03-21 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728064', 'tblTempUsageDetail_20' ) start [2025-03-21 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728064', 'tblTempUsageDetail_20' ) end [2025-03-21 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:33:21] Production.INFO: ==23859== Releasing lock... [2025-03-21 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:33:21] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:34:05 [end_date_ymd] => 2025-03-21 05:34:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:34:05' and `end` < '2025-03-21 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-21 05:34:17] Production.INFO: count ==303 [2025-03-21 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:34:05 - End Time 2025-03-21 05:34:05 [2025-03-21 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728069', 'tblTempUsageDetail_20' ) start [2025-03-21 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728069', 'tblTempUsageDetail_20' ) end [2025-03-21 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728069', 'tblTempVendorCDR_20' ) start [2025-03-21 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728069', 'tblTempVendorCDR_20' ) end [2025-03-21 05:34:17] Production.INFO: ProcessCDR(1,14728069,1,1,2) [2025-03-21 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728069', 'tblTempUsageDetail_20' ) start [2025-03-21 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728069', 'tblTempUsageDetail_20' ) end [2025-03-21 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:34:20] Production.INFO: ==23991== Releasing lock... [2025-03-21 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:34:20] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:35:05 [end_date_ymd] => 2025-03-21 05:35:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:35:05' and `end` < '2025-03-21 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-21 05:35:17] Production.INFO: count ==303 [2025-03-21 05:35:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:35:05 - End Time 2025-03-21 05:35:05 [2025-03-21 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728074', 'tblTempUsageDetail_20' ) start [2025-03-21 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728074', 'tblTempUsageDetail_20' ) end [2025-03-21 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728074', 'tblTempVendorCDR_20' ) start [2025-03-21 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728074', 'tblTempVendorCDR_20' ) end [2025-03-21 05:35:17] Production.INFO: ProcessCDR(1,14728074,1,1,2) [2025-03-21 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728074', 'tblTempUsageDetail_20' ) start [2025-03-21 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728074', 'tblTempUsageDetail_20' ) end [2025-03-21 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:35:20] Production.INFO: ==24083== Releasing lock... [2025-03-21 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:35:20] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:36:05 [end_date_ymd] => 2025-03-21 05:36:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:36:05' and `end` < '2025-03-21 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-21 05:36:17] Production.INFO: count ==303 [2025-03-21 05:36:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:36:05 - End Time 2025-03-21 05:36:05 [2025-03-21 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728079', 'tblTempUsageDetail_20' ) start [2025-03-21 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728079', 'tblTempUsageDetail_20' ) end [2025-03-21 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728079', 'tblTempVendorCDR_20' ) start [2025-03-21 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728079', 'tblTempVendorCDR_20' ) end [2025-03-21 05:36:17] Production.INFO: ProcessCDR(1,14728079,1,1,2) [2025-03-21 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728079', 'tblTempUsageDetail_20' ) start [2025-03-21 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728079', 'tblTempUsageDetail_20' ) end [2025-03-21 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:36:21] Production.INFO: ==24166== Releasing lock... [2025-03-21 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:36:21] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:37:06 [end_date_ymd] => 2025-03-21 05:37:06 [RateCDR] => 1 ) [2025-03-21 05: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-21 02:37:06' and `end` < '2025-03-21 05: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-21 05:37:18] Production.INFO: count ==303 [2025-03-21 05:37:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:37:06 - End Time 2025-03-21 05:37:06 [2025-03-21 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728084', 'tblTempUsageDetail_20' ) start [2025-03-21 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728084', 'tblTempUsageDetail_20' ) end [2025-03-21 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728084', 'tblTempVendorCDR_20' ) start [2025-03-21 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728084', 'tblTempVendorCDR_20' ) end [2025-03-21 05:37:18] Production.INFO: ProcessCDR(1,14728084,1,1,2) [2025-03-21 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728084', 'tblTempUsageDetail_20' ) start [2025-03-21 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728084', 'tblTempUsageDetail_20' ) end [2025-03-21 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:37:21] Production.INFO: ==24256== Releasing lock... [2025-03-21 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:37:21] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:38:05 [end_date_ymd] => 2025-03-21 05:38:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:38:05' and `end` < '2025-03-21 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-21 05:38:17] Production.INFO: count ==303 [2025-03-21 05:38:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:38:05 - End Time 2025-03-21 05:38:05 [2025-03-21 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728089', 'tblTempUsageDetail_20' ) start [2025-03-21 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728089', 'tblTempUsageDetail_20' ) end [2025-03-21 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728089', 'tblTempVendorCDR_20' ) start [2025-03-21 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728089', 'tblTempVendorCDR_20' ) end [2025-03-21 05:38:17] Production.INFO: ProcessCDR(1,14728089,1,1,2) [2025-03-21 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728089', 'tblTempUsageDetail_20' ) start [2025-03-21 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728089', 'tblTempUsageDetail_20' ) end [2025-03-21 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:38:20] Production.INFO: ==24337== Releasing lock... [2025-03-21 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:38:20] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:39:06 [end_date_ymd] => 2025-03-21 05:39:06 [RateCDR] => 1 ) [2025-03-21 05: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-21 02:39:06' and `end` < '2025-03-21 05: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-21 05:39:18] Production.INFO: count ==303 [2025-03-21 05:39:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:39:06 - End Time 2025-03-21 05:39:06 [2025-03-21 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728094', 'tblTempUsageDetail_20' ) start [2025-03-21 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728094', 'tblTempUsageDetail_20' ) end [2025-03-21 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728094', 'tblTempVendorCDR_20' ) start [2025-03-21 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728094', 'tblTempVendorCDR_20' ) end [2025-03-21 05:39:18] Production.INFO: ProcessCDR(1,14728094,1,1,2) [2025-03-21 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728094', 'tblTempUsageDetail_20' ) start [2025-03-21 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728094', 'tblTempUsageDetail_20' ) end [2025-03-21 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:39:21] Production.INFO: ==24421== Releasing lock... [2025-03-21 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:39:21] Production.INFO: 31 MB #Memory Used# [2025-03-21 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:40:05 [end_date_ymd] => 2025-03-21 05:40:05 [RateCDR] => 1 ) [2025-03-21 05:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:40:05' and `end` < '2025-03-21 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:40:18] Production.INFO: count ==295 [2025-03-21 05:40:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:40:05 - End Time 2025-03-21 05:40:05 [2025-03-21 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728100', 'tblTempUsageDetail_20' ) start [2025-03-21 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728100', 'tblTempUsageDetail_20' ) end [2025-03-21 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728100', 'tblTempVendorCDR_20' ) start [2025-03-21 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728100', 'tblTempVendorCDR_20' ) end [2025-03-21 05:40:18] Production.INFO: ProcessCDR(1,14728100,1,1,2) [2025-03-21 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728100', 'tblTempUsageDetail_20' ) start [2025-03-21 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728100', 'tblTempUsageDetail_20' ) end [2025-03-21 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:40:21] Production.INFO: ==24507== Releasing lock... [2025-03-21 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:40:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:41:05 [end_date_ymd] => 2025-03-21 05:41:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:41:05' and `end` < '2025-03-21 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-21 05:41:17] Production.INFO: count ==293 [2025-03-21 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:41:05 - End Time 2025-03-21 05:41:05 [2025-03-21 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728105', 'tblTempUsageDetail_20' ) start [2025-03-21 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728105', 'tblTempUsageDetail_20' ) end [2025-03-21 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728105', 'tblTempVendorCDR_20' ) start [2025-03-21 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728105', 'tblTempVendorCDR_20' ) end [2025-03-21 05:41:18] Production.INFO: ProcessCDR(1,14728105,1,1,2) [2025-03-21 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728105', 'tblTempUsageDetail_20' ) start [2025-03-21 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728105', 'tblTempUsageDetail_20' ) end [2025-03-21 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:41:21] Production.INFO: ==24612== Releasing lock... [2025-03-21 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:41:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:42:06 [end_date_ymd] => 2025-03-21 05:42:06 [RateCDR] => 1 ) [2025-03-21 05: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-21 02:42:06' and `end` < '2025-03-21 05: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-21 05:42:18] Production.INFO: count ==293 [2025-03-21 05:42:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:42:06 - End Time 2025-03-21 05:42:06 [2025-03-21 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728110', 'tblTempUsageDetail_20' ) start [2025-03-21 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728110', 'tblTempUsageDetail_20' ) end [2025-03-21 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728110', 'tblTempVendorCDR_20' ) start [2025-03-21 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728110', 'tblTempVendorCDR_20' ) end [2025-03-21 05:42:18] Production.INFO: ProcessCDR(1,14728110,1,1,2) [2025-03-21 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728110', 'tblTempUsageDetail_20' ) start [2025-03-21 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728110', 'tblTempUsageDetail_20' ) end [2025-03-21 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:42:21] Production.INFO: ==24717== Releasing lock... [2025-03-21 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:42:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:43:05 [end_date_ymd] => 2025-03-21 05:43:05 [RateCDR] => 1 ) [2025-03-21 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:43:05' and `end` < '2025-03-21 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:43:17] Production.INFO: count ==293 [2025-03-21 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:43:05 - End Time 2025-03-21 05:43:05 [2025-03-21 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728115', 'tblTempUsageDetail_20' ) start [2025-03-21 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728115', 'tblTempUsageDetail_20' ) end [2025-03-21 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728115', 'tblTempVendorCDR_20' ) start [2025-03-21 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728115', 'tblTempVendorCDR_20' ) end [2025-03-21 05:43:17] Production.INFO: ProcessCDR(1,14728115,1,1,2) [2025-03-21 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728115', 'tblTempUsageDetail_20' ) start [2025-03-21 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728115', 'tblTempUsageDetail_20' ) end [2025-03-21 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:43:21] Production.INFO: ==24821== Releasing lock... [2025-03-21 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:43:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:44:05 [end_date_ymd] => 2025-03-21 05:44:05 [RateCDR] => 1 ) [2025-03-21 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:44:05' and `end` < '2025-03-21 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-21 05:44:17] Production.INFO: count ==293 [2025-03-21 05:44:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:44:05 - End Time 2025-03-21 05:44:05 [2025-03-21 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728120', 'tblTempUsageDetail_20' ) start [2025-03-21 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728120', 'tblTempUsageDetail_20' ) end [2025-03-21 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728120', 'tblTempVendorCDR_20' ) start [2025-03-21 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728120', 'tblTempVendorCDR_20' ) end [2025-03-21 05:44:17] Production.INFO: ProcessCDR(1,14728120,1,1,2) [2025-03-21 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728120', 'tblTempUsageDetail_20' ) start [2025-03-21 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728120', 'tblTempUsageDetail_20' ) end [2025-03-21 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:44:21] Production.INFO: ==24928== Releasing lock... [2025-03-21 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:44:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:45:05 [end_date_ymd] => 2025-03-21 05:45:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:45:05' and `end` < '2025-03-21 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-21 05:45:17] Production.INFO: count ==287 [2025-03-21 05:45:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:45:05 - End Time 2025-03-21 05:45:05 [2025-03-21 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728125', 'tblTempUsageDetail_20' ) start [2025-03-21 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728125', 'tblTempUsageDetail_20' ) end [2025-03-21 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728125', 'tblTempVendorCDR_20' ) start [2025-03-21 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728125', 'tblTempVendorCDR_20' ) end [2025-03-21 05:45:17] Production.INFO: ProcessCDR(1,14728125,1,1,2) [2025-03-21 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728125', 'tblTempUsageDetail_20' ) start [2025-03-21 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728125', 'tblTempUsageDetail_20' ) end [2025-03-21 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:45:21] Production.INFO: ==25031== Releasing lock... [2025-03-21 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-21 05:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:46:06 [end_date_ymd] => 2025-03-21 05:46:06 [RateCDR] => 1 ) [2025-03-21 05:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:46:06' and `end` < '2025-03-21 05:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:46:18] Production.INFO: count ==285 [2025-03-21 05:46:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:46:06 - End Time 2025-03-21 05:46:06 [2025-03-21 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728130', 'tblTempUsageDetail_20' ) start [2025-03-21 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728130', 'tblTempUsageDetail_20' ) end [2025-03-21 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728130', 'tblTempVendorCDR_20' ) start [2025-03-21 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728130', 'tblTempVendorCDR_20' ) end [2025-03-21 05:46:18] Production.INFO: ProcessCDR(1,14728130,1,1,2) [2025-03-21 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728130', 'tblTempUsageDetail_20' ) start [2025-03-21 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728130', 'tblTempUsageDetail_20' ) end [2025-03-21 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:46:22] Production.INFO: ==25137== Releasing lock... [2025-03-21 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:46:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-21 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:47:05 [end_date_ymd] => 2025-03-21 05:47:05 [RateCDR] => 1 ) [2025-03-21 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:47:05' and `end` < '2025-03-21 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:47:17] Production.INFO: count ==285 [2025-03-21 05:47:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:47:05 - End Time 2025-03-21 05:47:05 [2025-03-21 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728135', 'tblTempUsageDetail_20' ) start [2025-03-21 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728135', 'tblTempUsageDetail_20' ) end [2025-03-21 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728135', 'tblTempVendorCDR_20' ) start [2025-03-21 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728135', 'tblTempVendorCDR_20' ) end [2025-03-21 05:47:17] Production.INFO: ProcessCDR(1,14728135,1,1,2) [2025-03-21 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728135', 'tblTempUsageDetail_20' ) start [2025-03-21 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728135', 'tblTempUsageDetail_20' ) end [2025-03-21 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:47:20] Production.INFO: ==25240== Releasing lock... [2025-03-21 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:47:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-21 05:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:48:06 [end_date_ymd] => 2025-03-21 05:48:06 [RateCDR] => 1 ) [2025-03-21 05:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:48:06' and `end` < '2025-03-21 05:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:48:18] Production.INFO: count ==276 [2025-03-21 05:48:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:48:06 - End Time 2025-03-21 05:48:06 [2025-03-21 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728140', 'tblTempUsageDetail_20' ) start [2025-03-21 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728140', 'tblTempUsageDetail_20' ) end [2025-03-21 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728140', 'tblTempVendorCDR_20' ) start [2025-03-21 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728140', 'tblTempVendorCDR_20' ) end [2025-03-21 05:48:18] Production.INFO: ProcessCDR(1,14728140,1,1,2) [2025-03-21 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728140', 'tblTempUsageDetail_20' ) start [2025-03-21 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728140', 'tblTempUsageDetail_20' ) end [2025-03-21 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:48:21] Production.INFO: ==25353== Releasing lock... [2025-03-21 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:48:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-21 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:49:05 [end_date_ymd] => 2025-03-21 05:49:05 [RateCDR] => 1 ) [2025-03-21 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:49:05' and `end` < '2025-03-21 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:49:18] Production.INFO: count ==269 [2025-03-21 05:49:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:49:05 - End Time 2025-03-21 05:49:05 [2025-03-21 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728145', 'tblTempUsageDetail_20' ) start [2025-03-21 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728145', 'tblTempUsageDetail_20' ) end [2025-03-21 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728145', 'tblTempVendorCDR_20' ) start [2025-03-21 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728145', 'tblTempVendorCDR_20' ) end [2025-03-21 05:49:18] Production.INFO: ProcessCDR(1,14728145,1,1,2) [2025-03-21 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728145', 'tblTempUsageDetail_20' ) start [2025-03-21 05:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728145', 'tblTempUsageDetail_20' ) end [2025-03-21 05:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:49:23] Production.INFO: ==25458== Releasing lock... [2025-03-21 05:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:49:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:50:06 [end_date_ymd] => 2025-03-21 05:50:06 [RateCDR] => 1 ) [2025-03-21 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:50:06' and `end` < '2025-03-21 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:50:18] Production.INFO: count ==254 [2025-03-21 05:50:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:50:06 - End Time 2025-03-21 05:50:06 [2025-03-21 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728151', 'tblTempUsageDetail_20' ) start [2025-03-21 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728151', 'tblTempUsageDetail_20' ) end [2025-03-21 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728151', 'tblTempVendorCDR_20' ) start [2025-03-21 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728151', 'tblTempVendorCDR_20' ) end [2025-03-21 05:50:18] Production.INFO: ProcessCDR(1,14728151,1,1,2) [2025-03-21 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728151', 'tblTempUsageDetail_20' ) start [2025-03-21 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728151', 'tblTempUsageDetail_20' ) end [2025-03-21 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:50:21] Production.INFO: ==25604== Releasing lock... [2025-03-21 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:50:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:51:05 [end_date_ymd] => 2025-03-21 05:51:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:51:05' and `end` < '2025-03-21 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-21 05:51:17] Production.INFO: count ==226 [2025-03-21 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:51:05 - End Time 2025-03-21 05:51:05 [2025-03-21 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728156', 'tblTempUsageDetail_20' ) start [2025-03-21 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728156', 'tblTempUsageDetail_20' ) end [2025-03-21 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728156', 'tblTempVendorCDR_20' ) start [2025-03-21 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728156', 'tblTempVendorCDR_20' ) end [2025-03-21 05:51:17] Production.INFO: ProcessCDR(1,14728156,1,1,2) [2025-03-21 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728156', 'tblTempUsageDetail_20' ) start [2025-03-21 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728156', 'tblTempUsageDetail_20' ) end [2025-03-21 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:51:20] Production.INFO: ==25709== Releasing lock... [2025-03-21 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:51:20] Production.INFO: 30 MB #Memory Used# [2025-03-21 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:52:05 [end_date_ymd] => 2025-03-21 05:52:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:52:05' and `end` < '2025-03-21 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-21 05:52:18] Production.INFO: count ==216 [2025-03-21 05:52:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:52:05 - End Time 2025-03-21 05:52:05 [2025-03-21 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728161', 'tblTempUsageDetail_20' ) start [2025-03-21 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728161', 'tblTempUsageDetail_20' ) end [2025-03-21 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728161', 'tblTempVendorCDR_20' ) start [2025-03-21 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728161', 'tblTempVendorCDR_20' ) end [2025-03-21 05:52:18] Production.INFO: ProcessCDR(1,14728161,1,1,2) [2025-03-21 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728161', 'tblTempUsageDetail_20' ) start [2025-03-21 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728161', 'tblTempUsageDetail_20' ) end [2025-03-21 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:52:21] Production.INFO: ==25820== Releasing lock... [2025-03-21 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:52:21] Production.INFO: 30 MB #Memory Used# [2025-03-21 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:53:05 [end_date_ymd] => 2025-03-21 05:53:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:53:05' and `end` < '2025-03-21 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-21 05:53:17] Production.INFO: count ==211 [2025-03-21 05:53:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:53:05 - End Time 2025-03-21 05:53:05 [2025-03-21 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728166', 'tblTempUsageDetail_20' ) start [2025-03-21 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728166', 'tblTempUsageDetail_20' ) end [2025-03-21 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728166', 'tblTempVendorCDR_20' ) start [2025-03-21 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728166', 'tblTempVendorCDR_20' ) end [2025-03-21 05:53:17] Production.INFO: ProcessCDR(1,14728166,1,1,2) [2025-03-21 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728166', 'tblTempUsageDetail_20' ) start [2025-03-21 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728166', 'tblTempUsageDetail_20' ) end [2025-03-21 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:53:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:53:20] Production.INFO: ==25925== Releasing lock... [2025-03-21 05:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:53:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-21 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:54:05 [end_date_ymd] => 2025-03-21 05:54:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:54:05' and `end` < '2025-03-21 05:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:54:17] Production.INFO: count ==202 [2025-03-21 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:54:05 - End Time 2025-03-21 05:54:05 [2025-03-21 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728171', 'tblTempUsageDetail_20' ) start [2025-03-21 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728171', 'tblTempUsageDetail_20' ) end [2025-03-21 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728171', 'tblTempVendorCDR_20' ) start [2025-03-21 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728171', 'tblTempVendorCDR_20' ) end [2025-03-21 05:54:17] Production.INFO: ProcessCDR(1,14728171,1,1,2) [2025-03-21 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728171', 'tblTempUsageDetail_20' ) start [2025-03-21 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728171', 'tblTempUsageDetail_20' ) end [2025-03-21 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:54:20] Production.INFO: ==26029== Releasing lock... [2025-03-21 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:54:20] Production.INFO: 30 MB #Memory Used# [2025-03-21 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:55:05 [end_date_ymd] => 2025-03-21 05:55:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:55:05' and `end` < '2025-03-21 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-21 05:55:17] Production.INFO: count ==192 [2025-03-21 05:55:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:55:05 - End Time 2025-03-21 05:55:05 [2025-03-21 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728176', 'tblTempUsageDetail_20' ) start [2025-03-21 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728176', 'tblTempUsageDetail_20' ) end [2025-03-21 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728176', 'tblTempVendorCDR_20' ) start [2025-03-21 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728176', 'tblTempVendorCDR_20' ) end [2025-03-21 05:55:18] Production.INFO: ProcessCDR(1,14728176,1,1,2) [2025-03-21 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728176', 'tblTempUsageDetail_20' ) start [2025-03-21 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728176', 'tblTempUsageDetail_20' ) end [2025-03-21 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:55:21] Production.INFO: ==26129== Releasing lock... [2025-03-21 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:56:05 [end_date_ymd] => 2025-03-21 05:56:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:56:05' and `end` < '2025-03-21 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-21 05:56:17] Production.INFO: count ==175 [2025-03-21 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:56:05 - End Time 2025-03-21 05:56:05 [2025-03-21 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728181', 'tblTempUsageDetail_20' ) start [2025-03-21 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728181', 'tblTempUsageDetail_20' ) end [2025-03-21 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728181', 'tblTempVendorCDR_20' ) start [2025-03-21 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728181', 'tblTempVendorCDR_20' ) end [2025-03-21 05:56:17] Production.INFO: ProcessCDR(1,14728181,1,1,2) [2025-03-21 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728181', 'tblTempUsageDetail_20' ) start [2025-03-21 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728181', 'tblTempUsageDetail_20' ) end [2025-03-21 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:56:21] Production.INFO: ==26231== Releasing lock... [2025-03-21 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:56:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-21 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:57:06 [end_date_ymd] => 2025-03-21 05:57:06 [RateCDR] => 1 ) [2025-03-21 05:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 02:57:06' and `end` < '2025-03-21 05:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 05:57:18] Production.INFO: count ==165 [2025-03-21 05:57:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:57:06 - End Time 2025-03-21 05:57:06 [2025-03-21 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728186', 'tblTempUsageDetail_20' ) start [2025-03-21 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728186', 'tblTempUsageDetail_20' ) end [2025-03-21 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728186', 'tblTempVendorCDR_20' ) start [2025-03-21 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728186', 'tblTempVendorCDR_20' ) end [2025-03-21 05:57:18] Production.INFO: ProcessCDR(1,14728186,1,1,2) [2025-03-21 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728186', 'tblTempUsageDetail_20' ) start [2025-03-21 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728186', 'tblTempUsageDetail_20' ) end [2025-03-21 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:57:21] Production.INFO: ==26336== Releasing lock... [2025-03-21 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:57:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:58:05 [end_date_ymd] => 2025-03-21 05:58:05 [RateCDR] => 1 ) [2025-03-21 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-21 02:58:05' and `end` < '2025-03-21 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-21 05:58:17] Production.INFO: count ==156 [2025-03-21 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-21 02:58:05 - End Time 2025-03-21 05:58:05 [2025-03-21 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728191', 'tblTempUsageDetail_20' ) start [2025-03-21 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728191', 'tblTempUsageDetail_20' ) end [2025-03-21 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728191', 'tblTempVendorCDR_20' ) start [2025-03-21 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728191', 'tblTempVendorCDR_20' ) end [2025-03-21 05:58:17] Production.INFO: ProcessCDR(1,14728191,1,1,2) [2025-03-21 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728191', 'tblTempUsageDetail_20' ) start [2025-03-21 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728191', 'tblTempUsageDetail_20' ) end [2025-03-21 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:58:21] Production.INFO: ==26441== Releasing lock... [2025-03-21 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 05:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 02:59:06 [end_date_ymd] => 2025-03-21 05:59:06 [RateCDR] => 1 ) [2025-03-21 05: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-21 02:59:06' and `end` < '2025-03-21 05: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-21 05:59:18] Production.INFO: count ==152 [2025-03-21 05:59:18] Production.ERROR: pbx CDR StartTime 2025-03-21 02:59:06 - End Time 2025-03-21 05:59:06 [2025-03-21 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728196', 'tblTempUsageDetail_20' ) start [2025-03-21 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728196', 'tblTempUsageDetail_20' ) end [2025-03-21 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728196', 'tblTempVendorCDR_20' ) start [2025-03-21 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728196', 'tblTempVendorCDR_20' ) end [2025-03-21 05:59:18] Production.INFO: ProcessCDR(1,14728196,1,1,2) [2025-03-21 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 05:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 05:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728196', 'tblTempUsageDetail_20' ) start [2025-03-21 05:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728196', 'tblTempUsageDetail_20' ) end [2025-03-21 05:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 05:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 05:59:23] Production.INFO: ==26552== Releasing lock... [2025-03-21 05:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 05:59:23] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:00:05 [end_date_ymd] => 2025-03-21 06:00:05 [RateCDR] => 1 ) [2025-03-21 06: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-21 03:00:05' and `end` < '2025-03-21 06: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-21 06:00:18] Production.INFO: count ==136 [2025-03-21 06:00:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:00:05 - End Time 2025-03-21 06:00:05 [2025-03-21 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728202', 'tblTempUsageDetail_20' ) start [2025-03-21 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728202', 'tblTempUsageDetail_20' ) end [2025-03-21 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728202', 'tblTempVendorCDR_20' ) start [2025-03-21 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728202', 'tblTempVendorCDR_20' ) end [2025-03-21 06:00:18] Production.INFO: ProcessCDR(1,14728202,1,1,2) [2025-03-21 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728202', 'tblTempUsageDetail_20' ) start [2025-03-21 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728202', 'tblTempUsageDetail_20' ) end [2025-03-21 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:00:21] Production.INFO: ==26660== Releasing lock... [2025-03-21 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:00:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:01:05 [end_date_ymd] => 2025-03-21 06:01:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:01:05' and `end` < '2025-03-21 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-21 06:01:17] Production.INFO: count ==118 [2025-03-21 06:01:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:01:05 - End Time 2025-03-21 06:01:05 [2025-03-21 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728207', 'tblTempUsageDetail_20' ) start [2025-03-21 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728207', 'tblTempUsageDetail_20' ) end [2025-03-21 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728207', 'tblTempVendorCDR_20' ) start [2025-03-21 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728207', 'tblTempVendorCDR_20' ) end [2025-03-21 06:01:18] Production.INFO: ProcessCDR(1,14728207,1,1,2) [2025-03-21 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728207', 'tblTempUsageDetail_20' ) start [2025-03-21 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728207', 'tblTempUsageDetail_20' ) end [2025-03-21 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:01:21] Production.INFO: ==26775== Releasing lock... [2025-03-21 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:02:06 [end_date_ymd] => 2025-03-21 06:02:06 [RateCDR] => 1 ) [2025-03-21 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-21 03:02:06' and `end` < '2025-03-21 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-21 06:02:18] Production.INFO: count ==112 [2025-03-21 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:02:06 - End Time 2025-03-21 06:02:06 [2025-03-21 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728212', 'tblTempUsageDetail_20' ) start [2025-03-21 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728212', 'tblTempUsageDetail_20' ) end [2025-03-21 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728212', 'tblTempVendorCDR_20' ) start [2025-03-21 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728212', 'tblTempVendorCDR_20' ) end [2025-03-21 06:02:18] Production.INFO: ProcessCDR(1,14728212,1,1,2) [2025-03-21 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728212', 'tblTempUsageDetail_20' ) start [2025-03-21 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728212', 'tblTempUsageDetail_20' ) end [2025-03-21 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:02:21] Production.INFO: ==26880== Releasing lock... [2025-03-21 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:02:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:03:04 [end_date_ymd] => 2025-03-21 06:03:04 [RateCDR] => 1 ) [2025-03-21 06:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 03:03:04' and `end` < '2025-03-21 06:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 06:03:17] Production.INFO: count ==108 [2025-03-21 06:03:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:03:04 - End Time 2025-03-21 06:03:04 [2025-03-21 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728217', 'tblTempUsageDetail_20' ) start [2025-03-21 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728217', 'tblTempUsageDetail_20' ) end [2025-03-21 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728217', 'tblTempVendorCDR_20' ) start [2025-03-21 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728217', 'tblTempVendorCDR_20' ) end [2025-03-21 06:03:17] Production.INFO: ProcessCDR(1,14728217,1,1,2) [2025-03-21 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728217', 'tblTempUsageDetail_20' ) start [2025-03-21 06:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728217', 'tblTempUsageDetail_20' ) end [2025-03-21 06:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:03:20] Production.INFO: ==26983== Releasing lock... [2025-03-21 06:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:03:20] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:04:05 [end_date_ymd] => 2025-03-21 06:04:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:04:05' and `end` < '2025-03-21 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-21 06:04:17] Production.INFO: count ==113 [2025-03-21 06:04:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:04:05 - End Time 2025-03-21 06:04:05 [2025-03-21 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728222', 'tblTempUsageDetail_20' ) start [2025-03-21 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728222', 'tblTempUsageDetail_20' ) end [2025-03-21 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728222', 'tblTempVendorCDR_20' ) start [2025-03-21 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728222', 'tblTempVendorCDR_20' ) end [2025-03-21 06:04:17] Production.INFO: ProcessCDR(1,14728222,1,1,2) [2025-03-21 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728222', 'tblTempUsageDetail_20' ) start [2025-03-21 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728222', 'tblTempUsageDetail_20' ) end [2025-03-21 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:04:21] Production.INFO: ==27067== Releasing lock... [2025-03-21 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:04:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:05:04 [end_date_ymd] => 2025-03-21 06:05:04 [RateCDR] => 1 ) [2025-03-21 06:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 03:05:04' and `end` < '2025-03-21 06:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 06:05:17] Production.INFO: count ==113 [2025-03-21 06:05:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:05:04 - End Time 2025-03-21 06:05:04 [2025-03-21 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728227', 'tblTempUsageDetail_20' ) start [2025-03-21 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728227', 'tblTempUsageDetail_20' ) end [2025-03-21 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728227', 'tblTempVendorCDR_20' ) start [2025-03-21 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728227', 'tblTempVendorCDR_20' ) end [2025-03-21 06:05:17] Production.INFO: ProcessCDR(1,14728227,1,1,2) [2025-03-21 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728227', 'tblTempUsageDetail_20' ) start [2025-03-21 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728227', 'tblTempUsageDetail_20' ) end [2025-03-21 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:05:20] Production.INFO: ==27192== Releasing lock... [2025-03-21 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:05:20] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:06:05 [end_date_ymd] => 2025-03-21 06:06:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:06:05' and `end` < '2025-03-21 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-21 06:06:17] Production.INFO: count ==110 [2025-03-21 06:06:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:06:05 - End Time 2025-03-21 06:06:05 [2025-03-21 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728232', 'tblTempUsageDetail_20' ) start [2025-03-21 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728232', 'tblTempUsageDetail_20' ) end [2025-03-21 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728232', 'tblTempVendorCDR_20' ) start [2025-03-21 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728232', 'tblTempVendorCDR_20' ) end [2025-03-21 06:06:17] Production.INFO: ProcessCDR(1,14728232,1,1,2) [2025-03-21 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728232', 'tblTempUsageDetail_20' ) start [2025-03-21 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728232', 'tblTempUsageDetail_20' ) end [2025-03-21 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:06:20] Production.INFO: ==27273== Releasing lock... [2025-03-21 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:06:20] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:07:06 [end_date_ymd] => 2025-03-21 06:07:06 [RateCDR] => 1 ) [2025-03-21 06: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-21 03:07:06' and `end` < '2025-03-21 06: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-21 06:07:18] Production.INFO: count ==110 [2025-03-21 06:07:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:07:06 - End Time 2025-03-21 06:07:06 [2025-03-21 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728237', 'tblTempUsageDetail_20' ) start [2025-03-21 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728237', 'tblTempUsageDetail_20' ) end [2025-03-21 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728237', 'tblTempVendorCDR_20' ) start [2025-03-21 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728237', 'tblTempVendorCDR_20' ) end [2025-03-21 06:07:18] Production.INFO: ProcessCDR(1,14728237,1,1,2) [2025-03-21 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728237', 'tblTempUsageDetail_20' ) start [2025-03-21 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728237', 'tblTempUsageDetail_20' ) end [2025-03-21 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:07:21] Production.INFO: ==27372== Releasing lock... [2025-03-21 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:07:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:08:05 [end_date_ymd] => 2025-03-21 06:08:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:08:05' and `end` < '2025-03-21 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-21 06:08:17] Production.INFO: count ==110 [2025-03-21 06:08:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:08:05 - End Time 2025-03-21 06:08:05 [2025-03-21 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728242', 'tblTempUsageDetail_20' ) start [2025-03-21 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728242', 'tblTempUsageDetail_20' ) end [2025-03-21 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728242', 'tblTempVendorCDR_20' ) start [2025-03-21 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728242', 'tblTempVendorCDR_20' ) end [2025-03-21 06:08:17] Production.INFO: ProcessCDR(1,14728242,1,1,2) [2025-03-21 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728242', 'tblTempUsageDetail_20' ) start [2025-03-21 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728242', 'tblTempUsageDetail_20' ) end [2025-03-21 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:08:21] Production.INFO: ==27456== Releasing lock... [2025-03-21 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:08:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:09:06 [end_date_ymd] => 2025-03-21 06:09:06 [RateCDR] => 1 ) [2025-03-21 06:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 03:09:06' and `end` < '2025-03-21 06:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 06:09:18] Production.INFO: count ==110 [2025-03-21 06:09:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:09:06 - End Time 2025-03-21 06:09:06 [2025-03-21 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728247', 'tblTempUsageDetail_20' ) start [2025-03-21 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728247', 'tblTempUsageDetail_20' ) end [2025-03-21 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728247', 'tblTempVendorCDR_20' ) start [2025-03-21 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728247', 'tblTempVendorCDR_20' ) end [2025-03-21 06:09:18] Production.INFO: ProcessCDR(1,14728247,1,1,2) [2025-03-21 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728247', 'tblTempUsageDetail_20' ) start [2025-03-21 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728247', 'tblTempUsageDetail_20' ) end [2025-03-21 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:09:21] Production.INFO: ==27534== Releasing lock... [2025-03-21 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:09:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:10:06 [end_date_ymd] => 2025-03-21 06:10:06 [RateCDR] => 1 ) [2025-03-21 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-21 03:10:06' and `end` < '2025-03-21 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-21 06:10:18] Production.INFO: count ==110 [2025-03-21 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:10:06 - End Time 2025-03-21 06:10:06 [2025-03-21 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728253', 'tblTempUsageDetail_20' ) start [2025-03-21 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728253', 'tblTempUsageDetail_20' ) end [2025-03-21 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728253', 'tblTempVendorCDR_20' ) start [2025-03-21 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728253', 'tblTempVendorCDR_20' ) end [2025-03-21 06:10:18] Production.INFO: ProcessCDR(1,14728253,1,1,2) [2025-03-21 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728253', 'tblTempUsageDetail_20' ) start [2025-03-21 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728253', 'tblTempUsageDetail_20' ) end [2025-03-21 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:10:21] Production.INFO: ==27615== Releasing lock... [2025-03-21 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:10:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:11:05 [end_date_ymd] => 2025-03-21 06:11:05 [RateCDR] => 1 ) [2025-03-21 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 03:11:05' and `end` < '2025-03-21 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 06:11:17] Production.INFO: count ==115 [2025-03-21 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:11:05 - End Time 2025-03-21 06:11:05 [2025-03-21 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728258', 'tblTempUsageDetail_20' ) start [2025-03-21 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728258', 'tblTempUsageDetail_20' ) end [2025-03-21 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728258', 'tblTempVendorCDR_20' ) start [2025-03-21 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728258', 'tblTempVendorCDR_20' ) end [2025-03-21 06:11:17] Production.INFO: ProcessCDR(1,14728258,1,1,2) [2025-03-21 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728258', 'tblTempUsageDetail_20' ) start [2025-03-21 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728258', 'tblTempUsageDetail_20' ) end [2025-03-21 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:11:21] Production.INFO: ==27700== Releasing lock... [2025-03-21 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:12:05 [end_date_ymd] => 2025-03-21 06:12:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:12:05' and `end` < '2025-03-21 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-21 06:12:17] Production.INFO: count ==115 [2025-03-21 06:12:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:12:05 - End Time 2025-03-21 06:12:05 [2025-03-21 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728263', 'tblTempUsageDetail_20' ) start [2025-03-21 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728263', 'tblTempUsageDetail_20' ) end [2025-03-21 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728263', 'tblTempVendorCDR_20' ) start [2025-03-21 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728263', 'tblTempVendorCDR_20' ) end [2025-03-21 06:12:17] Production.INFO: ProcessCDR(1,14728263,1,1,2) [2025-03-21 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728263', 'tblTempUsageDetail_20' ) start [2025-03-21 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728263', 'tblTempUsageDetail_20' ) end [2025-03-21 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:12:21] Production.INFO: ==27781== Releasing lock... [2025-03-21 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:13:05 [end_date_ymd] => 2025-03-21 06:13:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:13:05' and `end` < '2025-03-21 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-21 06:13:17] Production.INFO: count ==115 [2025-03-21 06:13:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:13:05 - End Time 2025-03-21 06:13:05 [2025-03-21 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728268', 'tblTempUsageDetail_20' ) start [2025-03-21 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728268', 'tblTempUsageDetail_20' ) end [2025-03-21 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728268', 'tblTempVendorCDR_20' ) start [2025-03-21 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728268', 'tblTempVendorCDR_20' ) end [2025-03-21 06:13:17] Production.INFO: ProcessCDR(1,14728268,1,1,2) [2025-03-21 06:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728268', 'tblTempUsageDetail_20' ) start [2025-03-21 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728268', 'tblTempUsageDetail_20' ) end [2025-03-21 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:13:21] Production.INFO: ==27864== Releasing lock... [2025-03-21 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:14:05 [end_date_ymd] => 2025-03-21 06:14:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:14:05' and `end` < '2025-03-21 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-21 06:14:17] Production.INFO: count ==114 [2025-03-21 06:14:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:14:05 - End Time 2025-03-21 06:14:05 [2025-03-21 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728273', 'tblTempUsageDetail_20' ) start [2025-03-21 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728273', 'tblTempUsageDetail_20' ) end [2025-03-21 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728273', 'tblTempVendorCDR_20' ) start [2025-03-21 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728273', 'tblTempVendorCDR_20' ) end [2025-03-21 06:14:17] Production.INFO: ProcessCDR(1,14728273,1,1,2) [2025-03-21 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728273', 'tblTempUsageDetail_20' ) start [2025-03-21 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728273', 'tblTempUsageDetail_20' ) end [2025-03-21 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:14:20] Production.INFO: ==27955== Releasing lock... [2025-03-21 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:14:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:15:05 [end_date_ymd] => 2025-03-21 06:15:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:15:05' and `end` < '2025-03-21 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-21 06:15:17] Production.INFO: count ==114 [2025-03-21 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:15:05 - End Time 2025-03-21 06:15:05 [2025-03-21 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728278', 'tblTempUsageDetail_20' ) start [2025-03-21 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728278', 'tblTempUsageDetail_20' ) end [2025-03-21 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728278', 'tblTempVendorCDR_20' ) start [2025-03-21 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728278', 'tblTempVendorCDR_20' ) end [2025-03-21 06:15:17] Production.INFO: ProcessCDR(1,14728278,1,1,2) [2025-03-21 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728278', 'tblTempUsageDetail_20' ) start [2025-03-21 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728278', 'tblTempUsageDetail_20' ) end [2025-03-21 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:15:21] Production.INFO: ==28043== Releasing lock... [2025-03-21 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:16:05 [end_date_ymd] => 2025-03-21 06:16:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:16:05' and `end` < '2025-03-21 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-21 06:16:17] Production.INFO: count ==114 [2025-03-21 06:16:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:16:05 - End Time 2025-03-21 06:16:05 [2025-03-21 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728283', 'tblTempUsageDetail_20' ) start [2025-03-21 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728283', 'tblTempUsageDetail_20' ) end [2025-03-21 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728283', 'tblTempVendorCDR_20' ) start [2025-03-21 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728283', 'tblTempVendorCDR_20' ) end [2025-03-21 06:16:17] Production.INFO: ProcessCDR(1,14728283,1,1,2) [2025-03-21 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728283', 'tblTempUsageDetail_20' ) start [2025-03-21 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728283', 'tblTempUsageDetail_20' ) end [2025-03-21 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:16:20] Production.INFO: ==28123== Releasing lock... [2025-03-21 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:16:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:17:06 [end_date_ymd] => 2025-03-21 06:17:06 [RateCDR] => 1 ) [2025-03-21 06: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-21 03:17:06' and `end` < '2025-03-21 06: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-21 06:17:18] Production.INFO: count ==114 [2025-03-21 06:17:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:17:06 - End Time 2025-03-21 06:17:06 [2025-03-21 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728288', 'tblTempUsageDetail_20' ) start [2025-03-21 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728288', 'tblTempUsageDetail_20' ) end [2025-03-21 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728288', 'tblTempVendorCDR_20' ) start [2025-03-21 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728288', 'tblTempVendorCDR_20' ) end [2025-03-21 06:17:18] Production.INFO: ProcessCDR(1,14728288,1,1,2) [2025-03-21 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728288', 'tblTempUsageDetail_20' ) start [2025-03-21 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728288', 'tblTempUsageDetail_20' ) end [2025-03-21 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:17:21] Production.INFO: ==28200== Releasing lock... [2025-03-21 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:18:06 [end_date_ymd] => 2025-03-21 06:18:06 [RateCDR] => 1 ) [2025-03-21 06: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-21 03:18:06' and `end` < '2025-03-21 06: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-21 06:18:18] Production.INFO: count ==119 [2025-03-21 06:18:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:18:06 - End Time 2025-03-21 06:18:06 [2025-03-21 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728293', 'tblTempUsageDetail_20' ) start [2025-03-21 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728293', 'tblTempUsageDetail_20' ) end [2025-03-21 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728293', 'tblTempVendorCDR_20' ) start [2025-03-21 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728293', 'tblTempVendorCDR_20' ) end [2025-03-21 06:18:18] Production.INFO: ProcessCDR(1,14728293,1,1,2) [2025-03-21 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728293', 'tblTempUsageDetail_20' ) start [2025-03-21 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728293', 'tblTempUsageDetail_20' ) end [2025-03-21 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:18:21] Production.INFO: ==28291== Releasing lock... [2025-03-21 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:19:05 [end_date_ymd] => 2025-03-21 06:19:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:19:05' and `end` < '2025-03-21 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-21 06:19:17] Production.INFO: count ==120 [2025-03-21 06:19:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:19:05 - End Time 2025-03-21 06:19:05 [2025-03-21 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728298', 'tblTempUsageDetail_20' ) start [2025-03-21 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728298', 'tblTempUsageDetail_20' ) end [2025-03-21 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728298', 'tblTempVendorCDR_20' ) start [2025-03-21 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728298', 'tblTempVendorCDR_20' ) end [2025-03-21 06:19:17] Production.INFO: ProcessCDR(1,14728298,1,1,2) [2025-03-21 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728298', 'tblTempUsageDetail_20' ) start [2025-03-21 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728298', 'tblTempUsageDetail_20' ) end [2025-03-21 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:19:21] Production.INFO: ==28377== Releasing lock... [2025-03-21 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:20:06 [end_date_ymd] => 2025-03-21 06:20:06 [RateCDR] => 1 ) [2025-03-21 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-21 03:20:06' and `end` < '2025-03-21 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-21 06:20:18] Production.INFO: count ==105 [2025-03-21 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:20:06 - End Time 2025-03-21 06:20:06 [2025-03-21 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728304', 'tblTempUsageDetail_20' ) start [2025-03-21 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728304', 'tblTempUsageDetail_20' ) end [2025-03-21 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728304', 'tblTempVendorCDR_20' ) start [2025-03-21 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728304', 'tblTempVendorCDR_20' ) end [2025-03-21 06:20:18] Production.INFO: ProcessCDR(1,14728304,1,1,2) [2025-03-21 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728304', 'tblTempUsageDetail_20' ) start [2025-03-21 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728304', 'tblTempUsageDetail_20' ) end [2025-03-21 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:20:22] Production.INFO: ==28468== Releasing lock... [2025-03-21 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:20:22] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:21:05 [end_date_ymd] => 2025-03-21 06:21:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:21:05' and `end` < '2025-03-21 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-21 06:21:17] Production.INFO: count ==105 [2025-03-21 06:21:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:21:05 - End Time 2025-03-21 06:21:05 [2025-03-21 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728309', 'tblTempUsageDetail_20' ) start [2025-03-21 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728309', 'tblTempUsageDetail_20' ) end [2025-03-21 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728309', 'tblTempVendorCDR_20' ) start [2025-03-21 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728309', 'tblTempVendorCDR_20' ) end [2025-03-21 06:21:17] Production.INFO: ProcessCDR(1,14728309,1,1,2) [2025-03-21 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728309', 'tblTempUsageDetail_20' ) start [2025-03-21 06:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728309', 'tblTempUsageDetail_20' ) end [2025-03-21 06:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:21:20] Production.INFO: ==28594== Releasing lock... [2025-03-21 06:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:21:20] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:22:06 [end_date_ymd] => 2025-03-21 06:22:06 [RateCDR] => 1 ) [2025-03-21 06: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-21 03:22:06' and `end` < '2025-03-21 06: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-21 06:22:18] Production.INFO: count ==105 [2025-03-21 06:22:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:22:06 - End Time 2025-03-21 06:22:06 [2025-03-21 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728314', 'tblTempUsageDetail_20' ) start [2025-03-21 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728314', 'tblTempUsageDetail_20' ) end [2025-03-21 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728314', 'tblTempVendorCDR_20' ) start [2025-03-21 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728314', 'tblTempVendorCDR_20' ) end [2025-03-21 06:22:18] Production.INFO: ProcessCDR(1,14728314,1,1,2) [2025-03-21 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728314', 'tblTempUsageDetail_20' ) start [2025-03-21 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728314', 'tblTempUsageDetail_20' ) end [2025-03-21 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:22:21] Production.INFO: ==28674== Releasing lock... [2025-03-21 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:22:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:23:05 [end_date_ymd] => 2025-03-21 06:23:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:23:05' and `end` < '2025-03-21 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-21 06:23:17] Production.INFO: count ==105 [2025-03-21 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:23:05 - End Time 2025-03-21 06:23:05 [2025-03-21 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728319', 'tblTempUsageDetail_20' ) start [2025-03-21 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728319', 'tblTempUsageDetail_20' ) end [2025-03-21 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728319', 'tblTempVendorCDR_20' ) start [2025-03-21 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728319', 'tblTempVendorCDR_20' ) end [2025-03-21 06:23:17] Production.INFO: ProcessCDR(1,14728319,1,1,2) [2025-03-21 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728319', 'tblTempUsageDetail_20' ) start [2025-03-21 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728319', 'tblTempUsageDetail_20' ) end [2025-03-21 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:23:20] Production.INFO: ==28765== Releasing lock... [2025-03-21 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:23:20] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:24:05 [end_date_ymd] => 2025-03-21 06:24:05 [RateCDR] => 1 ) [2025-03-21 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 03:24:05' and `end` < '2025-03-21 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 06:24:17] Production.INFO: count ==105 [2025-03-21 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:24:05 - End Time 2025-03-21 06:24:05 [2025-03-21 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728324', 'tblTempUsageDetail_20' ) start [2025-03-21 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728324', 'tblTempUsageDetail_20' ) end [2025-03-21 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728324', 'tblTempVendorCDR_20' ) start [2025-03-21 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728324', 'tblTempVendorCDR_20' ) end [2025-03-21 06:24:17] Production.INFO: ProcessCDR(1,14728324,1,1,2) [2025-03-21 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728324', 'tblTempUsageDetail_20' ) start [2025-03-21 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728324', 'tblTempUsageDetail_20' ) end [2025-03-21 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:24:21] Production.INFO: ==28850== Releasing lock... [2025-03-21 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:24:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:25:05 [end_date_ymd] => 2025-03-21 06:25:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:25:05' and `end` < '2025-03-21 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-21 06:25:17] Production.INFO: count ==105 [2025-03-21 06:25:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:25:05 - End Time 2025-03-21 06:25:05 [2025-03-21 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728328', 'tblTempUsageDetail_20' ) start [2025-03-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728328', 'tblTempUsageDetail_20' ) end [2025-03-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728328', 'tblTempVendorCDR_20' ) start [2025-03-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728328', 'tblTempVendorCDR_20' ) end [2025-03-21 06:25:17] Production.INFO: ProcessCDR(1,14728328,1,1,2) [2025-03-21 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728328', 'tblTempUsageDetail_20' ) start [2025-03-21 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728328', 'tblTempUsageDetail_20' ) end [2025-03-21 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:25:20] Production.INFO: ==28931== Releasing lock... [2025-03-21 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:25:20] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:26:05 [end_date_ymd] => 2025-03-21 06:26:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:26:05' and `end` < '2025-03-21 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-21 06:26:17] Production.INFO: count ==105 [2025-03-21 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:26:05 - End Time 2025-03-21 06:26:05 [2025-03-21 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728334', 'tblTempUsageDetail_20' ) start [2025-03-21 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728334', 'tblTempUsageDetail_20' ) end [2025-03-21 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728334', 'tblTempVendorCDR_20' ) start [2025-03-21 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728334', 'tblTempVendorCDR_20' ) end [2025-03-21 06:26:17] Production.INFO: ProcessCDR(1,14728334,1,1,2) [2025-03-21 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728334', 'tblTempUsageDetail_20' ) start [2025-03-21 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728334', 'tblTempUsageDetail_20' ) end [2025-03-21 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:26:20] Production.INFO: ==29025== Releasing lock... [2025-03-21 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:26:20] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:27:05 [end_date_ymd] => 2025-03-21 06:27:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:27:05' and `end` < '2025-03-21 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-21 06:27:17] Production.INFO: count ==105 [2025-03-21 06:27:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:27:05 - End Time 2025-03-21 06:27:05 [2025-03-21 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728339', 'tblTempUsageDetail_20' ) start [2025-03-21 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728339', 'tblTempUsageDetail_20' ) end [2025-03-21 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728339', 'tblTempVendorCDR_20' ) start [2025-03-21 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728339', 'tblTempVendorCDR_20' ) end [2025-03-21 06:27:17] Production.INFO: ProcessCDR(1,14728339,1,1,2) [2025-03-21 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728339', 'tblTempUsageDetail_20' ) start [2025-03-21 06:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728339', 'tblTempUsageDetail_20' ) end [2025-03-21 06:27:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:27:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:27:20] Production.INFO: ==29104== Releasing lock... [2025-03-21 06:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:27:20] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:28:05 [end_date_ymd] => 2025-03-21 06:28:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:28:05' and `end` < '2025-03-21 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-21 06:28:17] Production.INFO: count ==105 [2025-03-21 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:28:05 - End Time 2025-03-21 06:28:05 [2025-03-21 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728344', 'tblTempUsageDetail_20' ) start [2025-03-21 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728344', 'tblTempUsageDetail_20' ) end [2025-03-21 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728344', 'tblTempVendorCDR_20' ) start [2025-03-21 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728344', 'tblTempVendorCDR_20' ) end [2025-03-21 06:28:17] Production.INFO: ProcessCDR(1,14728344,1,1,2) [2025-03-21 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728344', 'tblTempUsageDetail_20' ) start [2025-03-21 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728344', 'tblTempUsageDetail_20' ) end [2025-03-21 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:28:20] Production.INFO: ==29195== Releasing lock... [2025-03-21 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:28:20] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:29:05 [end_date_ymd] => 2025-03-21 06:29:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:29:05' and `end` < '2025-03-21 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-21 06:29:17] Production.INFO: count ==105 [2025-03-21 06:29:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:29:05 - End Time 2025-03-21 06:29:05 [2025-03-21 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728349', 'tblTempUsageDetail_20' ) start [2025-03-21 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728349', 'tblTempUsageDetail_20' ) end [2025-03-21 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728349', 'tblTempVendorCDR_20' ) start [2025-03-21 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728349', 'tblTempVendorCDR_20' ) end [2025-03-21 06:29:17] Production.INFO: ProcessCDR(1,14728349,1,1,2) [2025-03-21 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728349', 'tblTempUsageDetail_20' ) start [2025-03-21 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728349', 'tblTempUsageDetail_20' ) end [2025-03-21 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:29:21] Production.INFO: ==29273== Releasing lock... [2025-03-21 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:29:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:30:06 [end_date_ymd] => 2025-03-21 06:30:06 [RateCDR] => 1 ) [2025-03-21 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-21 03:30:06' and `end` < '2025-03-21 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-21 06:30:18] Production.INFO: count ==99 [2025-03-21 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:30:06 - End Time 2025-03-21 06:30:06 [2025-03-21 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728355', 'tblTempUsageDetail_20' ) start [2025-03-21 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728355', 'tblTempUsageDetail_20' ) end [2025-03-21 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728355', 'tblTempVendorCDR_20' ) start [2025-03-21 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728355', 'tblTempVendorCDR_20' ) end [2025-03-21 06:30:18] Production.INFO: ProcessCDR(1,14728355,1,1,2) [2025-03-21 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728355', 'tblTempUsageDetail_20' ) start [2025-03-21 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728355', 'tblTempUsageDetail_20' ) end [2025-03-21 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:30:22] Production.INFO: ==29363== Releasing lock... [2025-03-21 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:30:22] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:31:05 [end_date_ymd] => 2025-03-21 06:31:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:31:05' and `end` < '2025-03-21 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-21 06:31:17] Production.INFO: count ==99 [2025-03-21 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:31:05 - End Time 2025-03-21 06:31:05 [2025-03-21 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728360', 'tblTempUsageDetail_20' ) start [2025-03-21 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728360', 'tblTempUsageDetail_20' ) end [2025-03-21 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728360', 'tblTempVendorCDR_20' ) start [2025-03-21 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728360', 'tblTempVendorCDR_20' ) end [2025-03-21 06:31:17] Production.INFO: ProcessCDR(1,14728360,1,1,2) [2025-03-21 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728360', 'tblTempUsageDetail_20' ) start [2025-03-21 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728360', 'tblTempUsageDetail_20' ) end [2025-03-21 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:31:21] Production.INFO: ==29451== Releasing lock... [2025-03-21 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:31:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:32:05 [end_date_ymd] => 2025-03-21 06:32:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:32:05' and `end` < '2025-03-21 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-21 06:32:17] Production.INFO: count ==99 [2025-03-21 06:32:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:32:05 - End Time 2025-03-21 06:32:05 [2025-03-21 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728365', 'tblTempUsageDetail_20' ) start [2025-03-21 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728365', 'tblTempUsageDetail_20' ) end [2025-03-21 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728365', 'tblTempVendorCDR_20' ) start [2025-03-21 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728365', 'tblTempVendorCDR_20' ) end [2025-03-21 06:32:18] Production.INFO: ProcessCDR(1,14728365,1,1,2) [2025-03-21 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728365', 'tblTempUsageDetail_20' ) start [2025-03-21 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728365', 'tblTempUsageDetail_20' ) end [2025-03-21 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:32:21] Production.INFO: ==29528== Releasing lock... [2025-03-21 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:32:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:33:05 [end_date_ymd] => 2025-03-21 06:33:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:33:05' and `end` < '2025-03-21 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-21 06:33:18] Production.INFO: count ==99 [2025-03-21 06:33:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:33:05 - End Time 2025-03-21 06:33:05 [2025-03-21 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728370', 'tblTempUsageDetail_20' ) start [2025-03-21 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728370', 'tblTempUsageDetail_20' ) end [2025-03-21 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728370', 'tblTempVendorCDR_20' ) start [2025-03-21 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728370', 'tblTempVendorCDR_20' ) end [2025-03-21 06:33:18] Production.INFO: ProcessCDR(1,14728370,1,1,2) [2025-03-21 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728370', 'tblTempUsageDetail_20' ) start [2025-03-21 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728370', 'tblTempUsageDetail_20' ) end [2025-03-21 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:33:21] Production.INFO: ==29615== Releasing lock... [2025-03-21 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:33:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:34:05 [end_date_ymd] => 2025-03-21 06:34:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:34:05' and `end` < '2025-03-21 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-21 06:34:17] Production.INFO: count ==99 [2025-03-21 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:34:05 - End Time 2025-03-21 06:34:05 [2025-03-21 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728375', 'tblTempUsageDetail_20' ) start [2025-03-21 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728375', 'tblTempUsageDetail_20' ) end [2025-03-21 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728375', 'tblTempVendorCDR_20' ) start [2025-03-21 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728375', 'tblTempVendorCDR_20' ) end [2025-03-21 06:34:17] Production.INFO: ProcessCDR(1,14728375,1,1,2) [2025-03-21 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728375', 'tblTempUsageDetail_20' ) start [2025-03-21 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728375', 'tblTempUsageDetail_20' ) end [2025-03-21 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:34:20] Production.INFO: ==29705== Releasing lock... [2025-03-21 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:34:20] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:35:05 [end_date_ymd] => 2025-03-21 06:35:05 [RateCDR] => 1 ) [2025-03-21 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 03:35:05' and `end` < '2025-03-21 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 06:35:17] Production.INFO: count ==99 [2025-03-21 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:35:05 - End Time 2025-03-21 06:35:05 [2025-03-21 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728380', 'tblTempUsageDetail_20' ) start [2025-03-21 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728380', 'tblTempUsageDetail_20' ) end [2025-03-21 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728380', 'tblTempVendorCDR_20' ) start [2025-03-21 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728380', 'tblTempVendorCDR_20' ) end [2025-03-21 06:35:17] Production.INFO: ProcessCDR(1,14728380,1,1,2) [2025-03-21 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728380', 'tblTempUsageDetail_20' ) start [2025-03-21 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728380', 'tblTempUsageDetail_20' ) end [2025-03-21 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:35:21] Production.INFO: ==29782== Releasing lock... [2025-03-21 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:35:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:36:04 [end_date_ymd] => 2025-03-21 06:36:04 [RateCDR] => 1 ) [2025-03-21 06:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 03:36:04' and `end` < '2025-03-21 06:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 06:36:16] Production.INFO: count ==99 [2025-03-21 06:36:16] Production.ERROR: pbx CDR StartTime 2025-03-21 03:36:04 - End Time 2025-03-21 06:36:04 [2025-03-21 06:36:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728385', 'tblTempUsageDetail_20' ) start [2025-03-21 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728385', 'tblTempUsageDetail_20' ) end [2025-03-21 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728385', 'tblTempVendorCDR_20' ) start [2025-03-21 06:36:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728385', 'tblTempVendorCDR_20' ) end [2025-03-21 06:36:16] Production.INFO: ProcessCDR(1,14728385,1,1,2) [2025-03-21 06:36:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728385', 'tblTempUsageDetail_20' ) start [2025-03-21 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728385', 'tblTempUsageDetail_20' ) end [2025-03-21 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:36:20] Production.INFO: ==29906== Releasing lock... [2025-03-21 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:36:20] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:37:05 [end_date_ymd] => 2025-03-21 06:37:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:37:05' and `end` < '2025-03-21 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-21 06:37:18] Production.INFO: count ==99 [2025-03-21 06:37:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:37:05 - End Time 2025-03-21 06:37:05 [2025-03-21 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728390', 'tblTempUsageDetail_20' ) start [2025-03-21 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728390', 'tblTempUsageDetail_20' ) end [2025-03-21 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728390', 'tblTempVendorCDR_20' ) start [2025-03-21 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728390', 'tblTempVendorCDR_20' ) end [2025-03-21 06:37:18] Production.INFO: ProcessCDR(1,14728390,1,1,2) [2025-03-21 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728390', 'tblTempUsageDetail_20' ) start [2025-03-21 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728390', 'tblTempUsageDetail_20' ) end [2025-03-21 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:37:21] Production.INFO: ==29986== Releasing lock... [2025-03-21 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:37:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:38:04 [end_date_ymd] => 2025-03-21 06:38:04 [RateCDR] => 1 ) [2025-03-21 06: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-21 03:38:04' and `end` < '2025-03-21 06: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-21 06:38:17] Production.INFO: count ==99 [2025-03-21 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:38:04 - End Time 2025-03-21 06:38:04 [2025-03-21 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728395', 'tblTempUsageDetail_20' ) start [2025-03-21 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728395', 'tblTempUsageDetail_20' ) end [2025-03-21 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728395', 'tblTempVendorCDR_20' ) start [2025-03-21 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728395', 'tblTempVendorCDR_20' ) end [2025-03-21 06:38:17] Production.INFO: ProcessCDR(1,14728395,1,1,2) [2025-03-21 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728395', 'tblTempUsageDetail_20' ) start [2025-03-21 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728395', 'tblTempUsageDetail_20' ) end [2025-03-21 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:38:20] Production.INFO: ==30069== Releasing lock... [2025-03-21 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:38:20] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:39:05 [end_date_ymd] => 2025-03-21 06:39:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:39:05' and `end` < '2025-03-21 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-21 06:39:17] Production.INFO: count ==99 [2025-03-21 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:39:05 - End Time 2025-03-21 06:39:05 [2025-03-21 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728400', 'tblTempUsageDetail_20' ) start [2025-03-21 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728400', 'tblTempUsageDetail_20' ) end [2025-03-21 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728400', 'tblTempVendorCDR_20' ) start [2025-03-21 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728400', 'tblTempVendorCDR_20' ) end [2025-03-21 06:39:17] Production.INFO: ProcessCDR(1,14728400,1,1,2) [2025-03-21 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728400', 'tblTempUsageDetail_20' ) start [2025-03-21 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728400', 'tblTempUsageDetail_20' ) end [2025-03-21 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:39:21] Production.INFO: ==30154== Releasing lock... [2025-03-21 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:39:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:40:07 [end_date_ymd] => 2025-03-21 06:40:07 [RateCDR] => 1 ) [2025-03-21 06: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-21 03:40:07' and `end` < '2025-03-21 06: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-21 06:40:19] Production.INFO: count ==99 [2025-03-21 06:40:19] Production.ERROR: pbx CDR StartTime 2025-03-21 03:40:07 - End Time 2025-03-21 06:40:07 [2025-03-21 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728406', 'tblTempUsageDetail_20' ) start [2025-03-21 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728406', 'tblTempUsageDetail_20' ) end [2025-03-21 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728406', 'tblTempVendorCDR_20' ) start [2025-03-21 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728406', 'tblTempVendorCDR_20' ) end [2025-03-21 06:40:19] Production.INFO: ProcessCDR(1,14728406,1,1,2) [2025-03-21 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728406', 'tblTempUsageDetail_20' ) start [2025-03-21 06:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728406', 'tblTempUsageDetail_20' ) end [2025-03-21 06:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:40:23] Production.INFO: ==30238== Releasing lock... [2025-03-21 06:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:40:23] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:41:05 [end_date_ymd] => 2025-03-21 06:41:05 [RateCDR] => 1 ) [2025-03-21 06: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-21 03:41:05' and `end` < '2025-03-21 06: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-21 06:41:18] Production.INFO: count ==99 [2025-03-21 06:41:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:41:05 - End Time 2025-03-21 06:41:05 [2025-03-21 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728411', 'tblTempUsageDetail_20' ) start [2025-03-21 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728411', 'tblTempUsageDetail_20' ) end [2025-03-21 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728411', 'tblTempVendorCDR_20' ) start [2025-03-21 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728411', 'tblTempVendorCDR_20' ) end [2025-03-21 06:41:18] Production.INFO: ProcessCDR(1,14728411,1,1,2) [2025-03-21 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728411', 'tblTempUsageDetail_20' ) start [2025-03-21 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728411', 'tblTempUsageDetail_20' ) end [2025-03-21 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:41:21] Production.INFO: ==30333== Releasing lock... [2025-03-21 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:41:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:42:06 [end_date_ymd] => 2025-03-21 06:42:06 [RateCDR] => 1 ) [2025-03-21 06: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-21 03:42:06' and `end` < '2025-03-21 06: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-21 06:42:18] Production.INFO: count ==94 [2025-03-21 06:42:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:42:06 - End Time 2025-03-21 06:42:06 [2025-03-21 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728416', 'tblTempUsageDetail_20' ) start [2025-03-21 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728416', 'tblTempUsageDetail_20' ) end [2025-03-21 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728416', 'tblTempVendorCDR_20' ) start [2025-03-21 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728416', 'tblTempVendorCDR_20' ) end [2025-03-21 06:42:18] Production.INFO: ProcessCDR(1,14728416,1,1,2) [2025-03-21 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728416', 'tblTempUsageDetail_20' ) start [2025-03-21 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728416', 'tblTempUsageDetail_20' ) end [2025-03-21 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:42:21] Production.INFO: ==30405== Releasing lock... [2025-03-21 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:42:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:43:05 [end_date_ymd] => 2025-03-21 06:43:05 [RateCDR] => 1 ) [2025-03-21 06: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-21 03:43:05' and `end` < '2025-03-21 06: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-21 06:43:17] Production.INFO: count ==91 [2025-03-21 06:43:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:43:05 - End Time 2025-03-21 06:43:05 [2025-03-21 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728421', 'tblTempUsageDetail_20' ) start [2025-03-21 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728421', 'tblTempUsageDetail_20' ) end [2025-03-21 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728421', 'tblTempVendorCDR_20' ) start [2025-03-21 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728421', 'tblTempVendorCDR_20' ) end [2025-03-21 06:43:17] Production.INFO: ProcessCDR(1,14728421,1,1,2) [2025-03-21 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728421', 'tblTempUsageDetail_20' ) start [2025-03-21 06:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728421', 'tblTempUsageDetail_20' ) end [2025-03-21 06:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:43:20] Production.INFO: ==30489== Releasing lock... [2025-03-21 06:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:43:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-21 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:44:05 [end_date_ymd] => 2025-03-21 06:44:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:44:05' and `end` < '2025-03-21 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-21 06:44:17] Production.INFO: count ==91 [2025-03-21 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:44:05 - End Time 2025-03-21 06:44:05 [2025-03-21 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728426', 'tblTempUsageDetail_20' ) start [2025-03-21 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728426', 'tblTempUsageDetail_20' ) end [2025-03-21 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728426', 'tblTempVendorCDR_20' ) start [2025-03-21 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728426', 'tblTempVendorCDR_20' ) end [2025-03-21 06:44:17] Production.INFO: ProcessCDR(1,14728426,1,1,2) [2025-03-21 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728426', 'tblTempUsageDetail_20' ) start [2025-03-21 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728426', 'tblTempUsageDetail_20' ) end [2025-03-21 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:44:20] Production.INFO: ==30571== Releasing lock... [2025-03-21 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:44:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-21 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:45:05 [end_date_ymd] => 2025-03-21 06:45:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:45:05' and `end` < '2025-03-21 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-21 06:45:18] Production.INFO: count ==91 [2025-03-21 06:45:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:45:05 - End Time 2025-03-21 06:45:05 [2025-03-21 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728431', 'tblTempUsageDetail_20' ) start [2025-03-21 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728431', 'tblTempUsageDetail_20' ) end [2025-03-21 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728431', 'tblTempVendorCDR_20' ) start [2025-03-21 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728431', 'tblTempVendorCDR_20' ) end [2025-03-21 06:45:18] Production.INFO: ProcessCDR(1,14728431,1,1,2) [2025-03-21 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728431', 'tblTempUsageDetail_20' ) start [2025-03-21 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728431', 'tblTempUsageDetail_20' ) end [2025-03-21 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:45:21] Production.INFO: ==30655== Releasing lock... [2025-03-21 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-21 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:46:06 [end_date_ymd] => 2025-03-21 06:46:06 [RateCDR] => 1 ) [2025-03-21 06: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-21 03:46:06' and `end` < '2025-03-21 06: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-21 06:46:18] Production.INFO: count ==91 [2025-03-21 06:46:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:46:06 - End Time 2025-03-21 06:46:06 [2025-03-21 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728436', 'tblTempUsageDetail_20' ) start [2025-03-21 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728436', 'tblTempUsageDetail_20' ) end [2025-03-21 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728436', 'tblTempVendorCDR_20' ) start [2025-03-21 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728436', 'tblTempVendorCDR_20' ) end [2025-03-21 06:46:18] Production.INFO: ProcessCDR(1,14728436,1,1,2) [2025-03-21 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728436', 'tblTempUsageDetail_20' ) start [2025-03-21 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728436', 'tblTempUsageDetail_20' ) end [2025-03-21 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:46:21] Production.INFO: ==30750== Releasing lock... [2025-03-21 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-21 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:47:05 [end_date_ymd] => 2025-03-21 06:47:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:47:05' and `end` < '2025-03-21 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-21 06:47:17] Production.INFO: count ==91 [2025-03-21 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:47:05 - End Time 2025-03-21 06:47:05 [2025-03-21 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728441', 'tblTempUsageDetail_20' ) start [2025-03-21 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728441', 'tblTempUsageDetail_20' ) end [2025-03-21 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728441', 'tblTempVendorCDR_20' ) start [2025-03-21 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728441', 'tblTempVendorCDR_20' ) end [2025-03-21 06:47:17] Production.INFO: ProcessCDR(1,14728441,1,1,2) [2025-03-21 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728441', 'tblTempUsageDetail_20' ) start [2025-03-21 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728441', 'tblTempUsageDetail_20' ) end [2025-03-21 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:47:21] Production.INFO: ==30851== Releasing lock... [2025-03-21 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-21 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:48:06 [end_date_ymd] => 2025-03-21 06:48:06 [RateCDR] => 1 ) [2025-03-21 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-21 03:48:06' and `end` < '2025-03-21 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-21 06:48:18] Production.INFO: count ==92 [2025-03-21 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:48:06 - End Time 2025-03-21 06:48:06 [2025-03-21 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728446', 'tblTempUsageDetail_20' ) start [2025-03-21 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728446', 'tblTempUsageDetail_20' ) end [2025-03-21 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728446', 'tblTempVendorCDR_20' ) start [2025-03-21 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728446', 'tblTempVendorCDR_20' ) end [2025-03-21 06:48:18] Production.INFO: ProcessCDR(1,14728446,1,1,2) [2025-03-21 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728446', 'tblTempUsageDetail_20' ) start [2025-03-21 06:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728446', 'tblTempUsageDetail_20' ) end [2025-03-21 06:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:48:23] Production.INFO: ==30965== Releasing lock... [2025-03-21 06:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:48:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-21 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:49:05 [end_date_ymd] => 2025-03-21 06:49:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:49:05' and `end` < '2025-03-21 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-21 06:49:18] Production.INFO: count ==92 [2025-03-21 06:49:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:49:05 - End Time 2025-03-21 06:49:05 [2025-03-21 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728451', 'tblTempUsageDetail_20' ) start [2025-03-21 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728451', 'tblTempUsageDetail_20' ) end [2025-03-21 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728451', 'tblTempVendorCDR_20' ) start [2025-03-21 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728451', 'tblTempVendorCDR_20' ) end [2025-03-21 06:49:18] Production.INFO: ProcessCDR(1,14728451,1,1,2) [2025-03-21 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728451', 'tblTempUsageDetail_20' ) start [2025-03-21 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728451', 'tblTempUsageDetail_20' ) end [2025-03-21 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:49:21] Production.INFO: ==31087== Releasing lock... [2025-03-21 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-21 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:50:06 [end_date_ymd] => 2025-03-21 06:50:06 [RateCDR] => 1 ) [2025-03-21 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 03:50:06' and `end` < '2025-03-21 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 06:50:18] Production.INFO: count ==92 [2025-03-21 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:50:06 - End Time 2025-03-21 06:50:06 [2025-03-21 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728457', 'tblTempUsageDetail_20' ) start [2025-03-21 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728457', 'tblTempUsageDetail_20' ) end [2025-03-21 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728457', 'tblTempVendorCDR_20' ) start [2025-03-21 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728457', 'tblTempVendorCDR_20' ) end [2025-03-21 06:50:18] Production.INFO: ProcessCDR(1,14728457,1,1,2) [2025-03-21 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728457', 'tblTempUsageDetail_20' ) start [2025-03-21 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728457', 'tblTempUsageDetail_20' ) end [2025-03-21 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:50:22] Production.INFO: ==31172== Releasing lock... [2025-03-21 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-03-21 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:51:05 [end_date_ymd] => 2025-03-21 06:51:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:51:05' and `end` < '2025-03-21 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-21 06:51:17] Production.INFO: count ==92 [2025-03-21 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:51:05 - End Time 2025-03-21 06:51:05 [2025-03-21 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728462', 'tblTempUsageDetail_20' ) start [2025-03-21 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728462', 'tblTempUsageDetail_20' ) end [2025-03-21 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728462', 'tblTempVendorCDR_20' ) start [2025-03-21 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728462', 'tblTempVendorCDR_20' ) end [2025-03-21 06:51:18] Production.INFO: ProcessCDR(1,14728462,1,1,2) [2025-03-21 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728462', 'tblTempUsageDetail_20' ) start [2025-03-21 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728462', 'tblTempUsageDetail_20' ) end [2025-03-21 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:51:21] Production.INFO: ==31262== Releasing lock... [2025-03-21 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-21 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:52:06 [end_date_ymd] => 2025-03-21 06:52:06 [RateCDR] => 1 ) [2025-03-21 06: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-21 03:52:06' and `end` < '2025-03-21 06: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-21 06:52:18] Production.INFO: count ==92 [2025-03-21 06:52:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:52:06 - End Time 2025-03-21 06:52:06 [2025-03-21 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728467', 'tblTempUsageDetail_20' ) start [2025-03-21 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728467', 'tblTempUsageDetail_20' ) end [2025-03-21 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728467', 'tblTempVendorCDR_20' ) start [2025-03-21 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728467', 'tblTempVendorCDR_20' ) end [2025-03-21 06:52:18] Production.INFO: ProcessCDR(1,14728467,1,1,2) [2025-03-21 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728467', 'tblTempUsageDetail_20' ) start [2025-03-21 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728467', 'tblTempUsageDetail_20' ) end [2025-03-21 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:52:21] Production.INFO: ==31386== Releasing lock... [2025-03-21 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-21 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:53:05 [end_date_ymd] => 2025-03-21 06:53:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:53:05' and `end` < '2025-03-21 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-21 06:53:17] Production.INFO: count ==92 [2025-03-21 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:53:05 - End Time 2025-03-21 06:53:05 [2025-03-21 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728472', 'tblTempUsageDetail_20' ) start [2025-03-21 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728472', 'tblTempUsageDetail_20' ) end [2025-03-21 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728472', 'tblTempVendorCDR_20' ) start [2025-03-21 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728472', 'tblTempVendorCDR_20' ) end [2025-03-21 06:53:18] Production.INFO: ProcessCDR(1,14728472,1,1,2) [2025-03-21 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728472', 'tblTempUsageDetail_20' ) start [2025-03-21 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728472', 'tblTempUsageDetail_20' ) end [2025-03-21 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:53:21] Production.INFO: ==31471== Releasing lock... [2025-03-21 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-21 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:54:05 [end_date_ymd] => 2025-03-21 06:54:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:54:05' and `end` < '2025-03-21 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-21 06:54:18] Production.INFO: count ==92 [2025-03-21 06:54:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:54:05 - End Time 2025-03-21 06:54:05 [2025-03-21 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728477', 'tblTempUsageDetail_20' ) start [2025-03-21 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728477', 'tblTempUsageDetail_20' ) end [2025-03-21 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728477', 'tblTempVendorCDR_20' ) start [2025-03-21 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728477', 'tblTempVendorCDR_20' ) end [2025-03-21 06:54:18] Production.INFO: ProcessCDR(1,14728477,1,1,2) [2025-03-21 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728477', 'tblTempUsageDetail_20' ) start [2025-03-21 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728477', 'tblTempUsageDetail_20' ) end [2025-03-21 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:54:21] Production.INFO: ==31552== Releasing lock... [2025-03-21 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-21 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:55:06 [end_date_ymd] => 2025-03-21 06:55:06 [RateCDR] => 1 ) [2025-03-21 06:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 03:55:06' and `end` < '2025-03-21 06:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 06:55:18] Production.INFO: count ==92 [2025-03-21 06:55:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:55:06 - End Time 2025-03-21 06:55:06 [2025-03-21 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728482', 'tblTempUsageDetail_20' ) start [2025-03-21 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728482', 'tblTempUsageDetail_20' ) end [2025-03-21 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728482', 'tblTempVendorCDR_20' ) start [2025-03-21 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728482', 'tblTempVendorCDR_20' ) end [2025-03-21 06:55:18] Production.INFO: ProcessCDR(1,14728482,1,1,2) [2025-03-21 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728482', 'tblTempUsageDetail_20' ) start [2025-03-21 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728482', 'tblTempUsageDetail_20' ) end [2025-03-21 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:55:21] Production.INFO: ==31637== Releasing lock... [2025-03-21 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-21 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:56:05 [end_date_ymd] => 2025-03-21 06:56:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:56:05' and `end` < '2025-03-21 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-21 06:56:17] Production.INFO: count ==92 [2025-03-21 06:56:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:56:05 - End Time 2025-03-21 06:56:05 [2025-03-21 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728487', 'tblTempUsageDetail_20' ) start [2025-03-21 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728487', 'tblTempUsageDetail_20' ) end [2025-03-21 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728487', 'tblTempVendorCDR_20' ) start [2025-03-21 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728487', 'tblTempVendorCDR_20' ) end [2025-03-21 06:56:17] Production.INFO: ProcessCDR(1,14728487,1,1,2) [2025-03-21 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728487', 'tblTempUsageDetail_20' ) start [2025-03-21 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728487', 'tblTempUsageDetail_20' ) end [2025-03-21 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:56:21] Production.INFO: ==31726== Releasing lock... [2025-03-21 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:56:21] Production.INFO: 28.5 MB #Memory Used# [2025-03-21 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:57:05 [end_date_ymd] => 2025-03-21 06:57:05 [RateCDR] => 1 ) [2025-03-21 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-21 03:57:05' and `end` < '2025-03-21 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-21 06:57:17] Production.INFO: count ==88 [2025-03-21 06:57:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:57:05 - End Time 2025-03-21 06:57:05 [2025-03-21 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728492', 'tblTempUsageDetail_20' ) start [2025-03-21 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728492', 'tblTempUsageDetail_20' ) end [2025-03-21 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728492', 'tblTempVendorCDR_20' ) start [2025-03-21 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728492', 'tblTempVendorCDR_20' ) end [2025-03-21 06:57:17] Production.INFO: ProcessCDR(1,14728492,1,1,2) [2025-03-21 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728492', 'tblTempUsageDetail_20' ) start [2025-03-21 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728492', 'tblTempUsageDetail_20' ) end [2025-03-21 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:57:21] Production.INFO: ==31806== Releasing lock... [2025-03-21 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-21 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:58:05 [end_date_ymd] => 2025-03-21 06:58:05 [RateCDR] => 1 ) [2025-03-21 06:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 03:58:05' and `end` < '2025-03-21 06:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 06:58:18] Production.INFO: count ==91 [2025-03-21 06:58:18] Production.ERROR: pbx CDR StartTime 2025-03-21 03:58:05 - End Time 2025-03-21 06:58:05 [2025-03-21 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728497', 'tblTempUsageDetail_20' ) start [2025-03-21 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728497', 'tblTempUsageDetail_20' ) end [2025-03-21 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728497', 'tblTempVendorCDR_20' ) start [2025-03-21 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728497', 'tblTempVendorCDR_20' ) end [2025-03-21 06:58:18] Production.INFO: ProcessCDR(1,14728497,1,1,2) [2025-03-21 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728497', 'tblTempUsageDetail_20' ) start [2025-03-21 06:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728497', 'tblTempUsageDetail_20' ) end [2025-03-21 06:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:58:23] Production.INFO: ==31896== Releasing lock... [2025-03-21 06:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:58:23] Production.INFO: 28.5 MB #Memory Used# [2025-03-21 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 03:59:04 [end_date_ymd] => 2025-03-21 06:59:04 [RateCDR] => 1 ) [2025-03-21 06: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-21 03:59:04' and `end` < '2025-03-21 06: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-21 06:59:17] Production.INFO: count ==91 [2025-03-21 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-21 03:59:04 - End Time 2025-03-21 06:59:04 [2025-03-21 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728502', 'tblTempUsageDetail_20' ) start [2025-03-21 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728502', 'tblTempUsageDetail_20' ) end [2025-03-21 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728502', 'tblTempVendorCDR_20' ) start [2025-03-21 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728502', 'tblTempVendorCDR_20' ) end [2025-03-21 06:59:17] Production.INFO: ProcessCDR(1,14728502,1,1,2) [2025-03-21 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728502', 'tblTempUsageDetail_20' ) start [2025-03-21 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728502', 'tblTempUsageDetail_20' ) end [2025-03-21 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 06:59:20] Production.INFO: ==31979== Releasing lock... [2025-03-21 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 06:59:20] Production.INFO: 28.5 MB #Memory Used# [2025-03-21 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:00:06 [end_date_ymd] => 2025-03-21 07:00:06 [RateCDR] => 1 ) [2025-03-21 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-21 04:00:06' and `end` < '2025-03-21 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-21 07:00:18] Production.INFO: count ==99 [2025-03-21 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:00:06 - End Time 2025-03-21 07:00:06 [2025-03-21 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728508', 'tblTempUsageDetail_20' ) start [2025-03-21 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728508', 'tblTempUsageDetail_20' ) end [2025-03-21 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728508', 'tblTempVendorCDR_20' ) start [2025-03-21 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728508', 'tblTempVendorCDR_20' ) end [2025-03-21 07:00:18] Production.INFO: ProcessCDR(1,14728508,1,1,2) [2025-03-21 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728508', 'tblTempUsageDetail_20' ) start [2025-03-21 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728508', 'tblTempUsageDetail_20' ) end [2025-03-21 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:00:22] Production.INFO: ==32075== Releasing lock... [2025-03-21 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:00:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-21 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:01:05 [end_date_ymd] => 2025-03-21 07:01:05 [RateCDR] => 1 ) [2025-03-21 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 04:01:05' and `end` < '2025-03-21 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 07:01:18] Production.INFO: count ==103 [2025-03-21 07:01:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:01:05 - End Time 2025-03-21 07:01:05 [2025-03-21 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728513', 'tblTempUsageDetail_20' ) start [2025-03-21 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728513', 'tblTempUsageDetail_20' ) end [2025-03-21 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728513', 'tblTempVendorCDR_20' ) start [2025-03-21 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728513', 'tblTempVendorCDR_20' ) end [2025-03-21 07:01:18] Production.INFO: ProcessCDR(1,14728513,1,1,2) [2025-03-21 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728513', 'tblTempUsageDetail_20' ) start [2025-03-21 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728513', 'tblTempUsageDetail_20' ) end [2025-03-21 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:01:21] Production.INFO: ==32173== Releasing lock... [2025-03-21 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:01:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:02:06 [end_date_ymd] => 2025-03-21 07:02:06 [RateCDR] => 1 ) [2025-03-21 07:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 04:02:06' and `end` < '2025-03-21 07:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 07:02:19] Production.INFO: count ==103 [2025-03-21 07:02:19] Production.ERROR: pbx CDR StartTime 2025-03-21 04:02:06 - End Time 2025-03-21 07:02:06 [2025-03-21 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728518', 'tblTempUsageDetail_20' ) start [2025-03-21 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728518', 'tblTempUsageDetail_20' ) end [2025-03-21 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728518', 'tblTempVendorCDR_20' ) start [2025-03-21 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728518', 'tblTempVendorCDR_20' ) end [2025-03-21 07:02:19] Production.INFO: ProcessCDR(1,14728518,1,1,2) [2025-03-21 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728518', 'tblTempUsageDetail_20' ) start [2025-03-21 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728518', 'tblTempUsageDetail_20' ) end [2025-03-21 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:02:23] Production.INFO: ==32334== Releasing lock... [2025-03-21 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:02:23] Production.INFO: 29 MB #Memory Used# [2025-03-21 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:03:05 [end_date_ymd] => 2025-03-21 07:03:05 [RateCDR] => 1 ) [2025-03-21 07: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-21 04:03:05' and `end` < '2025-03-21 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-21 07:03:18] Production.INFO: count ==103 [2025-03-21 07:03:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:03:05 - End Time 2025-03-21 07:03:05 [2025-03-21 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728523', 'tblTempUsageDetail_20' ) start [2025-03-21 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728523', 'tblTempUsageDetail_20' ) end [2025-03-21 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728523', 'tblTempVendorCDR_20' ) start [2025-03-21 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728523', 'tblTempVendorCDR_20' ) end [2025-03-21 07:03:18] Production.INFO: ProcessCDR(1,14728523,1,1,2) [2025-03-21 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728523', 'tblTempUsageDetail_20' ) start [2025-03-21 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728523', 'tblTempUsageDetail_20' ) end [2025-03-21 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:03:22] Production.INFO: ==32418== Releasing lock... [2025-03-21 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:03:22] Production.INFO: 29 MB #Memory Used# [2025-03-21 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:04:06 [end_date_ymd] => 2025-03-21 07:04:06 [RateCDR] => 1 ) [2025-03-21 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-21 04:04:06' and `end` < '2025-03-21 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-21 07:04:19] Production.INFO: count ==103 [2025-03-21 07:04:19] Production.ERROR: pbx CDR StartTime 2025-03-21 04:04:06 - End Time 2025-03-21 07:04:06 [2025-03-21 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728528', 'tblTempUsageDetail_20' ) start [2025-03-21 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728528', 'tblTempUsageDetail_20' ) end [2025-03-21 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728528', 'tblTempVendorCDR_20' ) start [2025-03-21 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728528', 'tblTempVendorCDR_20' ) end [2025-03-21 07:04:19] Production.INFO: ProcessCDR(1,14728528,1,1,2) [2025-03-21 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728528', 'tblTempUsageDetail_20' ) start [2025-03-21 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728528', 'tblTempUsageDetail_20' ) end [2025-03-21 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:04:22] Production.INFO: ==32509== Releasing lock... [2025-03-21 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:04:22] Production.INFO: 29 MB #Memory Used# [2025-03-21 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:05:05 [end_date_ymd] => 2025-03-21 07:05:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:05:05' and `end` < '2025-03-21 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-21 07:05:18] Production.INFO: count ==103 [2025-03-21 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:05:05 - End Time 2025-03-21 07:05:05 [2025-03-21 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728533', 'tblTempUsageDetail_20' ) start [2025-03-21 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728533', 'tblTempUsageDetail_20' ) end [2025-03-21 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728533', 'tblTempVendorCDR_20' ) start [2025-03-21 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728533', 'tblTempVendorCDR_20' ) end [2025-03-21 07:05:18] Production.INFO: ProcessCDR(1,14728533,1,1,2) [2025-03-21 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728533', 'tblTempUsageDetail_20' ) start [2025-03-21 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728533', 'tblTempUsageDetail_20' ) end [2025-03-21 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:05:22] Production.INFO: ==32677== Releasing lock... [2025-03-21 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:05:22] Production.INFO: 29 MB #Memory Used# [2025-03-21 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:06:05 [end_date_ymd] => 2025-03-21 07:06:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:06:05' and `end` < '2025-03-21 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-21 07:06:18] Production.INFO: count ==103 [2025-03-21 07:06:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:06:05 - End Time 2025-03-21 07:06:05 [2025-03-21 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728538', 'tblTempUsageDetail_20' ) start [2025-03-21 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728538', 'tblTempUsageDetail_20' ) end [2025-03-21 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728538', 'tblTempVendorCDR_20' ) start [2025-03-21 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728538', 'tblTempVendorCDR_20' ) end [2025-03-21 07:06:18] Production.INFO: ProcessCDR(1,14728538,1,1,2) [2025-03-21 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728538', 'tblTempUsageDetail_20' ) start [2025-03-21 07:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728538', 'tblTempUsageDetail_20' ) end [2025-03-21 07:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:06:21] Production.INFO: ==32766== Releasing lock... [2025-03-21 07:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:06:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:07:06 [end_date_ymd] => 2025-03-21 07:07:06 [RateCDR] => 1 ) [2025-03-21 07: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-21 04:07:06' and `end` < '2025-03-21 07: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-21 07:07:18] Production.INFO: count ==103 [2025-03-21 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:07:06 - End Time 2025-03-21 07:07:06 [2025-03-21 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728543', 'tblTempUsageDetail_20' ) start [2025-03-21 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728543', 'tblTempUsageDetail_20' ) end [2025-03-21 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728543', 'tblTempVendorCDR_20' ) start [2025-03-21 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728543', 'tblTempVendorCDR_20' ) end [2025-03-21 07:07:18] Production.INFO: ProcessCDR(1,14728543,1,1,2) [2025-03-21 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728543', 'tblTempUsageDetail_20' ) start [2025-03-21 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728543', 'tblTempUsageDetail_20' ) end [2025-03-21 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:07:21] Production.INFO: ==441== Releasing lock... [2025-03-21 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:07:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:08:05 [end_date_ymd] => 2025-03-21 07:08:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:08:05' and `end` < '2025-03-21 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-21 07:08:18] Production.INFO: count ==108 [2025-03-21 07:08:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:08:05 - End Time 2025-03-21 07:08:05 [2025-03-21 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728548', 'tblTempUsageDetail_20' ) start [2025-03-21 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728548', 'tblTempUsageDetail_20' ) end [2025-03-21 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728548', 'tblTempVendorCDR_20' ) start [2025-03-21 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728548', 'tblTempVendorCDR_20' ) end [2025-03-21 07:08:18] Production.INFO: ProcessCDR(1,14728548,1,1,2) [2025-03-21 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728548', 'tblTempUsageDetail_20' ) start [2025-03-21 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728548', 'tblTempUsageDetail_20' ) end [2025-03-21 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:08:22] Production.INFO: ==574== Releasing lock... [2025-03-21 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:09:05 [end_date_ymd] => 2025-03-21 07:09:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:09:05' and `end` < '2025-03-21 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-21 07:09:17] Production.INFO: count ==108 [2025-03-21 07:09:17] Production.ERROR: pbx CDR StartTime 2025-03-21 04:09:05 - End Time 2025-03-21 07:09:05 [2025-03-21 07:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728553', 'tblTempUsageDetail_20' ) start [2025-03-21 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728553', 'tblTempUsageDetail_20' ) end [2025-03-21 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728553', 'tblTempVendorCDR_20' ) start [2025-03-21 07:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728553', 'tblTempVendorCDR_20' ) end [2025-03-21 07:09:17] Production.INFO: ProcessCDR(1,14728553,1,1,2) [2025-03-21 07:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728553', 'tblTempUsageDetail_20' ) start [2025-03-21 07:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728553', 'tblTempUsageDetail_20' ) end [2025-03-21 07:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:09:21] Production.INFO: ==731== Releasing lock... [2025-03-21 07:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:10:06 [end_date_ymd] => 2025-03-21 07:10:06 [RateCDR] => 1 ) [2025-03-21 07:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 04:10:06' and `end` < '2025-03-21 07:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 07:10:19] Production.INFO: count ==104 [2025-03-21 07:10:19] Production.ERROR: pbx CDR StartTime 2025-03-21 04:10:06 - End Time 2025-03-21 07:10:06 [2025-03-21 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728559', 'tblTempUsageDetail_20' ) start [2025-03-21 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728559', 'tblTempUsageDetail_20' ) end [2025-03-21 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728559', 'tblTempVendorCDR_20' ) start [2025-03-21 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728559', 'tblTempVendorCDR_20' ) end [2025-03-21 07:10:19] Production.INFO: ProcessCDR(1,14728559,1,1,2) [2025-03-21 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728559', 'tblTempUsageDetail_20' ) start [2025-03-21 07:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728559', 'tblTempUsageDetail_20' ) end [2025-03-21 07:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:10:22] Production.INFO: ==821== Releasing lock... [2025-03-21 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:10:22] Production.INFO: 29 MB #Memory Used# [2025-03-21 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:11:05 [end_date_ymd] => 2025-03-21 07:11:05 [RateCDR] => 1 ) [2025-03-21 07:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 04:11:05' and `end` < '2025-03-21 07:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 07:11:17] Production.INFO: count ==104 [2025-03-21 07:11:17] Production.ERROR: pbx CDR StartTime 2025-03-21 04:11:05 - End Time 2025-03-21 07:11:05 [2025-03-21 07:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728564', 'tblTempUsageDetail_20' ) start [2025-03-21 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728564', 'tblTempUsageDetail_20' ) end [2025-03-21 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728564', 'tblTempVendorCDR_20' ) start [2025-03-21 07:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728564', 'tblTempVendorCDR_20' ) end [2025-03-21 07:11:17] Production.INFO: ProcessCDR(1,14728564,1,1,2) [2025-03-21 07:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728564', 'tblTempUsageDetail_20' ) start [2025-03-21 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728564', 'tblTempUsageDetail_20' ) end [2025-03-21 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:11:21] Production.INFO: ==911== Releasing lock... [2025-03-21 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:11:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:12:05 [end_date_ymd] => 2025-03-21 07:12:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:12:05' and `end` < '2025-03-21 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-21 07:12:18] Production.INFO: count ==104 [2025-03-21 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:12:05 - End Time 2025-03-21 07:12:05 [2025-03-21 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728569', 'tblTempUsageDetail_20' ) start [2025-03-21 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728569', 'tblTempUsageDetail_20' ) end [2025-03-21 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728569', 'tblTempVendorCDR_20' ) start [2025-03-21 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728569', 'tblTempVendorCDR_20' ) end [2025-03-21 07:12:18] Production.INFO: ProcessCDR(1,14728569,1,1,2) [2025-03-21 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728569', 'tblTempUsageDetail_20' ) start [2025-03-21 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728569', 'tblTempUsageDetail_20' ) end [2025-03-21 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:12:21] Production.INFO: ==1082== Releasing lock... [2025-03-21 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:12:21] Production.INFO: 29 MB #Memory Used# [2025-03-21 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:13:05 [end_date_ymd] => 2025-03-21 07:13:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:13:05' and `end` < '2025-03-21 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-21 07:13:17] Production.INFO: count ==104 [2025-03-21 07:13:17] Production.ERROR: pbx CDR StartTime 2025-03-21 04:13:05 - End Time 2025-03-21 07:13:05 [2025-03-21 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728574', 'tblTempUsageDetail_20' ) start [2025-03-21 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728574', 'tblTempUsageDetail_20' ) end [2025-03-21 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728574', 'tblTempVendorCDR_20' ) start [2025-03-21 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728574', 'tblTempVendorCDR_20' ) end [2025-03-21 07:13:17] Production.INFO: ProcessCDR(1,14728574,1,1,2) [2025-03-21 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728574', 'tblTempUsageDetail_20' ) start [2025-03-21 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728574', 'tblTempUsageDetail_20' ) end [2025-03-21 07:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:13:20] Production.INFO: ==1163== Releasing lock... [2025-03-21 07:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:13:20] Production.INFO: 29 MB #Memory Used# [2025-03-21 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:14:06 [end_date_ymd] => 2025-03-21 07:14:06 [RateCDR] => 1 ) [2025-03-21 07: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-21 04:14:06' and `end` < '2025-03-21 07: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-21 07:14:18] Production.INFO: count ==104 [2025-03-21 07:14:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:14:06 - End Time 2025-03-21 07:14:06 [2025-03-21 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728579', 'tblTempUsageDetail_20' ) start [2025-03-21 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728579', 'tblTempUsageDetail_20' ) end [2025-03-21 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728579', 'tblTempVendorCDR_20' ) start [2025-03-21 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728579', 'tblTempVendorCDR_20' ) end [2025-03-21 07:14:18] Production.INFO: ProcessCDR(1,14728579,1,1,2) [2025-03-21 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728579', 'tblTempUsageDetail_20' ) start [2025-03-21 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728579', 'tblTempUsageDetail_20' ) end [2025-03-21 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:14:22] Production.INFO: ==1266== Releasing lock... [2025-03-21 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:14:22] Production.INFO: 29 MB #Memory Used# [2025-03-21 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:15:06 [end_date_ymd] => 2025-03-21 07:15:06 [RateCDR] => 1 ) [2025-03-21 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-21 04:15:06' and `end` < '2025-03-21 07: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-21 07:15:19] Production.INFO: count ==104 [2025-03-21 07:15:19] Production.ERROR: pbx CDR StartTime 2025-03-21 04:15:06 - End Time 2025-03-21 07:15:06 [2025-03-21 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728584', 'tblTempUsageDetail_20' ) start [2025-03-21 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728584', 'tblTempUsageDetail_20' ) end [2025-03-21 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728584', 'tblTempVendorCDR_20' ) start [2025-03-21 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728584', 'tblTempVendorCDR_20' ) end [2025-03-21 07:15:19] Production.INFO: ProcessCDR(1,14728584,1,1,2) [2025-03-21 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728584', 'tblTempUsageDetail_20' ) start [2025-03-21 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728584', 'tblTempUsageDetail_20' ) end [2025-03-21 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:15:23] Production.INFO: ==1425== Releasing lock... [2025-03-21 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:15:23] Production.INFO: 29 MB #Memory Used# [2025-03-21 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:16:05 [end_date_ymd] => 2025-03-21 07:16:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:16:05' and `end` < '2025-03-21 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-21 07:16:18] Production.INFO: count ==123 [2025-03-21 07:16:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:16:05 - End Time 2025-03-21 07:16:05 [2025-03-21 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728589', 'tblTempUsageDetail_20' ) start [2025-03-21 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728589', 'tblTempUsageDetail_20' ) end [2025-03-21 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728589', 'tblTempVendorCDR_20' ) start [2025-03-21 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728589', 'tblTempVendorCDR_20' ) end [2025-03-21 07:16:18] Production.INFO: ProcessCDR(1,14728589,1,1,2) [2025-03-21 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728589', 'tblTempUsageDetail_20' ) start [2025-03-21 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728589', 'tblTempUsageDetail_20' ) end [2025-03-21 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:16:21] Production.INFO: ==1544== Releasing lock... [2025-03-21 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:16:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:17:05 [end_date_ymd] => 2025-03-21 07:17:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:17:05' and `end` < '2025-03-21 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-21 07:17:18] Production.INFO: count ==123 [2025-03-21 07:17:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:17:05 - End Time 2025-03-21 07:17:05 [2025-03-21 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728594', 'tblTempUsageDetail_20' ) start [2025-03-21 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728594', 'tblTempUsageDetail_20' ) end [2025-03-21 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728594', 'tblTempVendorCDR_20' ) start [2025-03-21 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728594', 'tblTempVendorCDR_20' ) end [2025-03-21 07:17:18] Production.INFO: ProcessCDR(1,14728594,1,1,2) [2025-03-21 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728594', 'tblTempUsageDetail_20' ) start [2025-03-21 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728594', 'tblTempUsageDetail_20' ) end [2025-03-21 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:17:21] Production.INFO: ==1640== Releasing lock... [2025-03-21 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:18:06 [end_date_ymd] => 2025-03-21 07:18:06 [RateCDR] => 1 ) [2025-03-21 07: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-21 04:18:06' and `end` < '2025-03-21 07: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-21 07:18:18] Production.INFO: count ==126 [2025-03-21 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:18:06 - End Time 2025-03-21 07:18:06 [2025-03-21 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728599', 'tblTempUsageDetail_20' ) start [2025-03-21 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728599', 'tblTempUsageDetail_20' ) end [2025-03-21 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728599', 'tblTempVendorCDR_20' ) start [2025-03-21 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728599', 'tblTempVendorCDR_20' ) end [2025-03-21 07:18:18] Production.INFO: ProcessCDR(1,14728599,1,1,2) [2025-03-21 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728599', 'tblTempUsageDetail_20' ) start [2025-03-21 07:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728599', 'tblTempUsageDetail_20' ) end [2025-03-21 07:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:18:24] Production.INFO: ==1728== Releasing lock... [2025-03-21 07:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:18:24] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:19:05 [end_date_ymd] => 2025-03-21 07:19:05 [RateCDR] => 1 ) [2025-03-21 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 04:19:05' and `end` < '2025-03-21 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 07:19:18] Production.INFO: count ==129 [2025-03-21 07:19:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:19:05 - End Time 2025-03-21 07:19:05 [2025-03-21 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728604', 'tblTempUsageDetail_20' ) start [2025-03-21 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728604', 'tblTempUsageDetail_20' ) end [2025-03-21 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728604', 'tblTempVendorCDR_20' ) start [2025-03-21 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728604', 'tblTempVendorCDR_20' ) end [2025-03-21 07:19:18] Production.INFO: ProcessCDR(1,14728604,1,1,2) [2025-03-21 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728604', 'tblTempUsageDetail_20' ) start [2025-03-21 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728604', 'tblTempUsageDetail_20' ) end [2025-03-21 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:19:22] Production.INFO: ==1819== Releasing lock... [2025-03-21 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 07:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:20:07 [end_date_ymd] => 2025-03-21 07:20:07 [RateCDR] => 1 ) [2025-03-21 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-21 04:20:07' and `end` < '2025-03-21 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-21 07:20:19] Production.INFO: count ==137 [2025-03-21 07:20:19] Production.ERROR: pbx CDR StartTime 2025-03-21 04:20:07 - End Time 2025-03-21 07:20:07 [2025-03-21 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728610', 'tblTempUsageDetail_20' ) start [2025-03-21 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728610', 'tblTempUsageDetail_20' ) end [2025-03-21 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728610', 'tblTempVendorCDR_20' ) start [2025-03-21 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728610', 'tblTempVendorCDR_20' ) end [2025-03-21 07:20:19] Production.INFO: ProcessCDR(1,14728610,1,1,2) [2025-03-21 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728610', 'tblTempUsageDetail_20' ) start [2025-03-21 07:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728610', 'tblTempUsageDetail_20' ) end [2025-03-21 07:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:20:24] Production.INFO: ==1911== Releasing lock... [2025-03-21 07:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:20:24] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:21:06 [end_date_ymd] => 2025-03-21 07:21:06 [RateCDR] => 1 ) [2025-03-21 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-21 04:21:06' and `end` < '2025-03-21 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-21 07:21:18] Production.INFO: count ==138 [2025-03-21 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:21:06 - End Time 2025-03-21 07:21:06 [2025-03-21 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728615', 'tblTempUsageDetail_20' ) start [2025-03-21 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728615', 'tblTempUsageDetail_20' ) end [2025-03-21 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728615', 'tblTempVendorCDR_20' ) start [2025-03-21 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728615', 'tblTempVendorCDR_20' ) end [2025-03-21 07:21:18] Production.INFO: ProcessCDR(1,14728615,1,1,2) [2025-03-21 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728615', 'tblTempUsageDetail_20' ) start [2025-03-21 07:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728615', 'tblTempUsageDetail_20' ) end [2025-03-21 07:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:21:24] Production.INFO: ==2008== Releasing lock... [2025-03-21 07:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:21:24] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:22:06 [end_date_ymd] => 2025-03-21 07:22:06 [RateCDR] => 1 ) [2025-03-21 07: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-21 04:22:06' and `end` < '2025-03-21 07: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-21 07:22:18] Production.INFO: count ==141 [2025-03-21 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:22:06 - End Time 2025-03-21 07:22:06 [2025-03-21 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728620', 'tblTempUsageDetail_20' ) start [2025-03-21 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728620', 'tblTempUsageDetail_20' ) end [2025-03-21 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728620', 'tblTempVendorCDR_20' ) start [2025-03-21 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728620', 'tblTempVendorCDR_20' ) end [2025-03-21 07:22:18] Production.INFO: ProcessCDR(1,14728620,1,1,2) [2025-03-21 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728620', 'tblTempUsageDetail_20' ) start [2025-03-21 07:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728620', 'tblTempUsageDetail_20' ) end [2025-03-21 07:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:22:24] Production.INFO: ==2142== Releasing lock... [2025-03-21 07:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:22:24] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:23:05 [end_date_ymd] => 2025-03-21 07:23:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:23:05' and `end` < '2025-03-21 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-21 07:23:18] Production.INFO: count ==144 [2025-03-21 07:23:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:23:05 - End Time 2025-03-21 07:23:05 [2025-03-21 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728625', 'tblTempUsageDetail_20' ) start [2025-03-21 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728625', 'tblTempUsageDetail_20' ) end [2025-03-21 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728625', 'tblTempVendorCDR_20' ) start [2025-03-21 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728625', 'tblTempVendorCDR_20' ) end [2025-03-21 07:23:18] Production.INFO: ProcessCDR(1,14728625,1,1,2) [2025-03-21 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728625', 'tblTempUsageDetail_20' ) start [2025-03-21 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728625', 'tblTempUsageDetail_20' ) end [2025-03-21 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:23:21] Production.INFO: ==2245== Releasing lock... [2025-03-21 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-21 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:24:06 [end_date_ymd] => 2025-03-21 07:24:06 [RateCDR] => 1 ) [2025-03-21 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-21 04:24:06' and `end` < '2025-03-21 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-21 07:24:18] Production.INFO: count ==149 [2025-03-21 07:24:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:24:06 - End Time 2025-03-21 07:24:06 [2025-03-21 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728630', 'tblTempUsageDetail_20' ) start [2025-03-21 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728630', 'tblTempUsageDetail_20' ) end [2025-03-21 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728630', 'tblTempVendorCDR_20' ) start [2025-03-21 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728630', 'tblTempVendorCDR_20' ) end [2025-03-21 07:24:18] Production.INFO: ProcessCDR(1,14728630,1,1,2) [2025-03-21 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728630', 'tblTempUsageDetail_20' ) start [2025-03-21 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728630', 'tblTempUsageDetail_20' ) end [2025-03-21 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:24:22] Production.INFO: ==2342== Releasing lock... [2025-03-21 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:24:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:25:05 [end_date_ymd] => 2025-03-21 07:25:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:25:05' and `end` < '2025-03-21 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-21 07:25:17] Production.INFO: count ==149 [2025-03-21 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-21 04:25:05 - End Time 2025-03-21 07:25:05 [2025-03-21 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728635', 'tblTempUsageDetail_20' ) start [2025-03-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728635', 'tblTempUsageDetail_20' ) end [2025-03-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728635', 'tblTempVendorCDR_20' ) start [2025-03-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728635', 'tblTempVendorCDR_20' ) end [2025-03-21 07:25:17] Production.INFO: ProcessCDR(1,14728635,1,1,2) [2025-03-21 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728635', 'tblTempUsageDetail_20' ) start [2025-03-21 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728635', 'tblTempUsageDetail_20' ) end [2025-03-21 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:25:21] Production.INFO: ==2439== Releasing lock... [2025-03-21 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 07:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:26:06 [end_date_ymd] => 2025-03-21 07:26:06 [RateCDR] => 1 ) [2025-03-21 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-21 04:26:06' and `end` < '2025-03-21 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-21 07:26:18] Production.INFO: count ==150 [2025-03-21 07:26:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:26:06 - End Time 2025-03-21 07:26:06 [2025-03-21 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728640', 'tblTempUsageDetail_20' ) start [2025-03-21 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728640', 'tblTempUsageDetail_20' ) end [2025-03-21 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728640', 'tblTempVendorCDR_20' ) start [2025-03-21 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728640', 'tblTempVendorCDR_20' ) end [2025-03-21 07:26:18] Production.INFO: ProcessCDR(1,14728640,1,1,2) [2025-03-21 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728640', 'tblTempUsageDetail_20' ) start [2025-03-21 07:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728640', 'tblTempUsageDetail_20' ) end [2025-03-21 07:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:26:24] Production.INFO: ==2532== Releasing lock... [2025-03-21 07:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:26:24] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:27:05 [end_date_ymd] => 2025-03-21 07:27:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:27:05' and `end` < '2025-03-21 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-21 07:27:17] Production.INFO: count ==150 [2025-03-21 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-21 04:27:05 - End Time 2025-03-21 07:27:05 [2025-03-21 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728645', 'tblTempUsageDetail_20' ) start [2025-03-21 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728645', 'tblTempUsageDetail_20' ) end [2025-03-21 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728645', 'tblTempVendorCDR_20' ) start [2025-03-21 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728645', 'tblTempVendorCDR_20' ) end [2025-03-21 07:27:17] Production.INFO: ProcessCDR(1,14728645,1,1,2) [2025-03-21 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728645', 'tblTempUsageDetail_20' ) start [2025-03-21 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728645', 'tblTempUsageDetail_20' ) end [2025-03-21 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:27:21] Production.INFO: ==2623== Releasing lock... [2025-03-21 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:28:06 [end_date_ymd] => 2025-03-21 07:28:06 [RateCDR] => 1 ) [2025-03-21 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-21 04:28:06' and `end` < '2025-03-21 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-21 07:28:18] Production.INFO: count ==150 [2025-03-21 07:28:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:28:06 - End Time 2025-03-21 07:28:06 [2025-03-21 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728650', 'tblTempUsageDetail_20' ) start [2025-03-21 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728650', 'tblTempUsageDetail_20' ) end [2025-03-21 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728650', 'tblTempVendorCDR_20' ) start [2025-03-21 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728650', 'tblTempVendorCDR_20' ) end [2025-03-21 07:28:18] Production.INFO: ProcessCDR(1,14728650,1,1,2) [2025-03-21 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728650', 'tblTempUsageDetail_20' ) start [2025-03-21 07:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728650', 'tblTempUsageDetail_20' ) end [2025-03-21 07:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:28:22] Production.INFO: ==2724== Releasing lock... [2025-03-21 07:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:28:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:29:06 [end_date_ymd] => 2025-03-21 07:29:06 [RateCDR] => 1 ) [2025-03-21 07: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-21 04:29:06' and `end` < '2025-03-21 07: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-21 07:29:18] Production.INFO: count ==150 [2025-03-21 07:29:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:29:06 - End Time 2025-03-21 07:29:06 [2025-03-21 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728655', 'tblTempUsageDetail_20' ) start [2025-03-21 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728655', 'tblTempUsageDetail_20' ) end [2025-03-21 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728655', 'tblTempVendorCDR_20' ) start [2025-03-21 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728655', 'tblTempVendorCDR_20' ) end [2025-03-21 07:29:18] Production.INFO: ProcessCDR(1,14728655,1,1,2) [2025-03-21 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728655', 'tblTempUsageDetail_20' ) start [2025-03-21 07:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728655', 'tblTempUsageDetail_20' ) end [2025-03-21 07:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:29:22] Production.INFO: ==2818== Releasing lock... [2025-03-21 07:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:29:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:30:07 [end_date_ymd] => 2025-03-21 07:30:07 [RateCDR] => 1 ) [2025-03-21 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-21 04:30:07' and `end` < '2025-03-21 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-21 07:30:19] Production.INFO: count ==148 [2025-03-21 07:30:19] Production.ERROR: pbx CDR StartTime 2025-03-21 04:30:07 - End Time 2025-03-21 07:30:07 [2025-03-21 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728661', 'tblTempUsageDetail_20' ) start [2025-03-21 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728661', 'tblTempUsageDetail_20' ) end [2025-03-21 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728661', 'tblTempVendorCDR_20' ) start [2025-03-21 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728661', 'tblTempVendorCDR_20' ) end [2025-03-21 07:30:19] Production.INFO: ProcessCDR(1,14728661,1,1,2) [2025-03-21 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728661', 'tblTempUsageDetail_20' ) start [2025-03-21 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728661', 'tblTempUsageDetail_20' ) end [2025-03-21 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:30:23] Production.INFO: ==2912== Releasing lock... [2025-03-21 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:30:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:31:05 [end_date_ymd] => 2025-03-21 07:31:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:31:05' and `end` < '2025-03-21 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-21 07:31:17] Production.INFO: count ==148 [2025-03-21 07:31:17] Production.ERROR: pbx CDR StartTime 2025-03-21 04:31:05 - End Time 2025-03-21 07:31:05 [2025-03-21 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728666', 'tblTempUsageDetail_20' ) start [2025-03-21 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728666', 'tblTempUsageDetail_20' ) end [2025-03-21 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728666', 'tblTempVendorCDR_20' ) start [2025-03-21 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728666', 'tblTempVendorCDR_20' ) end [2025-03-21 07:31:17] Production.INFO: ProcessCDR(1,14728666,1,1,2) [2025-03-21 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728666', 'tblTempUsageDetail_20' ) start [2025-03-21 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728666', 'tblTempUsageDetail_20' ) end [2025-03-21 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:31:21] Production.INFO: ==3012== Releasing lock... [2025-03-21 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:32:05 [end_date_ymd] => 2025-03-21 07:32:05 [RateCDR] => 1 ) [2025-03-21 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 04:32:05' and `end` < '2025-03-21 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 07:32:18] Production.INFO: count ==154 [2025-03-21 07:32:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:32:05 - End Time 2025-03-21 07:32:05 [2025-03-21 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728671', 'tblTempUsageDetail_20' ) start [2025-03-21 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728671', 'tblTempUsageDetail_20' ) end [2025-03-21 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728671', 'tblTempVendorCDR_20' ) start [2025-03-21 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728671', 'tblTempVendorCDR_20' ) end [2025-03-21 07:32:18] Production.INFO: ProcessCDR(1,14728671,1,1,2) [2025-03-21 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728671', 'tblTempUsageDetail_20' ) start [2025-03-21 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728671', 'tblTempUsageDetail_20' ) end [2025-03-21 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:32:22] Production.INFO: ==3102== Releasing lock... [2025-03-21 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:32:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-21 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:33:05 [end_date_ymd] => 2025-03-21 07:33:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:33:05' and `end` < '2025-03-21 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-21 07:33:18] Production.INFO: count ==154 [2025-03-21 07:33:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:33:05 - End Time 2025-03-21 07:33:05 [2025-03-21 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728676', 'tblTempUsageDetail_20' ) start [2025-03-21 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728676', 'tblTempUsageDetail_20' ) end [2025-03-21 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728676', 'tblTempVendorCDR_20' ) start [2025-03-21 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728676', 'tblTempVendorCDR_20' ) end [2025-03-21 07:33:18] Production.INFO: ProcessCDR(1,14728676,1,1,2) [2025-03-21 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728676', 'tblTempUsageDetail_20' ) start [2025-03-21 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728676', 'tblTempUsageDetail_20' ) end [2025-03-21 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:33:21] Production.INFO: ==3196== Releasing lock... [2025-03-21 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:33:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-21 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:34:06 [end_date_ymd] => 2025-03-21 07:34:06 [RateCDR] => 1 ) [2025-03-21 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-21 04:34:06' and `end` < '2025-03-21 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-21 07:34:18] Production.INFO: count ==155 [2025-03-21 07:34:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:34:06 - End Time 2025-03-21 07:34:06 [2025-03-21 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728681', 'tblTempUsageDetail_20' ) start [2025-03-21 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728681', 'tblTempUsageDetail_20' ) end [2025-03-21 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728681', 'tblTempVendorCDR_20' ) start [2025-03-21 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728681', 'tblTempVendorCDR_20' ) end [2025-03-21 07:34:18] Production.INFO: ProcessCDR(1,14728681,1,1,2) [2025-03-21 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728681', 'tblTempUsageDetail_20' ) start [2025-03-21 07:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728681', 'tblTempUsageDetail_20' ) end [2025-03-21 07:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:34:24] Production.INFO: ==3289== Releasing lock... [2025-03-21 07:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:34:24] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:35:05 [end_date_ymd] => 2025-03-21 07:35:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:35:05' and `end` < '2025-03-21 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-21 07:35:17] Production.INFO: count ==156 [2025-03-21 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-21 04:35:05 - End Time 2025-03-21 07:35:05 [2025-03-21 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728686', 'tblTempUsageDetail_20' ) start [2025-03-21 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728686', 'tblTempUsageDetail_20' ) end [2025-03-21 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728686', 'tblTempVendorCDR_20' ) start [2025-03-21 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728686', 'tblTempVendorCDR_20' ) end [2025-03-21 07:35:17] Production.INFO: ProcessCDR(1,14728686,1,1,2) [2025-03-21 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728686', 'tblTempUsageDetail_20' ) start [2025-03-21 07:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728686', 'tblTempUsageDetail_20' ) end [2025-03-21 07:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:35:23] Production.INFO: ==3376== Releasing lock... [2025-03-21 07:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:35:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-21 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:36:05 [end_date_ymd] => 2025-03-21 07:36:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:36:05' and `end` < '2025-03-21 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-21 07:36:17] Production.INFO: count ==162 [2025-03-21 07:36:17] Production.ERROR: pbx CDR StartTime 2025-03-21 04:36:05 - End Time 2025-03-21 07:36:05 [2025-03-21 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728691', 'tblTempUsageDetail_20' ) start [2025-03-21 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728691', 'tblTempUsageDetail_20' ) end [2025-03-21 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728691', 'tblTempVendorCDR_20' ) start [2025-03-21 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728691', 'tblTempVendorCDR_20' ) end [2025-03-21 07:36:17] Production.INFO: ProcessCDR(1,14728691,1,1,2) [2025-03-21 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728691', 'tblTempUsageDetail_20' ) start [2025-03-21 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728691', 'tblTempUsageDetail_20' ) end [2025-03-21 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:36:21] Production.INFO: ==3475== Releasing lock... [2025-03-21 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:36:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:37:06 [end_date_ymd] => 2025-03-21 07:37:06 [RateCDR] => 1 ) [2025-03-21 07: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-21 04:37:06' and `end` < '2025-03-21 07: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-21 07:37:18] Production.INFO: count ==169 [2025-03-21 07:37:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:37:06 - End Time 2025-03-21 07:37:06 [2025-03-21 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728696', 'tblTempUsageDetail_20' ) start [2025-03-21 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728696', 'tblTempUsageDetail_20' ) end [2025-03-21 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728696', 'tblTempVendorCDR_20' ) start [2025-03-21 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728696', 'tblTempVendorCDR_20' ) end [2025-03-21 07:37:18] Production.INFO: ProcessCDR(1,14728696,1,1,2) [2025-03-21 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728696', 'tblTempUsageDetail_20' ) start [2025-03-21 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728696', 'tblTempUsageDetail_20' ) end [2025-03-21 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:37:22] Production.INFO: ==3579== Releasing lock... [2025-03-21 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:37:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-21 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:38:05 [end_date_ymd] => 2025-03-21 07:38:05 [RateCDR] => 1 ) [2025-03-21 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 04:38:05' and `end` < '2025-03-21 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 07:38:17] Production.INFO: count ==169 [2025-03-21 07:38:17] Production.ERROR: pbx CDR StartTime 2025-03-21 04:38:05 - End Time 2025-03-21 07:38:05 [2025-03-21 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728701', 'tblTempUsageDetail_20' ) start [2025-03-21 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728701', 'tblTempUsageDetail_20' ) end [2025-03-21 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728701', 'tblTempVendorCDR_20' ) start [2025-03-21 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728701', 'tblTempVendorCDR_20' ) end [2025-03-21 07:38:17] Production.INFO: ProcessCDR(1,14728701,1,1,2) [2025-03-21 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728701', 'tblTempUsageDetail_20' ) start [2025-03-21 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728701', 'tblTempUsageDetail_20' ) end [2025-03-21 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:38:21] Production.INFO: ==3719== Releasing lock... [2025-03-21 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-21 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:39:06 [end_date_ymd] => 2025-03-21 07:39:06 [RateCDR] => 1 ) [2025-03-21 07: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-21 04:39:06' and `end` < '2025-03-21 07: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-21 07:39:18] Production.INFO: count ==170 [2025-03-21 07:39:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:39:06 - End Time 2025-03-21 07:39:06 [2025-03-21 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728706', 'tblTempUsageDetail_20' ) start [2025-03-21 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728706', 'tblTempUsageDetail_20' ) end [2025-03-21 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728706', 'tblTempVendorCDR_20' ) start [2025-03-21 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728706', 'tblTempVendorCDR_20' ) end [2025-03-21 07:39:18] Production.INFO: ProcessCDR(1,14728706,1,1,2) [2025-03-21 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728706', 'tblTempUsageDetail_20' ) start [2025-03-21 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728706', 'tblTempUsageDetail_20' ) end [2025-03-21 07:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:39:23] Production.INFO: ==3809== Releasing lock... [2025-03-21 07:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:39:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-21 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:40:06 [end_date_ymd] => 2025-03-21 07:40:06 [RateCDR] => 1 ) [2025-03-21 07:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 04:40:06' and `end` < '2025-03-21 07:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 07:40:18] Production.INFO: count ==184 [2025-03-21 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:40:06 - End Time 2025-03-21 07:40:06 [2025-03-21 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728712', 'tblTempUsageDetail_20' ) start [2025-03-21 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728712', 'tblTempUsageDetail_20' ) end [2025-03-21 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728712', 'tblTempVendorCDR_20' ) start [2025-03-21 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728712', 'tblTempVendorCDR_20' ) end [2025-03-21 07:40:18] Production.INFO: ProcessCDR(1,14728712,1,1,2) [2025-03-21 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728712', 'tblTempUsageDetail_20' ) start [2025-03-21 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728712', 'tblTempUsageDetail_20' ) end [2025-03-21 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:40:22] Production.INFO: ==3896== Releasing lock... [2025-03-21 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-21 07:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:41:06 [end_date_ymd] => 2025-03-21 07:41:06 [RateCDR] => 1 ) [2025-03-21 07: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-21 04:41:06' and `end` < '2025-03-21 07: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-21 07:41:18] Production.INFO: count ==191 [2025-03-21 07:41:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:41:06 - End Time 2025-03-21 07:41:06 [2025-03-21 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728717', 'tblTempUsageDetail_20' ) start [2025-03-21 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728717', 'tblTempUsageDetail_20' ) end [2025-03-21 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728717', 'tblTempVendorCDR_20' ) start [2025-03-21 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728717', 'tblTempVendorCDR_20' ) end [2025-03-21 07:41:18] Production.INFO: ProcessCDR(1,14728717,1,1,2) [2025-03-21 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728717', 'tblTempUsageDetail_20' ) start [2025-03-21 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728717', 'tblTempUsageDetail_20' ) end [2025-03-21 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:41:21] Production.INFO: ==3997== Releasing lock... [2025-03-21 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:41:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-21 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:42:05 [end_date_ymd] => 2025-03-21 07:42:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:42:05' and `end` < '2025-03-21 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-21 07:42:18] Production.INFO: count ==191 [2025-03-21 07:42:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:42:05 - End Time 2025-03-21 07:42:05 [2025-03-21 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728722', 'tblTempUsageDetail_20' ) start [2025-03-21 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728722', 'tblTempUsageDetail_20' ) end [2025-03-21 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728722', 'tblTempVendorCDR_20' ) start [2025-03-21 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728722', 'tblTempVendorCDR_20' ) end [2025-03-21 07:42:18] Production.INFO: ProcessCDR(1,14728722,1,1,2) [2025-03-21 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728722', 'tblTempUsageDetail_20' ) start [2025-03-21 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728722', 'tblTempUsageDetail_20' ) end [2025-03-21 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:42:21] Production.INFO: ==4091== Releasing lock... [2025-03-21 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-21 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:43:06 [end_date_ymd] => 2025-03-21 07:43:06 [RateCDR] => 1 ) [2025-03-21 07: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-21 04:43:06' and `end` < '2025-03-21 07: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-21 07:43:18] Production.INFO: count ==199 [2025-03-21 07:43:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:43:06 - End Time 2025-03-21 07:43:06 [2025-03-21 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728727', 'tblTempUsageDetail_20' ) start [2025-03-21 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728727', 'tblTempUsageDetail_20' ) end [2025-03-21 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728727', 'tblTempVendorCDR_20' ) start [2025-03-21 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728727', 'tblTempVendorCDR_20' ) end [2025-03-21 07:43:18] Production.INFO: ProcessCDR(1,14728727,1,1,2) [2025-03-21 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728727', 'tblTempUsageDetail_20' ) start [2025-03-21 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728727', 'tblTempUsageDetail_20' ) end [2025-03-21 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:43:22] Production.INFO: ==4183== Releasing lock... [2025-03-21 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:43:22] Production.INFO: 30 MB #Memory Used# [2025-03-21 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:44:05 [end_date_ymd] => 2025-03-21 07:44:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:44:05' and `end` < '2025-03-21 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-21 07:44:17] Production.INFO: count ==204 [2025-03-21 07:44:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:44:05 - End Time 2025-03-21 07:44:05 [2025-03-21 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728732', 'tblTempUsageDetail_20' ) start [2025-03-21 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728732', 'tblTempUsageDetail_20' ) end [2025-03-21 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728732', 'tblTempVendorCDR_20' ) start [2025-03-21 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728732', 'tblTempVendorCDR_20' ) end [2025-03-21 07:44:18] Production.INFO: ProcessCDR(1,14728732,1,1,2) [2025-03-21 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728732', 'tblTempUsageDetail_20' ) start [2025-03-21 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728732', 'tblTempUsageDetail_20' ) end [2025-03-21 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:44:21] Production.INFO: ==4281== Releasing lock... [2025-03-21 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:44:21] Production.INFO: 30 MB #Memory Used# [2025-03-21 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:45:06 [end_date_ymd] => 2025-03-21 07:45:06 [RateCDR] => 1 ) [2025-03-21 07: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-21 04:45:06' and `end` < '2025-03-21 07: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-21 07:45:18] Production.INFO: count ==204 [2025-03-21 07:45:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:45:06 - End Time 2025-03-21 07:45:06 [2025-03-21 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728737', 'tblTempUsageDetail_20' ) start [2025-03-21 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728737', 'tblTempUsageDetail_20' ) end [2025-03-21 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728737', 'tblTempVendorCDR_20' ) start [2025-03-21 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728737', 'tblTempVendorCDR_20' ) end [2025-03-21 07:45:18] Production.INFO: ProcessCDR(1,14728737,1,1,2) [2025-03-21 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728737', 'tblTempUsageDetail_20' ) start [2025-03-21 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728737', 'tblTempUsageDetail_20' ) end [2025-03-21 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:45:22] Production.INFO: ==4374== Releasing lock... [2025-03-21 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:45:22] Production.INFO: 30 MB #Memory Used# [2025-03-21 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:46:05 [end_date_ymd] => 2025-03-21 07:46:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:46:05' and `end` < '2025-03-21 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-21 07:46:17] Production.INFO: count ==204 [2025-03-21 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-21 04:46:05 - End Time 2025-03-21 07:46:05 [2025-03-21 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728742', 'tblTempUsageDetail_20' ) start [2025-03-21 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728742', 'tblTempUsageDetail_20' ) end [2025-03-21 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728742', 'tblTempVendorCDR_20' ) start [2025-03-21 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728742', 'tblTempVendorCDR_20' ) end [2025-03-21 07:46:17] Production.INFO: ProcessCDR(1,14728742,1,1,2) [2025-03-21 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728742', 'tblTempUsageDetail_20' ) start [2025-03-21 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728742', 'tblTempUsageDetail_20' ) end [2025-03-21 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:46:21] Production.INFO: ==4466== Releasing lock... [2025-03-21 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:46:21] Production.INFO: 30 MB #Memory Used# [2025-03-21 07:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:47:06 [end_date_ymd] => 2025-03-21 07:47:06 [RateCDR] => 1 ) [2025-03-21 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-21 04:47:06' and `end` < '2025-03-21 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-21 07:47:18] Production.INFO: count ==204 [2025-03-21 07:47:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:47:06 - End Time 2025-03-21 07:47:06 [2025-03-21 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728747', 'tblTempUsageDetail_20' ) start [2025-03-21 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728747', 'tblTempUsageDetail_20' ) end [2025-03-21 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728747', 'tblTempVendorCDR_20' ) start [2025-03-21 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728747', 'tblTempVendorCDR_20' ) end [2025-03-21 07:47:18] Production.INFO: ProcessCDR(1,14728747,1,1,2) [2025-03-21 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728747', 'tblTempUsageDetail_20' ) start [2025-03-21 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728747', 'tblTempUsageDetail_20' ) end [2025-03-21 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:47:21] Production.INFO: ==4558== Releasing lock... [2025-03-21 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:47:21] Production.INFO: 30 MB #Memory Used# [2025-03-21 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:48:05 [end_date_ymd] => 2025-03-21 07:48:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:48:05' and `end` < '2025-03-21 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-21 07:48:18] Production.INFO: count ==204 [2025-03-21 07:48:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:48:05 - End Time 2025-03-21 07:48:05 [2025-03-21 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728752', 'tblTempUsageDetail_20' ) start [2025-03-21 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728752', 'tblTempUsageDetail_20' ) end [2025-03-21 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728752', 'tblTempVendorCDR_20' ) start [2025-03-21 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728752', 'tblTempVendorCDR_20' ) end [2025-03-21 07:48:18] Production.INFO: ProcessCDR(1,14728752,1,1,2) [2025-03-21 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728752', 'tblTempUsageDetail_20' ) start [2025-03-21 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728752', 'tblTempUsageDetail_20' ) end [2025-03-21 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:48:21] Production.INFO: ==4664== Releasing lock... [2025-03-21 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:48:21] Production.INFO: 30 MB #Memory Used# [2025-03-21 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:49:06 [end_date_ymd] => 2025-03-21 07:49:06 [RateCDR] => 1 ) [2025-03-21 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-21 04:49:06' and `end` < '2025-03-21 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-21 07:49:18] Production.INFO: count ==201 [2025-03-21 07:49:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:49:06 - End Time 2025-03-21 07:49:06 [2025-03-21 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728757', 'tblTempUsageDetail_20' ) start [2025-03-21 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728757', 'tblTempUsageDetail_20' ) end [2025-03-21 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728757', 'tblTempVendorCDR_20' ) start [2025-03-21 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728757', 'tblTempVendorCDR_20' ) end [2025-03-21 07:49:18] Production.INFO: ProcessCDR(1,14728757,1,1,2) [2025-03-21 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728757', 'tblTempUsageDetail_20' ) start [2025-03-21 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728757', 'tblTempUsageDetail_20' ) end [2025-03-21 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:49:22] Production.INFO: ==4758== Releasing lock... [2025-03-21 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:49:22] Production.INFO: 30 MB #Memory Used# [2025-03-21 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:50:05 [end_date_ymd] => 2025-03-21 07:50:05 [RateCDR] => 1 ) [2025-03-21 07: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-21 04:50:05' and `end` < '2025-03-21 07: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-21 07:50:18] Production.INFO: count ==195 [2025-03-21 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:50:05 - End Time 2025-03-21 07:50:05 [2025-03-21 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728762', 'tblTempUsageDetail_20' ) start [2025-03-21 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728762', 'tblTempUsageDetail_20' ) end [2025-03-21 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728762', 'tblTempVendorCDR_20' ) start [2025-03-21 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728762', 'tblTempVendorCDR_20' ) end [2025-03-21 07:50:18] Production.INFO: ProcessCDR(1,14728762,1,1,2) [2025-03-21 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728762', 'tblTempUsageDetail_20' ) start [2025-03-21 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728762', 'tblTempUsageDetail_20' ) end [2025-03-21 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:50:21] Production.INFO: ==4852== Releasing lock... [2025-03-21 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:50:21] Production.INFO: 30 MB #Memory Used# [2025-03-21 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:51:06 [end_date_ymd] => 2025-03-21 07:51:06 [RateCDR] => 1 ) [2025-03-21 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-21 04:51:06' and `end` < '2025-03-21 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-21 07:51:18] Production.INFO: count ==191 [2025-03-21 07:51:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:51:06 - End Time 2025-03-21 07:51:06 [2025-03-21 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728768', 'tblTempUsageDetail_20' ) start [2025-03-21 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728768', 'tblTempUsageDetail_20' ) end [2025-03-21 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728768', 'tblTempVendorCDR_20' ) start [2025-03-21 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728768', 'tblTempVendorCDR_20' ) end [2025-03-21 07:51:18] Production.INFO: ProcessCDR(1,14728768,1,1,2) [2025-03-21 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728768', 'tblTempUsageDetail_20' ) start [2025-03-21 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728768', 'tblTempUsageDetail_20' ) end [2025-03-21 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:51:22] Production.INFO: ==4950== Releasing lock... [2025-03-21 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:51:22] Production.INFO: 30 MB #Memory Used# [2025-03-21 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:52:05 [end_date_ymd] => 2025-03-21 07:52:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:52:05' and `end` < '2025-03-21 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-21 07:52:18] Production.INFO: count ==191 [2025-03-21 07:52:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:52:05 - End Time 2025-03-21 07:52:05 [2025-03-21 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728773', 'tblTempUsageDetail_20' ) start [2025-03-21 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728773', 'tblTempUsageDetail_20' ) end [2025-03-21 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728773', 'tblTempVendorCDR_20' ) start [2025-03-21 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728773', 'tblTempVendorCDR_20' ) end [2025-03-21 07:52:18] Production.INFO: ProcessCDR(1,14728773,1,1,2) [2025-03-21 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728773', 'tblTempUsageDetail_20' ) start [2025-03-21 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728773', 'tblTempUsageDetail_20' ) end [2025-03-21 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:52:21] Production.INFO: ==5040== Releasing lock... [2025-03-21 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:52:21] Production.INFO: 30 MB #Memory Used# [2025-03-21 07:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:53:06 [end_date_ymd] => 2025-03-21 07:53:06 [RateCDR] => 1 ) [2025-03-21 07:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 04:53:06' and `end` < '2025-03-21 07:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 07:53:18] Production.INFO: count ==191 [2025-03-21 07:53:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:53:06 - End Time 2025-03-21 07:53:06 [2025-03-21 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728778', 'tblTempUsageDetail_20' ) start [2025-03-21 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728778', 'tblTempUsageDetail_20' ) end [2025-03-21 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728778', 'tblTempVendorCDR_20' ) start [2025-03-21 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728778', 'tblTempVendorCDR_20' ) end [2025-03-21 07:53:18] Production.INFO: ProcessCDR(1,14728778,1,1,2) [2025-03-21 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728778', 'tblTempUsageDetail_20' ) start [2025-03-21 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728778', 'tblTempUsageDetail_20' ) end [2025-03-21 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:53:21] Production.INFO: ==5167== Releasing lock... [2025-03-21 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:53:21] Production.INFO: 30 MB #Memory Used# [2025-03-21 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:54:05 [end_date_ymd] => 2025-03-21 07:54:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:54:05' and `end` < '2025-03-21 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-21 07:54:17] Production.INFO: count ==193 [2025-03-21 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-21 04:54:05 - End Time 2025-03-21 07:54:05 [2025-03-21 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728783', 'tblTempUsageDetail_20' ) start [2025-03-21 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728783', 'tblTempUsageDetail_20' ) end [2025-03-21 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728783', 'tblTempVendorCDR_20' ) start [2025-03-21 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728783', 'tblTempVendorCDR_20' ) end [2025-03-21 07:54:17] Production.INFO: ProcessCDR(1,14728783,1,1,2) [2025-03-21 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728783', 'tblTempUsageDetail_20' ) start [2025-03-21 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728783', 'tblTempUsageDetail_20' ) end [2025-03-21 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:54:21] Production.INFO: ==5245== Releasing lock... [2025-03-21 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:54:21] Production.INFO: 30 MB #Memory Used# [2025-03-21 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:55:06 [end_date_ymd] => 2025-03-21 07:55:06 [RateCDR] => 1 ) [2025-03-21 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-21 04:55:06' and `end` < '2025-03-21 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-21 07:55:18] Production.INFO: count ==195 [2025-03-21 07:55:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:55:06 - End Time 2025-03-21 07:55:06 [2025-03-21 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728788', 'tblTempUsageDetail_20' ) start [2025-03-21 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728788', 'tblTempUsageDetail_20' ) end [2025-03-21 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728788', 'tblTempVendorCDR_20' ) start [2025-03-21 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728788', 'tblTempVendorCDR_20' ) end [2025-03-21 07:55:18] Production.INFO: ProcessCDR(1,14728788,1,1,2) [2025-03-21 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728788', 'tblTempUsageDetail_20' ) start [2025-03-21 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728788', 'tblTempUsageDetail_20' ) end [2025-03-21 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:55:22] Production.INFO: ==5333== Releasing lock... [2025-03-21 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:55:22] Production.INFO: 30 MB #Memory Used# [2025-03-21 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:56:05 [end_date_ymd] => 2025-03-21 07:56:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:56:05' and `end` < '2025-03-21 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-21 07:56:17] Production.INFO: count ==205 [2025-03-21 07:56:17] Production.ERROR: pbx CDR StartTime 2025-03-21 04:56:05 - End Time 2025-03-21 07:56:05 [2025-03-21 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728793', 'tblTempUsageDetail_20' ) start [2025-03-21 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728793', 'tblTempUsageDetail_20' ) end [2025-03-21 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728793', 'tblTempVendorCDR_20' ) start [2025-03-21 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728793', 'tblTempVendorCDR_20' ) end [2025-03-21 07:56:17] Production.INFO: ProcessCDR(1,14728793,1,1,2) [2025-03-21 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728793', 'tblTempUsageDetail_20' ) start [2025-03-21 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728793', 'tblTempUsageDetail_20' ) end [2025-03-21 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:56:21] Production.INFO: ==5420== Releasing lock... [2025-03-21 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:56:21] Production.INFO: 30 MB #Memory Used# [2025-03-21 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:57:05 [end_date_ymd] => 2025-03-21 07:57:05 [RateCDR] => 1 ) [2025-03-21 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 04:57:05' and `end` < '2025-03-21 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 07:57:18] Production.INFO: count ==210 [2025-03-21 07:57:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:57:05 - End Time 2025-03-21 07:57:05 [2025-03-21 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728798', 'tblTempUsageDetail_20' ) start [2025-03-21 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728798', 'tblTempUsageDetail_20' ) end [2025-03-21 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728798', 'tblTempVendorCDR_20' ) start [2025-03-21 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728798', 'tblTempVendorCDR_20' ) end [2025-03-21 07:57:18] Production.INFO: ProcessCDR(1,14728798,1,1,2) [2025-03-21 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728798', 'tblTempUsageDetail_20' ) start [2025-03-21 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728798', 'tblTempUsageDetail_20' ) end [2025-03-21 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:57:21] Production.INFO: ==5500== Releasing lock... [2025-03-21 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:58:05 [end_date_ymd] => 2025-03-21 07:58:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:58:05' and `end` < '2025-03-21 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-21 07:58:17] Production.INFO: count ==210 [2025-03-21 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-21 04:58:05 - End Time 2025-03-21 07:58:05 [2025-03-21 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728803', 'tblTempUsageDetail_20' ) start [2025-03-21 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728803', 'tblTempUsageDetail_20' ) end [2025-03-21 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728803', 'tblTempVendorCDR_20' ) start [2025-03-21 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728803', 'tblTempVendorCDR_20' ) end [2025-03-21 07:58:17] Production.INFO: ProcessCDR(1,14728803,1,1,2) [2025-03-21 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728803', 'tblTempUsageDetail_20' ) start [2025-03-21 07:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728803', 'tblTempUsageDetail_20' ) end [2025-03-21 07:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:58:20] Production.INFO: ==5588== Releasing lock... [2025-03-21 07:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:58:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 04:59:05 [end_date_ymd] => 2025-03-21 07:59:05 [RateCDR] => 1 ) [2025-03-21 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-21 04:59:05' and `end` < '2025-03-21 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-21 07:59:18] Production.INFO: count ==205 [2025-03-21 07:59:18] Production.ERROR: pbx CDR StartTime 2025-03-21 04:59:05 - End Time 2025-03-21 07:59:05 [2025-03-21 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728808', 'tblTempUsageDetail_20' ) start [2025-03-21 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728808', 'tblTempUsageDetail_20' ) end [2025-03-21 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728808', 'tblTempVendorCDR_20' ) start [2025-03-21 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728808', 'tblTempVendorCDR_20' ) end [2025-03-21 07:59:18] Production.INFO: ProcessCDR(1,14728808,1,1,2) [2025-03-21 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728808', 'tblTempUsageDetail_20' ) start [2025-03-21 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728808', 'tblTempUsageDetail_20' ) end [2025-03-21 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 07:59:21] Production.INFO: ==5673== Releasing lock... [2025-03-21 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 07:59:21] Production.INFO: 30 MB #Memory Used# [2025-03-21 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:00:06 [end_date_ymd] => 2025-03-21 08:00:06 [RateCDR] => 1 ) [2025-03-21 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 05:00:06' and `end` < '2025-03-21 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 08:00:19] Production.INFO: count ==189 [2025-03-21 08:00:19] Production.ERROR: pbx CDR StartTime 2025-03-21 05:00:06 - End Time 2025-03-21 08:00:06 [2025-03-21 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728814', 'tblTempUsageDetail_20' ) start [2025-03-21 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728814', 'tblTempUsageDetail_20' ) end [2025-03-21 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728814', 'tblTempVendorCDR_20' ) start [2025-03-21 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728814', 'tblTempVendorCDR_20' ) end [2025-03-21 08:00:19] Production.INFO: ProcessCDR(1,14728814,1,1,2) [2025-03-21 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728814', 'tblTempUsageDetail_20' ) start [2025-03-21 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728814', 'tblTempUsageDetail_20' ) end [2025-03-21 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:00:22] Production.INFO: ==5764== Releasing lock... [2025-03-21 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-21 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:01:05 [end_date_ymd] => 2025-03-21 08:01:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:01:05' and `end` < '2025-03-21 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-21 08:01:18] Production.INFO: count ==188 [2025-03-21 08:01:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:01:05 - End Time 2025-03-21 08:01:05 [2025-03-21 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728819', 'tblTempUsageDetail_20' ) start [2025-03-21 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728819', 'tblTempUsageDetail_20' ) end [2025-03-21 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728819', 'tblTempVendorCDR_20' ) start [2025-03-21 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728819', 'tblTempVendorCDR_20' ) end [2025-03-21 08:01:18] Production.INFO: ProcessCDR(1,14728819,1,1,2) [2025-03-21 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728819', 'tblTempUsageDetail_20' ) start [2025-03-21 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728819', 'tblTempUsageDetail_20' ) end [2025-03-21 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:01:21] Production.INFO: ==5866== Releasing lock... [2025-03-21 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:01:21] Production.INFO: 30 MB #Memory Used# [2025-03-21 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:02:05 [end_date_ymd] => 2025-03-21 08:02:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:02:05' and `end` < '2025-03-21 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-21 08:02:17] Production.INFO: count ==195 [2025-03-21 08:02:17] Production.ERROR: pbx CDR StartTime 2025-03-21 05:02:05 - End Time 2025-03-21 08:02:05 [2025-03-21 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728824', 'tblTempUsageDetail_20' ) start [2025-03-21 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728824', 'tblTempUsageDetail_20' ) end [2025-03-21 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728824', 'tblTempVendorCDR_20' ) start [2025-03-21 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728824', 'tblTempVendorCDR_20' ) end [2025-03-21 08:02:18] Production.INFO: ProcessCDR(1,14728824,1,1,2) [2025-03-21 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728824', 'tblTempUsageDetail_20' ) start [2025-03-21 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728824', 'tblTempUsageDetail_20' ) end [2025-03-21 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:02:21] Production.INFO: ==5949== Releasing lock... [2025-03-21 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:02:21] Production.INFO: 30 MB #Memory Used# [2025-03-21 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:03:05 [end_date_ymd] => 2025-03-21 08:03:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:03:05' and `end` < '2025-03-21 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-21 08:03:18] Production.INFO: count ==197 [2025-03-21 08:03:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:03:05 - End Time 2025-03-21 08:03:05 [2025-03-21 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728829', 'tblTempUsageDetail_20' ) start [2025-03-21 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728829', 'tblTempUsageDetail_20' ) end [2025-03-21 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728829', 'tblTempVendorCDR_20' ) start [2025-03-21 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728829', 'tblTempVendorCDR_20' ) end [2025-03-21 08:03:18] Production.INFO: ProcessCDR(1,14728829,1,1,2) [2025-03-21 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728829', 'tblTempUsageDetail_20' ) start [2025-03-21 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728829', 'tblTempUsageDetail_20' ) end [2025-03-21 08:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:03:23] Production.INFO: ==6040== Releasing lock... [2025-03-21 08:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:03:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-21 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:04:05 [end_date_ymd] => 2025-03-21 08:04:05 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:04:05' and `end` < '2025-03-21 08: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-21 08:04:17] Production.INFO: count ==203 [2025-03-21 08:04:17] Production.ERROR: pbx CDR StartTime 2025-03-21 05:04:05 - End Time 2025-03-21 08:04:05 [2025-03-21 08:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728834', 'tblTempUsageDetail_20' ) start [2025-03-21 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728834', 'tblTempUsageDetail_20' ) end [2025-03-21 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728834', 'tblTempVendorCDR_20' ) start [2025-03-21 08:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728834', 'tblTempVendorCDR_20' ) end [2025-03-21 08:04:17] Production.INFO: ProcessCDR(1,14728834,1,1,2) [2025-03-21 08:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728834', 'tblTempUsageDetail_20' ) start [2025-03-21 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728834', 'tblTempUsageDetail_20' ) end [2025-03-21 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:04:21] Production.INFO: ==6121== Releasing lock... [2025-03-21 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:05:06 [end_date_ymd] => 2025-03-21 08:05:06 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:05:06' and `end` < '2025-03-21 08: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-21 08:05:18] Production.INFO: count ==206 [2025-03-21 08:05:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:05:06 - End Time 2025-03-21 08:05:06 [2025-03-21 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728839', 'tblTempUsageDetail_20' ) start [2025-03-21 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728839', 'tblTempUsageDetail_20' ) end [2025-03-21 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728839', 'tblTempVendorCDR_20' ) start [2025-03-21 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728839', 'tblTempVendorCDR_20' ) end [2025-03-21 08:05:18] Production.INFO: ProcessCDR(1,14728839,1,1,2) [2025-03-21 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728839', 'tblTempUsageDetail_20' ) start [2025-03-21 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728839', 'tblTempUsageDetail_20' ) end [2025-03-21 08:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:05:23] Production.INFO: ==6206== Releasing lock... [2025-03-21 08:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:05:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-21 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:06:06 [end_date_ymd] => 2025-03-21 08:06:06 [RateCDR] => 1 ) [2025-03-21 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-21 05:06:06' and `end` < '2025-03-21 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-21 08:06:18] Production.INFO: count ==206 [2025-03-21 08:06:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:06:06 - End Time 2025-03-21 08:06:06 [2025-03-21 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728844', 'tblTempUsageDetail_20' ) start [2025-03-21 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728844', 'tblTempUsageDetail_20' ) end [2025-03-21 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728844', 'tblTempVendorCDR_20' ) start [2025-03-21 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728844', 'tblTempVendorCDR_20' ) end [2025-03-21 08:06:18] Production.INFO: ProcessCDR(1,14728844,1,1,2) [2025-03-21 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728844', 'tblTempUsageDetail_20' ) start [2025-03-21 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728844', 'tblTempUsageDetail_20' ) end [2025-03-21 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:06:22] Production.INFO: ==6283== Releasing lock... [2025-03-21 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-21 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:07:05 [end_date_ymd] => 2025-03-21 08:07:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:07:05' and `end` < '2025-03-21 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-21 08:07:17] Production.INFO: count ==211 [2025-03-21 08:07:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:07:05 - End Time 2025-03-21 08:07:05 [2025-03-21 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728849', 'tblTempUsageDetail_20' ) start [2025-03-21 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728849', 'tblTempUsageDetail_20' ) end [2025-03-21 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728849', 'tblTempVendorCDR_20' ) start [2025-03-21 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728849', 'tblTempVendorCDR_20' ) end [2025-03-21 08:07:18] Production.INFO: ProcessCDR(1,14728849,1,1,2) [2025-03-21 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728849', 'tblTempUsageDetail_20' ) start [2025-03-21 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728849', 'tblTempUsageDetail_20' ) end [2025-03-21 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:07:21] Production.INFO: ==6360== Releasing lock... [2025-03-21 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:07:21] Production.INFO: 30 MB #Memory Used# [2025-03-21 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:08:06 [end_date_ymd] => 2025-03-21 08:08:06 [RateCDR] => 1 ) [2025-03-21 08:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 05:08:06' and `end` < '2025-03-21 08:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 08:08:18] Production.INFO: count ==212 [2025-03-21 08:08:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:08:06 - End Time 2025-03-21 08:08:06 [2025-03-21 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728854', 'tblTempUsageDetail_20' ) start [2025-03-21 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728854', 'tblTempUsageDetail_20' ) end [2025-03-21 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728854', 'tblTempVendorCDR_20' ) start [2025-03-21 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728854', 'tblTempVendorCDR_20' ) end [2025-03-21 08:08:18] Production.INFO: ProcessCDR(1,14728854,1,1,2) [2025-03-21 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728854', 'tblTempUsageDetail_20' ) start [2025-03-21 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728854', 'tblTempUsageDetail_20' ) end [2025-03-21 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:08:23] Production.INFO: ==6443== Releasing lock... [2025-03-21 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:08:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-21 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:09:05 [end_date_ymd] => 2025-03-21 08:09:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:09:05' and `end` < '2025-03-21 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-21 08:09:17] Production.INFO: count ==213 [2025-03-21 08:09:17] Production.ERROR: pbx CDR StartTime 2025-03-21 05:09:05 - End Time 2025-03-21 08:09:05 [2025-03-21 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728859', 'tblTempUsageDetail_20' ) start [2025-03-21 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728859', 'tblTempUsageDetail_20' ) end [2025-03-21 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728859', 'tblTempVendorCDR_20' ) start [2025-03-21 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728859', 'tblTempVendorCDR_20' ) end [2025-03-21 08:09:17] Production.INFO: ProcessCDR(1,14728859,1,1,2) [2025-03-21 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728859', 'tblTempUsageDetail_20' ) start [2025-03-21 08:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728859', 'tblTempUsageDetail_20' ) end [2025-03-21 08:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:09:20] Production.INFO: ==6566== Releasing lock... [2025-03-21 08:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:09:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-21 08:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:10:07 [end_date_ymd] => 2025-03-21 08:10:07 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:10:07' and `end` < '2025-03-21 08: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-21 08:10:19] Production.INFO: count ==229 [2025-03-21 08:10:19] Production.ERROR: pbx CDR StartTime 2025-03-21 05:10:07 - End Time 2025-03-21 08:10:07 [2025-03-21 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728865', 'tblTempUsageDetail_20' ) start [2025-03-21 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728865', 'tblTempUsageDetail_20' ) end [2025-03-21 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728865', 'tblTempVendorCDR_20' ) start [2025-03-21 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728865', 'tblTempVendorCDR_20' ) end [2025-03-21 08:10:19] Production.INFO: ProcessCDR(1,14728865,1,1,2) [2025-03-21 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728865', 'tblTempUsageDetail_20' ) start [2025-03-21 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728865', 'tblTempUsageDetail_20' ) end [2025-03-21 08:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:10:24] Production.INFO: ==6657== Releasing lock... [2025-03-21 08:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:10:24] Production.INFO: 30.25 MB #Memory Used# [2025-03-21 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:11:05 [end_date_ymd] => 2025-03-21 08:11:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:11:05' and `end` < '2025-03-21 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-21 08:11:18] Production.INFO: count ==244 [2025-03-21 08:11:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:11:05 - End Time 2025-03-21 08:11:05 [2025-03-21 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728870', 'tblTempUsageDetail_20' ) start [2025-03-21 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728870', 'tblTempUsageDetail_20' ) end [2025-03-21 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728870', 'tblTempVendorCDR_20' ) start [2025-03-21 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728870', 'tblTempVendorCDR_20' ) end [2025-03-21 08:11:18] Production.INFO: ProcessCDR(1,14728870,1,1,2) [2025-03-21 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728870', 'tblTempUsageDetail_20' ) start [2025-03-21 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728870', 'tblTempUsageDetail_20' ) end [2025-03-21 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:11:23] Production.INFO: ==6745== Releasing lock... [2025-03-21 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:11:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:12:06 [end_date_ymd] => 2025-03-21 08:12:06 [RateCDR] => 1 ) [2025-03-21 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-21 05:12:06' and `end` < '2025-03-21 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-21 08:12:18] Production.INFO: count ==251 [2025-03-21 08:12:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:12:06 - End Time 2025-03-21 08:12:06 [2025-03-21 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728875', 'tblTempUsageDetail_20' ) start [2025-03-21 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728875', 'tblTempUsageDetail_20' ) end [2025-03-21 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728875', 'tblTempVendorCDR_20' ) start [2025-03-21 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728875', 'tblTempVendorCDR_20' ) end [2025-03-21 08:12:18] Production.INFO: ProcessCDR(1,14728875,1,1,2) [2025-03-21 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728875', 'tblTempUsageDetail_20' ) start [2025-03-21 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728875', 'tblTempUsageDetail_20' ) end [2025-03-21 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:12:23] Production.INFO: ==6831== Releasing lock... [2025-03-21 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:12:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-21 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:13:05 [end_date_ymd] => 2025-03-21 08:13:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:13:05' and `end` < '2025-03-21 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-21 08:13:18] Production.INFO: count ==257 [2025-03-21 08:13:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:13:05 - End Time 2025-03-21 08:13:05 [2025-03-21 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728880', 'tblTempUsageDetail_20' ) start [2025-03-21 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728880', 'tblTempUsageDetail_20' ) end [2025-03-21 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728880', 'tblTempVendorCDR_20' ) start [2025-03-21 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728880', 'tblTempVendorCDR_20' ) end [2025-03-21 08:13:18] Production.INFO: ProcessCDR(1,14728880,1,1,2) [2025-03-21 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728880', 'tblTempUsageDetail_20' ) start [2025-03-21 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728880', 'tblTempUsageDetail_20' ) end [2025-03-21 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:13:21] Production.INFO: ==6910== Releasing lock... [2025-03-21 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:13:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-21 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:14:05 [end_date_ymd] => 2025-03-21 08:14:05 [RateCDR] => 1 ) [2025-03-21 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 05:14:05' and `end` < '2025-03-21 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 08:14:18] Production.INFO: count ==263 [2025-03-21 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:14:05 - End Time 2025-03-21 08:14:05 [2025-03-21 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728885', 'tblTempUsageDetail_20' ) start [2025-03-21 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728885', 'tblTempUsageDetail_20' ) end [2025-03-21 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728885', 'tblTempVendorCDR_20' ) start [2025-03-21 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728885', 'tblTempVendorCDR_20' ) end [2025-03-21 08:14:18] Production.INFO: ProcessCDR(1,14728885,1,1,2) [2025-03-21 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728885', 'tblTempUsageDetail_20' ) start [2025-03-21 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728885', 'tblTempUsageDetail_20' ) end [2025-03-21 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:14:23] Production.INFO: ==6994== Releasing lock... [2025-03-21 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:14:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:15:05 [end_date_ymd] => 2025-03-21 08:15:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:15:05' and `end` < '2025-03-21 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-21 08:15:18] Production.INFO: count ==264 [2025-03-21 08:15:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:15:05 - End Time 2025-03-21 08:15:05 [2025-03-21 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728890', 'tblTempUsageDetail_20' ) start [2025-03-21 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728890', 'tblTempUsageDetail_20' ) end [2025-03-21 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728890', 'tblTempVendorCDR_20' ) start [2025-03-21 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728890', 'tblTempVendorCDR_20' ) end [2025-03-21 08:15:18] Production.INFO: ProcessCDR(1,14728890,1,1,2) [2025-03-21 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728890', 'tblTempUsageDetail_20' ) start [2025-03-21 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728890', 'tblTempUsageDetail_20' ) end [2025-03-21 08:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:15:23] Production.INFO: ==7078== Releasing lock... [2025-03-21 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:15:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-21 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:16:05 [end_date_ymd] => 2025-03-21 08:16:05 [RateCDR] => 1 ) [2025-03-21 08:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 05:16:05' and `end` < '2025-03-21 08:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 08:16:18] Production.INFO: count ==276 [2025-03-21 08:16:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:16:05 - End Time 2025-03-21 08:16:05 [2025-03-21 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728895', 'tblTempUsageDetail_20' ) start [2025-03-21 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728895', 'tblTempUsageDetail_20' ) end [2025-03-21 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728895', 'tblTempVendorCDR_20' ) start [2025-03-21 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728895', 'tblTempVendorCDR_20' ) end [2025-03-21 08:16:18] Production.INFO: ProcessCDR(1,14728895,1,1,2) [2025-03-21 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728895', 'tblTempUsageDetail_20' ) start [2025-03-21 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728895', 'tblTempUsageDetail_20' ) end [2025-03-21 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:16:23] Production.INFO: ==7155== Releasing lock... [2025-03-21 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:16:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:17:05 [end_date_ymd] => 2025-03-21 08:17:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:17:05' and `end` < '2025-03-21 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-21 08:17:17] Production.INFO: count ==271 [2025-03-21 08:17:17] Production.ERROR: pbx CDR StartTime 2025-03-21 05:17:05 - End Time 2025-03-21 08:17:05 [2025-03-21 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728900', 'tblTempUsageDetail_20' ) start [2025-03-21 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728900', 'tblTempUsageDetail_20' ) end [2025-03-21 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728900', 'tblTempVendorCDR_20' ) start [2025-03-21 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728900', 'tblTempVendorCDR_20' ) end [2025-03-21 08:17:17] Production.INFO: ProcessCDR(1,14728900,1,1,2) [2025-03-21 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728900', 'tblTempUsageDetail_20' ) start [2025-03-21 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728900', 'tblTempUsageDetail_20' ) end [2025-03-21 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:17:21] Production.INFO: ==7240== Releasing lock... [2025-03-21 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:17:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:18:05 [end_date_ymd] => 2025-03-21 08:18:05 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:18:05' and `end` < '2025-03-21 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-21 08:18:18] Production.INFO: count ==275 [2025-03-21 08:18:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:18:05 - End Time 2025-03-21 08:18:05 [2025-03-21 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728905', 'tblTempUsageDetail_20' ) start [2025-03-21 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728905', 'tblTempUsageDetail_20' ) end [2025-03-21 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728905', 'tblTempVendorCDR_20' ) start [2025-03-21 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728905', 'tblTempVendorCDR_20' ) end [2025-03-21 08:18:18] Production.INFO: ProcessCDR(1,14728905,1,1,2) [2025-03-21 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728905', 'tblTempUsageDetail_20' ) start [2025-03-21 08:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728905', 'tblTempUsageDetail_20' ) end [2025-03-21 08:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:18:23] Production.INFO: ==7333== Releasing lock... [2025-03-21 08:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:18:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-21 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:19:05 [end_date_ymd] => 2025-03-21 08:19:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:19:05' and `end` < '2025-03-21 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-21 08:19:17] Production.INFO: count ==283 [2025-03-21 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-21 05:19:05 - End Time 2025-03-21 08:19:05 [2025-03-21 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728910', 'tblTempUsageDetail_20' ) start [2025-03-21 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728910', 'tblTempUsageDetail_20' ) end [2025-03-21 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728910', 'tblTempVendorCDR_20' ) start [2025-03-21 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728910', 'tblTempVendorCDR_20' ) end [2025-03-21 08:19:17] Production.INFO: ProcessCDR(1,14728910,1,1,2) [2025-03-21 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728910', 'tblTempUsageDetail_20' ) start [2025-03-21 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728910', 'tblTempUsageDetail_20' ) end [2025-03-21 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:19:21] Production.INFO: ==7417== Releasing lock... [2025-03-21 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-21 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:20:06 [end_date_ymd] => 2025-03-21 08:20:06 [RateCDR] => 1 ) [2025-03-21 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-21 05:20:06' and `end` < '2025-03-21 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-21 08:20:18] Production.INFO: count ==304 [2025-03-21 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:20:06 - End Time 2025-03-21 08:20:06 [2025-03-21 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728915', 'tblTempUsageDetail_20' ) start [2025-03-21 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728915', 'tblTempUsageDetail_20' ) end [2025-03-21 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728915', 'tblTempVendorCDR_20' ) start [2025-03-21 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728915', 'tblTempVendorCDR_20' ) end [2025-03-21 08:20:18] Production.INFO: ProcessCDR(1,14728915,1,1,2) [2025-03-21 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728915', 'tblTempUsageDetail_20' ) start [2025-03-21 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728915', 'tblTempUsageDetail_20' ) end [2025-03-21 08:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:20:22] Production.INFO: ==7497== Releasing lock... [2025-03-21 08:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-21 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:21:05 [end_date_ymd] => 2025-03-21 08:21:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:21:05' and `end` < '2025-03-21 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-21 08:21:17] Production.INFO: count ==322 [2025-03-21 08:21:17] Production.ERROR: pbx CDR StartTime 2025-03-21 05:21:05 - End Time 2025-03-21 08:21:05 [2025-03-21 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728921', 'tblTempUsageDetail_20' ) start [2025-03-21 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728921', 'tblTempUsageDetail_20' ) end [2025-03-21 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728921', 'tblTempVendorCDR_20' ) start [2025-03-21 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728921', 'tblTempVendorCDR_20' ) end [2025-03-21 08:21:17] Production.INFO: ProcessCDR(1,14728921,1,1,2) [2025-03-21 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728921', 'tblTempUsageDetail_20' ) start [2025-03-21 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728921', 'tblTempUsageDetail_20' ) end [2025-03-21 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:21:21] Production.INFO: ==7581== Releasing lock... [2025-03-21 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-21 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:22:06 [end_date_ymd] => 2025-03-21 08:22:06 [RateCDR] => 1 ) [2025-03-21 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-21 05:22:06' and `end` < '2025-03-21 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-21 08:22:18] Production.INFO: count ==326 [2025-03-21 08:22:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:22:06 - End Time 2025-03-21 08:22:06 [2025-03-21 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728926', 'tblTempUsageDetail_20' ) start [2025-03-21 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728926', 'tblTempUsageDetail_20' ) end [2025-03-21 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728926', 'tblTempVendorCDR_20' ) start [2025-03-21 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728926', 'tblTempVendorCDR_20' ) end [2025-03-21 08:22:18] Production.INFO: ProcessCDR(1,14728926,1,1,2) [2025-03-21 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728926', 'tblTempUsageDetail_20' ) start [2025-03-21 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728926', 'tblTempUsageDetail_20' ) end [2025-03-21 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:22:23] Production.INFO: ==7671== Releasing lock... [2025-03-21 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:22:23] Production.INFO: 31.5 MB #Memory Used# [2025-03-21 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:23:05 [end_date_ymd] => 2025-03-21 08:23:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:23:05' and `end` < '2025-03-21 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-21 08:23:17] Production.INFO: count ==341 [2025-03-21 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-21 05:23:05 - End Time 2025-03-21 08:23:05 [2025-03-21 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728931', 'tblTempUsageDetail_20' ) start [2025-03-21 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728931', 'tblTempUsageDetail_20' ) end [2025-03-21 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728931', 'tblTempVendorCDR_20' ) start [2025-03-21 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728931', 'tblTempVendorCDR_20' ) end [2025-03-21 08:23:17] Production.INFO: ProcessCDR(1,14728931,1,1,2) [2025-03-21 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728931', 'tblTempUsageDetail_20' ) start [2025-03-21 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728931', 'tblTempUsageDetail_20' ) end [2025-03-21 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:23:22] Production.INFO: ==7758== Releasing lock... [2025-03-21 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:23:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:24:05 [end_date_ymd] => 2025-03-21 08:24:05 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:24:05' and `end` < '2025-03-21 08: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-21 08:24:18] Production.INFO: count ==340 [2025-03-21 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:24:05 - End Time 2025-03-21 08:24:05 [2025-03-21 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728936', 'tblTempUsageDetail_20' ) start [2025-03-21 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728936', 'tblTempUsageDetail_20' ) end [2025-03-21 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728936', 'tblTempVendorCDR_20' ) start [2025-03-21 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728936', 'tblTempVendorCDR_20' ) end [2025-03-21 08:24:18] Production.INFO: ProcessCDR(1,14728936,1,1,2) [2025-03-21 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728936', 'tblTempUsageDetail_20' ) start [2025-03-21 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728936', 'tblTempUsageDetail_20' ) end [2025-03-21 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:24:23] Production.INFO: ==7890== Releasing lock... [2025-03-21 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:24:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:25:04 [end_date_ymd] => 2025-03-21 08:25:04 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:25:04' and `end` < '2025-03-21 08: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-21 08:25:16] Production.INFO: count ==341 [2025-03-21 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-21 05:25:04 - End Time 2025-03-21 08:25:04 [2025-03-21 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728941', 'tblTempUsageDetail_20' ) start [2025-03-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728941', 'tblTempUsageDetail_20' ) end [2025-03-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728941', 'tblTempVendorCDR_20' ) start [2025-03-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728941', 'tblTempVendorCDR_20' ) end [2025-03-21 08:25:17] Production.INFO: ProcessCDR(1,14728941,1,1,2) [2025-03-21 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728941', 'tblTempUsageDetail_20' ) start [2025-03-21 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728941', 'tblTempUsageDetail_20' ) end [2025-03-21 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:25:22] Production.INFO: ==7973== Releasing lock... [2025-03-21 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:25:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:26:05 [end_date_ymd] => 2025-03-21 08:26:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:26:05' and `end` < '2025-03-21 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-21 08:26:17] Production.INFO: count ==341 [2025-03-21 08:26:17] Production.ERROR: pbx CDR StartTime 2025-03-21 05:26:05 - End Time 2025-03-21 08:26:05 [2025-03-21 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728946', 'tblTempUsageDetail_20' ) start [2025-03-21 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728946', 'tblTempUsageDetail_20' ) end [2025-03-21 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728946', 'tblTempVendorCDR_20' ) start [2025-03-21 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728946', 'tblTempVendorCDR_20' ) end [2025-03-21 08:26:17] Production.INFO: ProcessCDR(1,14728946,1,1,2) [2025-03-21 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728946', 'tblTempUsageDetail_20' ) start [2025-03-21 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728946', 'tblTempUsageDetail_20' ) end [2025-03-21 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:26:21] Production.INFO: ==8063== Releasing lock... [2025-03-21 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 08:27:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:27:07 [end_date_ymd] => 2025-03-21 08:27:07 [RateCDR] => 1 ) [2025-03-21 08:27: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-21 05:27:07' and `end` < '2025-03-21 08:27: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-21 08:27:19] Production.INFO: count ==342 [2025-03-21 08:27:19] Production.ERROR: pbx CDR StartTime 2025-03-21 05:27:07 - End Time 2025-03-21 08:27:07 [2025-03-21 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728951', 'tblTempUsageDetail_20' ) start [2025-03-21 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728951', 'tblTempUsageDetail_20' ) end [2025-03-21 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728951', 'tblTempVendorCDR_20' ) start [2025-03-21 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728951', 'tblTempVendorCDR_20' ) end [2025-03-21 08:27:19] Production.INFO: ProcessCDR(1,14728951,1,1,2) [2025-03-21 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728951', 'tblTempUsageDetail_20' ) start [2025-03-21 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728951', 'tblTempUsageDetail_20' ) end [2025-03-21 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:27:22] Production.INFO: ==8153== Releasing lock... [2025-03-21 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:27:22] Production.INFO: 31 MB #Memory Used# [2025-03-21 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:28:05 [end_date_ymd] => 2025-03-21 08:28:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:28:05' and `end` < '2025-03-21 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-21 08:28:17] Production.INFO: count ==348 [2025-03-21 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-21 05:28:05 - End Time 2025-03-21 08:28:05 [2025-03-21 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728956', 'tblTempUsageDetail_20' ) start [2025-03-21 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728956', 'tblTempUsageDetail_20' ) end [2025-03-21 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728956', 'tblTempVendorCDR_20' ) start [2025-03-21 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728956', 'tblTempVendorCDR_20' ) end [2025-03-21 08:28:18] Production.INFO: ProcessCDR(1,14728956,1,1,2) [2025-03-21 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728956', 'tblTempUsageDetail_20' ) start [2025-03-21 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728956', 'tblTempUsageDetail_20' ) end [2025-03-21 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:28:21] Production.INFO: ==8240== Releasing lock... [2025-03-21 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:29:06 [end_date_ymd] => 2025-03-21 08:29:06 [RateCDR] => 1 ) [2025-03-21 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-21 05:29:06' and `end` < '2025-03-21 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-21 08:29:18] Production.INFO: count ==351 [2025-03-21 08:29:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:29:06 - End Time 2025-03-21 08:29:06 [2025-03-21 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728961', 'tblTempUsageDetail_20' ) start [2025-03-21 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728961', 'tblTempUsageDetail_20' ) end [2025-03-21 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728961', 'tblTempVendorCDR_20' ) start [2025-03-21 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728961', 'tblTempVendorCDR_20' ) end [2025-03-21 08:29:18] Production.INFO: ProcessCDR(1,14728961,1,1,2) [2025-03-21 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728961', 'tblTempUsageDetail_20' ) start [2025-03-21 08:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728961', 'tblTempUsageDetail_20' ) end [2025-03-21 08:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:29:24] Production.INFO: ==8331== Releasing lock... [2025-03-21 08:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:29:24] Production.INFO: 31.25 MB #Memory Used# [2025-03-21 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:30:06 [end_date_ymd] => 2025-03-21 08:30:06 [RateCDR] => 1 ) [2025-03-21 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-21 05:30:06' and `end` < '2025-03-21 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-21 08:30:19] Production.INFO: count ==361 [2025-03-21 08:30:19] Production.ERROR: pbx CDR StartTime 2025-03-21 05:30:06 - End Time 2025-03-21 08:30:06 [2025-03-21 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728967', 'tblTempUsageDetail_20' ) start [2025-03-21 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728967', 'tblTempUsageDetail_20' ) end [2025-03-21 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728967', 'tblTempVendorCDR_20' ) start [2025-03-21 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728967', 'tblTempVendorCDR_20' ) end [2025-03-21 08:30:19] Production.INFO: ProcessCDR(1,14728967,1,1,2) [2025-03-21 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728967', 'tblTempUsageDetail_20' ) start [2025-03-21 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728967', 'tblTempUsageDetail_20' ) end [2025-03-21 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:30:24] Production.INFO: ==8419== Releasing lock... [2025-03-21 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:30:24] Production.INFO: 31.75 MB #Memory Used# [2025-03-21 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:31:06 [end_date_ymd] => 2025-03-21 08:31:06 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:31:06' and `end` < '2025-03-21 08: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-21 08:31:18] Production.INFO: count ==422 [2025-03-21 08:31:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:31:06 - End Time 2025-03-21 08:31:06 [2025-03-21 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728972', 'tblTempUsageDetail_20' ) start [2025-03-21 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728972', 'tblTempUsageDetail_20' ) end [2025-03-21 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728972', 'tblTempVendorCDR_20' ) start [2025-03-21 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728972', 'tblTempVendorCDR_20' ) end [2025-03-21 08:31:18] Production.INFO: ProcessCDR(1,14728972,1,1,2) [2025-03-21 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728972', 'tblTempUsageDetail_20' ) start [2025-03-21 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728972', 'tblTempUsageDetail_20' ) end [2025-03-21 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:31:21] Production.INFO: ==8508== Releasing lock... [2025-03-21 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:31:21] Production.INFO: 32 MB #Memory Used# [2025-03-21 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:32:06 [end_date_ymd] => 2025-03-21 08:32:06 [RateCDR] => 1 ) [2025-03-21 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 05:32:06' and `end` < '2025-03-21 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 08:32:18] Production.INFO: count ==432 [2025-03-21 08:32:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:32:06 - End Time 2025-03-21 08:32:06 [2025-03-21 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728977', 'tblTempUsageDetail_20' ) start [2025-03-21 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728977', 'tblTempUsageDetail_20' ) end [2025-03-21 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728977', 'tblTempVendorCDR_20' ) start [2025-03-21 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728977', 'tblTempVendorCDR_20' ) end [2025-03-21 08:32:18] Production.INFO: ProcessCDR(1,14728977,1,1,2) [2025-03-21 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728977', 'tblTempUsageDetail_20' ) start [2025-03-21 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728977', 'tblTempUsageDetail_20' ) end [2025-03-21 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:32:23] Production.INFO: ==8593== Releasing lock... [2025-03-21 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:32:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:33:05 [end_date_ymd] => 2025-03-21 08:33:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:33:05' and `end` < '2025-03-21 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-21 08:33:18] Production.INFO: count ==446 [2025-03-21 08:33:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:33:05 - End Time 2025-03-21 08:33:05 [2025-03-21 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728982', 'tblTempUsageDetail_20' ) start [2025-03-21 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728982', 'tblTempUsageDetail_20' ) end [2025-03-21 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728982', 'tblTempVendorCDR_20' ) start [2025-03-21 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728982', 'tblTempVendorCDR_20' ) end [2025-03-21 08:33:18] Production.INFO: ProcessCDR(1,14728982,1,1,2) [2025-03-21 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728982', 'tblTempUsageDetail_20' ) start [2025-03-21 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728982', 'tblTempUsageDetail_20' ) end [2025-03-21 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:33:23] Production.INFO: ==8672== Releasing lock... [2025-03-21 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:33:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 08:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:34:05 [end_date_ymd] => 2025-03-21 08:34:05 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:34:05' and `end` < '2025-03-21 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-21 08:34:18] Production.INFO: count ==450 [2025-03-21 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:34:05 - End Time 2025-03-21 08:34:05 [2025-03-21 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728987', 'tblTempUsageDetail_20' ) start [2025-03-21 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728987', 'tblTempUsageDetail_20' ) end [2025-03-21 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728987', 'tblTempVendorCDR_20' ) start [2025-03-21 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728987', 'tblTempVendorCDR_20' ) end [2025-03-21 08:34:18] Production.INFO: ProcessCDR(1,14728987,1,1,2) [2025-03-21 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728987', 'tblTempUsageDetail_20' ) start [2025-03-21 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728987', 'tblTempUsageDetail_20' ) end [2025-03-21 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:34:23] Production.INFO: ==8754== Releasing lock... [2025-03-21 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:34:23] Production.INFO: 32 MB #Memory Used# [2025-03-21 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:35:05 [end_date_ymd] => 2025-03-21 08:35:05 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:35:05' and `end` < '2025-03-21 08: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-21 08:35:18] Production.INFO: count ==462 [2025-03-21 08:35:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:35:05 - End Time 2025-03-21 08:35:05 [2025-03-21 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728992', 'tblTempUsageDetail_20' ) start [2025-03-21 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728992', 'tblTempUsageDetail_20' ) end [2025-03-21 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728992', 'tblTempVendorCDR_20' ) start [2025-03-21 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728992', 'tblTempVendorCDR_20' ) end [2025-03-21 08:35:18] Production.INFO: ProcessCDR(1,14728992,1,1,2) [2025-03-21 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728992', 'tblTempUsageDetail_20' ) start [2025-03-21 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728992', 'tblTempUsageDetail_20' ) end [2025-03-21 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:35:23] Production.INFO: ==8836== Releasing lock... [2025-03-21 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:35:23] Production.INFO: 32.25 MB #Memory Used# [2025-03-21 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:36:06 [end_date_ymd] => 2025-03-21 08:36:06 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:36:06' and `end` < '2025-03-21 08: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-21 08:36:18] Production.INFO: count ==465 [2025-03-21 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:36:06 - End Time 2025-03-21 08:36:06 [2025-03-21 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728997', 'tblTempUsageDetail_20' ) start [2025-03-21 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14728997', 'tblTempUsageDetail_20' ) end [2025-03-21 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728997', 'tblTempVendorCDR_20' ) start [2025-03-21 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14728997', 'tblTempVendorCDR_20' ) end [2025-03-21 08:36:18] Production.INFO: ProcessCDR(1,14728997,1,1,2) [2025-03-21 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14728997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14728997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14728997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14728997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728997', 'tblTempUsageDetail_20' ) start [2025-03-21 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14728997', 'tblTempUsageDetail_20' ) end [2025-03-21 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:36:22] Production.INFO: ==8923== Releasing lock... [2025-03-21 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:36:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-21 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:37:05 [end_date_ymd] => 2025-03-21 08:37:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:37:05' and `end` < '2025-03-21 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-21 08:37:17] Production.INFO: count ==486 [2025-03-21 08:37:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:37:05 - End Time 2025-03-21 08:37:05 [2025-03-21 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729002', 'tblTempUsageDetail_20' ) start [2025-03-21 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729002', 'tblTempUsageDetail_20' ) end [2025-03-21 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729002', 'tblTempVendorCDR_20' ) start [2025-03-21 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729002', 'tblTempVendorCDR_20' ) end [2025-03-21 08:37:18] Production.INFO: ProcessCDR(1,14729002,1,1,2) [2025-03-21 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729002', 'tblTempUsageDetail_20' ) start [2025-03-21 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729002', 'tblTempUsageDetail_20' ) end [2025-03-21 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:37:23] Production.INFO: ==9014== Releasing lock... [2025-03-21 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:37:23] Production.INFO: 32 MB #Memory Used# [2025-03-21 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:38:05 [end_date_ymd] => 2025-03-21 08:38:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:38:05' and `end` < '2025-03-21 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-21 08:38:18] Production.INFO: count ==490 [2025-03-21 08:38:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:38:05 - End Time 2025-03-21 08:38:05 [2025-03-21 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729007', 'tblTempUsageDetail_20' ) start [2025-03-21 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729007', 'tblTempUsageDetail_20' ) end [2025-03-21 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729007', 'tblTempVendorCDR_20' ) start [2025-03-21 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729007', 'tblTempVendorCDR_20' ) end [2025-03-21 08:38:18] Production.INFO: ProcessCDR(1,14729007,1,1,2) [2025-03-21 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729007', 'tblTempUsageDetail_20' ) start [2025-03-21 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729007', 'tblTempUsageDetail_20' ) end [2025-03-21 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:38:23] Production.INFO: ==9094== Releasing lock... [2025-03-21 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:38:23] Production.INFO: 32 MB #Memory Used# [2025-03-21 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:39:06 [end_date_ymd] => 2025-03-21 08:39:06 [RateCDR] => 1 ) [2025-03-21 08:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 05:39:06' and `end` < '2025-03-21 08: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-21 08:39:18] Production.INFO: count ==509 [2025-03-21 08:39:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:39:06 - End Time 2025-03-21 08:39:06 [2025-03-21 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729012', 'tblTempUsageDetail_20' ) start [2025-03-21 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729012', 'tblTempUsageDetail_20' ) end [2025-03-21 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729012', 'tblTempVendorCDR_20' ) start [2025-03-21 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729012', 'tblTempVendorCDR_20' ) end [2025-03-21 08:39:18] Production.INFO: ProcessCDR(1,14729012,1,1,2) [2025-03-21 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729012', 'tblTempUsageDetail_20' ) start [2025-03-21 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729012', 'tblTempUsageDetail_20' ) end [2025-03-21 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:39:23] Production.INFO: ==9179== Releasing lock... [2025-03-21 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:39:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:40:06 [end_date_ymd] => 2025-03-21 08:40:06 [RateCDR] => 1 ) [2025-03-21 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-21 05:40:06' and `end` < '2025-03-21 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-21 08:40:18] Production.INFO: count ==523 [2025-03-21 08:40:19] Production.ERROR: pbx CDR StartTime 2025-03-21 05:40:06 - End Time 2025-03-21 08:40:06 [2025-03-21 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729018', 'tblTempUsageDetail_20' ) start [2025-03-21 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729018', 'tblTempUsageDetail_20' ) end [2025-03-21 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729018', 'tblTempVendorCDR_20' ) start [2025-03-21 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729018', 'tblTempVendorCDR_20' ) end [2025-03-21 08:40:19] Production.INFO: ProcessCDR(1,14729018,1,1,2) [2025-03-21 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729018', 'tblTempUsageDetail_20' ) start [2025-03-21 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729018', 'tblTempUsageDetail_20' ) end [2025-03-21 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:40:23] Production.INFO: ==9300== Releasing lock... [2025-03-21 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:40:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:41:06 [end_date_ymd] => 2025-03-21 08:41:06 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:41:06' and `end` < '2025-03-21 08: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-21 08:41:18] Production.INFO: count ==533 [2025-03-21 08:41:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:41:06 - End Time 2025-03-21 08:41:06 [2025-03-21 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729023', 'tblTempUsageDetail_20' ) start [2025-03-21 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729023', 'tblTempUsageDetail_20' ) end [2025-03-21 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729023', 'tblTempVendorCDR_20' ) start [2025-03-21 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729023', 'tblTempVendorCDR_20' ) end [2025-03-21 08:41:18] Production.INFO: ProcessCDR(1,14729023,1,1,2) [2025-03-21 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729023', 'tblTempUsageDetail_20' ) start [2025-03-21 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729023', 'tblTempUsageDetail_20' ) end [2025-03-21 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:41:22] Production.INFO: ==9391== Releasing lock... [2025-03-21 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:41:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:42:05 [end_date_ymd] => 2025-03-21 08:42:05 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:42:05' and `end` < '2025-03-21 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-21 08:42:18] Production.INFO: count ==534 [2025-03-21 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:42:05 - End Time 2025-03-21 08:42:05 [2025-03-21 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729028', 'tblTempUsageDetail_20' ) start [2025-03-21 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729028', 'tblTempUsageDetail_20' ) end [2025-03-21 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729028', 'tblTempVendorCDR_20' ) start [2025-03-21 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729028', 'tblTempVendorCDR_20' ) end [2025-03-21 08:42:18] Production.INFO: ProcessCDR(1,14729028,1,1,2) [2025-03-21 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729028', 'tblTempUsageDetail_20' ) start [2025-03-21 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729028', 'tblTempUsageDetail_20' ) end [2025-03-21 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:42:22] Production.INFO: ==9485== Releasing lock... [2025-03-21 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:42:22] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 08:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:43:06 [end_date_ymd] => 2025-03-21 08:43:06 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:43:06' and `end` < '2025-03-21 08: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-21 08:43:18] Production.INFO: count ==540 [2025-03-21 08:43:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:43:06 - End Time 2025-03-21 08:43:06 [2025-03-21 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729033', 'tblTempUsageDetail_20' ) start [2025-03-21 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729033', 'tblTempUsageDetail_20' ) end [2025-03-21 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729033', 'tblTempVendorCDR_20' ) start [2025-03-21 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729033', 'tblTempVendorCDR_20' ) end [2025-03-21 08:43:18] Production.INFO: ProcessCDR(1,14729033,1,1,2) [2025-03-21 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729033', 'tblTempUsageDetail_20' ) start [2025-03-21 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729033', 'tblTempUsageDetail_20' ) end [2025-03-21 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:43:22] Production.INFO: ==9563== Releasing lock... [2025-03-21 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:43:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:44:06 [end_date_ymd] => 2025-03-21 08:44:06 [RateCDR] => 1 ) [2025-03-21 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-21 05:44:06' and `end` < '2025-03-21 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-21 08:44:18] Production.INFO: count ==560 [2025-03-21 08:44:19] Production.ERROR: pbx CDR StartTime 2025-03-21 05:44:06 - End Time 2025-03-21 08:44:06 [2025-03-21 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729038', 'tblTempUsageDetail_20' ) start [2025-03-21 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729038', 'tblTempUsageDetail_20' ) end [2025-03-21 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729038', 'tblTempVendorCDR_20' ) start [2025-03-21 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729038', 'tblTempVendorCDR_20' ) end [2025-03-21 08:44:19] Production.INFO: ProcessCDR(1,14729038,1,1,2) [2025-03-21 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729038', 'tblTempUsageDetail_20' ) start [2025-03-21 08:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729038', 'tblTempUsageDetail_20' ) end [2025-03-21 08:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:44:24] Production.INFO: ==9645== Releasing lock... [2025-03-21 08:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:44:24] Production.INFO: 32.5 MB #Memory Used# [2025-03-21 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:45:05 [end_date_ymd] => 2025-03-21 08:45:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:45:05' and `end` < '2025-03-21 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-21 08:45:17] Production.INFO: count ==575 [2025-03-21 08:45:17] Production.ERROR: pbx CDR StartTime 2025-03-21 05:45:05 - End Time 2025-03-21 08:45:05 [2025-03-21 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729043', 'tblTempUsageDetail_20' ) start [2025-03-21 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729043', 'tblTempUsageDetail_20' ) end [2025-03-21 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729043', 'tblTempVendorCDR_20' ) start [2025-03-21 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729043', 'tblTempVendorCDR_20' ) end [2025-03-21 08:45:17] Production.INFO: ProcessCDR(1,14729043,1,1,2) [2025-03-21 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729043', 'tblTempUsageDetail_20' ) start [2025-03-21 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729043', 'tblTempUsageDetail_20' ) end [2025-03-21 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:45:21] Production.INFO: ==9729== Releasing lock... [2025-03-21 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:45:21] Production.INFO: 33 MB #Memory Used# [2025-03-21 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:46:05 [end_date_ymd] => 2025-03-21 08:46:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:46:05' and `end` < '2025-03-21 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-21 08:46:18] Production.INFO: count ==578 [2025-03-21 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:46:05 - End Time 2025-03-21 08:46:05 [2025-03-21 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729048', 'tblTempUsageDetail_20' ) start [2025-03-21 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729048', 'tblTempUsageDetail_20' ) end [2025-03-21 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729048', 'tblTempVendorCDR_20' ) start [2025-03-21 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729048', 'tblTempVendorCDR_20' ) end [2025-03-21 08:46:18] Production.INFO: ProcessCDR(1,14729048,1,1,2) [2025-03-21 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729048', 'tblTempUsageDetail_20' ) start [2025-03-21 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729048', 'tblTempUsageDetail_20' ) end [2025-03-21 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:46:21] Production.INFO: ==9825== Releasing lock... [2025-03-21 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:46:21] Production.INFO: 33 MB #Memory Used# [2025-03-21 08:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:47:06 [end_date_ymd] => 2025-03-21 08:47:06 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:47:06' and `end` < '2025-03-21 08: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-21 08:47:18] Production.INFO: count ==583 [2025-03-21 08:47:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:47:06 - End Time 2025-03-21 08:47:06 [2025-03-21 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729053', 'tblTempUsageDetail_20' ) start [2025-03-21 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729053', 'tblTempUsageDetail_20' ) end [2025-03-21 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729053', 'tblTempVendorCDR_20' ) start [2025-03-21 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729053', 'tblTempVendorCDR_20' ) end [2025-03-21 08:47:18] Production.INFO: ProcessCDR(1,14729053,1,1,2) [2025-03-21 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729053', 'tblTempUsageDetail_20' ) start [2025-03-21 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729053', 'tblTempUsageDetail_20' ) end [2025-03-21 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:47:23] Production.INFO: ==9917== Releasing lock... [2025-03-21 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:47:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:48:05 [end_date_ymd] => 2025-03-21 08:48:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:48:05' and `end` < '2025-03-21 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-21 08:48:17] Production.INFO: count ==583 [2025-03-21 08:48:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:48:05 - End Time 2025-03-21 08:48:05 [2025-03-21 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729058', 'tblTempUsageDetail_20' ) start [2025-03-21 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729058', 'tblTempUsageDetail_20' ) end [2025-03-21 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729058', 'tblTempVendorCDR_20' ) start [2025-03-21 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729058', 'tblTempVendorCDR_20' ) end [2025-03-21 08:48:18] Production.INFO: ProcessCDR(1,14729058,1,1,2) [2025-03-21 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729058', 'tblTempUsageDetail_20' ) start [2025-03-21 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729058', 'tblTempUsageDetail_20' ) end [2025-03-21 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:48:21] Production.INFO: ==9998== Releasing lock... [2025-03-21 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:48:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-21 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:49:05 [end_date_ymd] => 2025-03-21 08:49:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:49:05' and `end` < '2025-03-21 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-21 08:49:18] Production.INFO: count ==590 [2025-03-21 08:49:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:49:05 - End Time 2025-03-21 08:49:05 [2025-03-21 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729063', 'tblTempUsageDetail_20' ) start [2025-03-21 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729063', 'tblTempUsageDetail_20' ) end [2025-03-21 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729063', 'tblTempVendorCDR_20' ) start [2025-03-21 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729063', 'tblTempVendorCDR_20' ) end [2025-03-21 08:49:18] Production.INFO: ProcessCDR(1,14729063,1,1,2) [2025-03-21 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729063', 'tblTempUsageDetail_20' ) start [2025-03-21 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729063', 'tblTempUsageDetail_20' ) end [2025-03-21 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:49:23] Production.INFO: ==10085== Releasing lock... [2025-03-21 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:49:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:50:06 [end_date_ymd] => 2025-03-21 08:50:06 [RateCDR] => 1 ) [2025-03-21 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-21 05:50:06' and `end` < '2025-03-21 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-21 08:50:18] Production.INFO: count ==618 [2025-03-21 08:50:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:50:06 - End Time 2025-03-21 08:50:06 [2025-03-21 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729068', 'tblTempUsageDetail_20' ) start [2025-03-21 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729068', 'tblTempUsageDetail_20' ) end [2025-03-21 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729068', 'tblTempVendorCDR_20' ) start [2025-03-21 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729068', 'tblTempVendorCDR_20' ) end [2025-03-21 08:50:18] Production.INFO: ProcessCDR(1,14729068,1,1,2) [2025-03-21 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729068', 'tblTempUsageDetail_20' ) start [2025-03-21 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729068', 'tblTempUsageDetail_20' ) end [2025-03-21 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:50:24] Production.INFO: ==10168== Releasing lock... [2025-03-21 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:50:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-21 08:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:51:06 [end_date_ymd] => 2025-03-21 08:51:06 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:51:06' and `end` < '2025-03-21 08: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-21 08:51:18] Production.INFO: count ==642 [2025-03-21 08:51:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:51:06 - End Time 2025-03-21 08:51:06 [2025-03-21 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729074', 'tblTempUsageDetail_20' ) start [2025-03-21 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729074', 'tblTempUsageDetail_20' ) end [2025-03-21 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729074', 'tblTempVendorCDR_20' ) start [2025-03-21 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729074', 'tblTempVendorCDR_20' ) end [2025-03-21 08:51:18] Production.INFO: ProcessCDR(1,14729074,1,1,2) [2025-03-21 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729074', 'tblTempUsageDetail_20' ) start [2025-03-21 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729074', 'tblTempUsageDetail_20' ) end [2025-03-21 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:51:23] Production.INFO: ==10254== Releasing lock... [2025-03-21 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:51:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-21 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:52:05 [end_date_ymd] => 2025-03-21 08:52:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:52:05' and `end` < '2025-03-21 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-21 08:52:17] Production.INFO: count ==655 [2025-03-21 08:52:17] Production.ERROR: pbx CDR StartTime 2025-03-21 05:52:05 - End Time 2025-03-21 08:52:05 [2025-03-21 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729079', 'tblTempUsageDetail_20' ) start [2025-03-21 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729079', 'tblTempUsageDetail_20' ) end [2025-03-21 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729079', 'tblTempVendorCDR_20' ) start [2025-03-21 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729079', 'tblTempVendorCDR_20' ) end [2025-03-21 08:52:17] Production.INFO: ProcessCDR(1,14729079,1,1,2) [2025-03-21 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729079', 'tblTempUsageDetail_20' ) start [2025-03-21 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729079', 'tblTempUsageDetail_20' ) end [2025-03-21 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:52:23] Production.INFO: ==10331== Releasing lock... [2025-03-21 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:52:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-21 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:53:05 [end_date_ymd] => 2025-03-21 08:53:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:53:05' and `end` < '2025-03-21 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-21 08:53:18] Production.INFO: count ==655 [2025-03-21 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:53:05 - End Time 2025-03-21 08:53:05 [2025-03-21 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729084', 'tblTempUsageDetail_20' ) start [2025-03-21 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729084', 'tblTempUsageDetail_20' ) end [2025-03-21 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729084', 'tblTempVendorCDR_20' ) start [2025-03-21 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729084', 'tblTempVendorCDR_20' ) end [2025-03-21 08:53:18] Production.INFO: ProcessCDR(1,14729084,1,1,2) [2025-03-21 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729084', 'tblTempUsageDetail_20' ) start [2025-03-21 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729084', 'tblTempUsageDetail_20' ) end [2025-03-21 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:53:21] Production.INFO: ==10419== Releasing lock... [2025-03-21 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:53:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-21 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:54:05 [end_date_ymd] => 2025-03-21 08:54:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:54:05' and `end` < '2025-03-21 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-21 08:54:18] Production.INFO: count ==656 [2025-03-21 08:54:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:54:05 - End Time 2025-03-21 08:54:05 [2025-03-21 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729089', 'tblTempUsageDetail_20' ) start [2025-03-21 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729089', 'tblTempUsageDetail_20' ) end [2025-03-21 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729089', 'tblTempVendorCDR_20' ) start [2025-03-21 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729089', 'tblTempVendorCDR_20' ) end [2025-03-21 08:54:18] Production.INFO: ProcessCDR(1,14729089,1,1,2) [2025-03-21 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729089', 'tblTempUsageDetail_20' ) start [2025-03-21 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729089', 'tblTempUsageDetail_20' ) end [2025-03-21 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:54:23] Production.INFO: ==10499== Releasing lock... [2025-03-21 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:54:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-21 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:55:05 [end_date_ymd] => 2025-03-21 08:55:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:55:05' and `end` < '2025-03-21 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-21 08:55:18] Production.INFO: count ==661 [2025-03-21 08:55:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:55:05 - End Time 2025-03-21 08:55:05 [2025-03-21 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729094', 'tblTempUsageDetail_20' ) start [2025-03-21 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729094', 'tblTempUsageDetail_20' ) end [2025-03-21 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729094', 'tblTempVendorCDR_20' ) start [2025-03-21 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729094', 'tblTempVendorCDR_20' ) end [2025-03-21 08:55:18] Production.INFO: ProcessCDR(1,14729094,1,1,2) [2025-03-21 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729094', 'tblTempUsageDetail_20' ) start [2025-03-21 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729094', 'tblTempUsageDetail_20' ) end [2025-03-21 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:55:23] Production.INFO: ==10616== Releasing lock... [2025-03-21 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:55:23] Production.INFO: 33 MB #Memory Used# [2025-03-21 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:56:05 [end_date_ymd] => 2025-03-21 08:56:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:56:05' and `end` < '2025-03-21 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-21 08:56:17] Production.INFO: count ==667 [2025-03-21 08:56:17] Production.ERROR: pbx CDR StartTime 2025-03-21 05:56:05 - End Time 2025-03-21 08:56:05 [2025-03-21 08:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729099', 'tblTempUsageDetail_20' ) start [2025-03-21 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729099', 'tblTempUsageDetail_20' ) end [2025-03-21 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729099', 'tblTempVendorCDR_20' ) start [2025-03-21 08:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729099', 'tblTempVendorCDR_20' ) end [2025-03-21 08:56:17] Production.INFO: ProcessCDR(1,14729099,1,1,2) [2025-03-21 08:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729099', 'tblTempUsageDetail_20' ) start [2025-03-21 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729099', 'tblTempUsageDetail_20' ) end [2025-03-21 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:56:23] Production.INFO: ==10705== Releasing lock... [2025-03-21 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:56:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-21 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:57:06 [end_date_ymd] => 2025-03-21 08:57:06 [RateCDR] => 1 ) [2025-03-21 08: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-21 05:57:06' and `end` < '2025-03-21 08: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-21 08:57:18] Production.INFO: count ==675 [2025-03-21 08:57:19] Production.ERROR: pbx CDR StartTime 2025-03-21 05:57:06 - End Time 2025-03-21 08:57:06 [2025-03-21 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729104', 'tblTempUsageDetail_20' ) start [2025-03-21 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729104', 'tblTempUsageDetail_20' ) end [2025-03-21 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729104', 'tblTempVendorCDR_20' ) start [2025-03-21 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729104', 'tblTempVendorCDR_20' ) end [2025-03-21 08:57:19] Production.INFO: ProcessCDR(1,14729104,1,1,2) [2025-03-21 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729104', 'tblTempUsageDetail_20' ) start [2025-03-21 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729104', 'tblTempUsageDetail_20' ) end [2025-03-21 08:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:57:24] Production.INFO: ==10790== Releasing lock... [2025-03-21 08:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:57:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-21 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:58:05 [end_date_ymd] => 2025-03-21 08:58:05 [RateCDR] => 1 ) [2025-03-21 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-21 05:58:05' and `end` < '2025-03-21 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-21 08:58:17] Production.INFO: count ==694 [2025-03-21 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:58:05 - End Time 2025-03-21 08:58:05 [2025-03-21 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729109', 'tblTempUsageDetail_20' ) start [2025-03-21 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729109', 'tblTempUsageDetail_20' ) end [2025-03-21 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729109', 'tblTempVendorCDR_20' ) start [2025-03-21 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729109', 'tblTempVendorCDR_20' ) end [2025-03-21 08:58:18] Production.INFO: ProcessCDR(1,14729109,1,1,2) [2025-03-21 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729109', 'tblTempUsageDetail_20' ) start [2025-03-21 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729109', 'tblTempUsageDetail_20' ) end [2025-03-21 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:58:22] Production.INFO: ==10879== Releasing lock... [2025-03-21 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:58:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-21 08:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 05:59:06 [end_date_ymd] => 2025-03-21 08:59:06 [RateCDR] => 1 ) [2025-03-21 08:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 05:59:06' and `end` < '2025-03-21 08:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 08:59:18] Production.INFO: count ==703 [2025-03-21 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-21 05:59:06 - End Time 2025-03-21 08:59:06 [2025-03-21 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729114', 'tblTempUsageDetail_20' ) start [2025-03-21 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729114', 'tblTempUsageDetail_20' ) end [2025-03-21 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729114', 'tblTempVendorCDR_20' ) start [2025-03-21 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729114', 'tblTempVendorCDR_20' ) end [2025-03-21 08:59:18] Production.INFO: ProcessCDR(1,14729114,1,1,2) [2025-03-21 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729114', 'tblTempUsageDetail_20' ) start [2025-03-21 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729114', 'tblTempUsageDetail_20' ) end [2025-03-21 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 08:59:23] Production.INFO: ==10973== Releasing lock... [2025-03-21 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 08:59:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-21 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:00:05 [end_date_ymd] => 2025-03-21 09:00:05 [RateCDR] => 1 ) [2025-03-21 09: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-21 06:00:05' and `end` < '2025-03-21 09: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-21 09:00:17] Production.INFO: count ==722 [2025-03-21 09:00:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:00:05 - End Time 2025-03-21 09:00:05 [2025-03-21 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729119', 'tblTempUsageDetail_20' ) start [2025-03-21 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729119', 'tblTempUsageDetail_20' ) end [2025-03-21 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729119', 'tblTempVendorCDR_20' ) start [2025-03-21 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729119', 'tblTempVendorCDR_20' ) end [2025-03-21 09:00:18] Production.INFO: ProcessCDR(1,14729119,1,1,2) [2025-03-21 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729119', 'tblTempUsageDetail_20' ) start [2025-03-21 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729119', 'tblTempUsageDetail_20' ) end [2025-03-21 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:00:23] Production.INFO: ==11058== Releasing lock... [2025-03-21 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:00:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-21 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:01:05 [end_date_ymd] => 2025-03-21 09:01:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:01:05' and `end` < '2025-03-21 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-21 09:01:17] Production.INFO: count ==769 [2025-03-21 09:01:17] Production.ERROR: pbx CDR StartTime 2025-03-21 06:01:05 - End Time 2025-03-21 09:01:05 [2025-03-21 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729125', 'tblTempUsageDetail_20' ) start [2025-03-21 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729125', 'tblTempUsageDetail_20' ) end [2025-03-21 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729125', 'tblTempVendorCDR_20' ) start [2025-03-21 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729125', 'tblTempVendorCDR_20' ) end [2025-03-21 09:01:18] Production.INFO: ProcessCDR(1,14729125,1,1,2) [2025-03-21 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729125', 'tblTempUsageDetail_20' ) start [2025-03-21 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729125', 'tblTempUsageDetail_20' ) end [2025-03-21 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:01:21] Production.INFO: ==11162== Releasing lock... [2025-03-21 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:01:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-21 09:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:02:04 [end_date_ymd] => 2025-03-21 09:02:04 [RateCDR] => 1 ) [2025-03-21 09:02: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-21 06:02:04' and `end` < '2025-03-21 09:02: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-21 09:02:17] Production.INFO: count ==782 [2025-03-21 09:02:17] Production.ERROR: pbx CDR StartTime 2025-03-21 06:02:04 - End Time 2025-03-21 09:02:04 [2025-03-21 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729130', 'tblTempUsageDetail_20' ) start [2025-03-21 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729130', 'tblTempUsageDetail_20' ) end [2025-03-21 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729130', 'tblTempVendorCDR_20' ) start [2025-03-21 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729130', 'tblTempVendorCDR_20' ) end [2025-03-21 09:02:17] Production.INFO: ProcessCDR(1,14729130,1,1,2) [2025-03-21 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729130', 'tblTempUsageDetail_20' ) start [2025-03-21 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729130', 'tblTempUsageDetail_20' ) end [2025-03-21 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:02:23] Production.INFO: ==11250== Releasing lock... [2025-03-21 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:02:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-21 09:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:03:06 [end_date_ymd] => 2025-03-21 09:03:06 [RateCDR] => 1 ) [2025-03-21 09: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-21 06:03:06' and `end` < '2025-03-21 09: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-21 09:03:18] Production.INFO: count ==793 [2025-03-21 09:03:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:03:06 - End Time 2025-03-21 09:03:06 [2025-03-21 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729135', 'tblTempUsageDetail_20' ) start [2025-03-21 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729135', 'tblTempUsageDetail_20' ) end [2025-03-21 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729135', 'tblTempVendorCDR_20' ) start [2025-03-21 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729135', 'tblTempVendorCDR_20' ) end [2025-03-21 09:03:19] Production.INFO: ProcessCDR(1,14729135,1,1,2) [2025-03-21 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729135', 'tblTempUsageDetail_20' ) start [2025-03-21 09:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729135', 'tblTempUsageDetail_20' ) end [2025-03-21 09:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:03:25] Production.INFO: ==11329== Releasing lock... [2025-03-21 09:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:03:25] Production.INFO: 34.5 MB #Memory Used# [2025-03-21 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:04:05 [end_date_ymd] => 2025-03-21 09:04:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:04:05' and `end` < '2025-03-21 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-21 09:04:17] Production.INFO: count ==789 [2025-03-21 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:04:05 - End Time 2025-03-21 09:04:05 [2025-03-21 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729140', 'tblTempUsageDetail_20' ) start [2025-03-21 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729140', 'tblTempUsageDetail_20' ) end [2025-03-21 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729140', 'tblTempVendorCDR_20' ) start [2025-03-21 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729140', 'tblTempVendorCDR_20' ) end [2025-03-21 09:04:18] Production.INFO: ProcessCDR(1,14729140,1,1,2) [2025-03-21 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729140', 'tblTempUsageDetail_20' ) start [2025-03-21 09:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729140', 'tblTempUsageDetail_20' ) end [2025-03-21 09:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:04:22] Production.INFO: ==11408== Releasing lock... [2025-03-21 09:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:04:22] Production.INFO: 34.25 MB #Memory Used# [2025-03-21 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:05:05 [end_date_ymd] => 2025-03-21 09:05:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:05:05' and `end` < '2025-03-21 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-21 09:05:18] Production.INFO: count ==801 [2025-03-21 09:05:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:05:05 - End Time 2025-03-21 09:05:05 [2025-03-21 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729145', 'tblTempUsageDetail_20' ) start [2025-03-21 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729145', 'tblTempUsageDetail_20' ) end [2025-03-21 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729145', 'tblTempVendorCDR_20' ) start [2025-03-21 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729145', 'tblTempVendorCDR_20' ) end [2025-03-21 09:05:18] Production.INFO: ProcessCDR(1,14729145,1,1,2) [2025-03-21 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729145', 'tblTempUsageDetail_20' ) start [2025-03-21 09:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729145', 'tblTempUsageDetail_20' ) end [2025-03-21 09:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:05:22] Production.INFO: ==11495== Releasing lock... [2025-03-21 09:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:05:22] Production.INFO: 34.5 MB #Memory Used# [2025-03-21 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:06:05 [end_date_ymd] => 2025-03-21 09:06:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:06:05' and `end` < '2025-03-21 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-21 09:06:18] Production.INFO: count ==815 [2025-03-21 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:06:05 - End Time 2025-03-21 09:06:05 [2025-03-21 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729150', 'tblTempUsageDetail_20' ) start [2025-03-21 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729150', 'tblTempUsageDetail_20' ) end [2025-03-21 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729150', 'tblTempVendorCDR_20' ) start [2025-03-21 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729150', 'tblTempVendorCDR_20' ) end [2025-03-21 09:06:18] Production.INFO: ProcessCDR(1,14729150,1,1,2) [2025-03-21 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729150', 'tblTempUsageDetail_20' ) start [2025-03-21 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729150', 'tblTempUsageDetail_20' ) end [2025-03-21 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:06:23] Production.INFO: ==11589== Releasing lock... [2025-03-21 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:06:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-21 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:07:05 [end_date_ymd] => 2025-03-21 09:07:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:07:05' and `end` < '2025-03-21 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 09:07:18] Production.INFO: count ==831 [2025-03-21 09:07:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:07:05 - End Time 2025-03-21 09:07:05 [2025-03-21 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729155', 'tblTempUsageDetail_20' ) start [2025-03-21 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729155', 'tblTempUsageDetail_20' ) end [2025-03-21 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729155', 'tblTempVendorCDR_20' ) start [2025-03-21 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729155', 'tblTempVendorCDR_20' ) end [2025-03-21 09:07:18] Production.INFO: ProcessCDR(1,14729155,1,1,2) [2025-03-21 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729155', 'tblTempUsageDetail_20' ) start [2025-03-21 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729155', 'tblTempUsageDetail_20' ) end [2025-03-21 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:07:23] Production.INFO: ==11667== Releasing lock... [2025-03-21 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:07:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-21 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:08:05 [end_date_ymd] => 2025-03-21 09:08:05 [RateCDR] => 1 ) [2025-03-21 09:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 06:08:05' and `end` < '2025-03-21 09:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 09:08:17] Production.INFO: count ==835 [2025-03-21 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:08:05 - End Time 2025-03-21 09:08:05 [2025-03-21 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729160', 'tblTempUsageDetail_20' ) start [2025-03-21 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729160', 'tblTempUsageDetail_20' ) end [2025-03-21 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729160', 'tblTempVendorCDR_20' ) start [2025-03-21 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729160', 'tblTempVendorCDR_20' ) end [2025-03-21 09:08:18] Production.INFO: ProcessCDR(1,14729160,1,1,2) [2025-03-21 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729160', 'tblTempUsageDetail_20' ) start [2025-03-21 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729160', 'tblTempUsageDetail_20' ) end [2025-03-21 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:08:23] Production.INFO: ==11749== Releasing lock... [2025-03-21 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:08:23] Production.INFO: 35 MB #Memory Used# [2025-03-21 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:09:05 [end_date_ymd] => 2025-03-21 09:09:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:09:05' and `end` < '2025-03-21 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-21 09:09:18] Production.INFO: count ==848 [2025-03-21 09:09:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:09:05 - End Time 2025-03-21 09:09:05 [2025-03-21 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729165', 'tblTempUsageDetail_20' ) start [2025-03-21 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729165', 'tblTempUsageDetail_20' ) end [2025-03-21 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729165', 'tblTempVendorCDR_20' ) start [2025-03-21 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729165', 'tblTempVendorCDR_20' ) end [2025-03-21 09:09:18] Production.INFO: ProcessCDR(1,14729165,1,1,2) [2025-03-21 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729165', 'tblTempUsageDetail_20' ) start [2025-03-21 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729165', 'tblTempUsageDetail_20' ) end [2025-03-21 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:09:21] Production.INFO: ==11834== Releasing lock... [2025-03-21 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:09:21] Production.INFO: 34.25 MB #Memory Used# [2025-03-21 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:10:05 [end_date_ymd] => 2025-03-21 09:10:05 [RateCDR] => 1 ) [2025-03-21 09: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-21 06:10:05' and `end` < '2025-03-21 09: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-21 09:10:18] Production.INFO: count ==867 [2025-03-21 09:10:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:10:05 - End Time 2025-03-21 09:10:05 [2025-03-21 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729170', 'tblTempUsageDetail_20' ) start [2025-03-21 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729170', 'tblTempUsageDetail_20' ) end [2025-03-21 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729170', 'tblTempVendorCDR_20' ) start [2025-03-21 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729170', 'tblTempVendorCDR_20' ) end [2025-03-21 09:10:18] Production.INFO: ProcessCDR(1,14729170,1,1,2) [2025-03-21 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729170', 'tblTempUsageDetail_20' ) start [2025-03-21 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729170', 'tblTempUsageDetail_20' ) end [2025-03-21 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:10:23] Production.INFO: ==11956== Releasing lock... [2025-03-21 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:10:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-21 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:11:05 [end_date_ymd] => 2025-03-21 09:11:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:11:05' and `end` < '2025-03-21 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-21 09:11:18] Production.INFO: count ==952 [2025-03-21 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:11:05 - End Time 2025-03-21 09:11:05 [2025-03-21 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729176', 'tblTempUsageDetail_20' ) start [2025-03-21 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729176', 'tblTempUsageDetail_20' ) end [2025-03-21 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729176', 'tblTempVendorCDR_20' ) start [2025-03-21 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729176', 'tblTempVendorCDR_20' ) end [2025-03-21 09:11:18] Production.INFO: ProcessCDR(1,14729176,1,1,2) [2025-03-21 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729176', 'tblTempUsageDetail_20' ) start [2025-03-21 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729176', 'tblTempUsageDetail_20' ) end [2025-03-21 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:11:23] Production.INFO: ==12043== Releasing lock... [2025-03-21 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:11:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-21 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:12:06 [end_date_ymd] => 2025-03-21 09:12:06 [RateCDR] => 1 ) [2025-03-21 09:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 06:12:06' and `end` < '2025-03-21 09:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 09:12:18] Production.INFO: count ==971 [2025-03-21 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:12:06 - End Time 2025-03-21 09:12:06 [2025-03-21 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729181', 'tblTempUsageDetail_20' ) start [2025-03-21 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729181', 'tblTempUsageDetail_20' ) end [2025-03-21 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729181', 'tblTempVendorCDR_20' ) start [2025-03-21 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729181', 'tblTempVendorCDR_20' ) end [2025-03-21 09:12:18] Production.INFO: ProcessCDR(1,14729181,1,1,2) [2025-03-21 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729181', 'tblTempUsageDetail_20' ) start [2025-03-21 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729181', 'tblTempUsageDetail_20' ) end [2025-03-21 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:12:24] Production.INFO: ==12125== Releasing lock... [2025-03-21 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:12:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-21 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:13:05 [end_date_ymd] => 2025-03-21 09:13:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:13:05' and `end` < '2025-03-21 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-21 09:13:18] Production.INFO: count ==989 [2025-03-21 09:13:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:13:05 - End Time 2025-03-21 09:13:05 [2025-03-21 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729186', 'tblTempUsageDetail_20' ) start [2025-03-21 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729186', 'tblTempUsageDetail_20' ) end [2025-03-21 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729186', 'tblTempVendorCDR_20' ) start [2025-03-21 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729186', 'tblTempVendorCDR_20' ) end [2025-03-21 09:13:18] Production.INFO: ProcessCDR(1,14729186,1,1,2) [2025-03-21 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729186', 'tblTempUsageDetail_20' ) start [2025-03-21 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729186', 'tblTempUsageDetail_20' ) end [2025-03-21 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:13:24] Production.INFO: ==12207== Releasing lock... [2025-03-21 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:13:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-21 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:14:06 [end_date_ymd] => 2025-03-21 09:14:06 [RateCDR] => 1 ) [2025-03-21 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-21 06:14:06' and `end` < '2025-03-21 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-21 09:14:18] Production.INFO: count ==995 [2025-03-21 09:14:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:14:06 - End Time 2025-03-21 09:14:06 [2025-03-21 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729191', 'tblTempUsageDetail_20' ) start [2025-03-21 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729191', 'tblTempUsageDetail_20' ) end [2025-03-21 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729191', 'tblTempVendorCDR_20' ) start [2025-03-21 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729191', 'tblTempVendorCDR_20' ) end [2025-03-21 09:14:19] Production.INFO: ProcessCDR(1,14729191,1,1,2) [2025-03-21 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729191', 'tblTempUsageDetail_20' ) start [2025-03-21 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729191', 'tblTempUsageDetail_20' ) end [2025-03-21 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:14:24] Production.INFO: ==12286== Releasing lock... [2025-03-21 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:14:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-21 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:15:05 [end_date_ymd] => 2025-03-21 09:15:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:15:05' and `end` < '2025-03-21 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-21 09:15:17] Production.INFO: count ==1010 [2025-03-21 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:15:05 - End Time 2025-03-21 09:15:05 [2025-03-21 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729196', 'tblTempUsageDetail_20' ) start [2025-03-21 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729196', 'tblTempUsageDetail_20' ) end [2025-03-21 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729196', 'tblTempVendorCDR_20' ) start [2025-03-21 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729196', 'tblTempVendorCDR_20' ) end [2025-03-21 09:15:18] Production.INFO: ProcessCDR(1,14729196,1,1,2) [2025-03-21 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729196', 'tblTempUsageDetail_20' ) start [2025-03-21 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729196', 'tblTempUsageDetail_20' ) end [2025-03-21 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:15:21] Production.INFO: ==12365== Releasing lock... [2025-03-21 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:15:21] Production.INFO: 36 MB #Memory Used# [2025-03-21 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:16:06 [end_date_ymd] => 2025-03-21 09:16:06 [RateCDR] => 1 ) [2025-03-21 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-21 06:16:06' and `end` < '2025-03-21 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-21 09:16:18] Production.INFO: count ==1017 [2025-03-21 09:16:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:16:06 - End Time 2025-03-21 09:16:06 [2025-03-21 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729201', 'tblTempUsageDetail_20' ) start [2025-03-21 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729201', 'tblTempUsageDetail_20' ) end [2025-03-21 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729201', 'tblTempVendorCDR_20' ) start [2025-03-21 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729201', 'tblTempVendorCDR_20' ) end [2025-03-21 09:16:19] Production.INFO: ProcessCDR(1,14729201,1,1,2) [2025-03-21 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729201', 'tblTempUsageDetail_20' ) start [2025-03-21 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729201', 'tblTempUsageDetail_20' ) end [2025-03-21 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:16:24] Production.INFO: ==12449== Releasing lock... [2025-03-21 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:16:24] Production.INFO: 35.75 MB #Memory Used# [2025-03-21 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:17:05 [end_date_ymd] => 2025-03-21 09:17:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:17:05' and `end` < '2025-03-21 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-21 09:17:17] Production.INFO: count ==1032 [2025-03-21 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:17:05 - End Time 2025-03-21 09:17:05 [2025-03-21 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729206', 'tblTempUsageDetail_20' ) start [2025-03-21 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729206', 'tblTempUsageDetail_20' ) end [2025-03-21 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729206', 'tblTempVendorCDR_20' ) start [2025-03-21 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729206', 'tblTempVendorCDR_20' ) end [2025-03-21 09:17:18] Production.INFO: ProcessCDR(1,14729206,1,1,2) [2025-03-21 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729206', 'tblTempUsageDetail_20' ) start [2025-03-21 09:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729206', 'tblTempUsageDetail_20' ) end [2025-03-21 09:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:17:21] Production.INFO: ==12535== Releasing lock... [2025-03-21 09:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:17:21] Production.INFO: 36.25 MB #Memory Used# [2025-03-21 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:18:05 [end_date_ymd] => 2025-03-21 09:18:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:18:05' and `end` < '2025-03-21 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-21 09:18:18] Production.INFO: count ==1031 [2025-03-21 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:18:05 - End Time 2025-03-21 09:18:05 [2025-03-21 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729211', 'tblTempUsageDetail_20' ) start [2025-03-21 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729211', 'tblTempUsageDetail_20' ) end [2025-03-21 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729211', 'tblTempVendorCDR_20' ) start [2025-03-21 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729211', 'tblTempVendorCDR_20' ) end [2025-03-21 09:18:18] Production.INFO: ProcessCDR(1,14729211,1,1,2) [2025-03-21 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729211', 'tblTempUsageDetail_20' ) start [2025-03-21 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729211', 'tblTempUsageDetail_20' ) end [2025-03-21 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:18:24] Production.INFO: ==12626== Releasing lock... [2025-03-21 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:18:24] Production.INFO: 36.25 MB #Memory Used# [2025-03-21 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:19:05 [end_date_ymd] => 2025-03-21 09:19:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:19:05' and `end` < '2025-03-21 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-21 09:19:17] Production.INFO: count ==1042 [2025-03-21 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:19:05 - End Time 2025-03-21 09:19:05 [2025-03-21 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729216', 'tblTempUsageDetail_20' ) start [2025-03-21 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729216', 'tblTempUsageDetail_20' ) end [2025-03-21 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729216', 'tblTempVendorCDR_20' ) start [2025-03-21 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729216', 'tblTempVendorCDR_20' ) end [2025-03-21 09:19:18] Production.INFO: ProcessCDR(1,14729216,1,1,2) [2025-03-21 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729216', 'tblTempUsageDetail_20' ) start [2025-03-21 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729216', 'tblTempUsageDetail_20' ) end [2025-03-21 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:19:23] Production.INFO: ==12708== Releasing lock... [2025-03-21 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:19:23] Production.INFO: 36 MB #Memory Used# [2025-03-21 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:20:06 [end_date_ymd] => 2025-03-21 09:20:06 [RateCDR] => 1 ) [2025-03-21 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-21 06:20:06' and `end` < '2025-03-21 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-21 09:20:19] Production.INFO: count ==1074 [2025-03-21 09:20:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:20:06 - End Time 2025-03-21 09:20:06 [2025-03-21 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729221', 'tblTempUsageDetail_20' ) start [2025-03-21 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729221', 'tblTempUsageDetail_20' ) end [2025-03-21 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729221', 'tblTempVendorCDR_20' ) start [2025-03-21 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729221', 'tblTempVendorCDR_20' ) end [2025-03-21 09:20:19] Production.INFO: ProcessCDR(1,14729221,1,1,2) [2025-03-21 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729221', 'tblTempUsageDetail_20' ) start [2025-03-21 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729221', 'tblTempUsageDetail_20' ) end [2025-03-21 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:20:24] Production.INFO: ==12788== Releasing lock... [2025-03-21 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:20:24] Production.INFO: 36 MB #Memory Used# [2025-03-21 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:21:05 [end_date_ymd] => 2025-03-21 09:21:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:21:05' and `end` < '2025-03-21 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-21 09:21:18] Production.INFO: count ==1139 [2025-03-21 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:21:05 - End Time 2025-03-21 09:21:05 [2025-03-21 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729227', 'tblTempUsageDetail_20' ) start [2025-03-21 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729227', 'tblTempUsageDetail_20' ) end [2025-03-21 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729227', 'tblTempVendorCDR_20' ) start [2025-03-21 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729227', 'tblTempVendorCDR_20' ) end [2025-03-21 09:21:18] Production.INFO: ProcessCDR(1,14729227,1,1,2) [2025-03-21 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729227', 'tblTempUsageDetail_20' ) start [2025-03-21 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729227', 'tblTempUsageDetail_20' ) end [2025-03-21 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:21:22] Production.INFO: ==12882== Releasing lock... [2025-03-21 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:21:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-21 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:22:06 [end_date_ymd] => 2025-03-21 09:22:06 [RateCDR] => 1 ) [2025-03-21 09: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-21 06:22:06' and `end` < '2025-03-21 09: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-21 09:22:18] Production.INFO: count ==1161 [2025-03-21 09:22:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:22:06 - End Time 2025-03-21 09:22:06 [2025-03-21 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729232', 'tblTempUsageDetail_20' ) start [2025-03-21 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729232', 'tblTempUsageDetail_20' ) end [2025-03-21 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729232', 'tblTempVendorCDR_20' ) start [2025-03-21 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729232', 'tblTempVendorCDR_20' ) end [2025-03-21 09:22:19] Production.INFO: ProcessCDR(1,14729232,1,1,2) [2025-03-21 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729232', 'tblTempUsageDetail_20' ) start [2025-03-21 09:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729232', 'tblTempUsageDetail_20' ) end [2025-03-21 09:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:22:25] Production.INFO: ==12965== Releasing lock... [2025-03-21 09:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:22:25] Production.INFO: 37 MB #Memory Used# [2025-03-21 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:23:05 [end_date_ymd] => 2025-03-21 09:23:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:23:05' and `end` < '2025-03-21 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-21 09:23:17] Production.INFO: count ==1180 [2025-03-21 09:23:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:23:05 - End Time 2025-03-21 09:23:05 [2025-03-21 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729237', 'tblTempUsageDetail_20' ) start [2025-03-21 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729237', 'tblTempUsageDetail_20' ) end [2025-03-21 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729237', 'tblTempVendorCDR_20' ) start [2025-03-21 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729237', 'tblTempVendorCDR_20' ) end [2025-03-21 09:23:18] Production.INFO: ProcessCDR(1,14729237,1,1,2) [2025-03-21 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729237', 'tblTempUsageDetail_20' ) start [2025-03-21 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729237', 'tblTempUsageDetail_20' ) end [2025-03-21 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:23:24] Production.INFO: ==13054== Releasing lock... [2025-03-21 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:23:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-21 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:24:05 [end_date_ymd] => 2025-03-21 09:24:05 [RateCDR] => 1 ) [2025-03-21 09: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-21 06:24:05' and `end` < '2025-03-21 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-21 09:24:18] Production.INFO: count ==1187 [2025-03-21 09:24:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:24:05 - End Time 2025-03-21 09:24:05 [2025-03-21 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729242', 'tblTempUsageDetail_20' ) start [2025-03-21 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729242', 'tblTempUsageDetail_20' ) end [2025-03-21 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729242', 'tblTempVendorCDR_20' ) start [2025-03-21 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729242', 'tblTempVendorCDR_20' ) end [2025-03-21 09:24:18] Production.INFO: ProcessCDR(1,14729242,1,1,2) [2025-03-21 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729242', 'tblTempUsageDetail_20' ) start [2025-03-21 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729242', 'tblTempUsageDetail_20' ) end [2025-03-21 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:24:24] Production.INFO: ==13135== Releasing lock... [2025-03-21 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:24:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-21 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:25:05 [end_date_ymd] => 2025-03-21 09:25:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:25:05' and `end` < '2025-03-21 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-21 09:25:18] Production.INFO: count ==1197 [2025-03-21 09:25:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:25:05 - End Time 2025-03-21 09:25:05 [2025-03-21 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729247', 'tblTempUsageDetail_20' ) start [2025-03-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729247', 'tblTempUsageDetail_20' ) end [2025-03-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729247', 'tblTempVendorCDR_20' ) start [2025-03-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729247', 'tblTempVendorCDR_20' ) end [2025-03-21 09:25:18] Production.INFO: ProcessCDR(1,14729247,1,1,2) [2025-03-21 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729247', 'tblTempUsageDetail_20' ) start [2025-03-21 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729247', 'tblTempUsageDetail_20' ) end [2025-03-21 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:25:25] Production.INFO: ==13218== Releasing lock... [2025-03-21 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:25:25] Production.INFO: 37 MB #Memory Used# [2025-03-21 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:26:05 [end_date_ymd] => 2025-03-21 09:26:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:26:05' and `end` < '2025-03-21 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-21 09:26:18] Production.INFO: count ==1223 [2025-03-21 09:26:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:26:05 - End Time 2025-03-21 09:26:05 [2025-03-21 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729252', 'tblTempUsageDetail_20' ) start [2025-03-21 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729252', 'tblTempUsageDetail_20' ) end [2025-03-21 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729252', 'tblTempVendorCDR_20' ) start [2025-03-21 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729252', 'tblTempVendorCDR_20' ) end [2025-03-21 09:26:18] Production.INFO: ProcessCDR(1,14729252,1,1,2) [2025-03-21 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729252', 'tblTempUsageDetail_20' ) start [2025-03-21 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729252', 'tblTempUsageDetail_20' ) end [2025-03-21 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:26:24] Production.INFO: ==13338== Releasing lock... [2025-03-21 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:26:24] Production.INFO: 37.25 MB #Memory Used# [2025-03-21 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:27:05 [end_date_ymd] => 2025-03-21 09:27:05 [RateCDR] => 1 ) [2025-03-21 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 06:27:05' and `end` < '2025-03-21 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 09:27:17] Production.INFO: count ==1235 [2025-03-21 09:27:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:27:05 - End Time 2025-03-21 09:27:05 [2025-03-21 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729257', 'tblTempUsageDetail_20' ) start [2025-03-21 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729257', 'tblTempUsageDetail_20' ) end [2025-03-21 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729257', 'tblTempVendorCDR_20' ) start [2025-03-21 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729257', 'tblTempVendorCDR_20' ) end [2025-03-21 09:27:18] Production.INFO: ProcessCDR(1,14729257,1,1,2) [2025-03-21 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729257', 'tblTempUsageDetail_20' ) start [2025-03-21 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729257', 'tblTempUsageDetail_20' ) end [2025-03-21 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:27:23] Production.INFO: ==13422== Releasing lock... [2025-03-21 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:27:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-21 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:28:05 [end_date_ymd] => 2025-03-21 09:28:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:28:05' and `end` < '2025-03-21 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-21 09:28:18] Production.INFO: count ==1260 [2025-03-21 09:28:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:28:05 - End Time 2025-03-21 09:28:05 [2025-03-21 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729262', 'tblTempUsageDetail_20' ) start [2025-03-21 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729262', 'tblTempUsageDetail_20' ) end [2025-03-21 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729262', 'tblTempVendorCDR_20' ) start [2025-03-21 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729262', 'tblTempVendorCDR_20' ) end [2025-03-21 09:28:18] Production.INFO: ProcessCDR(1,14729262,1,1,2) [2025-03-21 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729262', 'tblTempUsageDetail_20' ) start [2025-03-21 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729262', 'tblTempUsageDetail_20' ) end [2025-03-21 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:28:23] Production.INFO: ==13507== Releasing lock... [2025-03-21 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:28:23] Production.INFO: 38 MB #Memory Used# [2025-03-21 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:29:05 [end_date_ymd] => 2025-03-21 09:29:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:29:05' and `end` < '2025-03-21 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-21 09:29:18] Production.INFO: count ==1294 [2025-03-21 09:29:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:29:05 - End Time 2025-03-21 09:29:05 [2025-03-21 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729267', 'tblTempUsageDetail_20' ) start [2025-03-21 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729267', 'tblTempUsageDetail_20' ) end [2025-03-21 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729267', 'tblTempVendorCDR_20' ) start [2025-03-21 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729267', 'tblTempVendorCDR_20' ) end [2025-03-21 09:29:18] Production.INFO: ProcessCDR(1,14729267,1,1,2) [2025-03-21 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729267', 'tblTempUsageDetail_20' ) start [2025-03-21 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729267', 'tblTempUsageDetail_20' ) end [2025-03-21 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:29:24] Production.INFO: ==13585== Releasing lock... [2025-03-21 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:29:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-21 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:30:06 [end_date_ymd] => 2025-03-21 09:30:06 [RateCDR] => 1 ) [2025-03-21 09:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 06:30:06' and `end` < '2025-03-21 09:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 09:30:18] Production.INFO: count ==1311 [2025-03-21 09:30:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:30:06 - End Time 2025-03-21 09:30:06 [2025-03-21 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729272', 'tblTempUsageDetail_20' ) start [2025-03-21 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729272', 'tblTempUsageDetail_20' ) end [2025-03-21 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729272', 'tblTempVendorCDR_20' ) start [2025-03-21 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729272', 'tblTempVendorCDR_20' ) end [2025-03-21 09:30:19] Production.INFO: ProcessCDR(1,14729272,1,1,2) [2025-03-21 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729272', 'tblTempUsageDetail_20' ) start [2025-03-21 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729272', 'tblTempUsageDetail_20' ) end [2025-03-21 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:30:25] Production.INFO: ==13675== Releasing lock... [2025-03-21 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:30:25] Production.INFO: 38 MB #Memory Used# [2025-03-21 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:31:05 [end_date_ymd] => 2025-03-21 09:31:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:31:05' and `end` < '2025-03-21 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-21 09:31:17] Production.INFO: count ==1364 [2025-03-21 09:31:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:31:05 - End Time 2025-03-21 09:31:05 [2025-03-21 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729278', 'tblTempUsageDetail_20' ) start [2025-03-21 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729278', 'tblTempUsageDetail_20' ) end [2025-03-21 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729278', 'tblTempVendorCDR_20' ) start [2025-03-21 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729278', 'tblTempVendorCDR_20' ) end [2025-03-21 09:31:18] Production.INFO: ProcessCDR(1,14729278,1,1,2) [2025-03-21 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729278', 'tblTempUsageDetail_20' ) start [2025-03-21 09:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729278', 'tblTempUsageDetail_20' ) end [2025-03-21 09:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:31:21] Production.INFO: ==13755== Releasing lock... [2025-03-21 09:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:31:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-21 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:32:06 [end_date_ymd] => 2025-03-21 09:32:06 [RateCDR] => 1 ) [2025-03-21 09: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-21 06:32:06' and `end` < '2025-03-21 09: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-21 09:32:18] Production.INFO: count ==1379 [2025-03-21 09:32:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:32:06 - End Time 2025-03-21 09:32:06 [2025-03-21 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729283', 'tblTempUsageDetail_20' ) start [2025-03-21 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729283', 'tblTempUsageDetail_20' ) end [2025-03-21 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729283', 'tblTempVendorCDR_20' ) start [2025-03-21 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729283', 'tblTempVendorCDR_20' ) end [2025-03-21 09:32:19] Production.INFO: ProcessCDR(1,14729283,1,1,2) [2025-03-21 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729283', 'tblTempUsageDetail_20' ) start [2025-03-21 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729283', 'tblTempUsageDetail_20' ) end [2025-03-21 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:32:24] Production.INFO: ==13839== Releasing lock... [2025-03-21 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:32:24] Production.INFO: 38.5 MB #Memory Used# [2025-03-21 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:33:05 [end_date_ymd] => 2025-03-21 09:33:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:33:05' and `end` < '2025-03-21 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-21 09:33:18] Production.INFO: count ==1388 [2025-03-21 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:33:05 - End Time 2025-03-21 09:33:05 [2025-03-21 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729288', 'tblTempUsageDetail_20' ) start [2025-03-21 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729288', 'tblTempUsageDetail_20' ) end [2025-03-21 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729288', 'tblTempVendorCDR_20' ) start [2025-03-21 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729288', 'tblTempVendorCDR_20' ) end [2025-03-21 09:33:18] Production.INFO: ProcessCDR(1,14729288,1,1,2) [2025-03-21 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729288', 'tblTempUsageDetail_20' ) start [2025-03-21 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729288', 'tblTempUsageDetail_20' ) end [2025-03-21 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:33:24] Production.INFO: ==13920== Releasing lock... [2025-03-21 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:33:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-21 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:34:05 [end_date_ymd] => 2025-03-21 09:34:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:34:05' and `end` < '2025-03-21 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-21 09:34:18] Production.INFO: count ==1406 [2025-03-21 09:34:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:34:05 - End Time 2025-03-21 09:34:05 [2025-03-21 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729293', 'tblTempUsageDetail_20' ) start [2025-03-21 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729293', 'tblTempUsageDetail_20' ) end [2025-03-21 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729293', 'tblTempVendorCDR_20' ) start [2025-03-21 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729293', 'tblTempVendorCDR_20' ) end [2025-03-21 09:34:18] Production.INFO: ProcessCDR(1,14729293,1,1,2) [2025-03-21 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729293', 'tblTempUsageDetail_20' ) start [2025-03-21 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729293', 'tblTempUsageDetail_20' ) end [2025-03-21 09:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:34:24] Production.INFO: ==14000== Releasing lock... [2025-03-21 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:34:24] Production.INFO: 38.75 MB #Memory Used# [2025-03-21 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:35:05 [end_date_ymd] => 2025-03-21 09:35:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:35:05' and `end` < '2025-03-21 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-21 09:35:17] Production.INFO: count ==1439 [2025-03-21 09:35:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:35:05 - End Time 2025-03-21 09:35:05 [2025-03-21 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729298', 'tblTempUsageDetail_20' ) start [2025-03-21 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729298', 'tblTempUsageDetail_20' ) end [2025-03-21 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729298', 'tblTempVendorCDR_20' ) start [2025-03-21 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729298', 'tblTempVendorCDR_20' ) end [2025-03-21 09:35:18] Production.INFO: ProcessCDR(1,14729298,1,1,2) [2025-03-21 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729298', 'tblTempUsageDetail_20' ) start [2025-03-21 09:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729298', 'tblTempUsageDetail_20' ) end [2025-03-21 09:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:35:23] Production.INFO: ==14084== Releasing lock... [2025-03-21 09:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:35:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-21 09:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:36:05 [end_date_ymd] => 2025-03-21 09:36:05 [RateCDR] => 1 ) [2025-03-21 09:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 06:36:05' and `end` < '2025-03-21 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-21 09:36:18] Production.INFO: count ==1446 [2025-03-21 09:36:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:36:05 - End Time 2025-03-21 09:36:05 [2025-03-21 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729303', 'tblTempUsageDetail_20' ) start [2025-03-21 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729303', 'tblTempUsageDetail_20' ) end [2025-03-21 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729303', 'tblTempVendorCDR_20' ) start [2025-03-21 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729303', 'tblTempVendorCDR_20' ) end [2025-03-21 09:36:19] Production.INFO: ProcessCDR(1,14729303,1,1,2) [2025-03-21 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729303', 'tblTempUsageDetail_20' ) start [2025-03-21 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729303', 'tblTempUsageDetail_20' ) end [2025-03-21 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:36:24] Production.INFO: ==14165== Releasing lock... [2025-03-21 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:36:24] Production.INFO: 39 MB #Memory Used# [2025-03-21 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:37:05 [end_date_ymd] => 2025-03-21 09:37:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:37:05' and `end` < '2025-03-21 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-21 09:37:17] Production.INFO: count ==1459 [2025-03-21 09:37:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:37:05 - End Time 2025-03-21 09:37:05 [2025-03-21 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729308', 'tblTempUsageDetail_20' ) start [2025-03-21 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729308', 'tblTempUsageDetail_20' ) end [2025-03-21 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729308', 'tblTempVendorCDR_20' ) start [2025-03-21 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729308', 'tblTempVendorCDR_20' ) end [2025-03-21 09:37:18] Production.INFO: ProcessCDR(1,14729308,1,1,2) [2025-03-21 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729308', 'tblTempUsageDetail_20' ) start [2025-03-21 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729308', 'tblTempUsageDetail_20' ) end [2025-03-21 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:37:24] Production.INFO: ==14249== Releasing lock... [2025-03-21 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:37:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-21 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:38:05 [end_date_ymd] => 2025-03-21 09:38:05 [RateCDR] => 1 ) [2025-03-21 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 06:38:05' and `end` < '2025-03-21 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 09:38:18] Production.INFO: count ==1470 [2025-03-21 09:38:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:38:05 - End Time 2025-03-21 09:38:05 [2025-03-21 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729313', 'tblTempUsageDetail_20' ) start [2025-03-21 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729313', 'tblTempUsageDetail_20' ) end [2025-03-21 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729313', 'tblTempVendorCDR_20' ) start [2025-03-21 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729313', 'tblTempVendorCDR_20' ) end [2025-03-21 09:38:19] Production.INFO: ProcessCDR(1,14729313,1,1,2) [2025-03-21 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729313', 'tblTempUsageDetail_20' ) start [2025-03-21 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729313', 'tblTempUsageDetail_20' ) end [2025-03-21 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:38:24] Production.INFO: ==14333== Releasing lock... [2025-03-21 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:38:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-21 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:39:05 [end_date_ymd] => 2025-03-21 09:39:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:39:05' and `end` < '2025-03-21 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-21 09:39:17] Production.INFO: count ==1484 [2025-03-21 09:39:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:39:05 - End Time 2025-03-21 09:39:05 [2025-03-21 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729318', 'tblTempUsageDetail_20' ) start [2025-03-21 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729318', 'tblTempUsageDetail_20' ) end [2025-03-21 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729318', 'tblTempVendorCDR_20' ) start [2025-03-21 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729318', 'tblTempVendorCDR_20' ) end [2025-03-21 09:39:18] Production.INFO: ProcessCDR(1,14729318,1,1,2) [2025-03-21 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729318', 'tblTempUsageDetail_20' ) start [2025-03-21 09:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729318', 'tblTempUsageDetail_20' ) end [2025-03-21 09:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:39:23] Production.INFO: ==14411== Releasing lock... [2025-03-21 09:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:39:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-21 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:40:06 [end_date_ymd] => 2025-03-21 09:40:06 [RateCDR] => 1 ) [2025-03-21 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-21 06:40:06' and `end` < '2025-03-21 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-21 09:40:19] Production.INFO: count ==1519 [2025-03-21 09:40:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:40:06 - End Time 2025-03-21 09:40:06 [2025-03-21 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729323', 'tblTempUsageDetail_20' ) start [2025-03-21 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729323', 'tblTempUsageDetail_20' ) end [2025-03-21 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729323', 'tblTempVendorCDR_20' ) start [2025-03-21 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729323', 'tblTempVendorCDR_20' ) end [2025-03-21 09:40:19] Production.INFO: ProcessCDR(1,14729323,1,1,2) [2025-03-21 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729323', 'tblTempUsageDetail_20' ) start [2025-03-21 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729323', 'tblTempUsageDetail_20' ) end [2025-03-21 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:40:24] Production.INFO: ==14506== Releasing lock... [2025-03-21 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:40:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-21 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:41:05 [end_date_ymd] => 2025-03-21 09:41:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:41:05' and `end` < '2025-03-21 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-21 09:41:17] Production.INFO: count ==1595 [2025-03-21 09:41:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:41:05 - End Time 2025-03-21 09:41:05 [2025-03-21 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729329', 'tblTempUsageDetail_20' ) start [2025-03-21 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729329', 'tblTempUsageDetail_20' ) end [2025-03-21 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729329', 'tblTempVendorCDR_20' ) start [2025-03-21 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729329', 'tblTempVendorCDR_20' ) end [2025-03-21 09:41:18] Production.INFO: ProcessCDR(1,14729329,1,1,2) [2025-03-21 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729329', 'tblTempUsageDetail_20' ) start [2025-03-21 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729329', 'tblTempUsageDetail_20' ) end [2025-03-21 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:41:24] Production.INFO: ==14635== Releasing lock... [2025-03-21 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:41:24] Production.INFO: 40 MB #Memory Used# [2025-03-21 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:42:05 [end_date_ymd] => 2025-03-21 09:42:05 [RateCDR] => 1 ) [2025-03-21 09:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 06:42:05' and `end` < '2025-03-21 09:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 09:42:18] Production.INFO: count ==1612 [2025-03-21 09:42:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:42:05 - End Time 2025-03-21 09:42:05 [2025-03-21 09:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729334', 'tblTempUsageDetail_20' ) start [2025-03-21 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729334', 'tblTempUsageDetail_20' ) end [2025-03-21 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729334', 'tblTempVendorCDR_20' ) start [2025-03-21 09:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729334', 'tblTempVendorCDR_20' ) end [2025-03-21 09:42:18] Production.INFO: ProcessCDR(1,14729334,1,1,2) [2025-03-21 09:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729334', 'tblTempUsageDetail_20' ) start [2025-03-21 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729334', 'tblTempUsageDetail_20' ) end [2025-03-21 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:42:23] Production.INFO: ==14719== Releasing lock... [2025-03-21 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:42:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-21 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:43:06 [end_date_ymd] => 2025-03-21 09:43:06 [RateCDR] => 1 ) [2025-03-21 09:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 06:43:06' and `end` < '2025-03-21 09:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 09:43:19] Production.INFO: count ==1622 [2025-03-21 09:43:20] Production.ERROR: pbx CDR StartTime 2025-03-21 06:43:06 - End Time 2025-03-21 09:43:06 [2025-03-21 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729339', 'tblTempUsageDetail_20' ) start [2025-03-21 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729339', 'tblTempUsageDetail_20' ) end [2025-03-21 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729339', 'tblTempVendorCDR_20' ) start [2025-03-21 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729339', 'tblTempVendorCDR_20' ) end [2025-03-21 09:43:20] Production.INFO: ProcessCDR(1,14729339,1,1,2) [2025-03-21 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729339', 'tblTempUsageDetail_20' ) start [2025-03-21 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729339', 'tblTempUsageDetail_20' ) end [2025-03-21 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:43:25] Production.INFO: ==14791== Releasing lock... [2025-03-21 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:43:25] Production.INFO: 40.25 MB #Memory Used# [2025-03-21 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:44:05 [end_date_ymd] => 2025-03-21 09:44:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:44:05' and `end` < '2025-03-21 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-21 09:44:18] Production.INFO: count ==1624 [2025-03-21 09:44:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:44:05 - End Time 2025-03-21 09:44:05 [2025-03-21 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729344', 'tblTempUsageDetail_20' ) start [2025-03-21 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729344', 'tblTempUsageDetail_20' ) end [2025-03-21 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729344', 'tblTempVendorCDR_20' ) start [2025-03-21 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729344', 'tblTempVendorCDR_20' ) end [2025-03-21 09:44:19] Production.INFO: ProcessCDR(1,14729344,1,1,2) [2025-03-21 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729344', 'tblTempUsageDetail_20' ) start [2025-03-21 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729344', 'tblTempUsageDetail_20' ) end [2025-03-21 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:44:24] Production.INFO: ==14876== Releasing lock... [2025-03-21 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:44:24] Production.INFO: 40.25 MB #Memory Used# [2025-03-21 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:45:05 [end_date_ymd] => 2025-03-21 09:45:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:45:05' and `end` < '2025-03-21 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-21 09:45:18] Production.INFO: count ==1628 [2025-03-21 09:45:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:45:05 - End Time 2025-03-21 09:45:05 [2025-03-21 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729349', 'tblTempUsageDetail_20' ) start [2025-03-21 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729349', 'tblTempUsageDetail_20' ) end [2025-03-21 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729349', 'tblTempVendorCDR_20' ) start [2025-03-21 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729349', 'tblTempVendorCDR_20' ) end [2025-03-21 09:45:19] Production.INFO: ProcessCDR(1,14729349,1,1,2) [2025-03-21 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729349', 'tblTempUsageDetail_20' ) start [2025-03-21 09:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729349', 'tblTempUsageDetail_20' ) end [2025-03-21 09:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:45:23] Production.INFO: ==14962== Releasing lock... [2025-03-21 09:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:45:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-21 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:46:05 [end_date_ymd] => 2025-03-21 09:46:05 [RateCDR] => 1 ) [2025-03-21 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 06:46:05' and `end` < '2025-03-21 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 09:46:18] Production.INFO: count ==1643 [2025-03-21 09:46:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:46:05 - End Time 2025-03-21 09:46:05 [2025-03-21 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729354', 'tblTempUsageDetail_20' ) start [2025-03-21 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729354', 'tblTempUsageDetail_20' ) end [2025-03-21 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729354', 'tblTempVendorCDR_20' ) start [2025-03-21 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729354', 'tblTempVendorCDR_20' ) end [2025-03-21 09:46:19] Production.INFO: ProcessCDR(1,14729354,1,1,2) [2025-03-21 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729354', 'tblTempUsageDetail_20' ) start [2025-03-21 09:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729354', 'tblTempUsageDetail_20' ) end [2025-03-21 09:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:46:23] Production.INFO: ==15049== Releasing lock... [2025-03-21 09:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:46:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-21 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:47:06 [end_date_ymd] => 2025-03-21 09:47:06 [RateCDR] => 1 ) [2025-03-21 09:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 06:47:06' and `end` < '2025-03-21 09:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 09:47:18] Production.INFO: count ==1647 [2025-03-21 09:47:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:47:06 - End Time 2025-03-21 09:47:06 [2025-03-21 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729359', 'tblTempUsageDetail_20' ) start [2025-03-21 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729359', 'tblTempUsageDetail_20' ) end [2025-03-21 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729359', 'tblTempVendorCDR_20' ) start [2025-03-21 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729359', 'tblTempVendorCDR_20' ) end [2025-03-21 09:47:19] Production.INFO: ProcessCDR(1,14729359,1,1,2) [2025-03-21 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729359', 'tblTempUsageDetail_20' ) start [2025-03-21 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729359', 'tblTempUsageDetail_20' ) end [2025-03-21 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:47:24] Production.INFO: ==15135== Releasing lock... [2025-03-21 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:47:24] Production.INFO: 40.5 MB #Memory Used# [2025-03-21 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:48:05 [end_date_ymd] => 2025-03-21 09:48:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:48:05' and `end` < '2025-03-21 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 09:48:17] Production.INFO: count ==1658 [2025-03-21 09:48:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:48:05 - End Time 2025-03-21 09:48:05 [2025-03-21 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729364', 'tblTempUsageDetail_20' ) start [2025-03-21 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729364', 'tblTempUsageDetail_20' ) end [2025-03-21 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729364', 'tblTempVendorCDR_20' ) start [2025-03-21 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729364', 'tblTempVendorCDR_20' ) end [2025-03-21 09:48:18] Production.INFO: ProcessCDR(1,14729364,1,1,2) [2025-03-21 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729364', 'tblTempUsageDetail_20' ) start [2025-03-21 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729364', 'tblTempUsageDetail_20' ) end [2025-03-21 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:48:24] Production.INFO: ==15217== Releasing lock... [2025-03-21 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:48:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-21 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:49:06 [end_date_ymd] => 2025-03-21 09:49:06 [RateCDR] => 1 ) [2025-03-21 09: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-21 06:49:06' and `end` < '2025-03-21 09: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-21 09:49:19] Production.INFO: count ==1672 [2025-03-21 09:49:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:49:06 - End Time 2025-03-21 09:49:06 [2025-03-21 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729369', 'tblTempUsageDetail_20' ) start [2025-03-21 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729369', 'tblTempUsageDetail_20' ) end [2025-03-21 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729369', 'tblTempVendorCDR_20' ) start [2025-03-21 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729369', 'tblTempVendorCDR_20' ) end [2025-03-21 09:49:19] Production.INFO: ProcessCDR(1,14729369,1,1,2) [2025-03-21 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729369', 'tblTempUsageDetail_20' ) start [2025-03-21 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729369', 'tblTempUsageDetail_20' ) end [2025-03-21 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:49:25] Production.INFO: ==15296== Releasing lock... [2025-03-21 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:49:25] Production.INFO: 40.5 MB #Memory Used# [2025-03-21 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:50:06 [end_date_ymd] => 2025-03-21 09:50:06 [RateCDR] => 1 ) [2025-03-21 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-21 06:50:06' and `end` < '2025-03-21 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-21 09:50:19] Production.INFO: count ==1687 [2025-03-21 09:50:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:50:06 - End Time 2025-03-21 09:50:06 [2025-03-21 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729375', 'tblTempUsageDetail_20' ) start [2025-03-21 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729375', 'tblTempUsageDetail_20' ) end [2025-03-21 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729375', 'tblTempVendorCDR_20' ) start [2025-03-21 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729375', 'tblTempVendorCDR_20' ) end [2025-03-21 09:50:19] Production.INFO: ProcessCDR(1,14729375,1,1,2) [2025-03-21 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729375', 'tblTempUsageDetail_20' ) start [2025-03-21 09:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729375', 'tblTempUsageDetail_20' ) end [2025-03-21 09:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:50:23] Production.INFO: ==15382== Releasing lock... [2025-03-21 09:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:50:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-21 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:51:05 [end_date_ymd] => 2025-03-21 09:51:05 [RateCDR] => 1 ) [2025-03-21 09: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-21 06:51:05' and `end` < '2025-03-21 09: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-21 09:51:18] Production.INFO: count ==1806 [2025-03-21 09:51:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:51:05 - End Time 2025-03-21 09:51:05 [2025-03-21 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729380', 'tblTempUsageDetail_20' ) start [2025-03-21 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729380', 'tblTempUsageDetail_20' ) end [2025-03-21 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729380', 'tblTempVendorCDR_20' ) start [2025-03-21 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729380', 'tblTempVendorCDR_20' ) end [2025-03-21 09:51:19] Production.INFO: ProcessCDR(1,14729380,1,1,2) [2025-03-21 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729380', 'tblTempUsageDetail_20' ) start [2025-03-21 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729380', 'tblTempUsageDetail_20' ) end [2025-03-21 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:51:24] Production.INFO: ==15466== Releasing lock... [2025-03-21 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:51:24] Production.INFO: 41.5 MB #Memory Used# [2025-03-21 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:52:05 [end_date_ymd] => 2025-03-21 09:52:05 [RateCDR] => 1 ) [2025-03-21 09: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-21 06:52:05' and `end` < '2025-03-21 09: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-21 09:52:18] Production.INFO: count ==1827 [2025-03-21 09:52:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:52:05 - End Time 2025-03-21 09:52:05 [2025-03-21 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729385', 'tblTempUsageDetail_20' ) start [2025-03-21 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729385', 'tblTempUsageDetail_20' ) end [2025-03-21 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729385', 'tblTempVendorCDR_20' ) start [2025-03-21 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729385', 'tblTempVendorCDR_20' ) end [2025-03-21 09:52:18] Production.INFO: ProcessCDR(1,14729385,1,1,2) [2025-03-21 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729385', 'tblTempUsageDetail_20' ) start [2025-03-21 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729385', 'tblTempUsageDetail_20' ) end [2025-03-21 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:52:24] Production.INFO: ==15546== Releasing lock... [2025-03-21 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:52:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-21 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:53:06 [end_date_ymd] => 2025-03-21 09:53:06 [RateCDR] => 1 ) [2025-03-21 09: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-21 06:53:06' and `end` < '2025-03-21 09: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-21 09:53:18] Production.INFO: count ==1842 [2025-03-21 09:53:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:53:06 - End Time 2025-03-21 09:53:06 [2025-03-21 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729390', 'tblTempUsageDetail_20' ) start [2025-03-21 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729390', 'tblTempUsageDetail_20' ) end [2025-03-21 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729390', 'tblTempVendorCDR_20' ) start [2025-03-21 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729390', 'tblTempVendorCDR_20' ) end [2025-03-21 09:53:19] Production.INFO: ProcessCDR(1,14729390,1,1,2) [2025-03-21 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729390', 'tblTempUsageDetail_20' ) start [2025-03-21 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729390', 'tblTempUsageDetail_20' ) end [2025-03-21 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:53:24] Production.INFO: ==15622== Releasing lock... [2025-03-21 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:53:24] Production.INFO: 41.75 MB #Memory Used# [2025-03-21 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:54:05 [end_date_ymd] => 2025-03-21 09:54:05 [RateCDR] => 1 ) [2025-03-21 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 06:54:05' and `end` < '2025-03-21 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 09:54:17] Production.INFO: count ==1860 [2025-03-21 09:54:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:54:05 - End Time 2025-03-21 09:54:05 [2025-03-21 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729395', 'tblTempUsageDetail_20' ) start [2025-03-21 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729395', 'tblTempUsageDetail_20' ) end [2025-03-21 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729395', 'tblTempVendorCDR_20' ) start [2025-03-21 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729395', 'tblTempVendorCDR_20' ) end [2025-03-21 09:54:18] Production.INFO: ProcessCDR(1,14729395,1,1,2) [2025-03-21 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729395', 'tblTempUsageDetail_20' ) start [2025-03-21 09:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729395', 'tblTempUsageDetail_20' ) end [2025-03-21 09:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:54:23] Production.INFO: ==15712== Releasing lock... [2025-03-21 09:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:54:23] Production.INFO: 42 MB #Memory Used# [2025-03-21 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:55:06 [end_date_ymd] => 2025-03-21 09:55:06 [RateCDR] => 1 ) [2025-03-21 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-21 06:55:06' and `end` < '2025-03-21 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-21 09:55:18] Production.INFO: count ==1889 [2025-03-21 09:55:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:55:06 - End Time 2025-03-21 09:55:06 [2025-03-21 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729400', 'tblTempUsageDetail_20' ) start [2025-03-21 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729400', 'tblTempUsageDetail_20' ) end [2025-03-21 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729400', 'tblTempVendorCDR_20' ) start [2025-03-21 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729400', 'tblTempVendorCDR_20' ) end [2025-03-21 09:55:19] Production.INFO: ProcessCDR(1,14729400,1,1,2) [2025-03-21 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729400', 'tblTempUsageDetail_20' ) start [2025-03-21 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729400', 'tblTempUsageDetail_20' ) end [2025-03-21 09:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:55:23] Production.INFO: ==15798== Releasing lock... [2025-03-21 09:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:55:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-21 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:56:05 [end_date_ymd] => 2025-03-21 09:56:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:56:05' and `end` < '2025-03-21 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-21 09:56:18] Production.INFO: count ==1900 [2025-03-21 09:56:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:56:05 - End Time 2025-03-21 09:56:05 [2025-03-21 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729405', 'tblTempUsageDetail_20' ) start [2025-03-21 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729405', 'tblTempUsageDetail_20' ) end [2025-03-21 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729405', 'tblTempVendorCDR_20' ) start [2025-03-21 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729405', 'tblTempVendorCDR_20' ) end [2025-03-21 09:56:19] Production.INFO: ProcessCDR(1,14729405,1,1,2) [2025-03-21 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729405', 'tblTempUsageDetail_20' ) start [2025-03-21 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729405', 'tblTempUsageDetail_20' ) end [2025-03-21 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:56:24] Production.INFO: ==15884== Releasing lock... [2025-03-21 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:56:24] Production.INFO: 42.25 MB #Memory Used# [2025-03-21 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:57:05 [end_date_ymd] => 2025-03-21 09:57:05 [RateCDR] => 1 ) [2025-03-21 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 06:57:05' and `end` < '2025-03-21 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 09:57:18] Production.INFO: count ==1928 [2025-03-21 09:57:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:57:05 - End Time 2025-03-21 09:57:05 [2025-03-21 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729410', 'tblTempUsageDetail_20' ) start [2025-03-21 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729410', 'tblTempUsageDetail_20' ) end [2025-03-21 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729410', 'tblTempVendorCDR_20' ) start [2025-03-21 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729410', 'tblTempVendorCDR_20' ) end [2025-03-21 09:57:19] Production.INFO: ProcessCDR(1,14729410,1,1,2) [2025-03-21 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729410', 'tblTempUsageDetail_20' ) start [2025-03-21 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729410', 'tblTempUsageDetail_20' ) end [2025-03-21 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:57:24] Production.INFO: ==16005== Releasing lock... [2025-03-21 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:57:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-21 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:58:05 [end_date_ymd] => 2025-03-21 09:58:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:58:05' and `end` < '2025-03-21 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-21 09:58:18] Production.INFO: count ==1968 [2025-03-21 09:58:18] Production.ERROR: pbx CDR StartTime 2025-03-21 06:58:05 - End Time 2025-03-21 09:58:05 [2025-03-21 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729415', 'tblTempUsageDetail_20' ) start [2025-03-21 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729415', 'tblTempUsageDetail_20' ) end [2025-03-21 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729415', 'tblTempVendorCDR_20' ) start [2025-03-21 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729415', 'tblTempVendorCDR_20' ) end [2025-03-21 09:58:18] Production.INFO: ProcessCDR(1,14729415,1,1,2) [2025-03-21 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729415', 'tblTempUsageDetail_20' ) start [2025-03-21 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729415', 'tblTempUsageDetail_20' ) end [2025-03-21 09:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:58:23] Production.INFO: ==16086== Releasing lock... [2025-03-21 09:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:58:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-21 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 06:59:05 [end_date_ymd] => 2025-03-21 09:59:05 [RateCDR] => 1 ) [2025-03-21 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-21 06:59:05' and `end` < '2025-03-21 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-21 09:59:18] Production.INFO: count ==1974 [2025-03-21 09:59:19] Production.ERROR: pbx CDR StartTime 2025-03-21 06:59:05 - End Time 2025-03-21 09:59:05 [2025-03-21 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729420', 'tblTempUsageDetail_20' ) start [2025-03-21 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729420', 'tblTempUsageDetail_20' ) end [2025-03-21 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729420', 'tblTempVendorCDR_20' ) start [2025-03-21 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729420', 'tblTempVendorCDR_20' ) end [2025-03-21 09:59:19] Production.INFO: ProcessCDR(1,14729420,1,1,2) [2025-03-21 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729420', 'tblTempUsageDetail_20' ) start [2025-03-21 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729420', 'tblTempUsageDetail_20' ) end [2025-03-21 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 09:59:24] Production.INFO: ==16168== Releasing lock... [2025-03-21 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 09:59:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-21 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:00:06 [end_date_ymd] => 2025-03-21 10:00:06 [RateCDR] => 1 ) [2025-03-21 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 07:00:06' and `end` < '2025-03-21 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 10:00:18] Production.INFO: count ==1988 [2025-03-21 10:00:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:00:06 - End Time 2025-03-21 10:00:06 [2025-03-21 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729426', 'tblTempUsageDetail_20' ) start [2025-03-21 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729426', 'tblTempUsageDetail_20' ) end [2025-03-21 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729426', 'tblTempVendorCDR_20' ) start [2025-03-21 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729426', 'tblTempVendorCDR_20' ) end [2025-03-21 10:00:19] Production.INFO: ProcessCDR(1,14729426,1,1,2) [2025-03-21 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729426', 'tblTempUsageDetail_20' ) start [2025-03-21 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729426', 'tblTempUsageDetail_20' ) end [2025-03-21 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:00:24] Production.INFO: ==16255== Releasing lock... [2025-03-21 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:00:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-21 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:01:05 [end_date_ymd] => 2025-03-21 10:01:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:01:05' and `end` < '2025-03-21 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-21 10:01:18] Production.INFO: count ==2092 [2025-03-21 10:01:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:01:05 - End Time 2025-03-21 10:01:05 [2025-03-21 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729431', 'tblTempUsageDetail_20' ) start [2025-03-21 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729431', 'tblTempUsageDetail_20' ) end [2025-03-21 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729431', 'tblTempVendorCDR_20' ) start [2025-03-21 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729431', 'tblTempVendorCDR_20' ) end [2025-03-21 10:01:19] Production.INFO: ProcessCDR(1,14729431,1,1,2) [2025-03-21 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729431', 'tblTempUsageDetail_20' ) start [2025-03-21 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729431', 'tblTempUsageDetail_20' ) end [2025-03-21 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:01:24] Production.INFO: ==16349== Releasing lock... [2025-03-21 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:01:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-21 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:02:05 [end_date_ymd] => 2025-03-21 10:02:05 [RateCDR] => 1 ) [2025-03-21 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 07:02:05' and `end` < '2025-03-21 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 10:02:18] Production.INFO: count ==2126 [2025-03-21 10:02:18] Production.ERROR: pbx CDR StartTime 2025-03-21 07:02:05 - End Time 2025-03-21 10:02:05 [2025-03-21 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729436', 'tblTempUsageDetail_20' ) start [2025-03-21 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729436', 'tblTempUsageDetail_20' ) end [2025-03-21 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729436', 'tblTempVendorCDR_20' ) start [2025-03-21 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729436', 'tblTempVendorCDR_20' ) end [2025-03-21 10:02:18] Production.INFO: ProcessCDR(1,14729436,1,1,2) [2025-03-21 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729436', 'tblTempUsageDetail_20' ) start [2025-03-21 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729436', 'tblTempUsageDetail_20' ) end [2025-03-21 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:02:24] Production.INFO: ==16428== Releasing lock... [2025-03-21 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:02:24] Production.INFO: 44 MB #Memory Used# [2025-03-21 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:03:05 [end_date_ymd] => 2025-03-21 10:03:05 [RateCDR] => 1 ) [2025-03-21 10: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-21 07:03:05' and `end` < '2025-03-21 10: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-21 10:03:18] Production.INFO: count ==2149 [2025-03-21 10:03:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:03:05 - End Time 2025-03-21 10:03:05 [2025-03-21 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729441', 'tblTempUsageDetail_20' ) start [2025-03-21 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729441', 'tblTempUsageDetail_20' ) end [2025-03-21 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729441', 'tblTempVendorCDR_20' ) start [2025-03-21 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729441', 'tblTempVendorCDR_20' ) end [2025-03-21 10:03:19] Production.INFO: ProcessCDR(1,14729441,1,1,2) [2025-03-21 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729441', 'tblTempUsageDetail_20' ) start [2025-03-21 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729441', 'tblTempUsageDetail_20' ) end [2025-03-21 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:03:24] Production.INFO: ==16514== Releasing lock... [2025-03-21 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:03:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-21 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:04:06 [end_date_ymd] => 2025-03-21 10:04:06 [RateCDR] => 1 ) [2025-03-21 10: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-21 07:04:06' and `end` < '2025-03-21 10: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-21 10:04:19] Production.INFO: count ==2175 [2025-03-21 10:04:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:04:06 - End Time 2025-03-21 10:04:06 [2025-03-21 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729446', 'tblTempUsageDetail_20' ) start [2025-03-21 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729446', 'tblTempUsageDetail_20' ) end [2025-03-21 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729446', 'tblTempVendorCDR_20' ) start [2025-03-21 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729446', 'tblTempVendorCDR_20' ) end [2025-03-21 10:04:20] Production.INFO: ProcessCDR(1,14729446,1,1,2) [2025-03-21 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729446', 'tblTempUsageDetail_20' ) start [2025-03-21 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729446', 'tblTempUsageDetail_20' ) end [2025-03-21 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:04:25] Production.INFO: ==16595== Releasing lock... [2025-03-21 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:04:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-21 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:05:05 [end_date_ymd] => 2025-03-21 10:05:05 [RateCDR] => 1 ) [2025-03-21 10: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-21 07:05:05' and `end` < '2025-03-21 10: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-21 10:05:18] Production.INFO: count ==2187 [2025-03-21 10:05:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:05:05 - End Time 2025-03-21 10:05:05 [2025-03-21 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729451', 'tblTempUsageDetail_20' ) start [2025-03-21 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729451', 'tblTempUsageDetail_20' ) end [2025-03-21 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729451', 'tblTempVendorCDR_20' ) start [2025-03-21 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729451', 'tblTempVendorCDR_20' ) end [2025-03-21 10:05:19] Production.INFO: ProcessCDR(1,14729451,1,1,2) [2025-03-21 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729451', 'tblTempUsageDetail_20' ) start [2025-03-21 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729451', 'tblTempUsageDetail_20' ) end [2025-03-21 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:05:25] Production.INFO: ==16674== Releasing lock... [2025-03-21 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:05:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-21 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:06:06 [end_date_ymd] => 2025-03-21 10:06:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:06:06' and `end` < '2025-03-21 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-21 10:06:19] Production.INFO: count ==2242 [2025-03-21 10:06:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:06:06 - End Time 2025-03-21 10:06:06 [2025-03-21 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729456', 'tblTempUsageDetail_20' ) start [2025-03-21 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729456', 'tblTempUsageDetail_20' ) end [2025-03-21 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729456', 'tblTempVendorCDR_20' ) start [2025-03-21 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729456', 'tblTempVendorCDR_20' ) end [2025-03-21 10:06:20] Production.INFO: ProcessCDR(1,14729456,1,1,2) [2025-03-21 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729456', 'tblTempUsageDetail_20' ) start [2025-03-21 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729456', 'tblTempUsageDetail_20' ) end [2025-03-21 10:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:06:26] Production.INFO: ==16761== Releasing lock... [2025-03-21 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:06:26] Production.INFO: 45 MB #Memory Used# [2025-03-21 10:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:07:06 [end_date_ymd] => 2025-03-21 10:07:06 [RateCDR] => 1 ) [2025-03-21 10:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 07:07:06' and `end` < '2025-03-21 10:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 10:07:18] Production.INFO: count ==2265 [2025-03-21 10:07:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:07:06 - End Time 2025-03-21 10:07:06 [2025-03-21 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729461', 'tblTempUsageDetail_20' ) start [2025-03-21 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729461', 'tblTempUsageDetail_20' ) end [2025-03-21 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729461', 'tblTempVendorCDR_20' ) start [2025-03-21 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729461', 'tblTempVendorCDR_20' ) end [2025-03-21 10:07:19] Production.INFO: ProcessCDR(1,14729461,1,1,2) [2025-03-21 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729461', 'tblTempUsageDetail_20' ) start [2025-03-21 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729461', 'tblTempUsageDetail_20' ) end [2025-03-21 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:07:25] Production.INFO: ==16845== Releasing lock... [2025-03-21 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:07:25] Production.INFO: 45.25 MB #Memory Used# [2025-03-21 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:08:06 [end_date_ymd] => 2025-03-21 10:08:06 [RateCDR] => 1 ) [2025-03-21 10: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-21 07:08:06' and `end` < '2025-03-21 10: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-21 10:08:18] Production.INFO: count ==2263 [2025-03-21 10:08:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:08:06 - End Time 2025-03-21 10:08:06 [2025-03-21 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729466', 'tblTempUsageDetail_20' ) start [2025-03-21 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729466', 'tblTempUsageDetail_20' ) end [2025-03-21 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729466', 'tblTempVendorCDR_20' ) start [2025-03-21 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729466', 'tblTempVendorCDR_20' ) end [2025-03-21 10:08:20] Production.INFO: ProcessCDR(1,14729466,1,1,2) [2025-03-21 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729466', 'tblTempUsageDetail_20' ) start [2025-03-21 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729466', 'tblTempUsageDetail_20' ) end [2025-03-21 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:08:24] Production.INFO: ==16928== Releasing lock... [2025-03-21 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:08:24] Production.INFO: 45 MB #Memory Used# [2025-03-21 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:09:06 [end_date_ymd] => 2025-03-21 10:09:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:09:06' and `end` < '2025-03-21 10: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-21 10:09:19] Production.INFO: count ==2277 [2025-03-21 10:09:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:09:06 - End Time 2025-03-21 10:09:06 [2025-03-21 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729471', 'tblTempUsageDetail_20' ) start [2025-03-21 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729471', 'tblTempUsageDetail_20' ) end [2025-03-21 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729471', 'tblTempVendorCDR_20' ) start [2025-03-21 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729471', 'tblTempVendorCDR_20' ) end [2025-03-21 10:09:20] Production.INFO: ProcessCDR(1,14729471,1,1,2) [2025-03-21 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729471', 'tblTempUsageDetail_20' ) start [2025-03-21 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729471', 'tblTempUsageDetail_20' ) end [2025-03-21 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:09:25] Production.INFO: ==17009== Releasing lock... [2025-03-21 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:09:25] Production.INFO: 45.25 MB #Memory Used# [2025-03-21 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:10:06 [end_date_ymd] => 2025-03-21 10:10:06 [RateCDR] => 1 ) [2025-03-21 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 07:10:06' and `end` < '2025-03-21 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 10:10:19] Production.INFO: count ==2304 [2025-03-21 10:10:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:10:06 - End Time 2025-03-21 10:10:06 [2025-03-21 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729477', 'tblTempUsageDetail_20' ) start [2025-03-21 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729477', 'tblTempUsageDetail_20' ) end [2025-03-21 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729477', 'tblTempVendorCDR_20' ) start [2025-03-21 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729477', 'tblTempVendorCDR_20' ) end [2025-03-21 10:10:20] Production.INFO: ProcessCDR(1,14729477,1,1,2) [2025-03-21 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729477', 'tblTempUsageDetail_20' ) start [2025-03-21 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729477', 'tblTempUsageDetail_20' ) end [2025-03-21 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:10:25] Production.INFO: ==17095== Releasing lock... [2025-03-21 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:10:25] Production.INFO: 45.25 MB #Memory Used# [2025-03-21 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:11:05 [end_date_ymd] => 2025-03-21 10:11:05 [RateCDR] => 1 ) [2025-03-21 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 07:11:05' and `end` < '2025-03-21 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 10:11:18] Production.INFO: count ==2383 [2025-03-21 10:11:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:11:05 - End Time 2025-03-21 10:11:05 [2025-03-21 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729482', 'tblTempUsageDetail_20' ) start [2025-03-21 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729482', 'tblTempUsageDetail_20' ) end [2025-03-21 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729482', 'tblTempVendorCDR_20' ) start [2025-03-21 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729482', 'tblTempVendorCDR_20' ) end [2025-03-21 10:11:19] Production.INFO: ProcessCDR(1,14729482,1,1,2) [2025-03-21 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729482', 'tblTempUsageDetail_20' ) start [2025-03-21 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729482', 'tblTempUsageDetail_20' ) end [2025-03-21 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:11:23] Production.INFO: ==17178== Releasing lock... [2025-03-21 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:11:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-21 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:12:05 [end_date_ymd] => 2025-03-21 10:12:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:12:05' and `end` < '2025-03-21 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-21 10:12:18] Production.INFO: count ==2400 [2025-03-21 10:12:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:12:05 - End Time 2025-03-21 10:12:05 [2025-03-21 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729487', 'tblTempUsageDetail_20' ) start [2025-03-21 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729487', 'tblTempUsageDetail_20' ) end [2025-03-21 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729487', 'tblTempVendorCDR_20' ) start [2025-03-21 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729487', 'tblTempVendorCDR_20' ) end [2025-03-21 10:12:19] Production.INFO: ProcessCDR(1,14729487,1,1,2) [2025-03-21 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729487', 'tblTempUsageDetail_20' ) start [2025-03-21 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729487', 'tblTempUsageDetail_20' ) end [2025-03-21 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:12:25] Production.INFO: ==17299== Releasing lock... [2025-03-21 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:12:25] Production.INFO: 46 MB #Memory Used# [2025-03-21 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:13:06 [end_date_ymd] => 2025-03-21 10:13:06 [RateCDR] => 1 ) [2025-03-21 10: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-21 07:13:06' and `end` < '2025-03-21 10: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-21 10:13:18] Production.INFO: count ==2408 [2025-03-21 10:13:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:13:06 - End Time 2025-03-21 10:13:06 [2025-03-21 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729492', 'tblTempUsageDetail_20' ) start [2025-03-21 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729492', 'tblTempUsageDetail_20' ) end [2025-03-21 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729492', 'tblTempVendorCDR_20' ) start [2025-03-21 10:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729492', 'tblTempVendorCDR_20' ) end [2025-03-21 10:13:20] Production.INFO: ProcessCDR(1,14729492,1,1,2) [2025-03-21 10:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729492', 'tblTempUsageDetail_20' ) start [2025-03-21 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729492', 'tblTempUsageDetail_20' ) end [2025-03-21 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:13:25] Production.INFO: ==17391== Releasing lock... [2025-03-21 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:13:25] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 10:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:14:04 [end_date_ymd] => 2025-03-21 10:14:04 [RateCDR] => 1 ) [2025-03-21 10:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 07:14:04' and `end` < '2025-03-21 10:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 10:14:17] Production.INFO: count ==2444 [2025-03-21 10:14:18] Production.ERROR: pbx CDR StartTime 2025-03-21 07:14:04 - End Time 2025-03-21 10:14:04 [2025-03-21 10:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729494', 'tblTempUsageDetail_20' ) start [2025-03-21 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729494', 'tblTempUsageDetail_20' ) end [2025-03-21 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729494', 'tblTempVendorCDR_20' ) start [2025-03-21 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729494', 'tblTempVendorCDR_20' ) end [2025-03-21 10:14:19] Production.INFO: ProcessCDR(1,14729494,1,1,2) [2025-03-21 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729494', 'tblTempUsageDetail_20' ) start [2025-03-21 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729494', 'tblTempUsageDetail_20' ) end [2025-03-21 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:14:25] Production.INFO: ==17474== Releasing lock... [2025-03-21 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:14:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:15:06 [end_date_ymd] => 2025-03-21 10:15:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:15:06' and `end` < '2025-03-21 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-21 10:15:19] Production.INFO: count ==2465 [2025-03-21 10:15:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:15:06 - End Time 2025-03-21 10:15:06 [2025-03-21 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729502', 'tblTempUsageDetail_20' ) start [2025-03-21 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729502', 'tblTempUsageDetail_20' ) end [2025-03-21 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729502', 'tblTempVendorCDR_20' ) start [2025-03-21 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729502', 'tblTempVendorCDR_20' ) end [2025-03-21 10:15:20] Production.INFO: ProcessCDR(1,14729502,1,1,2) [2025-03-21 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729502', 'tblTempUsageDetail_20' ) start [2025-03-21 10:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729502', 'tblTempUsageDetail_20' ) end [2025-03-21 10:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:15:26] Production.INFO: ==17558== Releasing lock... [2025-03-21 10:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:15:26] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:16:05 [end_date_ymd] => 2025-03-21 10:16:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:16:05' and `end` < '2025-03-21 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-21 10:16:18] Production.INFO: count ==2473 [2025-03-21 10:16:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:16:05 - End Time 2025-03-21 10:16:05 [2025-03-21 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729507', 'tblTempUsageDetail_20' ) start [2025-03-21 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729507', 'tblTempUsageDetail_20' ) end [2025-03-21 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729507', 'tblTempVendorCDR_20' ) start [2025-03-21 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729507', 'tblTempVendorCDR_20' ) end [2025-03-21 10:16:19] Production.INFO: ProcessCDR(1,14729507,1,1,2) [2025-03-21 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729507', 'tblTempUsageDetail_20' ) start [2025-03-21 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729507', 'tblTempUsageDetail_20' ) end [2025-03-21 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:16:26] Production.INFO: ==17648== Releasing lock... [2025-03-21 10:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:16:26] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:17:06 [end_date_ymd] => 2025-03-21 10:17:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:17:06' and `end` < '2025-03-21 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-21 10:17:19] Production.INFO: count ==2487 [2025-03-21 10:17:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:17:06 - End Time 2025-03-21 10:17:06 [2025-03-21 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729512', 'tblTempUsageDetail_20' ) start [2025-03-21 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729512', 'tblTempUsageDetail_20' ) end [2025-03-21 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729512', 'tblTempVendorCDR_20' ) start [2025-03-21 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729512', 'tblTempVendorCDR_20' ) end [2025-03-21 10:17:20] Production.INFO: ProcessCDR(1,14729512,1,1,2) [2025-03-21 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729512', 'tblTempUsageDetail_20' ) start [2025-03-21 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729512', 'tblTempUsageDetail_20' ) end [2025-03-21 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:17:25] Production.INFO: ==17727== Releasing lock... [2025-03-21 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:17:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:18:05 [end_date_ymd] => 2025-03-21 10:18:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:18:05' and `end` < '2025-03-21 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-21 10:18:18] Production.INFO: count ==2508 [2025-03-21 10:18:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:18:05 - End Time 2025-03-21 10:18:05 [2025-03-21 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729517', 'tblTempUsageDetail_20' ) start [2025-03-21 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729517', 'tblTempUsageDetail_20' ) end [2025-03-21 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729517', 'tblTempVendorCDR_20' ) start [2025-03-21 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729517', 'tblTempVendorCDR_20' ) end [2025-03-21 10:18:19] Production.INFO: ProcessCDR(1,14729517,1,1,2) [2025-03-21 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729517', 'tblTempUsageDetail_20' ) start [2025-03-21 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729517', 'tblTempUsageDetail_20' ) end [2025-03-21 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:18:25] Production.INFO: ==17806== Releasing lock... [2025-03-21 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:18:25] Production.INFO: 47 MB #Memory Used# [2025-03-21 10:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:19:06 [end_date_ymd] => 2025-03-21 10:19:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:19:06' and `end` < '2025-03-21 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-21 10:19:18] Production.INFO: count ==2513 [2025-03-21 10:19:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:19:06 - End Time 2025-03-21 10:19:06 [2025-03-21 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729522', 'tblTempUsageDetail_20' ) start [2025-03-21 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729522', 'tblTempUsageDetail_20' ) end [2025-03-21 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729522', 'tblTempVendorCDR_20' ) start [2025-03-21 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729522', 'tblTempVendorCDR_20' ) end [2025-03-21 10:19:20] Production.INFO: ProcessCDR(1,14729522,1,1,2) [2025-03-21 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729522', 'tblTempUsageDetail_20' ) start [2025-03-21 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729522', 'tblTempUsageDetail_20' ) end [2025-03-21 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:19:25] Production.INFO: ==17892== Releasing lock... [2025-03-21 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:19:25] Production.INFO: 47 MB #Memory Used# [2025-03-21 10:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:20:07 [end_date_ymd] => 2025-03-21 10:20:07 [RateCDR] => 1 ) [2025-03-21 10:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 07:20:07' and `end` < '2025-03-21 10:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 10:20:19] Production.INFO: count ==2547 [2025-03-21 10:20:21] Production.ERROR: pbx CDR StartTime 2025-03-21 07:20:07 - End Time 2025-03-21 10:20:07 [2025-03-21 10:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729528', 'tblTempUsageDetail_20' ) start [2025-03-21 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729528', 'tblTempUsageDetail_20' ) end [2025-03-21 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729528', 'tblTempVendorCDR_20' ) start [2025-03-21 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729528', 'tblTempVendorCDR_20' ) end [2025-03-21 10:20:21] Production.INFO: ProcessCDR(1,14729528,1,1,2) [2025-03-21 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729528', 'tblTempUsageDetail_20' ) start [2025-03-21 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729528', 'tblTempUsageDetail_20' ) end [2025-03-21 10:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:20:26] Production.INFO: ==17981== Releasing lock... [2025-03-21 10:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:20:26] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:21:06 [end_date_ymd] => 2025-03-21 10:21:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:21:06' and `end` < '2025-03-21 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-21 10:21:18] Production.INFO: count ==2643 [2025-03-21 10:21:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:21:06 - End Time 2025-03-21 10:21:06 [2025-03-21 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729533', 'tblTempUsageDetail_20' ) start [2025-03-21 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729533', 'tblTempUsageDetail_20' ) end [2025-03-21 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729533', 'tblTempVendorCDR_20' ) start [2025-03-21 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729533', 'tblTempVendorCDR_20' ) end [2025-03-21 10:21:20] Production.INFO: ProcessCDR(1,14729533,1,1,2) [2025-03-21 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729533', 'tblTempUsageDetail_20' ) start [2025-03-21 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729533', 'tblTempUsageDetail_20' ) end [2025-03-21 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:21:25] Production.INFO: ==18061== Releasing lock... [2025-03-21 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:21:25] Production.INFO: 48 MB #Memory Used# [2025-03-21 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:22:05 [end_date_ymd] => 2025-03-21 10:22:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:22:05' and `end` < '2025-03-21 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-21 10:22:18] Production.INFO: count ==2669 [2025-03-21 10:22:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:22:05 - End Time 2025-03-21 10:22:05 [2025-03-21 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729538', 'tblTempUsageDetail_20' ) start [2025-03-21 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729538', 'tblTempUsageDetail_20' ) end [2025-03-21 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729538', 'tblTempVendorCDR_20' ) start [2025-03-21 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729538', 'tblTempVendorCDR_20' ) end [2025-03-21 10:22:19] Production.INFO: ProcessCDR(1,14729538,1,1,2) [2025-03-21 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729538', 'tblTempUsageDetail_20' ) start [2025-03-21 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729538', 'tblTempUsageDetail_20' ) end [2025-03-21 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:22:24] Production.INFO: ==18143== Releasing lock... [2025-03-21 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:22:24] Production.INFO: 48 MB #Memory Used# [2025-03-21 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:23:06 [end_date_ymd] => 2025-03-21 10:23:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:23:06' and `end` < '2025-03-21 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-21 10:23:18] Production.INFO: count ==2681 [2025-03-21 10:23:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:23:06 - End Time 2025-03-21 10:23:06 [2025-03-21 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729543', 'tblTempUsageDetail_20' ) start [2025-03-21 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729543', 'tblTempUsageDetail_20' ) end [2025-03-21 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729543', 'tblTempVendorCDR_20' ) start [2025-03-21 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729543', 'tblTempVendorCDR_20' ) end [2025-03-21 10:23:19] Production.INFO: ProcessCDR(1,14729543,1,1,2) [2025-03-21 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729543', 'tblTempUsageDetail_20' ) start [2025-03-21 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729543', 'tblTempUsageDetail_20' ) end [2025-03-21 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:23:24] Production.INFO: ==18227== Releasing lock... [2025-03-21 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:23:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-21 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:24:05 [end_date_ymd] => 2025-03-21 10:24:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:24:05' and `end` < '2025-03-21 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-21 10:24:18] Production.INFO: count ==2695 [2025-03-21 10:24:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:24:05 - End Time 2025-03-21 10:24:05 [2025-03-21 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729548', 'tblTempUsageDetail_20' ) start [2025-03-21 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729548', 'tblTempUsageDetail_20' ) end [2025-03-21 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729548', 'tblTempVendorCDR_20' ) start [2025-03-21 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729548', 'tblTempVendorCDR_20' ) end [2025-03-21 10:24:19] Production.INFO: ProcessCDR(1,14729548,1,1,2) [2025-03-21 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729548', 'tblTempUsageDetail_20' ) start [2025-03-21 10:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729548', 'tblTempUsageDetail_20' ) end [2025-03-21 10:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:24:24] Production.INFO: ==18316== Releasing lock... [2025-03-21 10:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:24:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-21 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:25:06 [end_date_ymd] => 2025-03-21 10:25:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:25:06' and `end` < '2025-03-21 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-21 10:25:18] Production.INFO: count ==2702 [2025-03-21 10:25:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:25:06 - End Time 2025-03-21 10:25:06 [2025-03-21 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729553', 'tblTempUsageDetail_20' ) start [2025-03-21 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729553', 'tblTempUsageDetail_20' ) end [2025-03-21 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729553', 'tblTempVendorCDR_20' ) start [2025-03-21 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729553', 'tblTempVendorCDR_20' ) end [2025-03-21 10:25:20] Production.INFO: ProcessCDR(1,14729553,1,1,2) [2025-03-21 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729553', 'tblTempUsageDetail_20' ) start [2025-03-21 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729553', 'tblTempUsageDetail_20' ) end [2025-03-21 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:25:25] Production.INFO: ==18395== Releasing lock... [2025-03-21 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:25:25] Production.INFO: 48 MB #Memory Used# [2025-03-21 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:26:05 [end_date_ymd] => 2025-03-21 10:26:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:26:05' and `end` < '2025-03-21 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-21 10:26:18] Production.INFO: count ==2728 [2025-03-21 10:26:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:26:05 - End Time 2025-03-21 10:26:05 [2025-03-21 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729558', 'tblTempUsageDetail_20' ) start [2025-03-21 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729558', 'tblTempUsageDetail_20' ) end [2025-03-21 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729558', 'tblTempVendorCDR_20' ) start [2025-03-21 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729558', 'tblTempVendorCDR_20' ) end [2025-03-21 10:26:19] Production.INFO: ProcessCDR(1,14729558,1,1,2) [2025-03-21 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729558', 'tblTempUsageDetail_20' ) start [2025-03-21 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729558', 'tblTempUsageDetail_20' ) end [2025-03-21 10:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:26:24] Production.INFO: ==18485== Releasing lock... [2025-03-21 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:26:24] Production.INFO: 48.5 MB #Memory Used# [2025-03-21 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:27:05 [end_date_ymd] => 2025-03-21 10:27:05 [RateCDR] => 1 ) [2025-03-21 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 07:27:05' and `end` < '2025-03-21 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 10:27:18] Production.INFO: count ==2741 [2025-03-21 10:27:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:27:05 - End Time 2025-03-21 10:27:05 [2025-03-21 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729563', 'tblTempUsageDetail_20' ) start [2025-03-21 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729563', 'tblTempUsageDetail_20' ) end [2025-03-21 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729563', 'tblTempVendorCDR_20' ) start [2025-03-21 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729563', 'tblTempVendorCDR_20' ) end [2025-03-21 10:27:19] Production.INFO: ProcessCDR(1,14729563,1,1,2) [2025-03-21 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729563', 'tblTempUsageDetail_20' ) start [2025-03-21 10:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729563', 'tblTempUsageDetail_20' ) end [2025-03-21 10:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:27:23] Production.INFO: ==18568== Releasing lock... [2025-03-21 10:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:27:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-21 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:28:05 [end_date_ymd] => 2025-03-21 10:28:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:28:05' and `end` < '2025-03-21 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-21 10:28:18] Production.INFO: count ==2768 [2025-03-21 10:28:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:28:05 - End Time 2025-03-21 10:28:05 [2025-03-21 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729568', 'tblTempUsageDetail_20' ) start [2025-03-21 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729568', 'tblTempUsageDetail_20' ) end [2025-03-21 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729568', 'tblTempVendorCDR_20' ) start [2025-03-21 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729568', 'tblTempVendorCDR_20' ) end [2025-03-21 10:28:19] Production.INFO: ProcessCDR(1,14729568,1,1,2) [2025-03-21 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729568', 'tblTempUsageDetail_20' ) start [2025-03-21 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729568', 'tblTempUsageDetail_20' ) end [2025-03-21 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:28:25] Production.INFO: ==18694== Releasing lock... [2025-03-21 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:28:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-21 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:29:06 [end_date_ymd] => 2025-03-21 10:29:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:29:06' and `end` < '2025-03-21 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-21 10:29:18] Production.INFO: count ==2790 [2025-03-21 10:29:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:29:06 - End Time 2025-03-21 10:29:06 [2025-03-21 10:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729573', 'tblTempUsageDetail_20' ) start [2025-03-21 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729573', 'tblTempUsageDetail_20' ) end [2025-03-21 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729573', 'tblTempVendorCDR_20' ) start [2025-03-21 10:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729573', 'tblTempVendorCDR_20' ) end [2025-03-21 10:29:20] Production.INFO: ProcessCDR(1,14729573,1,1,2) [2025-03-21 10:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729573', 'tblTempUsageDetail_20' ) start [2025-03-21 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729573', 'tblTempUsageDetail_20' ) end [2025-03-21 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:29:25] Production.INFO: ==18773== Releasing lock... [2025-03-21 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:29:25] Production.INFO: 49.25 MB #Memory Used# [2025-03-21 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:30:06 [end_date_ymd] => 2025-03-21 10:30:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:30:06' and `end` < '2025-03-21 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-21 10:30:19] Production.INFO: count ==2821 [2025-03-21 10:30:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:30:06 - End Time 2025-03-21 10:30:06 [2025-03-21 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729579', 'tblTempUsageDetail_20' ) start [2025-03-21 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729579', 'tblTempUsageDetail_20' ) end [2025-03-21 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729579', 'tblTempVendorCDR_20' ) start [2025-03-21 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729579', 'tblTempVendorCDR_20' ) end [2025-03-21 10:30:20] Production.INFO: ProcessCDR(1,14729579,1,1,2) [2025-03-21 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729579', 'tblTempUsageDetail_20' ) start [2025-03-21 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729579', 'tblTempUsageDetail_20' ) end [2025-03-21 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:30:26] Production.INFO: ==18860== Releasing lock... [2025-03-21 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:30:26] Production.INFO: 49 MB #Memory Used# [2025-03-21 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:31:05 [end_date_ymd] => 2025-03-21 10:31:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:31:05' and `end` < '2025-03-21 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-21 10:31:18] Production.INFO: count ==2955 [2025-03-21 10:31:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:31:05 - End Time 2025-03-21 10:31:05 [2025-03-21 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729584', 'tblTempUsageDetail_20' ) start [2025-03-21 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729584', 'tblTempUsageDetail_20' ) end [2025-03-21 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729584', 'tblTempVendorCDR_20' ) start [2025-03-21 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729584', 'tblTempVendorCDR_20' ) end [2025-03-21 10:31:19] Production.INFO: ProcessCDR(1,14729584,1,1,2) [2025-03-21 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729584', 'tblTempUsageDetail_20' ) start [2025-03-21 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729584', 'tblTempUsageDetail_20' ) end [2025-03-21 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:31:25] Production.INFO: ==18943== Releasing lock... [2025-03-21 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:31:25] Production.INFO: 51 MB #Memory Used# [2025-03-21 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:32:05 [end_date_ymd] => 2025-03-21 10:32:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:32:05' and `end` < '2025-03-21 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-21 10:32:18] Production.INFO: count ==2979 [2025-03-21 10:32:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:32:05 - End Time 2025-03-21 10:32:05 [2025-03-21 10:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729589', 'tblTempUsageDetail_20' ) start [2025-03-21 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729589', 'tblTempUsageDetail_20' ) end [2025-03-21 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729589', 'tblTempVendorCDR_20' ) start [2025-03-21 10:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729589', 'tblTempVendorCDR_20' ) end [2025-03-21 10:32:19] Production.INFO: ProcessCDR(1,14729589,1,1,2) [2025-03-21 10:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729589', 'tblTempUsageDetail_20' ) start [2025-03-21 10:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729589', 'tblTempUsageDetail_20' ) end [2025-03-21 10:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:32:24] Production.INFO: ==19024== Releasing lock... [2025-03-21 10:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:32:24] Production.INFO: 51 MB #Memory Used# [2025-03-21 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:33:06 [end_date_ymd] => 2025-03-21 10:33:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:33:06' and `end` < '2025-03-21 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-21 10:33:19] Production.INFO: count ==3006 [2025-03-21 10:33:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:33:06 - End Time 2025-03-21 10:33:06 [2025-03-21 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729594', 'tblTempUsageDetail_20' ) start [2025-03-21 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729594', 'tblTempUsageDetail_20' ) end [2025-03-21 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729594', 'tblTempVendorCDR_20' ) start [2025-03-21 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729594', 'tblTempVendorCDR_20' ) end [2025-03-21 10:33:20] Production.INFO: ProcessCDR(1,14729594,1,1,2) [2025-03-21 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729594', 'tblTempUsageDetail_20' ) start [2025-03-21 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729594', 'tblTempUsageDetail_20' ) end [2025-03-21 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:33:25] Production.INFO: ==19112== Releasing lock... [2025-03-21 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:33:25] Production.INFO: 50.5 MB #Memory Used# [2025-03-21 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:34:05 [end_date_ymd] => 2025-03-21 10:34:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:34:05' and `end` < '2025-03-21 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-21 10:34:18] Production.INFO: count ==3028 [2025-03-21 10:34:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:34:05 - End Time 2025-03-21 10:34:05 [2025-03-21 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729599', 'tblTempUsageDetail_20' ) start [2025-03-21 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729599', 'tblTempUsageDetail_20' ) end [2025-03-21 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729599', 'tblTempVendorCDR_20' ) start [2025-03-21 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729599', 'tblTempVendorCDR_20' ) end [2025-03-21 10:34:19] Production.INFO: ProcessCDR(1,14729599,1,1,2) [2025-03-21 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729599', 'tblTempUsageDetail_20' ) start [2025-03-21 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729599', 'tblTempUsageDetail_20' ) end [2025-03-21 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:34:24] Production.INFO: ==19201== Releasing lock... [2025-03-21 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:34:24] Production.INFO: 50.5 MB #Memory Used# [2025-03-21 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:35:05 [end_date_ymd] => 2025-03-21 10:35:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:35:05' and `end` < '2025-03-21 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-21 10:35:18] Production.INFO: count ==3048 [2025-03-21 10:35:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:35:05 - End Time 2025-03-21 10:35:05 [2025-03-21 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729604', 'tblTempUsageDetail_20' ) start [2025-03-21 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729604', 'tblTempUsageDetail_20' ) end [2025-03-21 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729604', 'tblTempVendorCDR_20' ) start [2025-03-21 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729604', 'tblTempVendorCDR_20' ) end [2025-03-21 10:35:20] Production.INFO: ProcessCDR(1,14729604,1,1,2) [2025-03-21 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729604', 'tblTempUsageDetail_20' ) start [2025-03-21 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729604', 'tblTempUsageDetail_20' ) end [2025-03-21 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:35:25] Production.INFO: ==19282== Releasing lock... [2025-03-21 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:35:25] Production.INFO: 51 MB #Memory Used# [2025-03-21 10:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:36:04 [end_date_ymd] => 2025-03-21 10:36:04 [RateCDR] => 1 ) [2025-03-21 10:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 07:36:04' and `end` < '2025-03-21 10:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 10:36:17] Production.INFO: count ==3059 [2025-03-21 10:36:18] Production.ERROR: pbx CDR StartTime 2025-03-21 07:36:04 - End Time 2025-03-21 10:36:04 [2025-03-21 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729609', 'tblTempUsageDetail_20' ) start [2025-03-21 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729609', 'tblTempUsageDetail_20' ) end [2025-03-21 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729609', 'tblTempVendorCDR_20' ) start [2025-03-21 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729609', 'tblTempVendorCDR_20' ) end [2025-03-21 10:36:19] Production.INFO: ProcessCDR(1,14729609,1,1,2) [2025-03-21 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729609', 'tblTempUsageDetail_20' ) start [2025-03-21 10:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729609', 'tblTempUsageDetail_20' ) end [2025-03-21 10:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:36:23] Production.INFO: ==19365== Releasing lock... [2025-03-21 10:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:36:23] Production.INFO: 51.75 MB #Memory Used# [2025-03-21 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:37:05 [end_date_ymd] => 2025-03-21 10:37:05 [RateCDR] => 1 ) [2025-03-21 10: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-21 07:37:05' and `end` < '2025-03-21 10: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-21 10:37:18] Production.INFO: count ==3055 [2025-03-21 10:37:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:37:05 - End Time 2025-03-21 10:37:05 [2025-03-21 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729614', 'tblTempUsageDetail_20' ) start [2025-03-21 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729614', 'tblTempUsageDetail_20' ) end [2025-03-21 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729614', 'tblTempVendorCDR_20' ) start [2025-03-21 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729614', 'tblTempVendorCDR_20' ) end [2025-03-21 10:37:20] Production.INFO: ProcessCDR(1,14729614,1,1,2) [2025-03-21 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729614', 'tblTempUsageDetail_20' ) start [2025-03-21 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729614', 'tblTempUsageDetail_20' ) end [2025-03-21 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:37:25] Production.INFO: ==19449== Releasing lock... [2025-03-21 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:37:25] Production.INFO: 51.25 MB #Memory Used# [2025-03-21 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:38:05 [end_date_ymd] => 2025-03-21 10:38:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:38:05' and `end` < '2025-03-21 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-21 10:38:18] Production.INFO: count ==3065 [2025-03-21 10:38:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:38:05 - End Time 2025-03-21 10:38:05 [2025-03-21 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729619', 'tblTempUsageDetail_20' ) start [2025-03-21 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729619', 'tblTempUsageDetail_20' ) end [2025-03-21 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729619', 'tblTempVendorCDR_20' ) start [2025-03-21 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729619', 'tblTempVendorCDR_20' ) end [2025-03-21 10:38:19] Production.INFO: ProcessCDR(1,14729619,1,1,2) [2025-03-21 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729619', 'tblTempUsageDetail_20' ) start [2025-03-21 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729619', 'tblTempUsageDetail_20' ) end [2025-03-21 10:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:38:24] Production.INFO: ==19532== Releasing lock... [2025-03-21 10:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:38:24] Production.INFO: 51.25 MB #Memory Used# [2025-03-21 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:39:05 [end_date_ymd] => 2025-03-21 10:39:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:39:05' and `end` < '2025-03-21 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-21 10:39:18] Production.INFO: count ==3093 [2025-03-21 10:39:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:39:05 - End Time 2025-03-21 10:39:05 [2025-03-21 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729624', 'tblTempUsageDetail_20' ) start [2025-03-21 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729624', 'tblTempUsageDetail_20' ) end [2025-03-21 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729624', 'tblTempVendorCDR_20' ) start [2025-03-21 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729624', 'tblTempVendorCDR_20' ) end [2025-03-21 10:39:20] Production.INFO: ProcessCDR(1,14729624,1,1,2) [2025-03-21 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729624', 'tblTempUsageDetail_20' ) start [2025-03-21 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729624', 'tblTempUsageDetail_20' ) end [2025-03-21 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:39:25] Production.INFO: ==19611== Releasing lock... [2025-03-21 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:39:25] Production.INFO: 51 MB #Memory Used# [2025-03-21 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:40:06 [end_date_ymd] => 2025-03-21 10:40:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:40:06' and `end` < '2025-03-21 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-21 10:40:18] Production.INFO: count ==3104 [2025-03-21 10:40:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:40:06 - End Time 2025-03-21 10:40:06 [2025-03-21 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729630', 'tblTempUsageDetail_20' ) start [2025-03-21 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729630', 'tblTempUsageDetail_20' ) end [2025-03-21 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729630', 'tblTempVendorCDR_20' ) start [2025-03-21 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729630', 'tblTempVendorCDR_20' ) end [2025-03-21 10:40:20] Production.INFO: ProcessCDR(1,14729630,1,1,2) [2025-03-21 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729630', 'tblTempUsageDetail_20' ) start [2025-03-21 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729630', 'tblTempUsageDetail_20' ) end [2025-03-21 10:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:40:25] Production.INFO: ==19696== Releasing lock... [2025-03-21 10:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:40:25] Production.INFO: 51.75 MB #Memory Used# [2025-03-21 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:41:05 [end_date_ymd] => 2025-03-21 10:41:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:41:05' and `end` < '2025-03-21 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-21 10:41:18] Production.INFO: count ==3223 [2025-03-21 10:41:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:41:05 - End Time 2025-03-21 10:41:05 [2025-03-21 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729635', 'tblTempUsageDetail_20' ) start [2025-03-21 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729635', 'tblTempUsageDetail_20' ) end [2025-03-21 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729635', 'tblTempVendorCDR_20' ) start [2025-03-21 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729635', 'tblTempVendorCDR_20' ) end [2025-03-21 10:41:20] Production.INFO: ProcessCDR(1,14729635,1,1,2) [2025-03-21 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729635', 'tblTempUsageDetail_20' ) start [2025-03-21 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729635', 'tblTempUsageDetail_20' ) end [2025-03-21 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:41:25] Production.INFO: ==19788== Releasing lock... [2025-03-21 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:41:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-21 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:42:05 [end_date_ymd] => 2025-03-21 10:42:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:42:05' and `end` < '2025-03-21 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-21 10:42:18] Production.INFO: count ==3237 [2025-03-21 10:42:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:42:05 - End Time 2025-03-21 10:42:05 [2025-03-21 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729640', 'tblTempUsageDetail_20' ) start [2025-03-21 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729640', 'tblTempUsageDetail_20' ) end [2025-03-21 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729640', 'tblTempVendorCDR_20' ) start [2025-03-21 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729640', 'tblTempVendorCDR_20' ) end [2025-03-21 10:42:20] Production.INFO: ProcessCDR(1,14729640,1,1,2) [2025-03-21 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729640', 'tblTempUsageDetail_20' ) start [2025-03-21 10:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729640', 'tblTempUsageDetail_20' ) end [2025-03-21 10:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:42:24] Production.INFO: ==19870== Releasing lock... [2025-03-21 10:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:42:24] Production.INFO: 53 MB #Memory Used# [2025-03-21 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:43:05 [end_date_ymd] => 2025-03-21 10:43:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:43:05' and `end` < '2025-03-21 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-21 10:43:18] Production.INFO: count ==3243 [2025-03-21 10:43:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:43:05 - End Time 2025-03-21 10:43:05 [2025-03-21 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729645', 'tblTempUsageDetail_20' ) start [2025-03-21 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729645', 'tblTempUsageDetail_20' ) end [2025-03-21 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729645', 'tblTempVendorCDR_20' ) start [2025-03-21 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729645', 'tblTempVendorCDR_20' ) end [2025-03-21 10:43:20] Production.INFO: ProcessCDR(1,14729645,1,1,2) [2025-03-21 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729645', 'tblTempUsageDetail_20' ) start [2025-03-21 10:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729645', 'tblTempUsageDetail_20' ) end [2025-03-21 10:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:43:24] Production.INFO: ==19998== Releasing lock... [2025-03-21 10:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:43:24] Production.INFO: 53 MB #Memory Used# [2025-03-21 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:44:05 [end_date_ymd] => 2025-03-21 10:44:05 [RateCDR] => 1 ) [2025-03-21 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 07:44:05' and `end` < '2025-03-21 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 10:44:18] Production.INFO: count ==3288 [2025-03-21 10:44:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:44:05 - End Time 2025-03-21 10:44:05 [2025-03-21 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729650', 'tblTempUsageDetail_20' ) start [2025-03-21 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729650', 'tblTempUsageDetail_20' ) end [2025-03-21 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729650', 'tblTempVendorCDR_20' ) start [2025-03-21 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729650', 'tblTempVendorCDR_20' ) end [2025-03-21 10:44:20] Production.INFO: ProcessCDR(1,14729650,1,1,2) [2025-03-21 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729650', 'tblTempUsageDetail_20' ) start [2025-03-21 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729650', 'tblTempUsageDetail_20' ) end [2025-03-21 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:44:25] Production.INFO: ==20089== Releasing lock... [2025-03-21 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:44:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-21 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:45:05 [end_date_ymd] => 2025-03-21 10:45:05 [RateCDR] => 1 ) [2025-03-21 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 07:45:05' and `end` < '2025-03-21 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-21 10:45:18] Production.INFO: count ==3306 [2025-03-21 10:45:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:45:05 - End Time 2025-03-21 10:45:05 [2025-03-21 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729655', 'tblTempUsageDetail_20' ) start [2025-03-21 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729655', 'tblTempUsageDetail_20' ) end [2025-03-21 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729655', 'tblTempVendorCDR_20' ) start [2025-03-21 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729655', 'tblTempVendorCDR_20' ) end [2025-03-21 10:45:20] Production.INFO: ProcessCDR(1,14729655,1,1,2) [2025-03-21 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729655', 'tblTempUsageDetail_20' ) start [2025-03-21 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729655', 'tblTempUsageDetail_20' ) end [2025-03-21 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:45:25] Production.INFO: ==20175== Releasing lock... [2025-03-21 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:45:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-21 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:46:05 [end_date_ymd] => 2025-03-21 10:46:05 [RateCDR] => 1 ) [2025-03-21 10: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-21 07:46:05' and `end` < '2025-03-21 10: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-21 10:46:18] Production.INFO: count ==3322 [2025-03-21 10:46:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:46:05 - End Time 2025-03-21 10:46:05 [2025-03-21 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729660', 'tblTempUsageDetail_20' ) start [2025-03-21 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729660', 'tblTempUsageDetail_20' ) end [2025-03-21 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729660', 'tblTempVendorCDR_20' ) start [2025-03-21 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729660', 'tblTempVendorCDR_20' ) end [2025-03-21 10:46:20] Production.INFO: ProcessCDR(1,14729660,1,1,2) [2025-03-21 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729660', 'tblTempUsageDetail_20' ) start [2025-03-21 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729660', 'tblTempUsageDetail_20' ) end [2025-03-21 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:46:25] Production.INFO: ==20268== Releasing lock... [2025-03-21 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:46:25] Production.INFO: 53.75 MB #Memory Used# [2025-03-21 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:47:06 [end_date_ymd] => 2025-03-21 10:47:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:47:06' and `end` < '2025-03-21 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-21 10:47:19] Production.INFO: count ==3335 [2025-03-21 10:47:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:47:06 - End Time 2025-03-21 10:47:06 [2025-03-21 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729665', 'tblTempUsageDetail_20' ) start [2025-03-21 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729665', 'tblTempUsageDetail_20' ) end [2025-03-21 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729665', 'tblTempVendorCDR_20' ) start [2025-03-21 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729665', 'tblTempVendorCDR_20' ) end [2025-03-21 10:47:20] Production.INFO: ProcessCDR(1,14729665,1,1,2) [2025-03-21 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729665', 'tblTempUsageDetail_20' ) start [2025-03-21 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729665', 'tblTempUsageDetail_20' ) end [2025-03-21 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:47:26] Production.INFO: ==20350== Releasing lock... [2025-03-21 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:47:26] Production.INFO: 53.5 MB #Memory Used# [2025-03-21 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:48:05 [end_date_ymd] => 2025-03-21 10:48:05 [RateCDR] => 1 ) [2025-03-21 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 07:48:05' and `end` < '2025-03-21 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 10:48:18] Production.INFO: count ==3359 [2025-03-21 10:48:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:48:05 - End Time 2025-03-21 10:48:05 [2025-03-21 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729670', 'tblTempUsageDetail_20' ) start [2025-03-21 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729670', 'tblTempUsageDetail_20' ) end [2025-03-21 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729670', 'tblTempVendorCDR_20' ) start [2025-03-21 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729670', 'tblTempVendorCDR_20' ) end [2025-03-21 10:48:20] Production.INFO: ProcessCDR(1,14729670,1,1,2) [2025-03-21 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729670', 'tblTempUsageDetail_20' ) start [2025-03-21 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729670', 'tblTempUsageDetail_20' ) end [2025-03-21 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:48:25] Production.INFO: ==20431== Releasing lock... [2025-03-21 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:48:25] Production.INFO: 54 MB #Memory Used# [2025-03-21 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:49:05 [end_date_ymd] => 2025-03-21 10:49:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:49:05' and `end` < '2025-03-21 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-21 10:49:18] Production.INFO: count ==3366 [2025-03-21 10:49:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:49:05 - End Time 2025-03-21 10:49:05 [2025-03-21 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729675', 'tblTempUsageDetail_20' ) start [2025-03-21 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729675', 'tblTempUsageDetail_20' ) end [2025-03-21 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729675', 'tblTempVendorCDR_20' ) start [2025-03-21 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729675', 'tblTempVendorCDR_20' ) end [2025-03-21 10:49:20] Production.INFO: ProcessCDR(1,14729675,1,1,2) [2025-03-21 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729675', 'tblTempUsageDetail_20' ) start [2025-03-21 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729675', 'tblTempUsageDetail_20' ) end [2025-03-21 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:49:25] Production.INFO: ==20522== Releasing lock... [2025-03-21 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:49:25] Production.INFO: 54 MB #Memory Used# [2025-03-21 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:50:05 [end_date_ymd] => 2025-03-21 10:50:05 [RateCDR] => 1 ) [2025-03-21 10: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-21 07:50:05' and `end` < '2025-03-21 10: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-21 10:50:18] Production.INFO: count ==3387 [2025-03-21 10:50:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:50:05 - End Time 2025-03-21 10:50:05 [2025-03-21 10:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729681', 'tblTempUsageDetail_20' ) start [2025-03-21 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729681', 'tblTempUsageDetail_20' ) end [2025-03-21 10:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729681', 'tblTempVendorCDR_20' ) start [2025-03-21 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729681', 'tblTempVendorCDR_20' ) end [2025-03-21 10:50:20] Production.INFO: ProcessCDR(1,14729681,1,1,2) [2025-03-21 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729681', 'tblTempUsageDetail_20' ) start [2025-03-21 10:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729681', 'tblTempUsageDetail_20' ) end [2025-03-21 10:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:50:25] Production.INFO: ==20619== Releasing lock... [2025-03-21 10:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:50:25] Production.INFO: 54.25 MB #Memory Used# [2025-03-21 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:51:06 [end_date_ymd] => 2025-03-21 10:51:06 [RateCDR] => 1 ) [2025-03-21 10: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-21 07:51:06' and `end` < '2025-03-21 10: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-21 10:51:18] Production.INFO: count ==3487 [2025-03-21 10:51:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:51:06 - End Time 2025-03-21 10:51:06 [2025-03-21 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729686', 'tblTempUsageDetail_20' ) start [2025-03-21 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729686', 'tblTempUsageDetail_20' ) end [2025-03-21 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729686', 'tblTempVendorCDR_20' ) start [2025-03-21 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729686', 'tblTempVendorCDR_20' ) end [2025-03-21 10:51:20] Production.INFO: ProcessCDR(1,14729686,1,1,2) [2025-03-21 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729686', 'tblTempUsageDetail_20' ) start [2025-03-21 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729686', 'tblTempUsageDetail_20' ) end [2025-03-21 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:51:25] Production.INFO: ==20709== Releasing lock... [2025-03-21 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:51:25] Production.INFO: 54.75 MB #Memory Used# [2025-03-21 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:52:05 [end_date_ymd] => 2025-03-21 10:52:05 [RateCDR] => 1 ) [2025-03-21 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 07:52:05' and `end` < '2025-03-21 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 10:52:18] Production.INFO: count ==3503 [2025-03-21 10:52:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:52:05 - End Time 2025-03-21 10:52:05 [2025-03-21 10:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729691', 'tblTempUsageDetail_20' ) start [2025-03-21 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729691', 'tblTempUsageDetail_20' ) end [2025-03-21 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729691', 'tblTempVendorCDR_20' ) start [2025-03-21 10:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729691', 'tblTempVendorCDR_20' ) end [2025-03-21 10:52:19] Production.INFO: ProcessCDR(1,14729691,1,1,2) [2025-03-21 10:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729691', 'tblTempUsageDetail_20' ) start [2025-03-21 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729691', 'tblTempUsageDetail_20' ) end [2025-03-21 10:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:52:24] Production.INFO: ==20792== Releasing lock... [2025-03-21 10:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:52:24] Production.INFO: 55 MB #Memory Used# [2025-03-21 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:53:05 [end_date_ymd] => 2025-03-21 10:53:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:53:05' and `end` < '2025-03-21 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-21 10:53:18] Production.INFO: count ==3521 [2025-03-21 10:53:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:53:05 - End Time 2025-03-21 10:53:05 [2025-03-21 10:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729696', 'tblTempUsageDetail_20' ) start [2025-03-21 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729696', 'tblTempUsageDetail_20' ) end [2025-03-21 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729696', 'tblTempVendorCDR_20' ) start [2025-03-21 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729696', 'tblTempVendorCDR_20' ) end [2025-03-21 10:53:20] Production.INFO: ProcessCDR(1,14729696,1,1,2) [2025-03-21 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729696', 'tblTempUsageDetail_20' ) start [2025-03-21 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729696', 'tblTempUsageDetail_20' ) end [2025-03-21 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:53:25] Production.INFO: ==20878== Releasing lock... [2025-03-21 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:53:25] Production.INFO: 55 MB #Memory Used# [2025-03-21 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:54:06 [end_date_ymd] => 2025-03-21 10:54:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:54:06' and `end` < '2025-03-21 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-21 10:54:19] Production.INFO: count ==3554 [2025-03-21 10:54:21] Production.ERROR: pbx CDR StartTime 2025-03-21 07:54:06 - End Time 2025-03-21 10:54:06 [2025-03-21 10:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729701', 'tblTempUsageDetail_20' ) start [2025-03-21 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729701', 'tblTempUsageDetail_20' ) end [2025-03-21 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729701', 'tblTempVendorCDR_20' ) start [2025-03-21 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729701', 'tblTempVendorCDR_20' ) end [2025-03-21 10:54:21] Production.INFO: ProcessCDR(1,14729701,1,1,2) [2025-03-21 10:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729701', 'tblTempUsageDetail_20' ) start [2025-03-21 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729701', 'tblTempUsageDetail_20' ) end [2025-03-21 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:54:26] Production.INFO: ==20968== Releasing lock... [2025-03-21 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:54:26] Production.INFO: 55 MB #Memory Used# [2025-03-21 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:55:06 [end_date_ymd] => 2025-03-21 10:55:06 [RateCDR] => 1 ) [2025-03-21 10: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-21 07:55:06' and `end` < '2025-03-21 10: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-21 10:55:18] Production.INFO: count ==3565 [2025-03-21 10:55:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:55:06 - End Time 2025-03-21 10:55:06 [2025-03-21 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729706', 'tblTempUsageDetail_20' ) start [2025-03-21 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729706', 'tblTempUsageDetail_20' ) end [2025-03-21 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729706', 'tblTempVendorCDR_20' ) start [2025-03-21 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729706', 'tblTempVendorCDR_20' ) end [2025-03-21 10:55:20] Production.INFO: ProcessCDR(1,14729706,1,1,2) [2025-03-21 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729706', 'tblTempUsageDetail_20' ) start [2025-03-21 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729706', 'tblTempUsageDetail_20' ) end [2025-03-21 10:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:55:24] Production.INFO: ==21043== Releasing lock... [2025-03-21 10:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:55:24] Production.INFO: 55 MB #Memory Used# [2025-03-21 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:56:05 [end_date_ymd] => 2025-03-21 10:56:05 [RateCDR] => 1 ) [2025-03-21 10: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-21 07:56:05' and `end` < '2025-03-21 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 10:56:19] Production.INFO: count ==3587 [2025-03-21 10:56:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:56:05 - End Time 2025-03-21 10:56:05 [2025-03-21 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729711', 'tblTempUsageDetail_20' ) start [2025-03-21 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729711', 'tblTempUsageDetail_20' ) end [2025-03-21 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729711', 'tblTempVendorCDR_20' ) start [2025-03-21 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729711', 'tblTempVendorCDR_20' ) end [2025-03-21 10:56:20] Production.INFO: ProcessCDR(1,14729711,1,1,2) [2025-03-21 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729711', 'tblTempUsageDetail_20' ) start [2025-03-21 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729711', 'tblTempUsageDetail_20' ) end [2025-03-21 10:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:56:26] Production.INFO: ==21129== Releasing lock... [2025-03-21 10:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:56:26] Production.INFO: 54.75 MB #Memory Used# [2025-03-21 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:57:05 [end_date_ymd] => 2025-03-21 10:57:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:57:05' and `end` < '2025-03-21 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-21 10:57:18] Production.INFO: count ==3606 [2025-03-21 10:57:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:57:05 - End Time 2025-03-21 10:57:05 [2025-03-21 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729716', 'tblTempUsageDetail_20' ) start [2025-03-21 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729716', 'tblTempUsageDetail_20' ) end [2025-03-21 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729716', 'tblTempVendorCDR_20' ) start [2025-03-21 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729716', 'tblTempVendorCDR_20' ) end [2025-03-21 10:57:20] Production.INFO: ProcessCDR(1,14729716,1,1,2) [2025-03-21 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729716', 'tblTempUsageDetail_20' ) start [2025-03-21 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729716', 'tblTempUsageDetail_20' ) end [2025-03-21 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:57:25] Production.INFO: ==21214== Releasing lock... [2025-03-21 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:57:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-21 10:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:58:06 [end_date_ymd] => 2025-03-21 10:58:06 [RateCDR] => 1 ) [2025-03-21 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-21 07:58:06' and `end` < '2025-03-21 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-21 10:58:19] Production.INFO: count ==3682 [2025-03-21 10:58:20] Production.ERROR: pbx CDR StartTime 2025-03-21 07:58:06 - End Time 2025-03-21 10:58:06 [2025-03-21 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729721', 'tblTempUsageDetail_20' ) start [2025-03-21 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729721', 'tblTempUsageDetail_20' ) end [2025-03-21 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729721', 'tblTempVendorCDR_20' ) start [2025-03-21 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729721', 'tblTempVendorCDR_20' ) end [2025-03-21 10:58:20] Production.INFO: ProcessCDR(1,14729721,1,1,2) [2025-03-21 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729721', 'tblTempUsageDetail_20' ) start [2025-03-21 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729721', 'tblTempUsageDetail_20' ) end [2025-03-21 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:58:25] Production.INFO: ==21295== Releasing lock... [2025-03-21 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:58:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-21 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 07:59:05 [end_date_ymd] => 2025-03-21 10:59:05 [RateCDR] => 1 ) [2025-03-21 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-21 07:59:05' and `end` < '2025-03-21 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-21 10:59:18] Production.INFO: count ==3760 [2025-03-21 10:59:19] Production.ERROR: pbx CDR StartTime 2025-03-21 07:59:05 - End Time 2025-03-21 10:59:05 [2025-03-21 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729726', 'tblTempUsageDetail_20' ) start [2025-03-21 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729726', 'tblTempUsageDetail_20' ) end [2025-03-21 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729726', 'tblTempVendorCDR_20' ) start [2025-03-21 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729726', 'tblTempVendorCDR_20' ) end [2025-03-21 10:59:19] Production.INFO: ProcessCDR(1,14729726,1,1,2) [2025-03-21 10:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 10:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729726', 'tblTempUsageDetail_20' ) start [2025-03-21 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729726', 'tblTempUsageDetail_20' ) end [2025-03-21 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 10:59:25] Production.INFO: ==21423== Releasing lock... [2025-03-21 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 10:59:25] Production.INFO: 56.5 MB #Memory Used# [2025-03-21 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:00:07 [end_date_ymd] => 2025-03-21 11:00:07 [RateCDR] => 1 ) [2025-03-21 11: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-21 08:00:07' and `end` < '2025-03-21 11: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-21 11:00:20] Production.INFO: count ==3826 [2025-03-21 11:00:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:00:07 - End Time 2025-03-21 11:00:07 [2025-03-21 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729732', 'tblTempUsageDetail_20' ) start [2025-03-21 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729732', 'tblTempUsageDetail_20' ) end [2025-03-21 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729732', 'tblTempVendorCDR_20' ) start [2025-03-21 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729732', 'tblTempVendorCDR_20' ) end [2025-03-21 11:00:22] Production.INFO: ProcessCDR(1,14729732,1,1,2) [2025-03-21 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729732', 'tblTempUsageDetail_20' ) start [2025-03-21 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729732', 'tblTempUsageDetail_20' ) end [2025-03-21 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:00:28] Production.INFO: ==21519== Releasing lock... [2025-03-21 11:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:00:28] Production.INFO: 56.75 MB #Memory Used# [2025-03-21 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:01:05 [end_date_ymd] => 2025-03-21 11:01:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:01:05' and `end` < '2025-03-21 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-21 11:01:18] Production.INFO: count ==3941 [2025-03-21 11:01:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:01:05 - End Time 2025-03-21 11:01:05 [2025-03-21 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729737', 'tblTempUsageDetail_20' ) start [2025-03-21 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729737', 'tblTempUsageDetail_20' ) end [2025-03-21 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729737', 'tblTempVendorCDR_20' ) start [2025-03-21 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729737', 'tblTempVendorCDR_20' ) end [2025-03-21 11:01:20] Production.INFO: ProcessCDR(1,14729737,1,1,2) [2025-03-21 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729737', 'tblTempUsageDetail_20' ) start [2025-03-21 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729737', 'tblTempUsageDetail_20' ) end [2025-03-21 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:01:25] Production.INFO: ==21614== Releasing lock... [2025-03-21 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:01:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-21 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:02:05 [end_date_ymd] => 2025-03-21 11:02:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:02:05' and `end` < '2025-03-21 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-21 11:02:19] Production.INFO: count ==3945 [2025-03-21 11:02:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:02:05 - End Time 2025-03-21 11:02:05 [2025-03-21 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729742', 'tblTempUsageDetail_20' ) start [2025-03-21 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729742', 'tblTempUsageDetail_20' ) end [2025-03-21 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729742', 'tblTempVendorCDR_20' ) start [2025-03-21 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729742', 'tblTempVendorCDR_20' ) end [2025-03-21 11:02:20] Production.INFO: ProcessCDR(1,14729742,1,1,2) [2025-03-21 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729742', 'tblTempUsageDetail_20' ) start [2025-03-21 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729742', 'tblTempUsageDetail_20' ) end [2025-03-21 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:02:26] Production.INFO: ==21780== Releasing lock... [2025-03-21 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:02:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-21 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:03:06 [end_date_ymd] => 2025-03-21 11:03:06 [RateCDR] => 1 ) [2025-03-21 11: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-21 08:03:06' and `end` < '2025-03-21 11: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-21 11:03:19] Production.INFO: count ==3959 [2025-03-21 11:03:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:03:06 - End Time 2025-03-21 11:03:06 [2025-03-21 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729747', 'tblTempUsageDetail_20' ) start [2025-03-21 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729747', 'tblTempUsageDetail_20' ) end [2025-03-21 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729747', 'tblTempVendorCDR_20' ) start [2025-03-21 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729747', 'tblTempVendorCDR_20' ) end [2025-03-21 11:03:21] Production.INFO: ProcessCDR(1,14729747,1,1,2) [2025-03-21 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729747', 'tblTempUsageDetail_20' ) start [2025-03-21 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729747', 'tblTempUsageDetail_20' ) end [2025-03-21 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:03:26] Production.INFO: ==21877== Releasing lock... [2025-03-21 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:03:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-21 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:04:05 [end_date_ymd] => 2025-03-21 11:04:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:04:05' and `end` < '2025-03-21 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-21 11:04:19] Production.INFO: count ==3967 [2025-03-21 11:04:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:04:05 - End Time 2025-03-21 11:04:05 [2025-03-21 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729752', 'tblTempUsageDetail_20' ) start [2025-03-21 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729752', 'tblTempUsageDetail_20' ) end [2025-03-21 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729752', 'tblTempVendorCDR_20' ) start [2025-03-21 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729752', 'tblTempVendorCDR_20' ) end [2025-03-21 11:04:20] Production.INFO: ProcessCDR(1,14729752,1,1,2) [2025-03-21 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729752', 'tblTempUsageDetail_20' ) start [2025-03-21 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729752', 'tblTempUsageDetail_20' ) end [2025-03-21 11:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:04:26] Production.INFO: ==21961== Releasing lock... [2025-03-21 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:04:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-21 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:05:06 [end_date_ymd] => 2025-03-21 11:05:06 [RateCDR] => 1 ) [2025-03-21 11: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-21 08:05:06' and `end` < '2025-03-21 11: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-21 11:05:19] Production.INFO: count ==3978 [2025-03-21 11:05:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:05:06 - End Time 2025-03-21 11:05:06 [2025-03-21 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729757', 'tblTempUsageDetail_20' ) start [2025-03-21 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729757', 'tblTempUsageDetail_20' ) end [2025-03-21 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729757', 'tblTempVendorCDR_20' ) start [2025-03-21 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729757', 'tblTempVendorCDR_20' ) end [2025-03-21 11:05:20] Production.INFO: ProcessCDR(1,14729757,1,1,2) [2025-03-21 11:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729757', 'tblTempUsageDetail_20' ) start [2025-03-21 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729757', 'tblTempUsageDetail_20' ) end [2025-03-21 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:05:26] Production.INFO: ==22131== Releasing lock... [2025-03-21 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:05:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-21 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:06:06 [end_date_ymd] => 2025-03-21 11:06:06 [RateCDR] => 1 ) [2025-03-21 11: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-21 08:06:06' and `end` < '2025-03-21 11: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-21 11:06:19] Production.INFO: count ==4001 [2025-03-21 11:06:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:06:06 - End Time 2025-03-21 11:06:06 [2025-03-21 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729762', 'tblTempUsageDetail_20' ) start [2025-03-21 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729762', 'tblTempUsageDetail_20' ) end [2025-03-21 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729762', 'tblTempVendorCDR_20' ) start [2025-03-21 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729762', 'tblTempVendorCDR_20' ) end [2025-03-21 11:06:21] Production.INFO: ProcessCDR(1,14729762,1,1,2) [2025-03-21 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729762', 'tblTempUsageDetail_20' ) start [2025-03-21 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729762', 'tblTempUsageDetail_20' ) end [2025-03-21 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:06:26] Production.INFO: ==22215== Releasing lock... [2025-03-21 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:06:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-21 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:07:05 [end_date_ymd] => 2025-03-21 11:07:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:07:05' and `end` < '2025-03-21 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-21 11:07:18] Production.INFO: count ==4011 [2025-03-21 11:07:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:07:05 - End Time 2025-03-21 11:07:05 [2025-03-21 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729767', 'tblTempUsageDetail_20' ) start [2025-03-21 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729767', 'tblTempUsageDetail_20' ) end [2025-03-21 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729767', 'tblTempVendorCDR_20' ) start [2025-03-21 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729767', 'tblTempVendorCDR_20' ) end [2025-03-21 11:07:20] Production.INFO: ProcessCDR(1,14729767,1,1,2) [2025-03-21 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729767', 'tblTempUsageDetail_20' ) start [2025-03-21 11:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729767', 'tblTempUsageDetail_20' ) end [2025-03-21 11:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:07:25] Production.INFO: ==22302== Releasing lock... [2025-03-21 11:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:07:25] Production.INFO: 58 MB #Memory Used# [2025-03-21 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:08:06 [end_date_ymd] => 2025-03-21 11:08:06 [RateCDR] => 1 ) [2025-03-21 11: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-21 08:08:06' and `end` < '2025-03-21 11: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-21 11:08:19] Production.INFO: count ==4021 [2025-03-21 11:08:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:08:06 - End Time 2025-03-21 11:08:06 [2025-03-21 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729772', 'tblTempUsageDetail_20' ) start [2025-03-21 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729772', 'tblTempUsageDetail_20' ) end [2025-03-21 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729772', 'tblTempVendorCDR_20' ) start [2025-03-21 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729772', 'tblTempVendorCDR_20' ) end [2025-03-21 11:08:21] Production.INFO: ProcessCDR(1,14729772,1,1,2) [2025-03-21 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729772', 'tblTempUsageDetail_20' ) start [2025-03-21 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729772', 'tblTempUsageDetail_20' ) end [2025-03-21 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:08:26] Production.INFO: ==22424== Releasing lock... [2025-03-21 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:08:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-21 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:09:05 [end_date_ymd] => 2025-03-21 11:09:05 [RateCDR] => 1 ) [2025-03-21 11:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:09:05' and `end` < '2025-03-21 11:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:09:18] Production.INFO: count ==4034 [2025-03-21 11:09:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:09:05 - End Time 2025-03-21 11:09:05 [2025-03-21 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729777', 'tblTempUsageDetail_20' ) start [2025-03-21 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729777', 'tblTempUsageDetail_20' ) end [2025-03-21 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729777', 'tblTempVendorCDR_20' ) start [2025-03-21 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729777', 'tblTempVendorCDR_20' ) end [2025-03-21 11:09:20] Production.INFO: ProcessCDR(1,14729777,1,1,2) [2025-03-21 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729777', 'tblTempUsageDetail_20' ) start [2025-03-21 11:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729777', 'tblTempUsageDetail_20' ) end [2025-03-21 11:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:09:25] Production.INFO: ==22552== Releasing lock... [2025-03-21 11:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:09:25] Production.INFO: 58 MB #Memory Used# [2025-03-21 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:10:06 [end_date_ymd] => 2025-03-21 11:10:06 [RateCDR] => 1 ) [2025-03-21 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-21 08:10:06' and `end` < '2025-03-21 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-21 11:10:19] Production.INFO: count ==4036 [2025-03-21 11:10:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:10:06 - End Time 2025-03-21 11:10:06 [2025-03-21 11:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729781', 'tblTempUsageDetail_20' ) start [2025-03-21 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729781', 'tblTempUsageDetail_20' ) end [2025-03-21 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729781', 'tblTempVendorCDR_20' ) start [2025-03-21 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729781', 'tblTempVendorCDR_20' ) end [2025-03-21 11:10:21] Production.INFO: ProcessCDR(1,14729781,1,1,2) [2025-03-21 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729781', 'tblTempUsageDetail_20' ) start [2025-03-21 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729781', 'tblTempUsageDetail_20' ) end [2025-03-21 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:10:26] Production.INFO: ==22639== Releasing lock... [2025-03-21 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:10:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-21 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:11:05 [end_date_ymd] => 2025-03-21 11:11:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:11:05' and `end` < '2025-03-21 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-21 11:11:18] Production.INFO: count ==4148 [2025-03-21 11:11:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:11:05 - End Time 2025-03-21 11:11:05 [2025-03-21 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729788', 'tblTempUsageDetail_20' ) start [2025-03-21 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729788', 'tblTempUsageDetail_20' ) end [2025-03-21 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729788', 'tblTempVendorCDR_20' ) start [2025-03-21 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729788', 'tblTempVendorCDR_20' ) end [2025-03-21 11:11:20] Production.INFO: ProcessCDR(1,14729788,1,1,2) [2025-03-21 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729788', 'tblTempUsageDetail_20' ) start [2025-03-21 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729788', 'tblTempUsageDetail_20' ) end [2025-03-21 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:11:25] Production.INFO: ==22718== Releasing lock... [2025-03-21 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:11:25] Production.INFO: 59 MB #Memory Used# [2025-03-21 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:12:05 [end_date_ymd] => 2025-03-21 11:12:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:12:05' and `end` < '2025-03-21 11:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:12:19] Production.INFO: count ==4151 [2025-03-21 11:12:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:12:05 - End Time 2025-03-21 11:12:05 [2025-03-21 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729793', 'tblTempUsageDetail_20' ) start [2025-03-21 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729793', 'tblTempUsageDetail_20' ) end [2025-03-21 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729793', 'tblTempVendorCDR_20' ) start [2025-03-21 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729793', 'tblTempVendorCDR_20' ) end [2025-03-21 11:12:20] Production.INFO: ProcessCDR(1,14729793,1,1,2) [2025-03-21 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729793', 'tblTempUsageDetail_20' ) start [2025-03-21 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729793', 'tblTempUsageDetail_20' ) end [2025-03-21 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:12:25] Production.INFO: ==22880== Releasing lock... [2025-03-21 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:12:25] Production.INFO: 59 MB #Memory Used# [2025-03-21 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:13:05 [end_date_ymd] => 2025-03-21 11:13:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:13:05' and `end` < '2025-03-21 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-21 11:13:18] Production.INFO: count ==4154 [2025-03-21 11:13:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:13:05 - End Time 2025-03-21 11:13:05 [2025-03-21 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729798', 'tblTempUsageDetail_20' ) start [2025-03-21 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729798', 'tblTempUsageDetail_20' ) end [2025-03-21 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729798', 'tblTempVendorCDR_20' ) start [2025-03-21 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729798', 'tblTempVendorCDR_20' ) end [2025-03-21 11:13:20] Production.INFO: ProcessCDR(1,14729798,1,1,2) [2025-03-21 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729798', 'tblTempUsageDetail_20' ) start [2025-03-21 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729798', 'tblTempUsageDetail_20' ) end [2025-03-21 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:13:26] Production.INFO: ==22960== Releasing lock... [2025-03-21 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:13:26] Production.INFO: 59 MB #Memory Used# [2025-03-21 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:14:05 [end_date_ymd] => 2025-03-21 11:14:05 [RateCDR] => 1 ) [2025-03-21 11:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:14:05' and `end` < '2025-03-21 11:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:14:18] Production.INFO: count ==4165 [2025-03-21 11:14:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:14:05 - End Time 2025-03-21 11:14:05 [2025-03-21 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729803', 'tblTempUsageDetail_20' ) start [2025-03-21 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729803', 'tblTempUsageDetail_20' ) end [2025-03-21 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729803', 'tblTempVendorCDR_20' ) start [2025-03-21 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729803', 'tblTempVendorCDR_20' ) end [2025-03-21 11:14:20] Production.INFO: ProcessCDR(1,14729803,1,1,2) [2025-03-21 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729803', 'tblTempUsageDetail_20' ) start [2025-03-21 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729803', 'tblTempUsageDetail_20' ) end [2025-03-21 11:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:14:25] Production.INFO: ==23086== Releasing lock... [2025-03-21 11:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:14:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-21 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:15:05 [end_date_ymd] => 2025-03-21 11:15:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:15:05' and `end` < '2025-03-21 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-21 11:15:18] Production.INFO: count ==4176 [2025-03-21 11:15:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:15:05 - End Time 2025-03-21 11:15:05 [2025-03-21 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729808', 'tblTempUsageDetail_20' ) start [2025-03-21 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729808', 'tblTempUsageDetail_20' ) end [2025-03-21 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729808', 'tblTempVendorCDR_20' ) start [2025-03-21 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729808', 'tblTempVendorCDR_20' ) end [2025-03-21 11:15:20] Production.INFO: ProcessCDR(1,14729808,1,1,2) [2025-03-21 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729808', 'tblTempUsageDetail_20' ) start [2025-03-21 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729808', 'tblTempUsageDetail_20' ) end [2025-03-21 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:15:25] Production.INFO: ==23252== Releasing lock... [2025-03-21 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:15:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-21 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:16:05 [end_date_ymd] => 2025-03-21 11:16:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:16:05' and `end` < '2025-03-21 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-21 11:16:19] Production.INFO: count ==4197 [2025-03-21 11:16:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:16:05 - End Time 2025-03-21 11:16:05 [2025-03-21 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729813', 'tblTempUsageDetail_20' ) start [2025-03-21 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729813', 'tblTempUsageDetail_20' ) end [2025-03-21 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729813', 'tblTempVendorCDR_20' ) start [2025-03-21 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729813', 'tblTempVendorCDR_20' ) end [2025-03-21 11:16:20] Production.INFO: ProcessCDR(1,14729813,1,1,2) [2025-03-21 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729813', 'tblTempUsageDetail_20' ) start [2025-03-21 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729813', 'tblTempUsageDetail_20' ) end [2025-03-21 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:16:26] Production.INFO: ==23335== Releasing lock... [2025-03-21 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:16:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-21 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:17:05 [end_date_ymd] => 2025-03-21 11:17:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:17:05' and `end` < '2025-03-21 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-21 11:17:18] Production.INFO: count ==4205 [2025-03-21 11:17:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:17:05 - End Time 2025-03-21 11:17:05 [2025-03-21 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729818', 'tblTempUsageDetail_20' ) start [2025-03-21 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729818', 'tblTempUsageDetail_20' ) end [2025-03-21 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729818', 'tblTempVendorCDR_20' ) start [2025-03-21 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729818', 'tblTempVendorCDR_20' ) end [2025-03-21 11:17:20] Production.INFO: ProcessCDR(1,14729818,1,1,2) [2025-03-21 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729818', 'tblTempUsageDetail_20' ) start [2025-03-21 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729818', 'tblTempUsageDetail_20' ) end [2025-03-21 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:17:25] Production.INFO: ==23420== Releasing lock... [2025-03-21 11:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:17:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-21 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:18:05 [end_date_ymd] => 2025-03-21 11:18:05 [RateCDR] => 1 ) [2025-03-21 11: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-21 08:18:05' and `end` < '2025-03-21 11: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-21 11:18:19] Production.INFO: count ==4198 [2025-03-21 11:18:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:18:05 - End Time 2025-03-21 11:18:05 [2025-03-21 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729823', 'tblTempUsageDetail_20' ) start [2025-03-21 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729823', 'tblTempUsageDetail_20' ) end [2025-03-21 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729823', 'tblTempVendorCDR_20' ) start [2025-03-21 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729823', 'tblTempVendorCDR_20' ) end [2025-03-21 11:18:21] Production.INFO: ProcessCDR(1,14729823,1,1,2) [2025-03-21 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729823', 'tblTempUsageDetail_20' ) start [2025-03-21 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729823', 'tblTempUsageDetail_20' ) end [2025-03-21 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:18:26] Production.INFO: ==23509== Releasing lock... [2025-03-21 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:18:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-21 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:19:04 [end_date_ymd] => 2025-03-21 11:19:04 [RateCDR] => 1 ) [2025-03-21 11:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:19:04' and `end` < '2025-03-21 11:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:19:18] Production.INFO: count ==4195 [2025-03-21 11:19:19] Production.ERROR: pbx CDR StartTime 2025-03-21 08:19:04 - End Time 2025-03-21 11:19:04 [2025-03-21 11:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729828', 'tblTempUsageDetail_20' ) start [2025-03-21 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729828', 'tblTempUsageDetail_20' ) end [2025-03-21 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729828', 'tblTempVendorCDR_20' ) start [2025-03-21 11:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729828', 'tblTempVendorCDR_20' ) end [2025-03-21 11:19:19] Production.INFO: ProcessCDR(1,14729828,1,1,2) [2025-03-21 11:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729828', 'tblTempUsageDetail_20' ) start [2025-03-21 11:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729828', 'tblTempUsageDetail_20' ) end [2025-03-21 11:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:19:24] Production.INFO: ==23599== Releasing lock... [2025-03-21 11:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:19:24] Production.INFO: 59.25 MB #Memory Used# [2025-03-21 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:20:06 [end_date_ymd] => 2025-03-21 11:20:06 [RateCDR] => 1 ) [2025-03-21 11:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:20:06' and `end` < '2025-03-21 11:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:20:19] Production.INFO: count ==4198 [2025-03-21 11:20:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:20:06 - End Time 2025-03-21 11:20:06 [2025-03-21 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729834', 'tblTempUsageDetail_20' ) start [2025-03-21 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729834', 'tblTempUsageDetail_20' ) end [2025-03-21 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729834', 'tblTempVendorCDR_20' ) start [2025-03-21 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729834', 'tblTempVendorCDR_20' ) end [2025-03-21 11:20:21] Production.INFO: ProcessCDR(1,14729834,1,1,2) [2025-03-21 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729834', 'tblTempUsageDetail_20' ) start [2025-03-21 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729834', 'tblTempUsageDetail_20' ) end [2025-03-21 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:20:26] Production.INFO: ==23688== Releasing lock... [2025-03-21 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:20:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-21 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:21:05 [end_date_ymd] => 2025-03-21 11:21:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:21:05' and `end` < '2025-03-21 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-21 11:21:19] Production.INFO: count ==4262 [2025-03-21 11:21:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:21:05 - End Time 2025-03-21 11:21:05 [2025-03-21 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729839', 'tblTempUsageDetail_20' ) start [2025-03-21 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729839', 'tblTempUsageDetail_20' ) end [2025-03-21 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729839', 'tblTempVendorCDR_20' ) start [2025-03-21 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729839', 'tblTempVendorCDR_20' ) end [2025-03-21 11:21:21] Production.INFO: ProcessCDR(1,14729839,1,1,2) [2025-03-21 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729839', 'tblTempUsageDetail_20' ) start [2025-03-21 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729839', 'tblTempUsageDetail_20' ) end [2025-03-21 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:21:26] Production.INFO: ==23773== Releasing lock... [2025-03-21 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:21:26] Production.INFO: 60 MB #Memory Used# [2025-03-21 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:22:05 [end_date_ymd] => 2025-03-21 11:22:05 [RateCDR] => 1 ) [2025-03-21 11: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-21 08:22:05' and `end` < '2025-03-21 11: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-21 11:22:19] Production.INFO: count ==4261 [2025-03-21 11:22:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:22:05 - End Time 2025-03-21 11:22:05 [2025-03-21 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729844', 'tblTempUsageDetail_20' ) start [2025-03-21 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729844', 'tblTempUsageDetail_20' ) end [2025-03-21 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729844', 'tblTempVendorCDR_20' ) start [2025-03-21 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729844', 'tblTempVendorCDR_20' ) end [2025-03-21 11:22:20] Production.INFO: ProcessCDR(1,14729844,1,1,2) [2025-03-21 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729844', 'tblTempUsageDetail_20' ) start [2025-03-21 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729844', 'tblTempUsageDetail_20' ) end [2025-03-21 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:22:26] Production.INFO: ==23871== Releasing lock... [2025-03-21 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:22:26] Production.INFO: 60 MB #Memory Used# [2025-03-21 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:23:06 [end_date_ymd] => 2025-03-21 11:23:06 [RateCDR] => 1 ) [2025-03-21 11:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:23:06' and `end` < '2025-03-21 11:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:23:19] Production.INFO: count ==4270 [2025-03-21 11:23:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:23:06 - End Time 2025-03-21 11:23:06 [2025-03-21 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729849', 'tblTempUsageDetail_20' ) start [2025-03-21 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729849', 'tblTempUsageDetail_20' ) end [2025-03-21 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729849', 'tblTempVendorCDR_20' ) start [2025-03-21 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729849', 'tblTempVendorCDR_20' ) end [2025-03-21 11:23:21] Production.INFO: ProcessCDR(1,14729849,1,1,2) [2025-03-21 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729849', 'tblTempUsageDetail_20' ) start [2025-03-21 11:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729849', 'tblTempUsageDetail_20' ) end [2025-03-21 11:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:23:27] Production.INFO: ==23973== Releasing lock... [2025-03-21 11:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:23:27] Production.INFO: 60 MB #Memory Used# [2025-03-21 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:24:06 [end_date_ymd] => 2025-03-21 11:24:06 [RateCDR] => 1 ) [2025-03-21 11: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-21 08:24:06' and `end` < '2025-03-21 11: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-21 11:24:19] Production.INFO: count ==4286 [2025-03-21 11:24:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:24:06 - End Time 2025-03-21 11:24:06 [2025-03-21 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729854', 'tblTempUsageDetail_20' ) start [2025-03-21 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729854', 'tblTempUsageDetail_20' ) end [2025-03-21 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729854', 'tblTempVendorCDR_20' ) start [2025-03-21 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729854', 'tblTempVendorCDR_20' ) end [2025-03-21 11:24:21] Production.INFO: ProcessCDR(1,14729854,1,1,2) [2025-03-21 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729854', 'tblTempUsageDetail_20' ) start [2025-03-21 11:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729854', 'tblTempUsageDetail_20' ) end [2025-03-21 11:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:24:27] Production.INFO: ==24057== Releasing lock... [2025-03-21 11:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:24:27] Production.INFO: 60 MB #Memory Used# [2025-03-21 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:25:05 [end_date_ymd] => 2025-03-21 11:25:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:25:05' and `end` < '2025-03-21 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-21 11:25:18] Production.INFO: count ==4287 [2025-03-21 11:25:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:25:05 - End Time 2025-03-21 11:25:05 [2025-03-21 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729859', 'tblTempUsageDetail_20' ) start [2025-03-21 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729859', 'tblTempUsageDetail_20' ) end [2025-03-21 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729859', 'tblTempVendorCDR_20' ) start [2025-03-21 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729859', 'tblTempVendorCDR_20' ) end [2025-03-21 11:25:20] Production.INFO: ProcessCDR(1,14729859,1,1,2) [2025-03-21 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729859', 'tblTempUsageDetail_20' ) start [2025-03-21 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729859', 'tblTempUsageDetail_20' ) end [2025-03-21 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:25:25] Production.INFO: ==24142== Releasing lock... [2025-03-21 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:25:25] Production.INFO: 60 MB #Memory Used# [2025-03-21 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:26:05 [end_date_ymd] => 2025-03-21 11:26:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:26:05' and `end` < '2025-03-21 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-21 11:26:18] Production.INFO: count ==4297 [2025-03-21 11:26:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:26:05 - End Time 2025-03-21 11:26:05 [2025-03-21 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729864', 'tblTempUsageDetail_20' ) start [2025-03-21 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729864', 'tblTempUsageDetail_20' ) end [2025-03-21 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729864', 'tblTempVendorCDR_20' ) start [2025-03-21 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729864', 'tblTempVendorCDR_20' ) end [2025-03-21 11:26:20] Production.INFO: ProcessCDR(1,14729864,1,1,2) [2025-03-21 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729864', 'tblTempUsageDetail_20' ) start [2025-03-21 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729864', 'tblTempUsageDetail_20' ) end [2025-03-21 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:26:25] Production.INFO: ==24236== Releasing lock... [2025-03-21 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:26:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-21 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:27:05 [end_date_ymd] => 2025-03-21 11:27:05 [RateCDR] => 1 ) [2025-03-21 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:27:05' and `end` < '2025-03-21 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:27:18] Production.INFO: count ==4300 [2025-03-21 11:27:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:27:05 - End Time 2025-03-21 11:27:05 [2025-03-21 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729869', 'tblTempUsageDetail_20' ) start [2025-03-21 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729869', 'tblTempUsageDetail_20' ) end [2025-03-21 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729869', 'tblTempVendorCDR_20' ) start [2025-03-21 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729869', 'tblTempVendorCDR_20' ) end [2025-03-21 11:27:20] Production.INFO: ProcessCDR(1,14729869,1,1,2) [2025-03-21 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729869', 'tblTempUsageDetail_20' ) start [2025-03-21 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729869', 'tblTempUsageDetail_20' ) end [2025-03-21 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:27:26] Production.INFO: ==24324== Releasing lock... [2025-03-21 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:27:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-21 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:28:05 [end_date_ymd] => 2025-03-21 11:28:05 [RateCDR] => 1 ) [2025-03-21 11:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:28:05' and `end` < '2025-03-21 11:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:28:18] Production.INFO: count ==4318 [2025-03-21 11:28:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:28:05 - End Time 2025-03-21 11:28:05 [2025-03-21 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729874', 'tblTempUsageDetail_20' ) start [2025-03-21 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729874', 'tblTempUsageDetail_20' ) end [2025-03-21 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729874', 'tblTempVendorCDR_20' ) start [2025-03-21 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729874', 'tblTempVendorCDR_20' ) end [2025-03-21 11:28:20] Production.INFO: ProcessCDR(1,14729874,1,1,2) [2025-03-21 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729874', 'tblTempUsageDetail_20' ) start [2025-03-21 11:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729874', 'tblTempUsageDetail_20' ) end [2025-03-21 11:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:28:24] Production.INFO: ==24401== Releasing lock... [2025-03-21 11:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:28:24] Production.INFO: 60.25 MB #Memory Used# [2025-03-21 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:29:05 [end_date_ymd] => 2025-03-21 11:29:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:29:05' and `end` < '2025-03-21 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-21 11:29:18] Production.INFO: count ==4320 [2025-03-21 11:29:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:29:05 - End Time 2025-03-21 11:29:05 [2025-03-21 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729879', 'tblTempUsageDetail_20' ) start [2025-03-21 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729879', 'tblTempUsageDetail_20' ) end [2025-03-21 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729879', 'tblTempVendorCDR_20' ) start [2025-03-21 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729879', 'tblTempVendorCDR_20' ) end [2025-03-21 11:29:20] Production.INFO: ProcessCDR(1,14729879,1,1,2) [2025-03-21 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729879', 'tblTempUsageDetail_20' ) start [2025-03-21 11:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729879', 'tblTempUsageDetail_20' ) end [2025-03-21 11:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:29:25] Production.INFO: ==24532== Releasing lock... [2025-03-21 11:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:29:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-21 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:30:06 [end_date_ymd] => 2025-03-21 11:30:06 [RateCDR] => 1 ) [2025-03-21 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-21 08:30:06' and `end` < '2025-03-21 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-21 11:30:19] Production.INFO: count ==4311 [2025-03-21 11:30:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:30:06 - End Time 2025-03-21 11:30:06 [2025-03-21 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729885', 'tblTempUsageDetail_20' ) start [2025-03-21 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729885', 'tblTempUsageDetail_20' ) end [2025-03-21 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729885', 'tblTempVendorCDR_20' ) start [2025-03-21 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729885', 'tblTempVendorCDR_20' ) end [2025-03-21 11:30:21] Production.INFO: ProcessCDR(1,14729885,1,1,2) [2025-03-21 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729885', 'tblTempUsageDetail_20' ) start [2025-03-21 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729885', 'tblTempUsageDetail_20' ) end [2025-03-21 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:30:27] Production.INFO: ==24619== Releasing lock... [2025-03-21 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:30:27] Production.INFO: 60.25 MB #Memory Used# [2025-03-21 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:31:05 [end_date_ymd] => 2025-03-21 11:31:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:31:05' and `end` < '2025-03-21 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-21 11:31:18] Production.INFO: count ==4359 [2025-03-21 11:31:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:31:05 - End Time 2025-03-21 11:31:05 [2025-03-21 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729890', 'tblTempUsageDetail_20' ) start [2025-03-21 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729890', 'tblTempUsageDetail_20' ) end [2025-03-21 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729890', 'tblTempVendorCDR_20' ) start [2025-03-21 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729890', 'tblTempVendorCDR_20' ) end [2025-03-21 11:31:20] Production.INFO: ProcessCDR(1,14729890,1,1,2) [2025-03-21 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729890', 'tblTempUsageDetail_20' ) start [2025-03-21 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729890', 'tblTempUsageDetail_20' ) end [2025-03-21 11:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:31:25] Production.INFO: ==24715== Releasing lock... [2025-03-21 11:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:31:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-21 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:32:05 [end_date_ymd] => 2025-03-21 11:32:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:32:05' and `end` < '2025-03-21 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-21 11:32:19] Production.INFO: count ==4359 [2025-03-21 11:32:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:32:05 - End Time 2025-03-21 11:32:05 [2025-03-21 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729895', 'tblTempUsageDetail_20' ) start [2025-03-21 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729895', 'tblTempUsageDetail_20' ) end [2025-03-21 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729895', 'tblTempVendorCDR_20' ) start [2025-03-21 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729895', 'tblTempVendorCDR_20' ) end [2025-03-21 11:32:21] Production.INFO: ProcessCDR(1,14729895,1,1,2) [2025-03-21 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729895', 'tblTempUsageDetail_20' ) start [2025-03-21 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729895', 'tblTempUsageDetail_20' ) end [2025-03-21 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:32:26] Production.INFO: ==24810== Releasing lock... [2025-03-21 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:32:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-21 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:33:05 [end_date_ymd] => 2025-03-21 11:33:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:33:05' and `end` < '2025-03-21 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-21 11:33:18] Production.INFO: count ==4355 [2025-03-21 11:33:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:33:05 - End Time 2025-03-21 11:33:05 [2025-03-21 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729900', 'tblTempUsageDetail_20' ) start [2025-03-21 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729900', 'tblTempUsageDetail_20' ) end [2025-03-21 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729900', 'tblTempVendorCDR_20' ) start [2025-03-21 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729900', 'tblTempVendorCDR_20' ) end [2025-03-21 11:33:20] Production.INFO: ProcessCDR(1,14729900,1,1,2) [2025-03-21 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729900', 'tblTempUsageDetail_20' ) start [2025-03-21 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729900', 'tblTempUsageDetail_20' ) end [2025-03-21 11:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:33:25] Production.INFO: ==24902== Releasing lock... [2025-03-21 11:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:33:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-21 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:34:05 [end_date_ymd] => 2025-03-21 11:34:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:34:05' and `end` < '2025-03-21 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-21 11:34:18] Production.INFO: count ==4351 [2025-03-21 11:34:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:34:05 - End Time 2025-03-21 11:34:05 [2025-03-21 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729905', 'tblTempUsageDetail_20' ) start [2025-03-21 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729905', 'tblTempUsageDetail_20' ) end [2025-03-21 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729905', 'tblTempVendorCDR_20' ) start [2025-03-21 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729905', 'tblTempVendorCDR_20' ) end [2025-03-21 11:34:20] Production.INFO: ProcessCDR(1,14729905,1,1,2) [2025-03-21 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729905', 'tblTempUsageDetail_20' ) start [2025-03-21 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729905', 'tblTempUsageDetail_20' ) end [2025-03-21 11:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:34:25] Production.INFO: ==24987== Releasing lock... [2025-03-21 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:34:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-21 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:35:05 [end_date_ymd] => 2025-03-21 11:35:05 [RateCDR] => 1 ) [2025-03-21 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:35:05' and `end` < '2025-03-21 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:35:18] Production.INFO: count ==4356 [2025-03-21 11:35:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:35:05 - End Time 2025-03-21 11:35:05 [2025-03-21 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729910', 'tblTempUsageDetail_20' ) start [2025-03-21 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729910', 'tblTempUsageDetail_20' ) end [2025-03-21 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729910', 'tblTempVendorCDR_20' ) start [2025-03-21 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729910', 'tblTempVendorCDR_20' ) end [2025-03-21 11:35:20] Production.INFO: ProcessCDR(1,14729910,1,1,2) [2025-03-21 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729910', 'tblTempUsageDetail_20' ) start [2025-03-21 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729910', 'tblTempUsageDetail_20' ) end [2025-03-21 11:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:35:25] Production.INFO: ==25084== Releasing lock... [2025-03-21 11:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:35:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-21 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:36:05 [end_date_ymd] => 2025-03-21 11:36:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:36:05' and `end` < '2025-03-21 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-21 11:36:19] Production.INFO: count ==4354 [2025-03-21 11:36:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:36:05 - End Time 2025-03-21 11:36:05 [2025-03-21 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729915', 'tblTempUsageDetail_20' ) start [2025-03-21 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729915', 'tblTempUsageDetail_20' ) end [2025-03-21 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729915', 'tblTempVendorCDR_20' ) start [2025-03-21 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729915', 'tblTempVendorCDR_20' ) end [2025-03-21 11:36:21] Production.INFO: ProcessCDR(1,14729915,1,1,2) [2025-03-21 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729915', 'tblTempUsageDetail_20' ) start [2025-03-21 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729915', 'tblTempUsageDetail_20' ) end [2025-03-21 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:36:26] Production.INFO: ==25178== Releasing lock... [2025-03-21 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:36:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-21 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:37:05 [end_date_ymd] => 2025-03-21 11:37:05 [RateCDR] => 1 ) [2025-03-21 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:37:05' and `end` < '2025-03-21 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:37:18] Production.INFO: count ==4357 [2025-03-21 11:37:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:37:05 - End Time 2025-03-21 11:37:05 [2025-03-21 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729920', 'tblTempUsageDetail_20' ) start [2025-03-21 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729920', 'tblTempUsageDetail_20' ) end [2025-03-21 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729920', 'tblTempVendorCDR_20' ) start [2025-03-21 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729920', 'tblTempVendorCDR_20' ) end [2025-03-21 11:37:20] Production.INFO: ProcessCDR(1,14729920,1,1,2) [2025-03-21 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729920', 'tblTempUsageDetail_20' ) start [2025-03-21 11:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729920', 'tblTempUsageDetail_20' ) end [2025-03-21 11:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:37:25] Production.INFO: ==25263== Releasing lock... [2025-03-21 11:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:37:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-21 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:38:06 [end_date_ymd] => 2025-03-21 11:38:06 [RateCDR] => 1 ) [2025-03-21 11: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-21 08:38:06' and `end` < '2025-03-21 11: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-21 11:38:19] Production.INFO: count ==4349 [2025-03-21 11:38:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:38:06 - End Time 2025-03-21 11:38:06 [2025-03-21 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729925', 'tblTempUsageDetail_20' ) start [2025-03-21 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729925', 'tblTempUsageDetail_20' ) end [2025-03-21 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729925', 'tblTempVendorCDR_20' ) start [2025-03-21 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729925', 'tblTempVendorCDR_20' ) end [2025-03-21 11:38:21] Production.INFO: ProcessCDR(1,14729925,1,1,2) [2025-03-21 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729925', 'tblTempUsageDetail_20' ) start [2025-03-21 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729925', 'tblTempUsageDetail_20' ) end [2025-03-21 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:38:26] Production.INFO: ==25360== Releasing lock... [2025-03-21 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:38:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-21 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:39:05 [end_date_ymd] => 2025-03-21 11:39:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:39:05' and `end` < '2025-03-21 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-21 11:39:18] Production.INFO: count ==4354 [2025-03-21 11:39:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:39:05 - End Time 2025-03-21 11:39:05 [2025-03-21 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729930', 'tblTempUsageDetail_20' ) start [2025-03-21 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729930', 'tblTempUsageDetail_20' ) end [2025-03-21 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729930', 'tblTempVendorCDR_20' ) start [2025-03-21 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729930', 'tblTempVendorCDR_20' ) end [2025-03-21 11:39:20] Production.INFO: ProcessCDR(1,14729930,1,1,2) [2025-03-21 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729930', 'tblTempUsageDetail_20' ) start [2025-03-21 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729930', 'tblTempUsageDetail_20' ) end [2025-03-21 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:39:25] Production.INFO: ==25440== Releasing lock... [2025-03-21 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:39:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-21 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:40:06 [end_date_ymd] => 2025-03-21 11:40:06 [RateCDR] => 1 ) [2025-03-21 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-21 08:40:06' and `end` < '2025-03-21 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-21 11:40:19] Production.INFO: count ==4370 [2025-03-21 11:40:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:40:06 - End Time 2025-03-21 11:40:06 [2025-03-21 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729936', 'tblTempUsageDetail_20' ) start [2025-03-21 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729936', 'tblTempUsageDetail_20' ) end [2025-03-21 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729936', 'tblTempVendorCDR_20' ) start [2025-03-21 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729936', 'tblTempVendorCDR_20' ) end [2025-03-21 11:40:21] Production.INFO: ProcessCDR(1,14729936,1,1,2) [2025-03-21 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729936', 'tblTempUsageDetail_20' ) start [2025-03-21 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729936', 'tblTempUsageDetail_20' ) end [2025-03-21 11:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:40:26] Production.INFO: ==25526== Releasing lock... [2025-03-21 11:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:40:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-21 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:41:06 [end_date_ymd] => 2025-03-21 11:41:06 [RateCDR] => 1 ) [2025-03-21 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-21 08:41:06' and `end` < '2025-03-21 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-21 11:41:19] Production.INFO: count ==4483 [2025-03-21 11:41:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:41:06 - End Time 2025-03-21 11:41:06 [2025-03-21 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729941', 'tblTempUsageDetail_20' ) start [2025-03-21 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729941', 'tblTempUsageDetail_20' ) end [2025-03-21 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729941', 'tblTempVendorCDR_20' ) start [2025-03-21 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729941', 'tblTempVendorCDR_20' ) end [2025-03-21 11:41:21] Production.INFO: ProcessCDR(1,14729941,1,1,2) [2025-03-21 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729941', 'tblTempUsageDetail_20' ) start [2025-03-21 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729941', 'tblTempUsageDetail_20' ) end [2025-03-21 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:41:26] Production.INFO: ==25606== Releasing lock... [2025-03-21 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:41:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-21 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:42:05 [end_date_ymd] => 2025-03-21 11:42:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:42:05' and `end` < '2025-03-21 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-21 11:42:18] Production.INFO: count ==4495 [2025-03-21 11:42:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:42:05 - End Time 2025-03-21 11:42:05 [2025-03-21 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729946', 'tblTempUsageDetail_20' ) start [2025-03-21 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729946', 'tblTempUsageDetail_20' ) end [2025-03-21 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729946', 'tblTempVendorCDR_20' ) start [2025-03-21 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729946', 'tblTempVendorCDR_20' ) end [2025-03-21 11:42:20] Production.INFO: ProcessCDR(1,14729946,1,1,2) [2025-03-21 11:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729946', 'tblTempUsageDetail_20' ) start [2025-03-21 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729946', 'tblTempUsageDetail_20' ) end [2025-03-21 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:42:26] Production.INFO: ==25691== Releasing lock... [2025-03-21 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:42:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-21 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:43:05 [end_date_ymd] => 2025-03-21 11:43:05 [RateCDR] => 1 ) [2025-03-21 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:43:05' and `end` < '2025-03-21 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:43:18] Production.INFO: count ==4504 [2025-03-21 11:43:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:43:05 - End Time 2025-03-21 11:43:05 [2025-03-21 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729951', 'tblTempUsageDetail_20' ) start [2025-03-21 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729951', 'tblTempUsageDetail_20' ) end [2025-03-21 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729951', 'tblTempVendorCDR_20' ) start [2025-03-21 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729951', 'tblTempVendorCDR_20' ) end [2025-03-21 11:43:20] Production.INFO: ProcessCDR(1,14729951,1,1,2) [2025-03-21 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729951', 'tblTempUsageDetail_20' ) start [2025-03-21 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729951', 'tblTempUsageDetail_20' ) end [2025-03-21 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:43:25] Production.INFO: ==25769== Releasing lock... [2025-03-21 11:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:43:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-21 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:44:05 [end_date_ymd] => 2025-03-21 11:44:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:44:05' and `end` < '2025-03-21 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-21 11:44:18] Production.INFO: count ==4518 [2025-03-21 11:44:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:44:05 - End Time 2025-03-21 11:44:05 [2025-03-21 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729956', 'tblTempUsageDetail_20' ) start [2025-03-21 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729956', 'tblTempUsageDetail_20' ) end [2025-03-21 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729956', 'tblTempVendorCDR_20' ) start [2025-03-21 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729956', 'tblTempVendorCDR_20' ) end [2025-03-21 11:44:21] Production.INFO: ProcessCDR(1,14729956,1,1,2) [2025-03-21 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729956', 'tblTempUsageDetail_20' ) start [2025-03-21 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729956', 'tblTempUsageDetail_20' ) end [2025-03-21 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:44:26] Production.INFO: ==25846== Releasing lock... [2025-03-21 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:44:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-21 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:45:06 [end_date_ymd] => 2025-03-21 11:45:06 [RateCDR] => 1 ) [2025-03-21 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-21 08:45:06' and `end` < '2025-03-21 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-21 11:45:19] Production.INFO: count ==4515 [2025-03-21 11:45:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:45:06 - End Time 2025-03-21 11:45:06 [2025-03-21 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729961', 'tblTempUsageDetail_20' ) start [2025-03-21 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729961', 'tblTempUsageDetail_20' ) end [2025-03-21 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729961', 'tblTempVendorCDR_20' ) start [2025-03-21 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729961', 'tblTempVendorCDR_20' ) end [2025-03-21 11:45:21] Production.INFO: ProcessCDR(1,14729961,1,1,2) [2025-03-21 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729961', 'tblTempUsageDetail_20' ) start [2025-03-21 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729961', 'tblTempUsageDetail_20' ) end [2025-03-21 11:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:45:26] Production.INFO: ==25969== Releasing lock... [2025-03-21 11:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:45:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-21 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:46:05 [end_date_ymd] => 2025-03-21 11:46:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:46:05' and `end` < '2025-03-21 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-21 11:46:18] Production.INFO: count ==4522 [2025-03-21 11:46:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:46:05 - End Time 2025-03-21 11:46:05 [2025-03-21 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729966', 'tblTempUsageDetail_20' ) start [2025-03-21 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729966', 'tblTempUsageDetail_20' ) end [2025-03-21 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729966', 'tblTempVendorCDR_20' ) start [2025-03-21 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729966', 'tblTempVendorCDR_20' ) end [2025-03-21 11:46:20] Production.INFO: ProcessCDR(1,14729966,1,1,2) [2025-03-21 11:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729966', 'tblTempUsageDetail_20' ) start [2025-03-21 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729966', 'tblTempUsageDetail_20' ) end [2025-03-21 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:46:26] Production.INFO: ==26042== Releasing lock... [2025-03-21 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:46:26] Production.INFO: 61.75 MB #Memory Used# [2025-03-21 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:47:06 [end_date_ymd] => 2025-03-21 11:47:06 [RateCDR] => 1 ) [2025-03-21 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-21 08:47:06' and `end` < '2025-03-21 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-21 11:47:19] Production.INFO: count ==4538 [2025-03-21 11:47:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:47:06 - End Time 2025-03-21 11:47:06 [2025-03-21 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729971', 'tblTempUsageDetail_20' ) start [2025-03-21 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729971', 'tblTempUsageDetail_20' ) end [2025-03-21 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729971', 'tblTempVendorCDR_20' ) start [2025-03-21 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729971', 'tblTempVendorCDR_20' ) end [2025-03-21 11:47:21] Production.INFO: ProcessCDR(1,14729971,1,1,2) [2025-03-21 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729971', 'tblTempUsageDetail_20' ) start [2025-03-21 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729971', 'tblTempUsageDetail_20' ) end [2025-03-21 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:47:26] Production.INFO: ==26122== Releasing lock... [2025-03-21 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:47:26] Production.INFO: 62 MB #Memory Used# [2025-03-21 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:48:05 [end_date_ymd] => 2025-03-21 11:48:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:48:05' and `end` < '2025-03-21 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-21 11:48:18] Production.INFO: count ==4543 [2025-03-21 11:48:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:48:05 - End Time 2025-03-21 11:48:05 [2025-03-21 11:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729976', 'tblTempUsageDetail_20' ) start [2025-03-21 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729976', 'tblTempUsageDetail_20' ) end [2025-03-21 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729976', 'tblTempVendorCDR_20' ) start [2025-03-21 11:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729976', 'tblTempVendorCDR_20' ) end [2025-03-21 11:48:20] Production.INFO: ProcessCDR(1,14729976,1,1,2) [2025-03-21 11:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729976', 'tblTempUsageDetail_20' ) start [2025-03-21 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729976', 'tblTempUsageDetail_20' ) end [2025-03-21 11:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:48:25] Production.INFO: ==26211== Releasing lock... [2025-03-21 11:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:48:25] Production.INFO: 62 MB #Memory Used# [2025-03-21 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:49:05 [end_date_ymd] => 2025-03-21 11:49:05 [RateCDR] => 1 ) [2025-03-21 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:49:05' and `end` < '2025-03-21 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:49:19] Production.INFO: count ==4545 [2025-03-21 11:49:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:49:05 - End Time 2025-03-21 11:49:05 [2025-03-21 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729981', 'tblTempUsageDetail_20' ) start [2025-03-21 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729981', 'tblTempUsageDetail_20' ) end [2025-03-21 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729981', 'tblTempVendorCDR_20' ) start [2025-03-21 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729981', 'tblTempVendorCDR_20' ) end [2025-03-21 11:49:21] Production.INFO: ProcessCDR(1,14729981,1,1,2) [2025-03-21 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729981', 'tblTempUsageDetail_20' ) start [2025-03-21 11:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729981', 'tblTempUsageDetail_20' ) end [2025-03-21 11:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:49:24] Production.INFO: ==26290== Releasing lock... [2025-03-21 11:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:49:24] Production.INFO: 62 MB #Memory Used# [2025-03-21 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:50:06 [end_date_ymd] => 2025-03-21 11:50:06 [RateCDR] => 1 ) [2025-03-21 11:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:50:06' and `end` < '2025-03-21 11:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:50:19] Production.INFO: count ==4547 [2025-03-21 11:50:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:50:06 - End Time 2025-03-21 11:50:06 [2025-03-21 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729987', 'tblTempUsageDetail_20' ) start [2025-03-21 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729987', 'tblTempUsageDetail_20' ) end [2025-03-21 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729987', 'tblTempVendorCDR_20' ) start [2025-03-21 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729987', 'tblTempVendorCDR_20' ) end [2025-03-21 11:50:21] Production.INFO: ProcessCDR(1,14729987,1,1,2) [2025-03-21 11:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729987', 'tblTempUsageDetail_20' ) start [2025-03-21 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729987', 'tblTempUsageDetail_20' ) end [2025-03-21 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:50:27] Production.INFO: ==26366== Releasing lock... [2025-03-21 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:50:27] Production.INFO: 62 MB #Memory Used# [2025-03-21 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:51:06 [end_date_ymd] => 2025-03-21 11:51:06 [RateCDR] => 1 ) [2025-03-21 11: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-21 08:51:06' and `end` < '2025-03-21 11: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-21 11:51:19] Production.INFO: count ==4619 [2025-03-21 11:51:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:51:06 - End Time 2025-03-21 11:51:06 [2025-03-21 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729992', 'tblTempUsageDetail_20' ) start [2025-03-21 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729992', 'tblTempUsageDetail_20' ) end [2025-03-21 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729992', 'tblTempVendorCDR_20' ) start [2025-03-21 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729992', 'tblTempVendorCDR_20' ) end [2025-03-21 11:51:21] Production.INFO: ProcessCDR(1,14729992,1,1,2) [2025-03-21 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729992', 'tblTempUsageDetail_20' ) start [2025-03-21 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729992', 'tblTempUsageDetail_20' ) end [2025-03-21 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:51:27] Production.INFO: ==26445== Releasing lock... [2025-03-21 11:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:51:27] Production.INFO: 62.5 MB #Memory Used# [2025-03-21 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:52:05 [end_date_ymd] => 2025-03-21 11:52:05 [RateCDR] => 1 ) [2025-03-21 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:52:05' and `end` < '2025-03-21 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:52:18] Production.INFO: count ==4626 [2025-03-21 11:52:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:52:05 - End Time 2025-03-21 11:52:05 [2025-03-21 11:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729997', 'tblTempUsageDetail_20' ) start [2025-03-21 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14729997', 'tblTempUsageDetail_20' ) end [2025-03-21 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729997', 'tblTempVendorCDR_20' ) start [2025-03-21 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14729997', 'tblTempVendorCDR_20' ) end [2025-03-21 11:52:20] Production.INFO: ProcessCDR(1,14729997,1,1,2) [2025-03-21 11:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14729997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14729997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14729997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14729997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729997', 'tblTempUsageDetail_20' ) start [2025-03-21 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14729997', 'tblTempUsageDetail_20' ) end [2025-03-21 11:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:52:26] Production.INFO: ==26524== Releasing lock... [2025-03-21 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:52:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-21 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:53:05 [end_date_ymd] => 2025-03-21 11:53:05 [RateCDR] => 1 ) [2025-03-21 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:53:05' and `end` < '2025-03-21 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:53:18] Production.INFO: count ==4640 [2025-03-21 11:53:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:53:05 - End Time 2025-03-21 11:53:05 [2025-03-21 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730002', 'tblTempUsageDetail_20' ) start [2025-03-21 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730002', 'tblTempUsageDetail_20' ) end [2025-03-21 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730002', 'tblTempVendorCDR_20' ) start [2025-03-21 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730002', 'tblTempVendorCDR_20' ) end [2025-03-21 11:53:20] Production.INFO: ProcessCDR(1,14730002,1,1,2) [2025-03-21 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730002', 'tblTempUsageDetail_20' ) start [2025-03-21 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730002', 'tblTempUsageDetail_20' ) end [2025-03-21 11:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:53:25] Production.INFO: ==26600== Releasing lock... [2025-03-21 11:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:53:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-21 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:54:05 [end_date_ymd] => 2025-03-21 11:54:05 [RateCDR] => 1 ) [2025-03-21 11: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-21 08:54:05' and `end` < '2025-03-21 11: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-21 11:54:18] Production.INFO: count ==4645 [2025-03-21 11:54:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:54:05 - End Time 2025-03-21 11:54:05 [2025-03-21 11:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730007', 'tblTempUsageDetail_20' ) start [2025-03-21 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730007', 'tblTempUsageDetail_20' ) end [2025-03-21 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730007', 'tblTempVendorCDR_20' ) start [2025-03-21 11:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730007', 'tblTempVendorCDR_20' ) end [2025-03-21 11:54:20] Production.INFO: ProcessCDR(1,14730007,1,1,2) [2025-03-21 11:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730007', 'tblTempUsageDetail_20' ) start [2025-03-21 11:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730007', 'tblTempUsageDetail_20' ) end [2025-03-21 11:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:54:25] Production.INFO: ==26676== Releasing lock... [2025-03-21 11:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:54:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-21 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:55:05 [end_date_ymd] => 2025-03-21 11:55:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:55:05' and `end` < '2025-03-21 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-21 11:55:18] Production.INFO: count ==4657 [2025-03-21 11:55:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:55:05 - End Time 2025-03-21 11:55:05 [2025-03-21 11:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730012', 'tblTempUsageDetail_20' ) start [2025-03-21 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730012', 'tblTempUsageDetail_20' ) end [2025-03-21 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730012', 'tblTempVendorCDR_20' ) start [2025-03-21 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730012', 'tblTempVendorCDR_20' ) end [2025-03-21 11:55:20] Production.INFO: ProcessCDR(1,14730012,1,1,2) [2025-03-21 11:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730012', 'tblTempUsageDetail_20' ) start [2025-03-21 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730012', 'tblTempUsageDetail_20' ) end [2025-03-21 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:55:26] Production.INFO: ==26754== Releasing lock... [2025-03-21 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:55:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-21 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:56:05 [end_date_ymd] => 2025-03-21 11:56:05 [RateCDR] => 1 ) [2025-03-21 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 08:56:05' and `end` < '2025-03-21 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 11:56:19] Production.INFO: count ==4678 [2025-03-21 11:56:21] Production.ERROR: pbx CDR StartTime 2025-03-21 08:56:05 - End Time 2025-03-21 11:56:05 [2025-03-21 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730017', 'tblTempUsageDetail_20' ) start [2025-03-21 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730017', 'tblTempUsageDetail_20' ) end [2025-03-21 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730017', 'tblTempVendorCDR_20' ) start [2025-03-21 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730017', 'tblTempVendorCDR_20' ) end [2025-03-21 11:56:21] Production.INFO: ProcessCDR(1,14730017,1,1,2) [2025-03-21 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730017', 'tblTempUsageDetail_20' ) start [2025-03-21 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730017', 'tblTempUsageDetail_20' ) end [2025-03-21 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:56:26] Production.INFO: ==26833== Releasing lock... [2025-03-21 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:56:26] Production.INFO: 63 MB #Memory Used# [2025-03-21 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:57:05 [end_date_ymd] => 2025-03-21 11:57:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:57:05' and `end` < '2025-03-21 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-21 11:57:18] Production.INFO: count ==4674 [2025-03-21 11:57:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:57:05 - End Time 2025-03-21 11:57:05 [2025-03-21 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730022', 'tblTempUsageDetail_20' ) start [2025-03-21 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730022', 'tblTempUsageDetail_20' ) end [2025-03-21 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730022', 'tblTempVendorCDR_20' ) start [2025-03-21 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730022', 'tblTempVendorCDR_20' ) end [2025-03-21 11:57:20] Production.INFO: ProcessCDR(1,14730022,1,1,2) [2025-03-21 11:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730022', 'tblTempUsageDetail_20' ) start [2025-03-21 11:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730022', 'tblTempUsageDetail_20' ) end [2025-03-21 11:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:57:25] Production.INFO: ==26906== Releasing lock... [2025-03-21 11:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:57:25] Production.INFO: 63 MB #Memory Used# [2025-03-21 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:58:05 [end_date_ymd] => 2025-03-21 11:58:05 [RateCDR] => 1 ) [2025-03-21 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-21 08:58:05' and `end` < '2025-03-21 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-21 11:58:18] Production.INFO: count ==4686 [2025-03-21 11:58:20] Production.ERROR: pbx CDR StartTime 2025-03-21 08:58:05 - End Time 2025-03-21 11:58:05 [2025-03-21 11:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730027', 'tblTempUsageDetail_20' ) start [2025-03-21 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730027', 'tblTempUsageDetail_20' ) end [2025-03-21 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730027', 'tblTempVendorCDR_20' ) start [2025-03-21 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730027', 'tblTempVendorCDR_20' ) end [2025-03-21 11:58:20] Production.INFO: ProcessCDR(1,14730027,1,1,2) [2025-03-21 11:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730027', 'tblTempUsageDetail_20' ) start [2025-03-21 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730027', 'tblTempUsageDetail_20' ) end [2025-03-21 11:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:58:25] Production.INFO: ==26982== Releasing lock... [2025-03-21 11:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:58:25] Production.INFO: 63 MB #Memory Used# [2025-03-21 11:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 08:59:04 [end_date_ymd] => 2025-03-21 11:59:04 [RateCDR] => 1 ) [2025-03-21 11: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-21 08:59:04' and `end` < '2025-03-21 11: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-21 11:59:17] Production.INFO: count ==4686 [2025-03-21 11:59:19] Production.ERROR: pbx CDR StartTime 2025-03-21 08:59:04 - End Time 2025-03-21 11:59:04 [2025-03-21 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730032', 'tblTempUsageDetail_20' ) start [2025-03-21 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730032', 'tblTempUsageDetail_20' ) end [2025-03-21 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730032', 'tblTempVendorCDR_20' ) start [2025-03-21 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730032', 'tblTempVendorCDR_20' ) end [2025-03-21 11:59:19] Production.INFO: ProcessCDR(1,14730032,1,1,2) [2025-03-21 11:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 11:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 11:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730032', 'tblTempUsageDetail_20' ) start [2025-03-21 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730032', 'tblTempUsageDetail_20' ) end [2025-03-21 11:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 11:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 11:59:25] Production.INFO: ==27054== Releasing lock... [2025-03-21 11:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 11:59:25] Production.INFO: 63 MB #Memory Used# [2025-03-21 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:00:07 [end_date_ymd] => 2025-03-21 12:00:07 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:00:07' and `end` < '2025-03-21 12: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-21 12:00:20] Production.INFO: count ==4691 [2025-03-21 12:00:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:00:07 - End Time 2025-03-21 12:00:07 [2025-03-21 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730038', 'tblTempUsageDetail_20' ) start [2025-03-21 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730038', 'tblTempUsageDetail_20' ) end [2025-03-21 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730038', 'tblTempVendorCDR_20' ) start [2025-03-21 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730038', 'tblTempVendorCDR_20' ) end [2025-03-21 12:00:22] Production.INFO: ProcessCDR(1,14730038,1,1,2) [2025-03-21 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730038', 'tblTempUsageDetail_20' ) start [2025-03-21 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730038', 'tblTempUsageDetail_20' ) end [2025-03-21 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:00:27] Production.INFO: ==27169== Releasing lock... [2025-03-21 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:00:27] Production.INFO: 63 MB #Memory Used# [2025-03-21 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:01:05 [end_date_ymd] => 2025-03-21 12:01:05 [RateCDR] => 1 ) [2025-03-21 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-21 09:01:05' and `end` < '2025-03-21 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-21 12:01:19] Production.INFO: count ==4712 [2025-03-21 12:01:20] Production.ERROR: pbx CDR StartTime 2025-03-21 09:01:05 - End Time 2025-03-21 12:01:05 [2025-03-21 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730043', 'tblTempUsageDetail_20' ) start [2025-03-21 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730043', 'tblTempUsageDetail_20' ) end [2025-03-21 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730043', 'tblTempVendorCDR_20' ) start [2025-03-21 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730043', 'tblTempVendorCDR_20' ) end [2025-03-21 12:01:21] Production.INFO: ProcessCDR(1,14730043,1,1,2) [2025-03-21 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730043', 'tblTempUsageDetail_20' ) start [2025-03-21 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730043', 'tblTempUsageDetail_20' ) end [2025-03-21 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:01:26] Production.INFO: ==27260== Releasing lock... [2025-03-21 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:01:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-21 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:02:06 [end_date_ymd] => 2025-03-21 12:02:06 [RateCDR] => 1 ) [2025-03-21 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-21 09:02:06' and `end` < '2025-03-21 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-21 12:02:19] Production.INFO: count ==4731 [2025-03-21 12:02:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:02:06 - End Time 2025-03-21 12:02:06 [2025-03-21 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730048', 'tblTempUsageDetail_20' ) start [2025-03-21 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730048', 'tblTempUsageDetail_20' ) end [2025-03-21 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730048', 'tblTempVendorCDR_20' ) start [2025-03-21 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730048', 'tblTempVendorCDR_20' ) end [2025-03-21 12:02:21] Production.INFO: ProcessCDR(1,14730048,1,1,2) [2025-03-21 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730048', 'tblTempUsageDetail_20' ) start [2025-03-21 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730048', 'tblTempUsageDetail_20' ) end [2025-03-21 12:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:02:26] Production.INFO: ==27334== Releasing lock... [2025-03-21 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:02:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-21 12:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:03:06 [end_date_ymd] => 2025-03-21 12:03:06 [RateCDR] => 1 ) [2025-03-21 12:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 09:03:06' and `end` < '2025-03-21 12:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 12:03:19] Production.INFO: count ==4732 [2025-03-21 12:03:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:03:06 - End Time 2025-03-21 12:03:06 [2025-03-21 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730053', 'tblTempUsageDetail_20' ) start [2025-03-21 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730053', 'tblTempUsageDetail_20' ) end [2025-03-21 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730053', 'tblTempVendorCDR_20' ) start [2025-03-21 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730053', 'tblTempVendorCDR_20' ) end [2025-03-21 12:03:21] Production.INFO: ProcessCDR(1,14730053,1,1,2) [2025-03-21 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730053', 'tblTempUsageDetail_20' ) start [2025-03-21 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730053', 'tblTempUsageDetail_20' ) end [2025-03-21 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:03:27] Production.INFO: ==27405== Releasing lock... [2025-03-21 12:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:03:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-21 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:04:05 [end_date_ymd] => 2025-03-21 12:04:05 [RateCDR] => 1 ) [2025-03-21 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 09:04:05' and `end` < '2025-03-21 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 12:04:18] Production.INFO: count ==4729 [2025-03-21 12:04:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:04:05 - End Time 2025-03-21 12:04:05 [2025-03-21 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730058', 'tblTempUsageDetail_20' ) start [2025-03-21 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730058', 'tblTempUsageDetail_20' ) end [2025-03-21 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730058', 'tblTempVendorCDR_20' ) start [2025-03-21 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730058', 'tblTempVendorCDR_20' ) end [2025-03-21 12:04:21] Production.INFO: ProcessCDR(1,14730058,1,1,2) [2025-03-21 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730058', 'tblTempUsageDetail_20' ) start [2025-03-21 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730058', 'tblTempUsageDetail_20' ) end [2025-03-21 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:04:27] Production.INFO: ==27479== Releasing lock... [2025-03-21 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:04:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-21 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:05:06 [end_date_ymd] => 2025-03-21 12:05:06 [RateCDR] => 1 ) [2025-03-21 12:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 09:05:06' and `end` < '2025-03-21 12:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 12:05:19] Production.INFO: count ==4733 [2025-03-21 12:05:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:05:06 - End Time 2025-03-21 12:05:06 [2025-03-21 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730063', 'tblTempUsageDetail_20' ) start [2025-03-21 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730063', 'tblTempUsageDetail_20' ) end [2025-03-21 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730063', 'tblTempVendorCDR_20' ) start [2025-03-21 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730063', 'tblTempVendorCDR_20' ) end [2025-03-21 12:05:21] Production.INFO: ProcessCDR(1,14730063,1,1,2) [2025-03-21 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730063', 'tblTempUsageDetail_20' ) start [2025-03-21 12:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730063', 'tblTempUsageDetail_20' ) end [2025-03-21 12:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:05:27] Production.INFO: ==27551== Releasing lock... [2025-03-21 12:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:05:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-21 12:06:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:06:07 [end_date_ymd] => 2025-03-21 12:06:07 [RateCDR] => 1 ) [2025-03-21 12:06: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-21 09:06:07' and `end` < '2025-03-21 12:06: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-21 12:06:20] Production.INFO: count ==4716 [2025-03-21 12:06:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:06:07 - End Time 2025-03-21 12:06:07 [2025-03-21 12:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730068', 'tblTempUsageDetail_20' ) start [2025-03-21 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730068', 'tblTempUsageDetail_20' ) end [2025-03-21 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730068', 'tblTempVendorCDR_20' ) start [2025-03-21 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730068', 'tblTempVendorCDR_20' ) end [2025-03-21 12:06:22] Production.INFO: ProcessCDR(1,14730068,1,1,2) [2025-03-21 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730068', 'tblTempUsageDetail_20' ) start [2025-03-21 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730068', 'tblTempUsageDetail_20' ) end [2025-03-21 12:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:06:28] Production.INFO: ==27622== Releasing lock... [2025-03-21 12:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:06:28] Production.INFO: 63.25 MB #Memory Used# [2025-03-21 12:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:07:06 [end_date_ymd] => 2025-03-21 12:07:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:07:06' and `end` < '2025-03-21 12: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-21 12:07:19] Production.INFO: count ==4725 [2025-03-21 12:07:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:07:06 - End Time 2025-03-21 12:07:06 [2025-03-21 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730073', 'tblTempUsageDetail_20' ) start [2025-03-21 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730073', 'tblTempUsageDetail_20' ) end [2025-03-21 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730073', 'tblTempVendorCDR_20' ) start [2025-03-21 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730073', 'tblTempVendorCDR_20' ) end [2025-03-21 12:07:21] Production.INFO: ProcessCDR(1,14730073,1,1,2) [2025-03-21 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730073', 'tblTempUsageDetail_20' ) start [2025-03-21 12:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730073', 'tblTempUsageDetail_20' ) end [2025-03-21 12:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:07:27] Production.INFO: ==27698== Releasing lock... [2025-03-21 12:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:07:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-21 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:08:05 [end_date_ymd] => 2025-03-21 12:08:05 [RateCDR] => 1 ) [2025-03-21 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 09:08:05' and `end` < '2025-03-21 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 12:08:19] Production.INFO: count ==4729 [2025-03-21 12:08:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:08:05 - End Time 2025-03-21 12:08:05 [2025-03-21 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730078', 'tblTempUsageDetail_20' ) start [2025-03-21 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730078', 'tblTempUsageDetail_20' ) end [2025-03-21 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730078', 'tblTempVendorCDR_20' ) start [2025-03-21 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730078', 'tblTempVendorCDR_20' ) end [2025-03-21 12:08:21] Production.INFO: ProcessCDR(1,14730078,1,1,2) [2025-03-21 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730078', 'tblTempUsageDetail_20' ) start [2025-03-21 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730078', 'tblTempUsageDetail_20' ) end [2025-03-21 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:08:27] Production.INFO: ==27773== Releasing lock... [2025-03-21 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:08:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-21 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:09:06 [end_date_ymd] => 2025-03-21 12:09:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:09:06' and `end` < '2025-03-21 12: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-21 12:09:19] Production.INFO: count ==4733 [2025-03-21 12:09:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:09:06 - End Time 2025-03-21 12:09:06 [2025-03-21 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730083', 'tblTempUsageDetail_20' ) start [2025-03-21 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730083', 'tblTempUsageDetail_20' ) end [2025-03-21 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730083', 'tblTempVendorCDR_20' ) start [2025-03-21 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730083', 'tblTempVendorCDR_20' ) end [2025-03-21 12:09:22] Production.INFO: ProcessCDR(1,14730083,1,1,2) [2025-03-21 12:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730083', 'tblTempUsageDetail_20' ) start [2025-03-21 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730083', 'tblTempUsageDetail_20' ) end [2025-03-21 12:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:09:28] Production.INFO: ==27844== Releasing lock... [2025-03-21 12:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:09:28] Production.INFO: 63.5 MB #Memory Used# [2025-03-21 12:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:10:07 [end_date_ymd] => 2025-03-21 12:10:07 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:10:07' and `end` < '2025-03-21 12: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-21 12:10:20] Production.INFO: count ==4732 [2025-03-21 12:10:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:10:07 - End Time 2025-03-21 12:10:07 [2025-03-21 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730089', 'tblTempUsageDetail_20' ) start [2025-03-21 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730089', 'tblTempUsageDetail_20' ) end [2025-03-21 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730089', 'tblTempVendorCDR_20' ) start [2025-03-21 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730089', 'tblTempVendorCDR_20' ) end [2025-03-21 12:10:22] Production.INFO: ProcessCDR(1,14730089,1,1,2) [2025-03-21 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730089', 'tblTempUsageDetail_20' ) start [2025-03-21 12:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730089', 'tblTempUsageDetail_20' ) end [2025-03-21 12:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:10:28] Production.INFO: ==27918== Releasing lock... [2025-03-21 12:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:10:28] Production.INFO: 63.5 MB #Memory Used# [2025-03-21 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:11:05 [end_date_ymd] => 2025-03-21 12:11:05 [RateCDR] => 1 ) [2025-03-21 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-21 09:11:05' and `end` < '2025-03-21 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-21 12:11:18] Production.INFO: count ==4787 [2025-03-21 12:11:20] Production.ERROR: pbx CDR StartTime 2025-03-21 09:11:05 - End Time 2025-03-21 12:11:05 [2025-03-21 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730094', 'tblTempUsageDetail_20' ) start [2025-03-21 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730094', 'tblTempUsageDetail_20' ) end [2025-03-21 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730094', 'tblTempVendorCDR_20' ) start [2025-03-21 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730094', 'tblTempVendorCDR_20' ) end [2025-03-21 12:11:20] Production.INFO: ProcessCDR(1,14730094,1,1,2) [2025-03-21 12:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730094', 'tblTempUsageDetail_20' ) start [2025-03-21 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730094', 'tblTempUsageDetail_20' ) end [2025-03-21 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:11:26] Production.INFO: ==27996== Releasing lock... [2025-03-21 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:11:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-21 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:12:06 [end_date_ymd] => 2025-03-21 12:12:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:12:06' and `end` < '2025-03-21 12: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-21 12:12:19] Production.INFO: count ==4812 [2025-03-21 12:12:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:12:06 - End Time 2025-03-21 12:12:06 [2025-03-21 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730099', 'tblTempUsageDetail_20' ) start [2025-03-21 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730099', 'tblTempUsageDetail_20' ) end [2025-03-21 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730099', 'tblTempVendorCDR_20' ) start [2025-03-21 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730099', 'tblTempVendorCDR_20' ) end [2025-03-21 12:12:21] Production.INFO: ProcessCDR(1,14730099,1,1,2) [2025-03-21 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730099', 'tblTempUsageDetail_20' ) start [2025-03-21 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730099', 'tblTempUsageDetail_20' ) end [2025-03-21 12:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:12:27] Production.INFO: ==28077== Releasing lock... [2025-03-21 12:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:12:27] Production.INFO: 64 MB #Memory Used# [2025-03-21 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:13:05 [end_date_ymd] => 2025-03-21 12:13:05 [RateCDR] => 1 ) [2025-03-21 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-21 09:13:05' and `end` < '2025-03-21 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-21 12:13:19] Production.INFO: count ==4823 [2025-03-21 12:13:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:13:05 - End Time 2025-03-21 12:13:05 [2025-03-21 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730104', 'tblTempUsageDetail_20' ) start [2025-03-21 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730104', 'tblTempUsageDetail_20' ) end [2025-03-21 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730104', 'tblTempVendorCDR_20' ) start [2025-03-21 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730104', 'tblTempVendorCDR_20' ) end [2025-03-21 12:13:21] Production.INFO: ProcessCDR(1,14730104,1,1,2) [2025-03-21 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730104', 'tblTempUsageDetail_20' ) start [2025-03-21 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730104', 'tblTempUsageDetail_20' ) end [2025-03-21 12:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:13:27] Production.INFO: ==28155== Releasing lock... [2025-03-21 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:13:27] Production.INFO: 64 MB #Memory Used# [2025-03-21 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:14:06 [end_date_ymd] => 2025-03-21 12:14:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:14:06' and `end` < '2025-03-21 12: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-21 12:14:19] Production.INFO: count ==4845 [2025-03-21 12:14:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:14:06 - End Time 2025-03-21 12:14:06 [2025-03-21 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730109', 'tblTempUsageDetail_20' ) start [2025-03-21 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730109', 'tblTempUsageDetail_20' ) end [2025-03-21 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730109', 'tblTempVendorCDR_20' ) start [2025-03-21 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730109', 'tblTempVendorCDR_20' ) end [2025-03-21 12:14:21] Production.INFO: ProcessCDR(1,14730109,1,1,2) [2025-03-21 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730109', 'tblTempUsageDetail_20' ) start [2025-03-21 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730109', 'tblTempUsageDetail_20' ) end [2025-03-21 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:14:27] Production.INFO: ==28231== Releasing lock... [2025-03-21 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:14:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:15:05 [end_date_ymd] => 2025-03-21 12:15:05 [RateCDR] => 1 ) [2025-03-21 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-21 09:15:05' and `end` < '2025-03-21 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-21 12:15:19] Production.INFO: count ==4864 [2025-03-21 12:15:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:15:05 - End Time 2025-03-21 12:15:05 [2025-03-21 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730114', 'tblTempUsageDetail_20' ) start [2025-03-21 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730114', 'tblTempUsageDetail_20' ) end [2025-03-21 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730114', 'tblTempVendorCDR_20' ) start [2025-03-21 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730114', 'tblTempVendorCDR_20' ) end [2025-03-21 12:15:21] Production.INFO: ProcessCDR(1,14730114,1,1,2) [2025-03-21 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730114', 'tblTempUsageDetail_20' ) start [2025-03-21 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730114', 'tblTempUsageDetail_20' ) end [2025-03-21 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:15:27] Production.INFO: ==28315== Releasing lock... [2025-03-21 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:15:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:16:06 [end_date_ymd] => 2025-03-21 12:16:06 [RateCDR] => 1 ) [2025-03-21 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 09:16:06' and `end` < '2025-03-21 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 12:16:19] Production.INFO: count ==4900 [2025-03-21 12:16:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:16:06 - End Time 2025-03-21 12:16:06 [2025-03-21 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730119', 'tblTempUsageDetail_20' ) start [2025-03-21 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730119', 'tblTempUsageDetail_20' ) end [2025-03-21 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730119', 'tblTempVendorCDR_20' ) start [2025-03-21 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730119', 'tblTempVendorCDR_20' ) end [2025-03-21 12:16:21] Production.INFO: ProcessCDR(1,14730119,1,1,2) [2025-03-21 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730119', 'tblTempUsageDetail_20' ) start [2025-03-21 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730119', 'tblTempUsageDetail_20' ) end [2025-03-21 12:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:16:27] Production.INFO: ==28450== Releasing lock... [2025-03-21 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:16:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:17:05 [end_date_ymd] => 2025-03-21 12:17:05 [RateCDR] => 1 ) [2025-03-21 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-21 09:17:05' and `end` < '2025-03-21 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-21 12:17:18] Production.INFO: count ==4931 [2025-03-21 12:17:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:17:05 - End Time 2025-03-21 12:17:05 [2025-03-21 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730124', 'tblTempUsageDetail_20' ) start [2025-03-21 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730124', 'tblTempUsageDetail_20' ) end [2025-03-21 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730124', 'tblTempVendorCDR_20' ) start [2025-03-21 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730124', 'tblTempVendorCDR_20' ) end [2025-03-21 12:17:21] Production.INFO: ProcessCDR(1,14730124,1,1,2) [2025-03-21 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730124', 'tblTempUsageDetail_20' ) start [2025-03-21 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730124', 'tblTempUsageDetail_20' ) end [2025-03-21 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:17:27] Production.INFO: ==28525== Releasing lock... [2025-03-21 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:17:27] Production.INFO: 65 MB #Memory Used# [2025-03-21 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:18:06 [end_date_ymd] => 2025-03-21 12:18:06 [RateCDR] => 1 ) [2025-03-21 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-21 09:18:06' and `end` < '2025-03-21 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-21 12:18:19] Production.INFO: count ==4929 [2025-03-21 12:18:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:18:06 - End Time 2025-03-21 12:18:06 [2025-03-21 12:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730129', 'tblTempUsageDetail_20' ) start [2025-03-21 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730129', 'tblTempUsageDetail_20' ) end [2025-03-21 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730129', 'tblTempVendorCDR_20' ) start [2025-03-21 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730129', 'tblTempVendorCDR_20' ) end [2025-03-21 12:18:22] Production.INFO: ProcessCDR(1,14730129,1,1,2) [2025-03-21 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730129', 'tblTempUsageDetail_20' ) start [2025-03-21 12:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730129', 'tblTempUsageDetail_20' ) end [2025-03-21 12:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:18:28] Production.INFO: ==28601== Releasing lock... [2025-03-21 12:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:18:28] Production.INFO: 65 MB #Memory Used# [2025-03-21 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:19:05 [end_date_ymd] => 2025-03-21 12:19:05 [RateCDR] => 1 ) [2025-03-21 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-21 09:19:05' and `end` < '2025-03-21 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-21 12:19:19] Production.INFO: count ==4930 [2025-03-21 12:19:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:19:05 - End Time 2025-03-21 12:19:05 [2025-03-21 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730134', 'tblTempUsageDetail_20' ) start [2025-03-21 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730134', 'tblTempUsageDetail_20' ) end [2025-03-21 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730134', 'tblTempVendorCDR_20' ) start [2025-03-21 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730134', 'tblTempVendorCDR_20' ) end [2025-03-21 12:19:21] Production.INFO: ProcessCDR(1,14730134,1,1,2) [2025-03-21 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730134', 'tblTempUsageDetail_20' ) start [2025-03-21 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730134', 'tblTempUsageDetail_20' ) end [2025-03-21 12:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:19:27] Production.INFO: ==28673== Releasing lock... [2025-03-21 12:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:19:27] Production.INFO: 65 MB #Memory Used# [2025-03-21 12:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:20:07 [end_date_ymd] => 2025-03-21 12:20:07 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:20:07' and `end` < '2025-03-21 12: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-21 12:20:20] Production.INFO: count ==4934 [2025-03-21 12:20:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:20:07 - End Time 2025-03-21 12:20:07 [2025-03-21 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730139', 'tblTempUsageDetail_20' ) start [2025-03-21 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730139', 'tblTempUsageDetail_20' ) end [2025-03-21 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730139', 'tblTempVendorCDR_20' ) start [2025-03-21 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730139', 'tblTempVendorCDR_20' ) end [2025-03-21 12:20:22] Production.INFO: ProcessCDR(1,14730139,1,1,2) [2025-03-21 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730139', 'tblTempUsageDetail_20' ) start [2025-03-21 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730139', 'tblTempUsageDetail_20' ) end [2025-03-21 12:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:20:28] Production.INFO: ==28748== Releasing lock... [2025-03-21 12:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:20:28] Production.INFO: 65 MB #Memory Used# [2025-03-21 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:21:05 [end_date_ymd] => 2025-03-21 12:21:05 [RateCDR] => 1 ) [2025-03-21 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-21 09:21:05' and `end` < '2025-03-21 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-21 12:21:19] Production.INFO: count ==5016 [2025-03-21 12:21:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:21:05 - End Time 2025-03-21 12:21:05 [2025-03-21 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730145', 'tblTempUsageDetail_20' ) start [2025-03-21 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730145', 'tblTempUsageDetail_20' ) end [2025-03-21 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730145', 'tblTempVendorCDR_20' ) start [2025-03-21 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730145', 'tblTempVendorCDR_20' ) end [2025-03-21 12:21:21] Production.INFO: ProcessCDR(1,14730145,1,1,2) [2025-03-21 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730145', 'tblTempUsageDetail_20' ) start [2025-03-21 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730145', 'tblTempUsageDetail_20' ) end [2025-03-21 12:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:21:27] Production.INFO: ==28826== Releasing lock... [2025-03-21 12:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:21:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:22:06 [end_date_ymd] => 2025-03-21 12:22:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:22:06' and `end` < '2025-03-21 12: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-21 12:22:19] Production.INFO: count ==5013 [2025-03-21 12:22:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:22:06 - End Time 2025-03-21 12:22:06 [2025-03-21 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730150', 'tblTempUsageDetail_20' ) start [2025-03-21 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730150', 'tblTempUsageDetail_20' ) end [2025-03-21 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730150', 'tblTempVendorCDR_20' ) start [2025-03-21 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730150', 'tblTempVendorCDR_20' ) end [2025-03-21 12:22:22] Production.INFO: ProcessCDR(1,14730150,1,1,2) [2025-03-21 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730150', 'tblTempUsageDetail_20' ) start [2025-03-21 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730150', 'tblTempUsageDetail_20' ) end [2025-03-21 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:22:27] Production.INFO: ==28902== Releasing lock... [2025-03-21 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:22:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:23:05 [end_date_ymd] => 2025-03-21 12:23:05 [RateCDR] => 1 ) [2025-03-21 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-21 09:23:05' and `end` < '2025-03-21 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-21 12:23:18] Production.INFO: count ==5016 [2025-03-21 12:23:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:23:05 - End Time 2025-03-21 12:23:05 [2025-03-21 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730155', 'tblTempUsageDetail_20' ) start [2025-03-21 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730155', 'tblTempUsageDetail_20' ) end [2025-03-21 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730155', 'tblTempVendorCDR_20' ) start [2025-03-21 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730155', 'tblTempVendorCDR_20' ) end [2025-03-21 12:23:21] Production.INFO: ProcessCDR(1,14730155,1,1,2) [2025-03-21 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730155', 'tblTempUsageDetail_20' ) start [2025-03-21 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730155', 'tblTempUsageDetail_20' ) end [2025-03-21 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:23:27] Production.INFO: ==28976== Releasing lock... [2025-03-21 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:23:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 12:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:24:06 [end_date_ymd] => 2025-03-21 12:24:06 [RateCDR] => 1 ) [2025-03-21 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-21 09:24:06' and `end` < '2025-03-21 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-21 12:24:20] Production.INFO: count ==5022 [2025-03-21 12:24:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:24:06 - End Time 2025-03-21 12:24:06 [2025-03-21 12:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730160', 'tblTempUsageDetail_20' ) start [2025-03-21 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730160', 'tblTempUsageDetail_20' ) end [2025-03-21 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730160', 'tblTempVendorCDR_20' ) start [2025-03-21 12:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730160', 'tblTempVendorCDR_20' ) end [2025-03-21 12:24:22] Production.INFO: ProcessCDR(1,14730160,1,1,2) [2025-03-21 12:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730160', 'tblTempUsageDetail_20' ) start [2025-03-21 12:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730160', 'tblTempUsageDetail_20' ) end [2025-03-21 12:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:24:28] Production.INFO: ==29049== Releasing lock... [2025-03-21 12:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:24:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:25:06 [end_date_ymd] => 2025-03-21 12:25:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:25:06' and `end` < '2025-03-21 12: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-21 12:25:19] Production.INFO: count ==5017 [2025-03-21 12:25:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:25:06 - End Time 2025-03-21 12:25:06 [2025-03-21 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730165', 'tblTempUsageDetail_20' ) start [2025-03-21 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730165', 'tblTempUsageDetail_20' ) end [2025-03-21 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730165', 'tblTempVendorCDR_20' ) start [2025-03-21 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730165', 'tblTempVendorCDR_20' ) end [2025-03-21 12:25:21] Production.INFO: ProcessCDR(1,14730165,1,1,2) [2025-03-21 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730165', 'tblTempUsageDetail_20' ) start [2025-03-21 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730165', 'tblTempUsageDetail_20' ) end [2025-03-21 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:25:27] Production.INFO: ==29119== Releasing lock... [2025-03-21 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:25:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:26:06 [end_date_ymd] => 2025-03-21 12:26:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:26:06' and `end` < '2025-03-21 12: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-21 12:26:20] Production.INFO: count ==5008 [2025-03-21 12:26:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:26:06 - End Time 2025-03-21 12:26:06 [2025-03-21 12:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730170', 'tblTempUsageDetail_20' ) start [2025-03-21 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730170', 'tblTempUsageDetail_20' ) end [2025-03-21 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730170', 'tblTempVendorCDR_20' ) start [2025-03-21 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730170', 'tblTempVendorCDR_20' ) end [2025-03-21 12:26:22] Production.INFO: ProcessCDR(1,14730170,1,1,2) [2025-03-21 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730170', 'tblTempUsageDetail_20' ) start [2025-03-21 12:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730170', 'tblTempUsageDetail_20' ) end [2025-03-21 12:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:26:28] Production.INFO: ==29199== Releasing lock... [2025-03-21 12:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:26:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:27:05 [end_date_ymd] => 2025-03-21 12:27:05 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:27:05' and `end` < '2025-03-21 12: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-21 12:27:19] Production.INFO: count ==4993 [2025-03-21 12:27:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:27:05 - End Time 2025-03-21 12:27:05 [2025-03-21 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730175', 'tblTempUsageDetail_20' ) start [2025-03-21 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730175', 'tblTempUsageDetail_20' ) end [2025-03-21 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730175', 'tblTempVendorCDR_20' ) start [2025-03-21 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730175', 'tblTempVendorCDR_20' ) end [2025-03-21 12:27:21] Production.INFO: ProcessCDR(1,14730175,1,1,2) [2025-03-21 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730175', 'tblTempUsageDetail_20' ) start [2025-03-21 12:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730175', 'tblTempUsageDetail_20' ) end [2025-03-21 12:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:27:27] Production.INFO: ==29271== Releasing lock... [2025-03-21 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:27:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:28:05 [end_date_ymd] => 2025-03-21 12:28:05 [RateCDR] => 1 ) [2025-03-21 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 09:28:05' and `end` < '2025-03-21 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 12:28:19] Production.INFO: count ==4997 [2025-03-21 12:28:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:28:05 - End Time 2025-03-21 12:28:05 [2025-03-21 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730180', 'tblTempUsageDetail_20' ) start [2025-03-21 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730180', 'tblTempUsageDetail_20' ) end [2025-03-21 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730180', 'tblTempVendorCDR_20' ) start [2025-03-21 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730180', 'tblTempVendorCDR_20' ) end [2025-03-21 12:28:21] Production.INFO: ProcessCDR(1,14730180,1,1,2) [2025-03-21 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730180', 'tblTempUsageDetail_20' ) start [2025-03-21 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730180', 'tblTempUsageDetail_20' ) end [2025-03-21 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:28:26] Production.INFO: ==29344== Releasing lock... [2025-03-21 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:28:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:29:06 [end_date_ymd] => 2025-03-21 12:29:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:29:06' and `end` < '2025-03-21 12: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-21 12:29:19] Production.INFO: count ==4994 [2025-03-21 12:29:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:29:06 - End Time 2025-03-21 12:29:06 [2025-03-21 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730185', 'tblTempUsageDetail_20' ) start [2025-03-21 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730185', 'tblTempUsageDetail_20' ) end [2025-03-21 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730185', 'tblTempVendorCDR_20' ) start [2025-03-21 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730185', 'tblTempVendorCDR_20' ) end [2025-03-21 12:29:21] Production.INFO: ProcessCDR(1,14730185,1,1,2) [2025-03-21 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730185', 'tblTempUsageDetail_20' ) start [2025-03-21 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730185', 'tblTempUsageDetail_20' ) end [2025-03-21 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:29:27] Production.INFO: ==29413== Releasing lock... [2025-03-21 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:29:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 12:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:30:07 [end_date_ymd] => 2025-03-21 12:30:07 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:30:07' and `end` < '2025-03-21 12: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-21 12:30:20] Production.INFO: count ==5004 [2025-03-21 12:30:23] Production.ERROR: pbx CDR StartTime 2025-03-21 09:30:07 - End Time 2025-03-21 12:30:07 [2025-03-21 12:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730191', 'tblTempUsageDetail_20' ) start [2025-03-21 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730191', 'tblTempUsageDetail_20' ) end [2025-03-21 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730191', 'tblTempVendorCDR_20' ) start [2025-03-21 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730191', 'tblTempVendorCDR_20' ) end [2025-03-21 12:30:23] Production.INFO: ProcessCDR(1,14730191,1,1,2) [2025-03-21 12:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730191', 'tblTempUsageDetail_20' ) start [2025-03-21 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730191', 'tblTempUsageDetail_20' ) end [2025-03-21 12:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:30:29] Production.INFO: ==29516== Releasing lock... [2025-03-21 12:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:30:29] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:31:05 [end_date_ymd] => 2025-03-21 12:31:05 [RateCDR] => 1 ) [2025-03-21 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-21 09:31:05' and `end` < '2025-03-21 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-21 12:31:19] Production.INFO: count ==5088 [2025-03-21 12:31:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:31:05 - End Time 2025-03-21 12:31:05 [2025-03-21 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730196', 'tblTempUsageDetail_20' ) start [2025-03-21 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730196', 'tblTempUsageDetail_20' ) end [2025-03-21 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730196', 'tblTempVendorCDR_20' ) start [2025-03-21 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730196', 'tblTempVendorCDR_20' ) end [2025-03-21 12:31:21] Production.INFO: ProcessCDR(1,14730196,1,1,2) [2025-03-21 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730196', 'tblTempUsageDetail_20' ) start [2025-03-21 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730196', 'tblTempUsageDetail_20' ) end [2025-03-21 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:31:27] Production.INFO: ==29672== Releasing lock... [2025-03-21 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:31:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:32:06 [end_date_ymd] => 2025-03-21 12:32:06 [RateCDR] => 1 ) [2025-03-21 12:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 09:32:06' and `end` < '2025-03-21 12:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 12:32:20] Production.INFO: count ==5073 [2025-03-21 12:32:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:32:06 - End Time 2025-03-21 12:32:06 [2025-03-21 12:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730201', 'tblTempUsageDetail_20' ) start [2025-03-21 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730201', 'tblTempUsageDetail_20' ) end [2025-03-21 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730201', 'tblTempVendorCDR_20' ) start [2025-03-21 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730201', 'tblTempVendorCDR_20' ) end [2025-03-21 12:32:22] Production.INFO: ProcessCDR(1,14730201,1,1,2) [2025-03-21 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730201', 'tblTempUsageDetail_20' ) start [2025-03-21 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730201', 'tblTempUsageDetail_20' ) end [2025-03-21 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:32:28] Production.INFO: ==29788== Releasing lock... [2025-03-21 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:32:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:33:06 [end_date_ymd] => 2025-03-21 12:33:06 [RateCDR] => 1 ) [2025-03-21 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-21 09:33:06' and `end` < '2025-03-21 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-21 12:33:19] Production.INFO: count ==5083 [2025-03-21 12:33:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:33:06 - End Time 2025-03-21 12:33:06 [2025-03-21 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730206', 'tblTempUsageDetail_20' ) start [2025-03-21 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730206', 'tblTempUsageDetail_20' ) end [2025-03-21 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730206', 'tblTempVendorCDR_20' ) start [2025-03-21 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730206', 'tblTempVendorCDR_20' ) end [2025-03-21 12:33:22] Production.INFO: ProcessCDR(1,14730206,1,1,2) [2025-03-21 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730206', 'tblTempUsageDetail_20' ) start [2025-03-21 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730206', 'tblTempUsageDetail_20' ) end [2025-03-21 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:33:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:33:28] Production.INFO: ==29902== Releasing lock... [2025-03-21 12:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:33:28] Production.INFO: 66 MB #Memory Used# [2025-03-21 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:34:06 [end_date_ymd] => 2025-03-21 12:34:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:34:06' and `end` < '2025-03-21 12: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-21 12:34:19] Production.INFO: count ==5078 [2025-03-21 12:34:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:34:06 - End Time 2025-03-21 12:34:06 [2025-03-21 12:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730211', 'tblTempUsageDetail_20' ) start [2025-03-21 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730211', 'tblTempUsageDetail_20' ) end [2025-03-21 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730211', 'tblTempVendorCDR_20' ) start [2025-03-21 12:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730211', 'tblTempVendorCDR_20' ) end [2025-03-21 12:34:22] Production.INFO: ProcessCDR(1,14730211,1,1,2) [2025-03-21 12:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730211', 'tblTempUsageDetail_20' ) start [2025-03-21 12:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730211', 'tblTempUsageDetail_20' ) end [2025-03-21 12:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:34:28] Production.INFO: ==30029== Releasing lock... [2025-03-21 12:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:34:28] Production.INFO: 66 MB #Memory Used# [2025-03-21 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:35:05 [end_date_ymd] => 2025-03-21 12:35:05 [RateCDR] => 1 ) [2025-03-21 12:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 09:35:05' and `end` < '2025-03-21 12:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 12:35:19] Production.INFO: count ==5066 [2025-03-21 12:35:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:35:05 - End Time 2025-03-21 12:35:05 [2025-03-21 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730216', 'tblTempUsageDetail_20' ) start [2025-03-21 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730216', 'tblTempUsageDetail_20' ) end [2025-03-21 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730216', 'tblTempVendorCDR_20' ) start [2025-03-21 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730216', 'tblTempVendorCDR_20' ) end [2025-03-21 12:35:21] Production.INFO: ProcessCDR(1,14730216,1,1,2) [2025-03-21 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730216', 'tblTempUsageDetail_20' ) start [2025-03-21 12:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730216', 'tblTempUsageDetail_20' ) end [2025-03-21 12:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:35:27] Production.INFO: ==30145== Releasing lock... [2025-03-21 12:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:35:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:36:06 [end_date_ymd] => 2025-03-21 12:36:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:36:06' and `end` < '2025-03-21 12: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-21 12:36:19] Production.INFO: count ==5063 [2025-03-21 12:36:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:36:06 - End Time 2025-03-21 12:36:06 [2025-03-21 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730221', 'tblTempUsageDetail_20' ) start [2025-03-21 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730221', 'tblTempUsageDetail_20' ) end [2025-03-21 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730221', 'tblTempVendorCDR_20' ) start [2025-03-21 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730221', 'tblTempVendorCDR_20' ) end [2025-03-21 12:36:21] Production.INFO: ProcessCDR(1,14730221,1,1,2) [2025-03-21 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730221', 'tblTempUsageDetail_20' ) start [2025-03-21 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730221', 'tblTempUsageDetail_20' ) end [2025-03-21 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:36:27] Production.INFO: ==30263== Releasing lock... [2025-03-21 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:36:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:37:05 [end_date_ymd] => 2025-03-21 12:37:05 [RateCDR] => 1 ) [2025-03-21 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-21 09:37:05' and `end` < '2025-03-21 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-21 12:37:19] Production.INFO: count ==5086 [2025-03-21 12:37:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:37:05 - End Time 2025-03-21 12:37:05 [2025-03-21 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730226', 'tblTempUsageDetail_20' ) start [2025-03-21 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730226', 'tblTempUsageDetail_20' ) end [2025-03-21 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730226', 'tblTempVendorCDR_20' ) start [2025-03-21 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730226', 'tblTempVendorCDR_20' ) end [2025-03-21 12:37:21] Production.INFO: ProcessCDR(1,14730226,1,1,2) [2025-03-21 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730226', 'tblTempUsageDetail_20' ) start [2025-03-21 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730226', 'tblTempUsageDetail_20' ) end [2025-03-21 12:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:37:27] Production.INFO: ==30372== Releasing lock... [2025-03-21 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:37:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 12:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:38:06 [end_date_ymd] => 2025-03-21 12:38:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:38:06' and `end` < '2025-03-21 12: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-21 12:38:19] Production.INFO: count ==5102 [2025-03-21 12:38:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:38:06 - End Time 2025-03-21 12:38:06 [2025-03-21 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730231', 'tblTempUsageDetail_20' ) start [2025-03-21 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730231', 'tblTempUsageDetail_20' ) end [2025-03-21 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730231', 'tblTempVendorCDR_20' ) start [2025-03-21 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730231', 'tblTempVendorCDR_20' ) end [2025-03-21 12:38:22] Production.INFO: ProcessCDR(1,14730231,1,1,2) [2025-03-21 12:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730231', 'tblTempUsageDetail_20' ) start [2025-03-21 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730231', 'tblTempUsageDetail_20' ) end [2025-03-21 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:38:28] Production.INFO: ==30489== Releasing lock... [2025-03-21 12:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:38:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:39:05 [end_date_ymd] => 2025-03-21 12:39:05 [RateCDR] => 1 ) [2025-03-21 12:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 09:39:05' and `end` < '2025-03-21 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 12:39:18] Production.INFO: count ==5109 [2025-03-21 12:39:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:39:05 - End Time 2025-03-21 12:39:05 [2025-03-21 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730236', 'tblTempUsageDetail_20' ) start [2025-03-21 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730236', 'tblTempUsageDetail_20' ) end [2025-03-21 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730236', 'tblTempVendorCDR_20' ) start [2025-03-21 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730236', 'tblTempVendorCDR_20' ) end [2025-03-21 12:39:21] Production.INFO: ProcessCDR(1,14730236,1,1,2) [2025-03-21 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730236', 'tblTempUsageDetail_20' ) start [2025-03-21 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730236', 'tblTempUsageDetail_20' ) end [2025-03-21 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:39:27] Production.INFO: ==30606== Releasing lock... [2025-03-21 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:39:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 12:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:40:07 [end_date_ymd] => 2025-03-21 12:40:07 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:40:07' and `end` < '2025-03-21 12: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-21 12:40:20] Production.INFO: count ==5111 [2025-03-21 12:40:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:40:07 - End Time 2025-03-21 12:40:07 [2025-03-21 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730242', 'tblTempUsageDetail_20' ) start [2025-03-21 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730242', 'tblTempUsageDetail_20' ) end [2025-03-21 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730242', 'tblTempVendorCDR_20' ) start [2025-03-21 12:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730242', 'tblTempVendorCDR_20' ) end [2025-03-21 12:40:23] Production.INFO: ProcessCDR(1,14730242,1,1,2) [2025-03-21 12:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730242', 'tblTempUsageDetail_20' ) start [2025-03-21 12:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730242', 'tblTempUsageDetail_20' ) end [2025-03-21 12:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:40:29] Production.INFO: ==30727== Releasing lock... [2025-03-21 12:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:40:29] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:41:06 [end_date_ymd] => 2025-03-21 12:41:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:41:06' and `end` < '2025-03-21 12: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-21 12:41:19] Production.INFO: count ==5120 [2025-03-21 12:41:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:41:06 - End Time 2025-03-21 12:41:06 [2025-03-21 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730247', 'tblTempUsageDetail_20' ) start [2025-03-21 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730247', 'tblTempUsageDetail_20' ) end [2025-03-21 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730247', 'tblTempVendorCDR_20' ) start [2025-03-21 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730247', 'tblTempVendorCDR_20' ) end [2025-03-21 12:41:21] Production.INFO: ProcessCDR(1,14730247,1,1,2) [2025-03-21 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730247', 'tblTempUsageDetail_20' ) start [2025-03-21 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730247', 'tblTempUsageDetail_20' ) end [2025-03-21 12:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:41:27] Production.INFO: ==30850== Releasing lock... [2025-03-21 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:41:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:42:06 [end_date_ymd] => 2025-03-21 12:42:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:42:06' and `end` < '2025-03-21 12: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-21 12:42:19] Production.INFO: count ==5117 [2025-03-21 12:42:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:42:06 - End Time 2025-03-21 12:42:06 [2025-03-21 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730252', 'tblTempUsageDetail_20' ) start [2025-03-21 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730252', 'tblTempUsageDetail_20' ) end [2025-03-21 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730252', 'tblTempVendorCDR_20' ) start [2025-03-21 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730252', 'tblTempVendorCDR_20' ) end [2025-03-21 12:42:22] Production.INFO: ProcessCDR(1,14730252,1,1,2) [2025-03-21 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730252', 'tblTempUsageDetail_20' ) start [2025-03-21 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730252', 'tblTempUsageDetail_20' ) end [2025-03-21 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:42:27] Production.INFO: ==30961== Releasing lock... [2025-03-21 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:42:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:43:05 [end_date_ymd] => 2025-03-21 12:43:05 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:43:05' and `end` < '2025-03-21 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-21 12:43:19] Production.INFO: count ==5128 [2025-03-21 12:43:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:43:05 - End Time 2025-03-21 12:43:05 [2025-03-21 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730257', 'tblTempUsageDetail_20' ) start [2025-03-21 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730257', 'tblTempUsageDetail_20' ) end [2025-03-21 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730257', 'tblTempVendorCDR_20' ) start [2025-03-21 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730257', 'tblTempVendorCDR_20' ) end [2025-03-21 12:43:21] Production.INFO: ProcessCDR(1,14730257,1,1,2) [2025-03-21 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730257', 'tblTempUsageDetail_20' ) start [2025-03-21 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730257', 'tblTempUsageDetail_20' ) end [2025-03-21 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:43:27] Production.INFO: ==31075== Releasing lock... [2025-03-21 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:43:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:44:06 [end_date_ymd] => 2025-03-21 12:44:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:44:06' and `end` < '2025-03-21 12: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-21 12:44:19] Production.INFO: count ==5134 [2025-03-21 12:44:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:44:06 - End Time 2025-03-21 12:44:06 [2025-03-21 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730262', 'tblTempUsageDetail_20' ) start [2025-03-21 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730262', 'tblTempUsageDetail_20' ) end [2025-03-21 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730262', 'tblTempVendorCDR_20' ) start [2025-03-21 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730262', 'tblTempVendorCDR_20' ) end [2025-03-21 12:44:22] Production.INFO: ProcessCDR(1,14730262,1,1,2) [2025-03-21 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730262', 'tblTempUsageDetail_20' ) start [2025-03-21 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730262', 'tblTempUsageDetail_20' ) end [2025-03-21 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:44:27] Production.INFO: ==31189== Releasing lock... [2025-03-21 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:44:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:45:05 [end_date_ymd] => 2025-03-21 12:45:05 [RateCDR] => 1 ) [2025-03-21 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-21 09:45:05' and `end` < '2025-03-21 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-21 12:45:18] Production.INFO: count ==5123 [2025-03-21 12:45:20] Production.ERROR: pbx CDR StartTime 2025-03-21 09:45:05 - End Time 2025-03-21 12:45:05 [2025-03-21 12:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730267', 'tblTempUsageDetail_20' ) start [2025-03-21 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730267', 'tblTempUsageDetail_20' ) end [2025-03-21 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730267', 'tblTempVendorCDR_20' ) start [2025-03-21 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730267', 'tblTempVendorCDR_20' ) end [2025-03-21 12:45:21] Production.INFO: ProcessCDR(1,14730267,1,1,2) [2025-03-21 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730267', 'tblTempUsageDetail_20' ) start [2025-03-21 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730267', 'tblTempUsageDetail_20' ) end [2025-03-21 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:45:26] Production.INFO: ==31306== Releasing lock... [2025-03-21 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:45:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 12:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:46:06 [end_date_ymd] => 2025-03-21 12:46:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:46:06' and `end` < '2025-03-21 12: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-21 12:46:19] Production.INFO: count ==5132 [2025-03-21 12:46:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:46:06 - End Time 2025-03-21 12:46:06 [2025-03-21 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730272', 'tblTempUsageDetail_20' ) start [2025-03-21 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730272', 'tblTempUsageDetail_20' ) end [2025-03-21 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730272', 'tblTempVendorCDR_20' ) start [2025-03-21 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730272', 'tblTempVendorCDR_20' ) end [2025-03-21 12:46:22] Production.INFO: ProcessCDR(1,14730272,1,1,2) [2025-03-21 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730272', 'tblTempUsageDetail_20' ) start [2025-03-21 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730272', 'tblTempUsageDetail_20' ) end [2025-03-21 12:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:46:28] Production.INFO: ==31421== Releasing lock... [2025-03-21 12:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:46:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:47:05 [end_date_ymd] => 2025-03-21 12:47:05 [RateCDR] => 1 ) [2025-03-21 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 09:47:05' and `end` < '2025-03-21 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 12:47:18] Production.INFO: count ==5127 [2025-03-21 12:47:20] Production.ERROR: pbx CDR StartTime 2025-03-21 09:47:05 - End Time 2025-03-21 12:47:05 [2025-03-21 12:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730277', 'tblTempUsageDetail_20' ) start [2025-03-21 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730277', 'tblTempUsageDetail_20' ) end [2025-03-21 12:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730277', 'tblTempVendorCDR_20' ) start [2025-03-21 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730277', 'tblTempVendorCDR_20' ) end [2025-03-21 12:47:21] Production.INFO: ProcessCDR(1,14730277,1,1,2) [2025-03-21 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730277', 'tblTempUsageDetail_20' ) start [2025-03-21 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730277', 'tblTempUsageDetail_20' ) end [2025-03-21 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:47:26] Production.INFO: ==31578== Releasing lock... [2025-03-21 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:47:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:48:06 [end_date_ymd] => 2025-03-21 12:48:06 [RateCDR] => 1 ) [2025-03-21 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-21 09:48:06' and `end` < '2025-03-21 12: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-21 12:48:19] Production.INFO: count ==5139 [2025-03-21 12:48:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:48:06 - End Time 2025-03-21 12:48:06 [2025-03-21 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730282', 'tblTempUsageDetail_20' ) start [2025-03-21 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730282', 'tblTempUsageDetail_20' ) end [2025-03-21 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730282', 'tblTempVendorCDR_20' ) start [2025-03-21 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730282', 'tblTempVendorCDR_20' ) end [2025-03-21 12:48:21] Production.INFO: ProcessCDR(1,14730282,1,1,2) [2025-03-21 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730282', 'tblTempUsageDetail_20' ) start [2025-03-21 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730282', 'tblTempUsageDetail_20' ) end [2025-03-21 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:48:27] Production.INFO: ==31693== Releasing lock... [2025-03-21 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:48:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:49:05 [end_date_ymd] => 2025-03-21 12:49:05 [RateCDR] => 1 ) [2025-03-21 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-21 09:49:05' and `end` < '2025-03-21 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-21 12:49:18] Production.INFO: count ==5127 [2025-03-21 12:49:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:49:05 - End Time 2025-03-21 12:49:05 [2025-03-21 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730287', 'tblTempUsageDetail_20' ) start [2025-03-21 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730287', 'tblTempUsageDetail_20' ) end [2025-03-21 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730287', 'tblTempVendorCDR_20' ) start [2025-03-21 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730287', 'tblTempVendorCDR_20' ) end [2025-03-21 12:49:21] Production.INFO: ProcessCDR(1,14730287,1,1,2) [2025-03-21 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730287', 'tblTempUsageDetail_20' ) start [2025-03-21 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730287', 'tblTempUsageDetail_20' ) end [2025-03-21 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:49:26] Production.INFO: ==31806== Releasing lock... [2025-03-21 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:49:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:50:07 [end_date_ymd] => 2025-03-21 12:50:07 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:50:07' and `end` < '2025-03-21 12: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-21 12:50:20] Production.INFO: count ==5121 [2025-03-21 12:50:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:50:07 - End Time 2025-03-21 12:50:07 [2025-03-21 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730293', 'tblTempUsageDetail_20' ) start [2025-03-21 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730293', 'tblTempUsageDetail_20' ) end [2025-03-21 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730293', 'tblTempVendorCDR_20' ) start [2025-03-21 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730293', 'tblTempVendorCDR_20' ) end [2025-03-21 12:50:22] Production.INFO: ProcessCDR(1,14730293,1,1,2) [2025-03-21 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730293', 'tblTempUsageDetail_20' ) start [2025-03-21 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730293', 'tblTempUsageDetail_20' ) end [2025-03-21 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:50:28] Production.INFO: ==31893== Releasing lock... [2025-03-21 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:50:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:51:05 [end_date_ymd] => 2025-03-21 12:51:05 [RateCDR] => 1 ) [2025-03-21 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-21 09:51:05' and `end` < '2025-03-21 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-21 12:51:19] Production.INFO: count ==5145 [2025-03-21 12:51:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:51:05 - End Time 2025-03-21 12:51:05 [2025-03-21 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730298', 'tblTempUsageDetail_20' ) start [2025-03-21 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730298', 'tblTempUsageDetail_20' ) end [2025-03-21 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730298', 'tblTempVendorCDR_20' ) start [2025-03-21 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730298', 'tblTempVendorCDR_20' ) end [2025-03-21 12:51:21] Production.INFO: ProcessCDR(1,14730298,1,1,2) [2025-03-21 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730298', 'tblTempUsageDetail_20' ) start [2025-03-21 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730298', 'tblTempUsageDetail_20' ) end [2025-03-21 12:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:51:27] Production.INFO: ==31970== Releasing lock... [2025-03-21 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:51:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:52:06 [end_date_ymd] => 2025-03-21 12:52:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:52:06' and `end` < '2025-03-21 12: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-21 12:52:19] Production.INFO: count ==5140 [2025-03-21 12:52:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:52:06 - End Time 2025-03-21 12:52:06 [2025-03-21 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730303', 'tblTempUsageDetail_20' ) start [2025-03-21 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730303', 'tblTempUsageDetail_20' ) end [2025-03-21 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730303', 'tblTempVendorCDR_20' ) start [2025-03-21 12:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730303', 'tblTempVendorCDR_20' ) end [2025-03-21 12:52:22] Production.INFO: ProcessCDR(1,14730303,1,1,2) [2025-03-21 12:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730303', 'tblTempUsageDetail_20' ) start [2025-03-21 12:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730303', 'tblTempUsageDetail_20' ) end [2025-03-21 12:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:52:28] Production.INFO: ==32043== Releasing lock... [2025-03-21 12:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:52:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:53:05 [end_date_ymd] => 2025-03-21 12:53:05 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:53:05' and `end` < '2025-03-21 12: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-21 12:53:19] Production.INFO: count ==5129 [2025-03-21 12:53:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:53:05 - End Time 2025-03-21 12:53:05 [2025-03-21 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730308', 'tblTempUsageDetail_20' ) start [2025-03-21 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730308', 'tblTempUsageDetail_20' ) end [2025-03-21 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730308', 'tblTempVendorCDR_20' ) start [2025-03-21 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730308', 'tblTempVendorCDR_20' ) end [2025-03-21 12:53:21] Production.INFO: ProcessCDR(1,14730308,1,1,2) [2025-03-21 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730308', 'tblTempUsageDetail_20' ) start [2025-03-21 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730308', 'tblTempUsageDetail_20' ) end [2025-03-21 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:53:27] Production.INFO: ==32121== Releasing lock... [2025-03-21 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:53:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:54:06 [end_date_ymd] => 2025-03-21 12:54:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:54:06' and `end` < '2025-03-21 12: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-21 12:54:20] Production.INFO: count ==5120 [2025-03-21 12:54:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:54:06 - End Time 2025-03-21 12:54:06 [2025-03-21 12:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730313', 'tblTempUsageDetail_20' ) start [2025-03-21 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730313', 'tblTempUsageDetail_20' ) end [2025-03-21 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730313', 'tblTempVendorCDR_20' ) start [2025-03-21 12:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730313', 'tblTempVendorCDR_20' ) end [2025-03-21 12:54:22] Production.INFO: ProcessCDR(1,14730313,1,1,2) [2025-03-21 12:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730313', 'tblTempUsageDetail_20' ) start [2025-03-21 12:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730313', 'tblTempUsageDetail_20' ) end [2025-03-21 12:54:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:54:28] Production.INFO: ==32203== Releasing lock... [2025-03-21 12:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:54:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:55:05 [end_date_ymd] => 2025-03-21 12:55:05 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:55:05' and `end` < '2025-03-21 12: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-21 12:55:19] Production.INFO: count ==5123 [2025-03-21 12:55:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:55:05 - End Time 2025-03-21 12:55:05 [2025-03-21 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730318', 'tblTempUsageDetail_20' ) start [2025-03-21 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730318', 'tblTempUsageDetail_20' ) end [2025-03-21 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730318', 'tblTempVendorCDR_20' ) start [2025-03-21 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730318', 'tblTempVendorCDR_20' ) end [2025-03-21 12:55:21] Production.INFO: ProcessCDR(1,14730318,1,1,2) [2025-03-21 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730318', 'tblTempUsageDetail_20' ) start [2025-03-21 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730318', 'tblTempUsageDetail_20' ) end [2025-03-21 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:55:27] Production.INFO: ==32274== Releasing lock... [2025-03-21 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:55:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:56:06 [end_date_ymd] => 2025-03-21 12:56:06 [RateCDR] => 1 ) [2025-03-21 12: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-21 09:56:06' and `end` < '2025-03-21 12: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-21 12:56:19] Production.INFO: count ==5091 [2025-03-21 12:56:22] Production.ERROR: pbx CDR StartTime 2025-03-21 09:56:06 - End Time 2025-03-21 12:56:06 [2025-03-21 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730323', 'tblTempUsageDetail_20' ) start [2025-03-21 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730323', 'tblTempUsageDetail_20' ) end [2025-03-21 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730323', 'tblTempVendorCDR_20' ) start [2025-03-21 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730323', 'tblTempVendorCDR_20' ) end [2025-03-21 12:56:22] Production.INFO: ProcessCDR(1,14730323,1,1,2) [2025-03-21 12:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730323', 'tblTempUsageDetail_20' ) start [2025-03-21 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730323', 'tblTempUsageDetail_20' ) end [2025-03-21 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:56:27] Production.INFO: ==32348== Releasing lock... [2025-03-21 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:56:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:57:05 [end_date_ymd] => 2025-03-21 12:57:05 [RateCDR] => 1 ) [2025-03-21 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 09:57:05' and `end` < '2025-03-21 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 12:57:19] Production.INFO: count ==5112 [2025-03-21 12:57:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:57:05 - End Time 2025-03-21 12:57:05 [2025-03-21 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730328', 'tblTempUsageDetail_20' ) start [2025-03-21 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730328', 'tblTempUsageDetail_20' ) end [2025-03-21 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730328', 'tblTempVendorCDR_20' ) start [2025-03-21 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730328', 'tblTempVendorCDR_20' ) end [2025-03-21 12:57:21] Production.INFO: ProcessCDR(1,14730328,1,1,2) [2025-03-21 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730328', 'tblTempUsageDetail_20' ) start [2025-03-21 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730328', 'tblTempUsageDetail_20' ) end [2025-03-21 12:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:57:27] Production.INFO: ==32423== Releasing lock... [2025-03-21 12:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:57:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:58:06 [end_date_ymd] => 2025-03-21 12:58:06 [RateCDR] => 1 ) [2025-03-21 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-21 09:58:06' and `end` < '2025-03-21 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-21 12:58:19] Production.INFO: count ==5119 [2025-03-21 12:58:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:58:06 - End Time 2025-03-21 12:58:06 [2025-03-21 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730333', 'tblTempUsageDetail_20' ) start [2025-03-21 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730333', 'tblTempUsageDetail_20' ) end [2025-03-21 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730333', 'tblTempVendorCDR_20' ) start [2025-03-21 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730333', 'tblTempVendorCDR_20' ) end [2025-03-21 12:58:21] Production.INFO: ProcessCDR(1,14730333,1,1,2) [2025-03-21 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730333', 'tblTempUsageDetail_20' ) start [2025-03-21 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730333', 'tblTempUsageDetail_20' ) end [2025-03-21 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:58:27] Production.INFO: ==32496== Releasing lock... [2025-03-21 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:58:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 09:59:05 [end_date_ymd] => 2025-03-21 12:59:05 [RateCDR] => 1 ) [2025-03-21 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 09:59:05' and `end` < '2025-03-21 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 12:59:19] Production.INFO: count ==5148 [2025-03-21 12:59:21] Production.ERROR: pbx CDR StartTime 2025-03-21 09:59:05 - End Time 2025-03-21 12:59:05 [2025-03-21 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730338', 'tblTempUsageDetail_20' ) start [2025-03-21 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730338', 'tblTempUsageDetail_20' ) end [2025-03-21 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730338', 'tblTempVendorCDR_20' ) start [2025-03-21 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730338', 'tblTempVendorCDR_20' ) end [2025-03-21 12:59:21] Production.INFO: ProcessCDR(1,14730338,1,1,2) [2025-03-21 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730338', 'tblTempUsageDetail_20' ) start [2025-03-21 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730338', 'tblTempUsageDetail_20' ) end [2025-03-21 12:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 12:59:27] Production.INFO: ==32572== Releasing lock... [2025-03-21 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 12:59:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:00:07 [end_date_ymd] => 2025-03-21 13:00:07 [RateCDR] => 1 ) [2025-03-21 13: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-21 10:00:07' and `end` < '2025-03-21 13: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-21 13:00:20] Production.INFO: count ==5164 [2025-03-21 13:00:22] Production.ERROR: pbx CDR StartTime 2025-03-21 10:00:07 - End Time 2025-03-21 13:00:07 [2025-03-21 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730344', 'tblTempUsageDetail_20' ) start [2025-03-21 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730344', 'tblTempUsageDetail_20' ) end [2025-03-21 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730344', 'tblTempVendorCDR_20' ) start [2025-03-21 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730344', 'tblTempVendorCDR_20' ) end [2025-03-21 13:00:22] Production.INFO: ProcessCDR(1,14730344,1,1,2) [2025-03-21 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730344', 'tblTempUsageDetail_20' ) start [2025-03-21 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730344', 'tblTempUsageDetail_20' ) end [2025-03-21 13:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:00:28] Production.INFO: ==32650== Releasing lock... [2025-03-21 13:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:00:28] Production.INFO: 66.75 MB #Memory Used# [2025-03-21 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:01:05 [end_date_ymd] => 2025-03-21 13:01:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:01:05' and `end` < '2025-03-21 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-21 13:01:18] Production.INFO: count ==5170 [2025-03-21 13:01:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:01:05 - End Time 2025-03-21 13:01:05 [2025-03-21 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730349', 'tblTempUsageDetail_20' ) start [2025-03-21 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730349', 'tblTempUsageDetail_20' ) end [2025-03-21 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730349', 'tblTempVendorCDR_20' ) start [2025-03-21 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730349', 'tblTempVendorCDR_20' ) end [2025-03-21 13:01:21] Production.INFO: ProcessCDR(1,14730349,1,1,2) [2025-03-21 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730349', 'tblTempUsageDetail_20' ) start [2025-03-21 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730349', 'tblTempUsageDetail_20' ) end [2025-03-21 13:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:01:27] Production.INFO: ==32734== Releasing lock... [2025-03-21 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:01:27] Production.INFO: 66.75 MB #Memory Used# [2025-03-21 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:02:06 [end_date_ymd] => 2025-03-21 13:02:06 [RateCDR] => 1 ) [2025-03-21 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:02:06' and `end` < '2025-03-21 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:02:19] Production.INFO: count ==5152 [2025-03-21 13:02:22] Production.ERROR: pbx CDR StartTime 2025-03-21 10:02:06 - End Time 2025-03-21 13:02:06 [2025-03-21 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730354', 'tblTempUsageDetail_20' ) start [2025-03-21 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730354', 'tblTempUsageDetail_20' ) end [2025-03-21 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730354', 'tblTempVendorCDR_20' ) start [2025-03-21 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730354', 'tblTempVendorCDR_20' ) end [2025-03-21 13:02:22] Production.INFO: ProcessCDR(1,14730354,1,1,2) [2025-03-21 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730354', 'tblTempUsageDetail_20' ) start [2025-03-21 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730354', 'tblTempUsageDetail_20' ) end [2025-03-21 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:02:27] Production.INFO: ==397== Releasing lock... [2025-03-21 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:02:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:03:05 [end_date_ymd] => 2025-03-21 13:03:05 [RateCDR] => 1 ) [2025-03-21 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:03:05' and `end` < '2025-03-21 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:03:19] Production.INFO: count ==5122 [2025-03-21 13:03:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:03:05 - End Time 2025-03-21 13:03:05 [2025-03-21 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730359', 'tblTempUsageDetail_20' ) start [2025-03-21 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730359', 'tblTempUsageDetail_20' ) end [2025-03-21 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730359', 'tblTempVendorCDR_20' ) start [2025-03-21 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730359', 'tblTempVendorCDR_20' ) end [2025-03-21 13:03:21] Production.INFO: ProcessCDR(1,14730359,1,1,2) [2025-03-21 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730359', 'tblTempUsageDetail_20' ) start [2025-03-21 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730359', 'tblTempUsageDetail_20' ) end [2025-03-21 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:03:26] Production.INFO: ==469== Releasing lock... [2025-03-21 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:03:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:04:06 [end_date_ymd] => 2025-03-21 13:04:06 [RateCDR] => 1 ) [2025-03-21 13: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-21 10:04:06' and `end` < '2025-03-21 13: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-21 13:04:19] Production.INFO: count ==5098 [2025-03-21 13:04:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:04:06 - End Time 2025-03-21 13:04:06 [2025-03-21 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730364', 'tblTempUsageDetail_20' ) start [2025-03-21 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730364', 'tblTempUsageDetail_20' ) end [2025-03-21 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730364', 'tblTempVendorCDR_20' ) start [2025-03-21 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730364', 'tblTempVendorCDR_20' ) end [2025-03-21 13:04:21] Production.INFO: ProcessCDR(1,14730364,1,1,2) [2025-03-21 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730364', 'tblTempUsageDetail_20' ) start [2025-03-21 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730364', 'tblTempUsageDetail_20' ) end [2025-03-21 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:04:27] Production.INFO: ==548== Releasing lock... [2025-03-21 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:04:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:05:05 [end_date_ymd] => 2025-03-21 13:05:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:05:05' and `end` < '2025-03-21 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-21 13:05:19] Production.INFO: count ==5112 [2025-03-21 13:05:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:05:05 - End Time 2025-03-21 13:05:05 [2025-03-21 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730369', 'tblTempUsageDetail_20' ) start [2025-03-21 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730369', 'tblTempUsageDetail_20' ) end [2025-03-21 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730369', 'tblTempVendorCDR_20' ) start [2025-03-21 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730369', 'tblTempVendorCDR_20' ) end [2025-03-21 13:05:21] Production.INFO: ProcessCDR(1,14730369,1,1,2) [2025-03-21 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730369', 'tblTempUsageDetail_20' ) start [2025-03-21 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730369', 'tblTempUsageDetail_20' ) end [2025-03-21 13:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:05:27] Production.INFO: ==626== Releasing lock... [2025-03-21 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:05:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:06:06 [end_date_ymd] => 2025-03-21 13:06:06 [RateCDR] => 1 ) [2025-03-21 13: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-21 10:06:06' and `end` < '2025-03-21 13: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-21 13:06:19] Production.INFO: count ==5125 [2025-03-21 13:06:22] Production.ERROR: pbx CDR StartTime 2025-03-21 10:06:06 - End Time 2025-03-21 13:06:06 [2025-03-21 13:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730374', 'tblTempUsageDetail_20' ) start [2025-03-21 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730374', 'tblTempUsageDetail_20' ) end [2025-03-21 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730374', 'tblTempVendorCDR_20' ) start [2025-03-21 13:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730374', 'tblTempVendorCDR_20' ) end [2025-03-21 13:06:22] Production.INFO: ProcessCDR(1,14730374,1,1,2) [2025-03-21 13:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730374', 'tblTempUsageDetail_20' ) start [2025-03-21 13:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730374', 'tblTempUsageDetail_20' ) end [2025-03-21 13:06:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:06:28] Production.INFO: ==727== Releasing lock... [2025-03-21 13:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:06:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:07:05 [end_date_ymd] => 2025-03-21 13:07:05 [RateCDR] => 1 ) [2025-03-21 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:07:05' and `end` < '2025-03-21 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:07:18] Production.INFO: count ==5117 [2025-03-21 13:07:20] Production.ERROR: pbx CDR StartTime 2025-03-21 10:07:05 - End Time 2025-03-21 13:07:05 [2025-03-21 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730379', 'tblTempUsageDetail_20' ) start [2025-03-21 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730379', 'tblTempUsageDetail_20' ) end [2025-03-21 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730379', 'tblTempVendorCDR_20' ) start [2025-03-21 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730379', 'tblTempVendorCDR_20' ) end [2025-03-21 13:07:21] Production.INFO: ProcessCDR(1,14730379,1,1,2) [2025-03-21 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730379', 'tblTempUsageDetail_20' ) start [2025-03-21 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730379', 'tblTempUsageDetail_20' ) end [2025-03-21 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:07:26] Production.INFO: ==804== Releasing lock... [2025-03-21 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:07:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:08:06 [end_date_ymd] => 2025-03-21 13:08:06 [RateCDR] => 1 ) [2025-03-21 13: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-21 10:08:06' and `end` < '2025-03-21 13: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-21 13:08:19] Production.INFO: count ==5122 [2025-03-21 13:08:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:08:06 - End Time 2025-03-21 13:08:06 [2025-03-21 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730384', 'tblTempUsageDetail_20' ) start [2025-03-21 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730384', 'tblTempUsageDetail_20' ) end [2025-03-21 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730384', 'tblTempVendorCDR_20' ) start [2025-03-21 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730384', 'tblTempVendorCDR_20' ) end [2025-03-21 13:08:22] Production.INFO: ProcessCDR(1,14730384,1,1,2) [2025-03-21 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730384', 'tblTempUsageDetail_20' ) start [2025-03-21 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730384', 'tblTempUsageDetail_20' ) end [2025-03-21 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:08:27] Production.INFO: ==877== Releasing lock... [2025-03-21 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:08:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:09:05 [end_date_ymd] => 2025-03-21 13:09:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:09:05' and `end` < '2025-03-21 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-21 13:09:19] Production.INFO: count ==5135 [2025-03-21 13:09:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:09:05 - End Time 2025-03-21 13:09:05 [2025-03-21 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730389', 'tblTempUsageDetail_20' ) start [2025-03-21 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730389', 'tblTempUsageDetail_20' ) end [2025-03-21 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730389', 'tblTempVendorCDR_20' ) start [2025-03-21 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730389', 'tblTempVendorCDR_20' ) end [2025-03-21 13:09:21] Production.INFO: ProcessCDR(1,14730389,1,1,2) [2025-03-21 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730389', 'tblTempUsageDetail_20' ) start [2025-03-21 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730389', 'tblTempUsageDetail_20' ) end [2025-03-21 13:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:09:27] Production.INFO: ==948== Releasing lock... [2025-03-21 13:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:09:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:10:07 [end_date_ymd] => 2025-03-21 13:10:07 [RateCDR] => 1 ) [2025-03-21 13: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-21 10:10:07' and `end` < '2025-03-21 13: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-21 13:10:20] Production.INFO: count ==5093 [2025-03-21 13:10:22] Production.ERROR: pbx CDR StartTime 2025-03-21 10:10:07 - End Time 2025-03-21 13:10:07 [2025-03-21 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730395', 'tblTempUsageDetail_20' ) start [2025-03-21 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730395', 'tblTempUsageDetail_20' ) end [2025-03-21 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730395', 'tblTempVendorCDR_20' ) start [2025-03-21 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730395', 'tblTempVendorCDR_20' ) end [2025-03-21 13:10:22] Production.INFO: ProcessCDR(1,14730395,1,1,2) [2025-03-21 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730395', 'tblTempUsageDetail_20' ) start [2025-03-21 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730395', 'tblTempUsageDetail_20' ) end [2025-03-21 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:10:28] Production.INFO: ==1031== Releasing lock... [2025-03-21 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:10:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:11:05 [end_date_ymd] => 2025-03-21 13:11:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:11:05' and `end` < '2025-03-21 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-21 13:11:18] Production.INFO: count ==5134 [2025-03-21 13:11:20] Production.ERROR: pbx CDR StartTime 2025-03-21 10:11:05 - End Time 2025-03-21 13:11:05 [2025-03-21 13:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730400', 'tblTempUsageDetail_20' ) start [2025-03-21 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730400', 'tblTempUsageDetail_20' ) end [2025-03-21 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730400', 'tblTempVendorCDR_20' ) start [2025-03-21 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730400', 'tblTempVendorCDR_20' ) end [2025-03-21 13:11:20] Production.INFO: ProcessCDR(1,14730400,1,1,2) [2025-03-21 13:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730400', 'tblTempUsageDetail_20' ) start [2025-03-21 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730400', 'tblTempUsageDetail_20' ) end [2025-03-21 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:11:26] Production.INFO: ==1104== Releasing lock... [2025-03-21 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:11:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:12:06 [end_date_ymd] => 2025-03-21 13:12:06 [RateCDR] => 1 ) [2025-03-21 13: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-21 10:12:06' and `end` < '2025-03-21 13: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-21 13:12:20] Production.INFO: count ==5135 [2025-03-21 13:12:22] Production.ERROR: pbx CDR StartTime 2025-03-21 10:12:06 - End Time 2025-03-21 13:12:06 [2025-03-21 13:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730405', 'tblTempUsageDetail_20' ) start [2025-03-21 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730405', 'tblTempUsageDetail_20' ) end [2025-03-21 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730405', 'tblTempVendorCDR_20' ) start [2025-03-21 13:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730405', 'tblTempVendorCDR_20' ) end [2025-03-21 13:12:22] Production.INFO: ProcessCDR(1,14730405,1,1,2) [2025-03-21 13:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730405', 'tblTempUsageDetail_20' ) start [2025-03-21 13:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730405', 'tblTempUsageDetail_20' ) end [2025-03-21 13:12:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:12:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:12:28] Production.INFO: ==1183== Releasing lock... [2025-03-21 13:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:12:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:13:05 [end_date_ymd] => 2025-03-21 13:13:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:13:05' and `end` < '2025-03-21 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-21 13:13:18] Production.INFO: count ==5143 [2025-03-21 13:13:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:13:05 - End Time 2025-03-21 13:13:05 [2025-03-21 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730410', 'tblTempUsageDetail_20' ) start [2025-03-21 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730410', 'tblTempUsageDetail_20' ) end [2025-03-21 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730410', 'tblTempVendorCDR_20' ) start [2025-03-21 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730410', 'tblTempVendorCDR_20' ) end [2025-03-21 13:13:21] Production.INFO: ProcessCDR(1,14730410,1,1,2) [2025-03-21 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730410', 'tblTempUsageDetail_20' ) start [2025-03-21 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730410', 'tblTempUsageDetail_20' ) end [2025-03-21 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:13:26] Production.INFO: ==1273== Releasing lock... [2025-03-21 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:13:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:14:06 [end_date_ymd] => 2025-03-21 13:14:06 [RateCDR] => 1 ) [2025-03-21 13:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:14:06' and `end` < '2025-03-21 13:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:14:19] Production.INFO: count ==5137 [2025-03-21 13:14:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:14:06 - End Time 2025-03-21 13:14:06 [2025-03-21 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730415', 'tblTempUsageDetail_20' ) start [2025-03-21 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730415', 'tblTempUsageDetail_20' ) end [2025-03-21 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730415', 'tblTempVendorCDR_20' ) start [2025-03-21 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730415', 'tblTempVendorCDR_20' ) end [2025-03-21 13:14:21] Production.INFO: ProcessCDR(1,14730415,1,1,2) [2025-03-21 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730415', 'tblTempUsageDetail_20' ) start [2025-03-21 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730415', 'tblTempUsageDetail_20' ) end [2025-03-21 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:14:27] Production.INFO: ==1344== Releasing lock... [2025-03-21 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:14:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:15:05 [end_date_ymd] => 2025-03-21 13:15:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:15:05' and `end` < '2025-03-21 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-21 13:15:18] Production.INFO: count ==5149 [2025-03-21 13:15:20] Production.ERROR: pbx CDR StartTime 2025-03-21 10:15:05 - End Time 2025-03-21 13:15:05 [2025-03-21 13:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730420', 'tblTempUsageDetail_20' ) start [2025-03-21 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730420', 'tblTempUsageDetail_20' ) end [2025-03-21 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730420', 'tblTempVendorCDR_20' ) start [2025-03-21 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730420', 'tblTempVendorCDR_20' ) end [2025-03-21 13:15:20] Production.INFO: ProcessCDR(1,14730420,1,1,2) [2025-03-21 13:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730420', 'tblTempUsageDetail_20' ) start [2025-03-21 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730420', 'tblTempUsageDetail_20' ) end [2025-03-21 13:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:15:26] Production.INFO: ==1420== Releasing lock... [2025-03-21 13:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:15:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:16:06 [end_date_ymd] => 2025-03-21 13:16:06 [RateCDR] => 1 ) [2025-03-21 13: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-21 10:16:06' and `end` < '2025-03-21 13: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-21 13:16:19] Production.INFO: count ==5139 [2025-03-21 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:16:06 - End Time 2025-03-21 13:16:06 [2025-03-21 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730425', 'tblTempUsageDetail_20' ) start [2025-03-21 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730425', 'tblTempUsageDetail_20' ) end [2025-03-21 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730425', 'tblTempVendorCDR_20' ) start [2025-03-21 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730425', 'tblTempVendorCDR_20' ) end [2025-03-21 13:16:21] Production.INFO: ProcessCDR(1,14730425,1,1,2) [2025-03-21 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730425', 'tblTempUsageDetail_20' ) start [2025-03-21 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730425', 'tblTempUsageDetail_20' ) end [2025-03-21 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:16:27] Production.INFO: ==1551== Releasing lock... [2025-03-21 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:16:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:17:05 [end_date_ymd] => 2025-03-21 13:17:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:17:05' and `end` < '2025-03-21 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-21 13:17:18] Production.INFO: count ==5128 [2025-03-21 13:17:20] Production.ERROR: pbx CDR StartTime 2025-03-21 10:17:05 - End Time 2025-03-21 13:17:05 [2025-03-21 13:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730430', 'tblTempUsageDetail_20' ) start [2025-03-21 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730430', 'tblTempUsageDetail_20' ) end [2025-03-21 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730430', 'tblTempVendorCDR_20' ) start [2025-03-21 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730430', 'tblTempVendorCDR_20' ) end [2025-03-21 13:17:20] Production.INFO: ProcessCDR(1,14730430,1,1,2) [2025-03-21 13:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730430', 'tblTempUsageDetail_20' ) start [2025-03-21 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730430', 'tblTempUsageDetail_20' ) end [2025-03-21 13:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:17:26] Production.INFO: ==1629== Releasing lock... [2025-03-21 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:17:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:18:06 [end_date_ymd] => 2025-03-21 13:18:06 [RateCDR] => 1 ) [2025-03-21 13: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-21 10:18:06' and `end` < '2025-03-21 13: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-21 13:18:19] Production.INFO: count ==5141 [2025-03-21 13:18:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:18:06 - End Time 2025-03-21 13:18:06 [2025-03-21 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730435', 'tblTempUsageDetail_20' ) start [2025-03-21 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730435', 'tblTempUsageDetail_20' ) end [2025-03-21 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730435', 'tblTempVendorCDR_20' ) start [2025-03-21 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730435', 'tblTempVendorCDR_20' ) end [2025-03-21 13:18:21] Production.INFO: ProcessCDR(1,14730435,1,1,2) [2025-03-21 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730435', 'tblTempUsageDetail_20' ) start [2025-03-21 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730435', 'tblTempUsageDetail_20' ) end [2025-03-21 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:18:27] Production.INFO: ==1750== Releasing lock... [2025-03-21 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:18:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:19:05 [end_date_ymd] => 2025-03-21 13:19:05 [RateCDR] => 1 ) [2025-03-21 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:19:05' and `end` < '2025-03-21 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:19:18] Production.INFO: count ==5137 [2025-03-21 13:19:20] Production.ERROR: pbx CDR StartTime 2025-03-21 10:19:05 - End Time 2025-03-21 13:19:05 [2025-03-21 13:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730440', 'tblTempUsageDetail_20' ) start [2025-03-21 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730440', 'tblTempUsageDetail_20' ) end [2025-03-21 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730440', 'tblTempVendorCDR_20' ) start [2025-03-21 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730440', 'tblTempVendorCDR_20' ) end [2025-03-21 13:19:21] Production.INFO: ProcessCDR(1,14730440,1,1,2) [2025-03-21 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730440', 'tblTempUsageDetail_20' ) start [2025-03-21 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730440', 'tblTempUsageDetail_20' ) end [2025-03-21 13:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:19:27] Production.INFO: ==1827== Releasing lock... [2025-03-21 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:19:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:20:07 [end_date_ymd] => 2025-03-21 13:20:07 [RateCDR] => 1 ) [2025-03-21 13: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-21 10:20:07' and `end` < '2025-03-21 13: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-21 13:20:20] Production.INFO: count ==5114 [2025-03-21 13:20:23] Production.ERROR: pbx CDR StartTime 2025-03-21 10:20:07 - End Time 2025-03-21 13:20:07 [2025-03-21 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730446', 'tblTempUsageDetail_20' ) start [2025-03-21 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730446', 'tblTempUsageDetail_20' ) end [2025-03-21 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730446', 'tblTempVendorCDR_20' ) start [2025-03-21 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730446', 'tblTempVendorCDR_20' ) end [2025-03-21 13:20:23] Production.INFO: ProcessCDR(1,14730446,1,1,2) [2025-03-21 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730446', 'tblTempUsageDetail_20' ) start [2025-03-21 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730446', 'tblTempUsageDetail_20' ) end [2025-03-21 13:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:20:28] Production.INFO: ==1909== Releasing lock... [2025-03-21 13:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:20:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:21:05 [end_date_ymd] => 2025-03-21 13:21:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:21:05' and `end` < '2025-03-21 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-21 13:21:18] Production.INFO: count ==5111 [2025-03-21 13:21:20] Production.ERROR: pbx CDR StartTime 2025-03-21 10:21:05 - End Time 2025-03-21 13:21:05 [2025-03-21 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730451', 'tblTempUsageDetail_20' ) start [2025-03-21 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730451', 'tblTempUsageDetail_20' ) end [2025-03-21 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730451', 'tblTempVendorCDR_20' ) start [2025-03-21 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730451', 'tblTempVendorCDR_20' ) end [2025-03-21 13:21:21] Production.INFO: ProcessCDR(1,14730451,1,1,2) [2025-03-21 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730451', 'tblTempUsageDetail_20' ) start [2025-03-21 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730451', 'tblTempUsageDetail_20' ) end [2025-03-21 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:21:26] Production.INFO: ==1983== Releasing lock... [2025-03-21 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:21:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:22:05 [end_date_ymd] => 2025-03-21 13:22:05 [RateCDR] => 1 ) [2025-03-21 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:22:05' and `end` < '2025-03-21 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:22:19] Production.INFO: count ==5105 [2025-03-21 13:22:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:22:05 - End Time 2025-03-21 13:22:05 [2025-03-21 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730456', 'tblTempUsageDetail_20' ) start [2025-03-21 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730456', 'tblTempUsageDetail_20' ) end [2025-03-21 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730456', 'tblTempVendorCDR_20' ) start [2025-03-21 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730456', 'tblTempVendorCDR_20' ) end [2025-03-21 13:22:21] Production.INFO: ProcessCDR(1,14730456,1,1,2) [2025-03-21 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730456', 'tblTempUsageDetail_20' ) start [2025-03-21 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730456', 'tblTempUsageDetail_20' ) end [2025-03-21 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:22:27] Production.INFO: ==2060== Releasing lock... [2025-03-21 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:22:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:23:05 [end_date_ymd] => 2025-03-21 13:23:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:23:05' and `end` < '2025-03-21 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-21 13:23:18] Production.INFO: count ==5096 [2025-03-21 13:23:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:23:05 - End Time 2025-03-21 13:23:05 [2025-03-21 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730461', 'tblTempUsageDetail_20' ) start [2025-03-21 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730461', 'tblTempUsageDetail_20' ) end [2025-03-21 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730461', 'tblTempVendorCDR_20' ) start [2025-03-21 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730461', 'tblTempVendorCDR_20' ) end [2025-03-21 13:23:21] Production.INFO: ProcessCDR(1,14730461,1,1,2) [2025-03-21 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730461', 'tblTempUsageDetail_20' ) start [2025-03-21 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730461', 'tblTempUsageDetail_20' ) end [2025-03-21 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:23:27] Production.INFO: ==2136== Releasing lock... [2025-03-21 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:23:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:24:06 [end_date_ymd] => 2025-03-21 13:24:06 [RateCDR] => 1 ) [2025-03-21 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-21 10:24:06' and `end` < '2025-03-21 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-21 13:24:20] Production.INFO: count ==5090 [2025-03-21 13:24:22] Production.ERROR: pbx CDR StartTime 2025-03-21 10:24:06 - End Time 2025-03-21 13:24:06 [2025-03-21 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730466', 'tblTempUsageDetail_20' ) start [2025-03-21 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730466', 'tblTempUsageDetail_20' ) end [2025-03-21 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730466', 'tblTempVendorCDR_20' ) start [2025-03-21 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730466', 'tblTempVendorCDR_20' ) end [2025-03-21 13:24:22] Production.INFO: ProcessCDR(1,14730466,1,1,2) [2025-03-21 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730466', 'tblTempUsageDetail_20' ) start [2025-03-21 13:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730466', 'tblTempUsageDetail_20' ) end [2025-03-21 13:24:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:24:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:24:28] Production.INFO: ==2211== Releasing lock... [2025-03-21 13:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:24:28] Production.INFO: 66 MB #Memory Used# [2025-03-21 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:25:05 [end_date_ymd] => 2025-03-21 13:25:05 [RateCDR] => 1 ) [2025-03-21 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:25:05' and `end` < '2025-03-21 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:25:18] Production.INFO: count ==5101 [2025-03-21 13:25:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:25:05 - End Time 2025-03-21 13:25:05 [2025-03-21 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730471', 'tblTempUsageDetail_20' ) start [2025-03-21 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730471', 'tblTempUsageDetail_20' ) end [2025-03-21 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730471', 'tblTempVendorCDR_20' ) start [2025-03-21 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730471', 'tblTempVendorCDR_20' ) end [2025-03-21 13:25:21] Production.INFO: ProcessCDR(1,14730471,1,1,2) [2025-03-21 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730471', 'tblTempUsageDetail_20' ) start [2025-03-21 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730471', 'tblTempUsageDetail_20' ) end [2025-03-21 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:25:26] Production.INFO: ==2283== Releasing lock... [2025-03-21 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:25:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:26:05 [end_date_ymd] => 2025-03-21 13:26:05 [RateCDR] => 1 ) [2025-03-21 13: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-21 10:26:05' and `end` < '2025-03-21 13: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-21 13:26:18] Production.INFO: count ==5094 [2025-03-21 13:26:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:26:05 - End Time 2025-03-21 13:26:05 [2025-03-21 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730476', 'tblTempUsageDetail_20' ) start [2025-03-21 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730476', 'tblTempUsageDetail_20' ) end [2025-03-21 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730476', 'tblTempVendorCDR_20' ) start [2025-03-21 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730476', 'tblTempVendorCDR_20' ) end [2025-03-21 13:26:21] Production.INFO: ProcessCDR(1,14730476,1,1,2) [2025-03-21 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730476', 'tblTempUsageDetail_20' ) start [2025-03-21 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730476', 'tblTempUsageDetail_20' ) end [2025-03-21 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:26:26] Production.INFO: ==2357== Releasing lock... [2025-03-21 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:26:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:27:05 [end_date_ymd] => 2025-03-21 13:27:05 [RateCDR] => 1 ) [2025-03-21 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:27:05' and `end` < '2025-03-21 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:27:19] Production.INFO: count ==5102 [2025-03-21 13:27:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:27:05 - End Time 2025-03-21 13:27:05 [2025-03-21 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730481', 'tblTempUsageDetail_20' ) start [2025-03-21 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730481', 'tblTempUsageDetail_20' ) end [2025-03-21 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730481', 'tblTempVendorCDR_20' ) start [2025-03-21 13:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730481', 'tblTempVendorCDR_20' ) end [2025-03-21 13:27:22] Production.INFO: ProcessCDR(1,14730481,1,1,2) [2025-03-21 13:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730481', 'tblTempUsageDetail_20' ) start [2025-03-21 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730481', 'tblTempUsageDetail_20' ) end [2025-03-21 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:27:27] Production.INFO: ==2427== Releasing lock... [2025-03-21 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:27:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:28:05 [end_date_ymd] => 2025-03-21 13:28:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:28:05' and `end` < '2025-03-21 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-21 13:28:19] Production.INFO: count ==5085 [2025-03-21 13:28:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:28:05 - End Time 2025-03-21 13:28:05 [2025-03-21 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730486', 'tblTempUsageDetail_20' ) start [2025-03-21 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730486', 'tblTempUsageDetail_20' ) end [2025-03-21 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730486', 'tblTempVendorCDR_20' ) start [2025-03-21 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730486', 'tblTempVendorCDR_20' ) end [2025-03-21 13:28:21] Production.INFO: ProcessCDR(1,14730486,1,1,2) [2025-03-21 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730486', 'tblTempUsageDetail_20' ) start [2025-03-21 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730486', 'tblTempUsageDetail_20' ) end [2025-03-21 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:28:27] Production.INFO: ==2501== Releasing lock... [2025-03-21 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:28:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:29:05 [end_date_ymd] => 2025-03-21 13:29:05 [RateCDR] => 1 ) [2025-03-21 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:29:05' and `end` < '2025-03-21 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:29:18] Production.INFO: count ==5075 [2025-03-21 13:29:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:29:05 - End Time 2025-03-21 13:29:05 [2025-03-21 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730491', 'tblTempUsageDetail_20' ) start [2025-03-21 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730491', 'tblTempUsageDetail_20' ) end [2025-03-21 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730491', 'tblTempVendorCDR_20' ) start [2025-03-21 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730491', 'tblTempVendorCDR_20' ) end [2025-03-21 13:29:21] Production.INFO: ProcessCDR(1,14730491,1,1,2) [2025-03-21 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730491', 'tblTempUsageDetail_20' ) start [2025-03-21 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730491', 'tblTempUsageDetail_20' ) end [2025-03-21 13:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:29:26] Production.INFO: ==2575== Releasing lock... [2025-03-21 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:29:26] Production.INFO: 66 MB #Memory Used# [2025-03-21 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:30:06 [end_date_ymd] => 2025-03-21 13:30:06 [RateCDR] => 1 ) [2025-03-21 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-21 10:30:06' and `end` < '2025-03-21 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-21 13:30:19] Production.INFO: count ==5078 [2025-03-21 13:30:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:30:06 - End Time 2025-03-21 13:30:06 [2025-03-21 13:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730497', 'tblTempUsageDetail_20' ) start [2025-03-21 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730497', 'tblTempUsageDetail_20' ) end [2025-03-21 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730497', 'tblTempVendorCDR_20' ) start [2025-03-21 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730497', 'tblTempVendorCDR_20' ) end [2025-03-21 13:30:21] Production.INFO: ProcessCDR(1,14730497,1,1,2) [2025-03-21 13:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730497', 'tblTempUsageDetail_20' ) start [2025-03-21 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730497', 'tblTempUsageDetail_20' ) end [2025-03-21 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:30:27] Production.INFO: ==2652== Releasing lock... [2025-03-21 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:30:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:31:05 [end_date_ymd] => 2025-03-21 13:31:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:31:05' and `end` < '2025-03-21 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-21 13:31:19] Production.INFO: count ==5065 [2025-03-21 13:31:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:31:05 - End Time 2025-03-21 13:31:05 [2025-03-21 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730502', 'tblTempUsageDetail_20' ) start [2025-03-21 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730502', 'tblTempUsageDetail_20' ) end [2025-03-21 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730502', 'tblTempVendorCDR_20' ) start [2025-03-21 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730502', 'tblTempVendorCDR_20' ) end [2025-03-21 13:31:21] Production.INFO: ProcessCDR(1,14730502,1,1,2) [2025-03-21 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730502', 'tblTempUsageDetail_20' ) start [2025-03-21 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730502', 'tblTempUsageDetail_20' ) end [2025-03-21 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:31:27] Production.INFO: ==2725== Releasing lock... [2025-03-21 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:31:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:32:05 [end_date_ymd] => 2025-03-21 13:32:05 [RateCDR] => 1 ) [2025-03-21 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:32:05' and `end` < '2025-03-21 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:32:19] Production.INFO: count ==5053 [2025-03-21 13:32:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:32:05 - End Time 2025-03-21 13:32:05 [2025-03-21 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730507', 'tblTempUsageDetail_20' ) start [2025-03-21 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730507', 'tblTempUsageDetail_20' ) end [2025-03-21 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730507', 'tblTempVendorCDR_20' ) start [2025-03-21 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730507', 'tblTempVendorCDR_20' ) end [2025-03-21 13:32:21] Production.INFO: ProcessCDR(1,14730507,1,1,2) [2025-03-21 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730507', 'tblTempUsageDetail_20' ) start [2025-03-21 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730507', 'tblTempUsageDetail_20' ) end [2025-03-21 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:32:27] Production.INFO: ==2798== Releasing lock... [2025-03-21 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:32:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:33:06 [end_date_ymd] => 2025-03-21 13:33:06 [RateCDR] => 1 ) [2025-03-21 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-21 10:33:06' and `end` < '2025-03-21 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-21 13:33:19] Production.INFO: count ==5045 [2025-03-21 13:33:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:33:06 - End Time 2025-03-21 13:33:06 [2025-03-21 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730512', 'tblTempUsageDetail_20' ) start [2025-03-21 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730512', 'tblTempUsageDetail_20' ) end [2025-03-21 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730512', 'tblTempVendorCDR_20' ) start [2025-03-21 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730512', 'tblTempVendorCDR_20' ) end [2025-03-21 13:33:22] Production.INFO: ProcessCDR(1,14730512,1,1,2) [2025-03-21 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730512', 'tblTempUsageDetail_20' ) start [2025-03-21 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730512', 'tblTempUsageDetail_20' ) end [2025-03-21 13:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:33:27] Production.INFO: ==2913== Releasing lock... [2025-03-21 13:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:33:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:34:05 [end_date_ymd] => 2025-03-21 13:34:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:34:05' and `end` < '2025-03-21 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-21 13:34:18] Production.INFO: count ==5047 [2025-03-21 13:34:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:34:05 - End Time 2025-03-21 13:34:05 [2025-03-21 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730517', 'tblTempUsageDetail_20' ) start [2025-03-21 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730517', 'tblTempUsageDetail_20' ) end [2025-03-21 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730517', 'tblTempVendorCDR_20' ) start [2025-03-21 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730517', 'tblTempVendorCDR_20' ) end [2025-03-21 13:34:21] Production.INFO: ProcessCDR(1,14730517,1,1,2) [2025-03-21 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730517', 'tblTempUsageDetail_20' ) start [2025-03-21 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730517', 'tblTempUsageDetail_20' ) end [2025-03-21 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:34:26] Production.INFO: ==2986== Releasing lock... [2025-03-21 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:34:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:35:06 [end_date_ymd] => 2025-03-21 13:35:06 [RateCDR] => 1 ) [2025-03-21 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-21 10:35:06' and `end` < '2025-03-21 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-21 13:35:19] Production.INFO: count ==5053 [2025-03-21 13:35:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:35:06 - End Time 2025-03-21 13:35:06 [2025-03-21 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730522', 'tblTempUsageDetail_20' ) start [2025-03-21 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730522', 'tblTempUsageDetail_20' ) end [2025-03-21 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730522', 'tblTempVendorCDR_20' ) start [2025-03-21 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730522', 'tblTempVendorCDR_20' ) end [2025-03-21 13:35:21] Production.INFO: ProcessCDR(1,14730522,1,1,2) [2025-03-21 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730522', 'tblTempUsageDetail_20' ) start [2025-03-21 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730522', 'tblTempUsageDetail_20' ) end [2025-03-21 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:35:27] Production.INFO: ==3061== Releasing lock... [2025-03-21 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:35:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:36:06 [end_date_ymd] => 2025-03-21 13:36:06 [RateCDR] => 1 ) [2025-03-21 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-21 10:36:06' and `end` < '2025-03-21 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-21 13:36:19] Production.INFO: count ==5048 [2025-03-21 13:36:22] Production.ERROR: pbx CDR StartTime 2025-03-21 10:36:06 - End Time 2025-03-21 13:36:06 [2025-03-21 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730527', 'tblTempUsageDetail_20' ) start [2025-03-21 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730527', 'tblTempUsageDetail_20' ) end [2025-03-21 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730527', 'tblTempVendorCDR_20' ) start [2025-03-21 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730527', 'tblTempVendorCDR_20' ) end [2025-03-21 13:36:22] Production.INFO: ProcessCDR(1,14730527,1,1,2) [2025-03-21 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730527', 'tblTempUsageDetail_20' ) start [2025-03-21 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730527', 'tblTempUsageDetail_20' ) end [2025-03-21 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:36:27] Production.INFO: ==3131== Releasing lock... [2025-03-21 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:36:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:37:06 [end_date_ymd] => 2025-03-21 13:37:06 [RateCDR] => 1 ) [2025-03-21 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-21 10:37:06' and `end` < '2025-03-21 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-21 13:37:19] Production.INFO: count ==5067 [2025-03-21 13:37:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:37:06 - End Time 2025-03-21 13:37:06 [2025-03-21 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730532', 'tblTempUsageDetail_20' ) start [2025-03-21 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730532', 'tblTempUsageDetail_20' ) end [2025-03-21 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730532', 'tblTempVendorCDR_20' ) start [2025-03-21 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730532', 'tblTempVendorCDR_20' ) end [2025-03-21 13:37:21] Production.INFO: ProcessCDR(1,14730532,1,1,2) [2025-03-21 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730532', 'tblTempUsageDetail_20' ) start [2025-03-21 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730532', 'tblTempUsageDetail_20' ) end [2025-03-21 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:37:26] Production.INFO: ==3204== Releasing lock... [2025-03-21 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:37:26] Production.INFO: 66 MB #Memory Used# [2025-03-21 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:38:05 [end_date_ymd] => 2025-03-21 13:38:05 [RateCDR] => 1 ) [2025-03-21 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:38:05' and `end` < '2025-03-21 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:38:18] Production.INFO: count ==5081 [2025-03-21 13:38:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:38:05 - End Time 2025-03-21 13:38:05 [2025-03-21 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730537', 'tblTempUsageDetail_20' ) start [2025-03-21 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730537', 'tblTempUsageDetail_20' ) end [2025-03-21 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730537', 'tblTempVendorCDR_20' ) start [2025-03-21 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730537', 'tblTempVendorCDR_20' ) end [2025-03-21 13:38:21] Production.INFO: ProcessCDR(1,14730537,1,1,2) [2025-03-21 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730537', 'tblTempUsageDetail_20' ) start [2025-03-21 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730537', 'tblTempUsageDetail_20' ) end [2025-03-21 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:38:26] Production.INFO: ==3278== Releasing lock... [2025-03-21 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:38:26] Production.INFO: 66 MB #Memory Used# [2025-03-21 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:39:06 [end_date_ymd] => 2025-03-21 13:39:06 [RateCDR] => 1 ) [2025-03-21 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-21 10:39:06' and `end` < '2025-03-21 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-21 13:39:19] Production.INFO: count ==5064 [2025-03-21 13:39:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:39:06 - End Time 2025-03-21 13:39:06 [2025-03-21 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730542', 'tblTempUsageDetail_20' ) start [2025-03-21 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730542', 'tblTempUsageDetail_20' ) end [2025-03-21 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730542', 'tblTempVendorCDR_20' ) start [2025-03-21 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730542', 'tblTempVendorCDR_20' ) end [2025-03-21 13:39:21] Production.INFO: ProcessCDR(1,14730542,1,1,2) [2025-03-21 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730542', 'tblTempUsageDetail_20' ) start [2025-03-21 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730542', 'tblTempUsageDetail_20' ) end [2025-03-21 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:39:26] Production.INFO: ==3351== Releasing lock... [2025-03-21 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:39:26] Production.INFO: 66 MB #Memory Used# [2025-03-21 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:40:06 [end_date_ymd] => 2025-03-21 13:40:06 [RateCDR] => 1 ) [2025-03-21 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:40:06' and `end` < '2025-03-21 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:40:20] Production.INFO: count ==5047 [2025-03-21 13:40:22] Production.ERROR: pbx CDR StartTime 2025-03-21 10:40:06 - End Time 2025-03-21 13:40:06 [2025-03-21 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730548', 'tblTempUsageDetail_20' ) start [2025-03-21 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730548', 'tblTempUsageDetail_20' ) end [2025-03-21 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730548', 'tblTempVendorCDR_20' ) start [2025-03-21 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730548', 'tblTempVendorCDR_20' ) end [2025-03-21 13:40:22] Production.INFO: ProcessCDR(1,14730548,1,1,2) [2025-03-21 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730548', 'tblTempUsageDetail_20' ) start [2025-03-21 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730548', 'tblTempUsageDetail_20' ) end [2025-03-21 13:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:40:27] Production.INFO: ==3424== Releasing lock... [2025-03-21 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:40:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:41:06 [end_date_ymd] => 2025-03-21 13:41:06 [RateCDR] => 1 ) [2025-03-21 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-21 10:41:06' and `end` < '2025-03-21 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-21 13:41:19] Production.INFO: count ==5025 [2025-03-21 13:41:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:41:06 - End Time 2025-03-21 13:41:06 [2025-03-21 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730553', 'tblTempUsageDetail_20' ) start [2025-03-21 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730553', 'tblTempUsageDetail_20' ) end [2025-03-21 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730553', 'tblTempVendorCDR_20' ) start [2025-03-21 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730553', 'tblTempVendorCDR_20' ) end [2025-03-21 13:41:21] Production.INFO: ProcessCDR(1,14730553,1,1,2) [2025-03-21 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730553', 'tblTempUsageDetail_20' ) start [2025-03-21 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730553', 'tblTempUsageDetail_20' ) end [2025-03-21 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:41:27] Production.INFO: ==3500== Releasing lock... [2025-03-21 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:41:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:42:06 [end_date_ymd] => 2025-03-21 13:42:06 [RateCDR] => 1 ) [2025-03-21 13: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-21 10:42:06' and `end` < '2025-03-21 13: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-21 13:42:19] Production.INFO: count ==5067 [2025-03-21 13:42:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:42:06 - End Time 2025-03-21 13:42:06 [2025-03-21 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730558', 'tblTempUsageDetail_20' ) start [2025-03-21 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730558', 'tblTempUsageDetail_20' ) end [2025-03-21 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730558', 'tblTempVendorCDR_20' ) start [2025-03-21 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730558', 'tblTempVendorCDR_20' ) end [2025-03-21 13:42:21] Production.INFO: ProcessCDR(1,14730558,1,1,2) [2025-03-21 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730558', 'tblTempUsageDetail_20' ) start [2025-03-21 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730558', 'tblTempUsageDetail_20' ) end [2025-03-21 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:42:27] Production.INFO: ==3575== Releasing lock... [2025-03-21 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:42:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:43:05 [end_date_ymd] => 2025-03-21 13:43:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:43:05' and `end` < '2025-03-21 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-21 13:43:19] Production.INFO: count ==5066 [2025-03-21 13:43:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:43:05 - End Time 2025-03-21 13:43:05 [2025-03-21 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730563', 'tblTempUsageDetail_20' ) start [2025-03-21 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730563', 'tblTempUsageDetail_20' ) end [2025-03-21 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730563', 'tblTempVendorCDR_20' ) start [2025-03-21 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730563', 'tblTempVendorCDR_20' ) end [2025-03-21 13:43:21] Production.INFO: ProcessCDR(1,14730563,1,1,2) [2025-03-21 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730563', 'tblTempUsageDetail_20' ) start [2025-03-21 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730563', 'tblTempUsageDetail_20' ) end [2025-03-21 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:43:27] Production.INFO: ==3648== Releasing lock... [2025-03-21 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:43:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:44:05 [end_date_ymd] => 2025-03-21 13:44:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:44:05' and `end` < '2025-03-21 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-21 13:44:18] Production.INFO: count ==5050 [2025-03-21 13:44:20] Production.ERROR: pbx CDR StartTime 2025-03-21 10:44:05 - End Time 2025-03-21 13:44:05 [2025-03-21 13:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730568', 'tblTempUsageDetail_20' ) start [2025-03-21 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730568', 'tblTempUsageDetail_20' ) end [2025-03-21 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730568', 'tblTempVendorCDR_20' ) start [2025-03-21 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730568', 'tblTempVendorCDR_20' ) end [2025-03-21 13:44:20] Production.INFO: ProcessCDR(1,14730568,1,1,2) [2025-03-21 13:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730568', 'tblTempUsageDetail_20' ) start [2025-03-21 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730568', 'tblTempUsageDetail_20' ) end [2025-03-21 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:44:26] Production.INFO: ==3721== Releasing lock... [2025-03-21 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:44:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:45:06 [end_date_ymd] => 2025-03-21 13:45:06 [RateCDR] => 1 ) [2025-03-21 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-21 10:45:06' and `end` < '2025-03-21 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-21 13:45:19] Production.INFO: count ==5044 [2025-03-21 13:45:22] Production.ERROR: pbx CDR StartTime 2025-03-21 10:45:06 - End Time 2025-03-21 13:45:06 [2025-03-21 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730573', 'tblTempUsageDetail_20' ) start [2025-03-21 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730573', 'tblTempUsageDetail_20' ) end [2025-03-21 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730573', 'tblTempVendorCDR_20' ) start [2025-03-21 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730573', 'tblTempVendorCDR_20' ) end [2025-03-21 13:45:22] Production.INFO: ProcessCDR(1,14730573,1,1,2) [2025-03-21 13:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730573', 'tblTempUsageDetail_20' ) start [2025-03-21 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730573', 'tblTempUsageDetail_20' ) end [2025-03-21 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:45:27] Production.INFO: ==3796== Releasing lock... [2025-03-21 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:45:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:46:05 [end_date_ymd] => 2025-03-21 13:46:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:46:05' and `end` < '2025-03-21 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-21 13:46:18] Production.INFO: count ==5039 [2025-03-21 13:46:20] Production.ERROR: pbx CDR StartTime 2025-03-21 10:46:05 - End Time 2025-03-21 13:46:05 [2025-03-21 13:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730578', 'tblTempUsageDetail_20' ) start [2025-03-21 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730578', 'tblTempUsageDetail_20' ) end [2025-03-21 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730578', 'tblTempVendorCDR_20' ) start [2025-03-21 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730578', 'tblTempVendorCDR_20' ) end [2025-03-21 13:46:20] Production.INFO: ProcessCDR(1,14730578,1,1,2) [2025-03-21 13:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730578', 'tblTempUsageDetail_20' ) start [2025-03-21 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730578', 'tblTempUsageDetail_20' ) end [2025-03-21 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:46:26] Production.INFO: ==3868== Releasing lock... [2025-03-21 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:46:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:47:06 [end_date_ymd] => 2025-03-21 13:47:06 [RateCDR] => 1 ) [2025-03-21 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-21 10:47:06' and `end` < '2025-03-21 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-21 13:47:20] Production.INFO: count ==5043 [2025-03-21 13:47:22] Production.ERROR: pbx CDR StartTime 2025-03-21 10:47:06 - End Time 2025-03-21 13:47:06 [2025-03-21 13:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730583', 'tblTempUsageDetail_20' ) start [2025-03-21 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730583', 'tblTempUsageDetail_20' ) end [2025-03-21 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730583', 'tblTempVendorCDR_20' ) start [2025-03-21 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730583', 'tblTempVendorCDR_20' ) end [2025-03-21 13:47:22] Production.INFO: ProcessCDR(1,14730583,1,1,2) [2025-03-21 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730583', 'tblTempUsageDetail_20' ) start [2025-03-21 13:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730583', 'tblTempUsageDetail_20' ) end [2025-03-21 13:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:47:28] Production.INFO: ==3942== Releasing lock... [2025-03-21 13:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:47:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:48:05 [end_date_ymd] => 2025-03-21 13:48:05 [RateCDR] => 1 ) [2025-03-21 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-21 10:48:05' and `end` < '2025-03-21 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-21 13:48:18] Production.INFO: count ==5039 [2025-03-21 13:48:20] Production.ERROR: pbx CDR StartTime 2025-03-21 10:48:05 - End Time 2025-03-21 13:48:05 [2025-03-21 13:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730588', 'tblTempUsageDetail_20' ) start [2025-03-21 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730588', 'tblTempUsageDetail_20' ) end [2025-03-21 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730588', 'tblTempVendorCDR_20' ) start [2025-03-21 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730588', 'tblTempVendorCDR_20' ) end [2025-03-21 13:48:20] Production.INFO: ProcessCDR(1,14730588,1,1,2) [2025-03-21 13:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730588', 'tblTempUsageDetail_20' ) start [2025-03-21 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730588', 'tblTempUsageDetail_20' ) end [2025-03-21 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:48:26] Production.INFO: ==4056== Releasing lock... [2025-03-21 13:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:48:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:49:06 [end_date_ymd] => 2025-03-21 13:49:06 [RateCDR] => 1 ) [2025-03-21 13: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-21 10:49:06' and `end` < '2025-03-21 13: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-21 13:49:19] Production.INFO: count ==5050 [2025-03-21 13:49:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:49:06 - End Time 2025-03-21 13:49:06 [2025-03-21 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730593', 'tblTempUsageDetail_20' ) start [2025-03-21 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730593', 'tblTempUsageDetail_20' ) end [2025-03-21 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730593', 'tblTempVendorCDR_20' ) start [2025-03-21 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730593', 'tblTempVendorCDR_20' ) end [2025-03-21 13:49:21] Production.INFO: ProcessCDR(1,14730593,1,1,2) [2025-03-21 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730593', 'tblTempUsageDetail_20' ) start [2025-03-21 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730593', 'tblTempUsageDetail_20' ) end [2025-03-21 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:49:27] Production.INFO: ==4128== Releasing lock... [2025-03-21 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:49:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:50:07 [end_date_ymd] => 2025-03-21 13:50:07 [RateCDR] => 1 ) [2025-03-21 13: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-21 10:50:07' and `end` < '2025-03-21 13: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-21 13:50:20] Production.INFO: count ==5041 [2025-03-21 13:50:22] Production.ERROR: pbx CDR StartTime 2025-03-21 10:50:07 - End Time 2025-03-21 13:50:07 [2025-03-21 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730598', 'tblTempUsageDetail_20' ) start [2025-03-21 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730598', 'tblTempUsageDetail_20' ) end [2025-03-21 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730598', 'tblTempVendorCDR_20' ) start [2025-03-21 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730598', 'tblTempVendorCDR_20' ) end [2025-03-21 13:50:22] Production.INFO: ProcessCDR(1,14730598,1,1,2) [2025-03-21 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730598', 'tblTempUsageDetail_20' ) start [2025-03-21 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730598', 'tblTempUsageDetail_20' ) end [2025-03-21 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:50:28] Production.INFO: ==4205== Releasing lock... [2025-03-21 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:50:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:51:06 [end_date_ymd] => 2025-03-21 13:51:06 [RateCDR] => 1 ) [2025-03-21 13:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:51:06' and `end` < '2025-03-21 13:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:51:19] Production.INFO: count ==5045 [2025-03-21 13:51:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:51:06 - End Time 2025-03-21 13:51:06 [2025-03-21 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730604', 'tblTempUsageDetail_20' ) start [2025-03-21 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730604', 'tblTempUsageDetail_20' ) end [2025-03-21 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730604', 'tblTempVendorCDR_20' ) start [2025-03-21 13:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730604', 'tblTempVendorCDR_20' ) end [2025-03-21 13:51:22] Production.INFO: ProcessCDR(1,14730604,1,1,2) [2025-03-21 13:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730604', 'tblTempUsageDetail_20' ) start [2025-03-21 13:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730604', 'tblTempUsageDetail_20' ) end [2025-03-21 13:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:51:27] Production.INFO: ==4279== Releasing lock... [2025-03-21 13:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:51:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:52:06 [end_date_ymd] => 2025-03-21 13:52:06 [RateCDR] => 1 ) [2025-03-21 13:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:52:06' and `end` < '2025-03-21 13:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:52:20] Production.INFO: count ==5065 [2025-03-21 13:52:22] Production.ERROR: pbx CDR StartTime 2025-03-21 10:52:06 - End Time 2025-03-21 13:52:06 [2025-03-21 13:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730609', 'tblTempUsageDetail_20' ) start [2025-03-21 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730609', 'tblTempUsageDetail_20' ) end [2025-03-21 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730609', 'tblTempVendorCDR_20' ) start [2025-03-21 13:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730609', 'tblTempVendorCDR_20' ) end [2025-03-21 13:52:22] Production.INFO: ProcessCDR(1,14730609,1,1,2) [2025-03-21 13:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730609', 'tblTempUsageDetail_20' ) start [2025-03-21 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730609', 'tblTempUsageDetail_20' ) end [2025-03-21 13:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:52:26] Production.INFO: ==4356== Releasing lock... [2025-03-21 13:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:52:26] Production.INFO: 66 MB #Memory Used# [2025-03-21 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:53:05 [end_date_ymd] => 2025-03-21 13:53:05 [RateCDR] => 1 ) [2025-03-21 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:53:05' and `end` < '2025-03-21 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:53:19] Production.INFO: count ==5068 [2025-03-21 13:53:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:53:05 - End Time 2025-03-21 13:53:05 [2025-03-21 13:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730614', 'tblTempUsageDetail_20' ) start [2025-03-21 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730614', 'tblTempUsageDetail_20' ) end [2025-03-21 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730614', 'tblTempVendorCDR_20' ) start [2025-03-21 13:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730614', 'tblTempVendorCDR_20' ) end [2025-03-21 13:53:21] Production.INFO: ProcessCDR(1,14730614,1,1,2) [2025-03-21 13:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730614', 'tblTempUsageDetail_20' ) start [2025-03-21 13:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730614', 'tblTempUsageDetail_20' ) end [2025-03-21 13:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:53:27] Production.INFO: ==4442== Releasing lock... [2025-03-21 13:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:53:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:54:06 [end_date_ymd] => 2025-03-21 13:54:06 [RateCDR] => 1 ) [2025-03-21 13:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:54:06' and `end` < '2025-03-21 13:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:54:19] Production.INFO: count ==5035 [2025-03-21 13:54:22] Production.ERROR: pbx CDR StartTime 2025-03-21 10:54:06 - End Time 2025-03-21 13:54:06 [2025-03-21 13:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730619', 'tblTempUsageDetail_20' ) start [2025-03-21 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730619', 'tblTempUsageDetail_20' ) end [2025-03-21 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730619', 'tblTempVendorCDR_20' ) start [2025-03-21 13:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730619', 'tblTempVendorCDR_20' ) end [2025-03-21 13:54:22] Production.INFO: ProcessCDR(1,14730619,1,1,2) [2025-03-21 13:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730619', 'tblTempUsageDetail_20' ) start [2025-03-21 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730619', 'tblTempUsageDetail_20' ) end [2025-03-21 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:54:28] Production.INFO: ==4527== Releasing lock... [2025-03-21 13:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:54:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:55:06 [end_date_ymd] => 2025-03-21 13:55:06 [RateCDR] => 1 ) [2025-03-21 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-21 10:55:06' and `end` < '2025-03-21 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-21 13:55:19] Production.INFO: count ==5020 [2025-03-21 13:55:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:55:06 - End Time 2025-03-21 13:55:06 [2025-03-21 13:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730624', 'tblTempUsageDetail_20' ) start [2025-03-21 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730624', 'tblTempUsageDetail_20' ) end [2025-03-21 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730624', 'tblTempVendorCDR_20' ) start [2025-03-21 13:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730624', 'tblTempVendorCDR_20' ) end [2025-03-21 13:55:21] Production.INFO: ProcessCDR(1,14730624,1,1,2) [2025-03-21 13:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730624', 'tblTempUsageDetail_20' ) start [2025-03-21 13:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730624', 'tblTempUsageDetail_20' ) end [2025-03-21 13:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:55:27] Production.INFO: ==4613== Releasing lock... [2025-03-21 13:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:55:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:56:06 [end_date_ymd] => 2025-03-21 13:56:06 [RateCDR] => 1 ) [2025-03-21 13:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:56:06' and `end` < '2025-03-21 13:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:56:19] Production.INFO: count ==4999 [2025-03-21 13:56:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:56:06 - End Time 2025-03-21 13:56:06 [2025-03-21 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730629', 'tblTempUsageDetail_20' ) start [2025-03-21 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730629', 'tblTempUsageDetail_20' ) end [2025-03-21 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730629', 'tblTempVendorCDR_20' ) start [2025-03-21 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730629', 'tblTempVendorCDR_20' ) end [2025-03-21 13:56:22] Production.INFO: ProcessCDR(1,14730629,1,1,2) [2025-03-21 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730629', 'tblTempUsageDetail_20' ) start [2025-03-21 13:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730629', 'tblTempUsageDetail_20' ) end [2025-03-21 13:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:56:28] Production.INFO: ==4686== Releasing lock... [2025-03-21 13:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:56:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:57:05 [end_date_ymd] => 2025-03-21 13:57:05 [RateCDR] => 1 ) [2025-03-21 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 10:57:05' and `end` < '2025-03-21 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 13:57:18] Production.INFO: count ==4965 [2025-03-21 13:57:20] Production.ERROR: pbx CDR StartTime 2025-03-21 10:57:05 - End Time 2025-03-21 13:57:05 [2025-03-21 13:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730634', 'tblTempUsageDetail_20' ) start [2025-03-21 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730634', 'tblTempUsageDetail_20' ) end [2025-03-21 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730634', 'tblTempVendorCDR_20' ) start [2025-03-21 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730634', 'tblTempVendorCDR_20' ) end [2025-03-21 13:57:21] Production.INFO: ProcessCDR(1,14730634,1,1,2) [2025-03-21 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730634', 'tblTempUsageDetail_20' ) start [2025-03-21 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730634', 'tblTempUsageDetail_20' ) end [2025-03-21 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:57:26] Production.INFO: ==4759== Releasing lock... [2025-03-21 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:57:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 13:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:58:06 [end_date_ymd] => 2025-03-21 13:58:06 [RateCDR] => 1 ) [2025-03-21 13: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-21 10:58:06' and `end` < '2025-03-21 13: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-21 13:58:19] Production.INFO: count ==4969 [2025-03-21 13:58:21] Production.ERROR: pbx CDR StartTime 2025-03-21 10:58:06 - End Time 2025-03-21 13:58:06 [2025-03-21 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730639', 'tblTempUsageDetail_20' ) start [2025-03-21 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730639', 'tblTempUsageDetail_20' ) end [2025-03-21 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730639', 'tblTempVendorCDR_20' ) start [2025-03-21 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730639', 'tblTempVendorCDR_20' ) end [2025-03-21 13:58:21] Production.INFO: ProcessCDR(1,14730639,1,1,2) [2025-03-21 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730639', 'tblTempUsageDetail_20' ) start [2025-03-21 13:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730639', 'tblTempUsageDetail_20' ) end [2025-03-21 13:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:58:27] Production.INFO: ==4832== Releasing lock... [2025-03-21 13:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:58:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 10:59:06 [end_date_ymd] => 2025-03-21 13:59:06 [RateCDR] => 1 ) [2025-03-21 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-21 10:59:06' and `end` < '2025-03-21 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-21 13:59:19] Production.INFO: count ==4920 [2025-03-21 13:59:22] Production.ERROR: pbx CDR StartTime 2025-03-21 10:59:06 - End Time 2025-03-21 13:59:06 [2025-03-21 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730644', 'tblTempUsageDetail_20' ) start [2025-03-21 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730644', 'tblTempUsageDetail_20' ) end [2025-03-21 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730644', 'tblTempVendorCDR_20' ) start [2025-03-21 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730644', 'tblTempVendorCDR_20' ) end [2025-03-21 13:59:22] Production.INFO: ProcessCDR(1,14730644,1,1,2) [2025-03-21 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 13:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730644', 'tblTempUsageDetail_20' ) start [2025-03-21 13:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730644', 'tblTempUsageDetail_20' ) end [2025-03-21 13:59:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 13:59:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 13:59:28] Production.INFO: ==4902== Releasing lock... [2025-03-21 13:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 13:59:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:00:06 [end_date_ymd] => 2025-03-21 14:00:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:00:06' and `end` < '2025-03-21 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-21 14:00:20] Production.INFO: count ==4874 [2025-03-21 14:00:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:00:06 - End Time 2025-03-21 14:00:06 [2025-03-21 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730650', 'tblTempUsageDetail_20' ) start [2025-03-21 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730650', 'tblTempUsageDetail_20' ) end [2025-03-21 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730650', 'tblTempVendorCDR_20' ) start [2025-03-21 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730650', 'tblTempVendorCDR_20' ) end [2025-03-21 14:00:22] Production.INFO: ProcessCDR(1,14730650,1,1,2) [2025-03-21 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730650', 'tblTempUsageDetail_20' ) start [2025-03-21 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730650', 'tblTempUsageDetail_20' ) end [2025-03-21 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:00:28] Production.INFO: ==4979== Releasing lock... [2025-03-21 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:00:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:01:05 [end_date_ymd] => 2025-03-21 14:01:05 [RateCDR] => 1 ) [2025-03-21 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 11:01:05' and `end` < '2025-03-21 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 14:01:19] Production.INFO: count ==4837 [2025-03-21 14:01:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:01:05 - End Time 2025-03-21 14:01:05 [2025-03-21 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730655', 'tblTempUsageDetail_20' ) start [2025-03-21 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730655', 'tblTempUsageDetail_20' ) end [2025-03-21 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730655', 'tblTempVendorCDR_20' ) start [2025-03-21 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730655', 'tblTempVendorCDR_20' ) end [2025-03-21 14:01:21] Production.INFO: ProcessCDR(1,14730655,1,1,2) [2025-03-21 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730655', 'tblTempUsageDetail_20' ) start [2025-03-21 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730655', 'tblTempUsageDetail_20' ) end [2025-03-21 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:01:26] Production.INFO: ==5067== Releasing lock... [2025-03-21 14:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:01:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:02:06 [end_date_ymd] => 2025-03-21 14:02:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:02:06' and `end` < '2025-03-21 14: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-21 14:02:19] Production.INFO: count ==4828 [2025-03-21 14:02:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:02:06 - End Time 2025-03-21 14:02:06 [2025-03-21 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730660', 'tblTempUsageDetail_20' ) start [2025-03-21 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730660', 'tblTempUsageDetail_20' ) end [2025-03-21 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730660', 'tblTempVendorCDR_20' ) start [2025-03-21 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730660', 'tblTempVendorCDR_20' ) end [2025-03-21 14:02:22] Production.INFO: ProcessCDR(1,14730660,1,1,2) [2025-03-21 14:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730660', 'tblTempUsageDetail_20' ) start [2025-03-21 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730660', 'tblTempUsageDetail_20' ) end [2025-03-21 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:02:27] Production.INFO: ==5141== Releasing lock... [2025-03-21 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:02:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:03:06 [end_date_ymd] => 2025-03-21 14:03:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:03:06' and `end` < '2025-03-21 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-21 14:03:19] Production.INFO: count ==4835 [2025-03-21 14:03:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:03:06 - End Time 2025-03-21 14:03:06 [2025-03-21 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730665', 'tblTempUsageDetail_20' ) start [2025-03-21 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730665', 'tblTempUsageDetail_20' ) end [2025-03-21 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730665', 'tblTempVendorCDR_20' ) start [2025-03-21 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730665', 'tblTempVendorCDR_20' ) end [2025-03-21 14:03:22] Production.INFO: ProcessCDR(1,14730665,1,1,2) [2025-03-21 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730665', 'tblTempUsageDetail_20' ) start [2025-03-21 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730665', 'tblTempUsageDetail_20' ) end [2025-03-21 14:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:03:28] Production.INFO: ==5224== Releasing lock... [2025-03-21 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:03:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:04:06 [end_date_ymd] => 2025-03-21 14:04:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:04:06' and `end` < '2025-03-21 14: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-21 14:04:19] Production.INFO: count ==4828 [2025-03-21 14:04:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:04:06 - End Time 2025-03-21 14:04:06 [2025-03-21 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730670', 'tblTempUsageDetail_20' ) start [2025-03-21 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730670', 'tblTempUsageDetail_20' ) end [2025-03-21 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730670', 'tblTempVendorCDR_20' ) start [2025-03-21 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730670', 'tblTempVendorCDR_20' ) end [2025-03-21 14:04:21] Production.INFO: ProcessCDR(1,14730670,1,1,2) [2025-03-21 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730670', 'tblTempUsageDetail_20' ) start [2025-03-21 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730670', 'tblTempUsageDetail_20' ) end [2025-03-21 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:04:27] Production.INFO: ==5364== Releasing lock... [2025-03-21 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:04:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:05:05 [end_date_ymd] => 2025-03-21 14:05:05 [RateCDR] => 1 ) [2025-03-21 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 11:05:05' and `end` < '2025-03-21 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 14:05:19] Production.INFO: count ==4821 [2025-03-21 14:05:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:05:05 - End Time 2025-03-21 14:05:05 [2025-03-21 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730675', 'tblTempUsageDetail_20' ) start [2025-03-21 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730675', 'tblTempUsageDetail_20' ) end [2025-03-21 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730675', 'tblTempVendorCDR_20' ) start [2025-03-21 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730675', 'tblTempVendorCDR_20' ) end [2025-03-21 14:05:21] Production.INFO: ProcessCDR(1,14730675,1,1,2) [2025-03-21 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730675', 'tblTempUsageDetail_20' ) start [2025-03-21 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730675', 'tblTempUsageDetail_20' ) end [2025-03-21 14:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:05:26] Production.INFO: ==5462== Releasing lock... [2025-03-21 14:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:05:26] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:06:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:06:07 [end_date_ymd] => 2025-03-21 14:06:07 [RateCDR] => 1 ) [2025-03-21 14:06: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-21 11:06:07' and `end` < '2025-03-21 14:06: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-21 14:06:20] Production.INFO: count ==4824 [2025-03-21 14:06:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:06:07 - End Time 2025-03-21 14:06:07 [2025-03-21 14:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730680', 'tblTempUsageDetail_20' ) start [2025-03-21 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730680', 'tblTempUsageDetail_20' ) end [2025-03-21 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730680', 'tblTempVendorCDR_20' ) start [2025-03-21 14:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730680', 'tblTempVendorCDR_20' ) end [2025-03-21 14:06:22] Production.INFO: ProcessCDR(1,14730680,1,1,2) [2025-03-21 14:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730680', 'tblTempUsageDetail_20' ) start [2025-03-21 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730680', 'tblTempUsageDetail_20' ) end [2025-03-21 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:06:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:06:28] Production.INFO: ==5559== Releasing lock... [2025-03-21 14:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:06:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:07:05 [end_date_ymd] => 2025-03-21 14:07:05 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:07:05' and `end` < '2025-03-21 14: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-21 14:07:18] Production.INFO: count ==4819 [2025-03-21 14:07:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:07:05 - End Time 2025-03-21 14:07:05 [2025-03-21 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730685', 'tblTempUsageDetail_20' ) start [2025-03-21 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730685', 'tblTempUsageDetail_20' ) end [2025-03-21 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730685', 'tblTempVendorCDR_20' ) start [2025-03-21 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730685', 'tblTempVendorCDR_20' ) end [2025-03-21 14:07:21] Production.INFO: ProcessCDR(1,14730685,1,1,2) [2025-03-21 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730685', 'tblTempUsageDetail_20' ) start [2025-03-21 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730685', 'tblTempUsageDetail_20' ) end [2025-03-21 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:07:27] Production.INFO: ==5660== Releasing lock... [2025-03-21 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:07:27] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:08:06 [end_date_ymd] => 2025-03-21 14:08:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:08:06' and `end` < '2025-03-21 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-21 14:08:19] Production.INFO: count ==4834 [2025-03-21 14:08:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:08:06 - End Time 2025-03-21 14:08:06 [2025-03-21 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730690', 'tblTempUsageDetail_20' ) start [2025-03-21 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730690', 'tblTempUsageDetail_20' ) end [2025-03-21 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730690', 'tblTempVendorCDR_20' ) start [2025-03-21 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730690', 'tblTempVendorCDR_20' ) end [2025-03-21 14:08:21] Production.INFO: ProcessCDR(1,14730690,1,1,2) [2025-03-21 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730690', 'tblTempUsageDetail_20' ) start [2025-03-21 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730690', 'tblTempUsageDetail_20' ) end [2025-03-21 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:08:27] Production.INFO: ==5763== Releasing lock... [2025-03-21 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:08:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:09:06 [end_date_ymd] => 2025-03-21 14:09:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:09:06' and `end` < '2025-03-21 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-21 14:09:19] Production.INFO: count ==4852 [2025-03-21 14:09:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:09:06 - End Time 2025-03-21 14:09:06 [2025-03-21 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730695', 'tblTempUsageDetail_20' ) start [2025-03-21 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730695', 'tblTempUsageDetail_20' ) end [2025-03-21 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730695', 'tblTempVendorCDR_20' ) start [2025-03-21 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730695', 'tblTempVendorCDR_20' ) end [2025-03-21 14:09:21] Production.INFO: ProcessCDR(1,14730695,1,1,2) [2025-03-21 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730695', 'tblTempUsageDetail_20' ) start [2025-03-21 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730695', 'tblTempUsageDetail_20' ) end [2025-03-21 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:09:27] Production.INFO: ==5843== Releasing lock... [2025-03-21 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:09:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:10:06 [end_date_ymd] => 2025-03-21 14:10:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:10:06' and `end` < '2025-03-21 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-21 14:10:19] Production.INFO: count ==4845 [2025-03-21 14:10:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:10:06 - End Time 2025-03-21 14:10:06 [2025-03-21 14:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730701', 'tblTempUsageDetail_20' ) start [2025-03-21 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730701', 'tblTempUsageDetail_20' ) end [2025-03-21 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730701', 'tblTempVendorCDR_20' ) start [2025-03-21 14:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730701', 'tblTempVendorCDR_20' ) end [2025-03-21 14:10:21] Production.INFO: ProcessCDR(1,14730701,1,1,2) [2025-03-21 14:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730701', 'tblTempUsageDetail_20' ) start [2025-03-21 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730701', 'tblTempUsageDetail_20' ) end [2025-03-21 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:10:27] Production.INFO: ==5920== Releasing lock... [2025-03-21 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:10:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:11:06 [end_date_ymd] => 2025-03-21 14:11:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:11:06' and `end` < '2025-03-21 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-21 14:11:19] Production.INFO: count ==4814 [2025-03-21 14:11:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:11:06 - End Time 2025-03-21 14:11:06 [2025-03-21 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730706', 'tblTempUsageDetail_20' ) start [2025-03-21 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730706', 'tblTempUsageDetail_20' ) end [2025-03-21 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730706', 'tblTempVendorCDR_20' ) start [2025-03-21 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730706', 'tblTempVendorCDR_20' ) end [2025-03-21 14:11:21] Production.INFO: ProcessCDR(1,14730706,1,1,2) [2025-03-21 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730706', 'tblTempUsageDetail_20' ) start [2025-03-21 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730706', 'tblTempUsageDetail_20' ) end [2025-03-21 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:11:26] Production.INFO: ==6003== Releasing lock... [2025-03-21 14:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:11:26] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:12:05 [end_date_ymd] => 2025-03-21 14:12:05 [RateCDR] => 1 ) [2025-03-21 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 11:12:05' and `end` < '2025-03-21 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 14:12:18] Production.INFO: count ==4812 [2025-03-21 14:12:20] Production.ERROR: pbx CDR StartTime 2025-03-21 11:12:05 - End Time 2025-03-21 14:12:05 [2025-03-21 14:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730711', 'tblTempUsageDetail_20' ) start [2025-03-21 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730711', 'tblTempUsageDetail_20' ) end [2025-03-21 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730711', 'tblTempVendorCDR_20' ) start [2025-03-21 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730711', 'tblTempVendorCDR_20' ) end [2025-03-21 14:12:21] Production.INFO: ProcessCDR(1,14730711,1,1,2) [2025-03-21 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730711', 'tblTempUsageDetail_20' ) start [2025-03-21 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730711', 'tblTempUsageDetail_20' ) end [2025-03-21 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:12:26] Production.INFO: ==6074== Releasing lock... [2025-03-21 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:12:26] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:13:05 [end_date_ymd] => 2025-03-21 14:13:05 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:13:05' and `end` < '2025-03-21 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 14:13:18] Production.INFO: count ==4803 [2025-03-21 14:13:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:13:05 - End Time 2025-03-21 14:13:05 [2025-03-21 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730716', 'tblTempUsageDetail_20' ) start [2025-03-21 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730716', 'tblTempUsageDetail_20' ) end [2025-03-21 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730716', 'tblTempVendorCDR_20' ) start [2025-03-21 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730716', 'tblTempVendorCDR_20' ) end [2025-03-21 14:13:21] Production.INFO: ProcessCDR(1,14730716,1,1,2) [2025-03-21 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730716', 'tblTempUsageDetail_20' ) start [2025-03-21 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730716', 'tblTempUsageDetail_20' ) end [2025-03-21 14:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:13:25] Production.INFO: ==6148== Releasing lock... [2025-03-21 14:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:13:25] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:14:06 [end_date_ymd] => 2025-03-21 14:14:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:14:06' and `end` < '2025-03-21 14: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-21 14:14:19] Production.INFO: count ==4805 [2025-03-21 14:14:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:14:06 - End Time 2025-03-21 14:14:06 [2025-03-21 14:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730721', 'tblTempUsageDetail_20' ) start [2025-03-21 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730721', 'tblTempUsageDetail_20' ) end [2025-03-21 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730721', 'tblTempVendorCDR_20' ) start [2025-03-21 14:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730721', 'tblTempVendorCDR_20' ) end [2025-03-21 14:14:22] Production.INFO: ProcessCDR(1,14730721,1,1,2) [2025-03-21 14:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730721', 'tblTempUsageDetail_20' ) start [2025-03-21 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730721', 'tblTempUsageDetail_20' ) end [2025-03-21 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:14:27] Production.INFO: ==6222== Releasing lock... [2025-03-21 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:14:27] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:15:06 [end_date_ymd] => 2025-03-21 14:15:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:15:06' and `end` < '2025-03-21 14: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-21 14:15:19] Production.INFO: count ==4807 [2025-03-21 14:15:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:15:06 - End Time 2025-03-21 14:15:06 [2025-03-21 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730726', 'tblTempUsageDetail_20' ) start [2025-03-21 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730726', 'tblTempUsageDetail_20' ) end [2025-03-21 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730726', 'tblTempVendorCDR_20' ) start [2025-03-21 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730726', 'tblTempVendorCDR_20' ) end [2025-03-21 14:15:21] Production.INFO: ProcessCDR(1,14730726,1,1,2) [2025-03-21 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730726', 'tblTempUsageDetail_20' ) start [2025-03-21 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730726', 'tblTempUsageDetail_20' ) end [2025-03-21 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:15:27] Production.INFO: ==6292== Releasing lock... [2025-03-21 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:15:27] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:16:05 [end_date_ymd] => 2025-03-21 14:16:05 [RateCDR] => 1 ) [2025-03-21 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-21 11:16:05' and `end` < '2025-03-21 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-21 14:16:18] Production.INFO: count ==4791 [2025-03-21 14:16:20] Production.ERROR: pbx CDR StartTime 2025-03-21 11:16:05 - End Time 2025-03-21 14:16:05 [2025-03-21 14:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730731', 'tblTempUsageDetail_20' ) start [2025-03-21 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730731', 'tblTempUsageDetail_20' ) end [2025-03-21 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730731', 'tblTempVendorCDR_20' ) start [2025-03-21 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730731', 'tblTempVendorCDR_20' ) end [2025-03-21 14:16:20] Production.INFO: ProcessCDR(1,14730731,1,1,2) [2025-03-21 14:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730731', 'tblTempUsageDetail_20' ) start [2025-03-21 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730731', 'tblTempUsageDetail_20' ) end [2025-03-21 14:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:16:25] Production.INFO: ==6367== Releasing lock... [2025-03-21 14:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:16:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-21 14:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:17:06 [end_date_ymd] => 2025-03-21 14:17:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:17:06' and `end` < '2025-03-21 14: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-21 14:17:19] Production.INFO: count ==4804 [2025-03-21 14:17:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:17:06 - End Time 2025-03-21 14:17:06 [2025-03-21 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730736', 'tblTempUsageDetail_20' ) start [2025-03-21 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730736', 'tblTempUsageDetail_20' ) end [2025-03-21 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730736', 'tblTempVendorCDR_20' ) start [2025-03-21 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730736', 'tblTempVendorCDR_20' ) end [2025-03-21 14:17:21] Production.INFO: ProcessCDR(1,14730736,1,1,2) [2025-03-21 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730736', 'tblTempUsageDetail_20' ) start [2025-03-21 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730736', 'tblTempUsageDetail_20' ) end [2025-03-21 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:17:27] Production.INFO: ==6447== Releasing lock... [2025-03-21 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:17:27] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:18:05 [end_date_ymd] => 2025-03-21 14:18:05 [RateCDR] => 1 ) [2025-03-21 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-21 11:18:05' and `end` < '2025-03-21 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-21 14:18:18] Production.INFO: count ==4797 [2025-03-21 14:18:20] Production.ERROR: pbx CDR StartTime 2025-03-21 11:18:05 - End Time 2025-03-21 14:18:05 [2025-03-21 14:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730741', 'tblTempUsageDetail_20' ) start [2025-03-21 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730741', 'tblTempUsageDetail_20' ) end [2025-03-21 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730741', 'tblTempVendorCDR_20' ) start [2025-03-21 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730741', 'tblTempVendorCDR_20' ) end [2025-03-21 14:18:21] Production.INFO: ProcessCDR(1,14730741,1,1,2) [2025-03-21 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730741', 'tblTempUsageDetail_20' ) start [2025-03-21 14:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730741', 'tblTempUsageDetail_20' ) end [2025-03-21 14:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:18:24] Production.INFO: ==6516== Releasing lock... [2025-03-21 14:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:18:24] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:19:06 [end_date_ymd] => 2025-03-21 14:19:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:19:06' and `end` < '2025-03-21 14: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-21 14:19:19] Production.INFO: count ==4805 [2025-03-21 14:19:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:19:06 - End Time 2025-03-21 14:19:06 [2025-03-21 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730746', 'tblTempUsageDetail_20' ) start [2025-03-21 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730746', 'tblTempUsageDetail_20' ) end [2025-03-21 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730746', 'tblTempVendorCDR_20' ) start [2025-03-21 14:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730746', 'tblTempVendorCDR_20' ) end [2025-03-21 14:19:22] Production.INFO: ProcessCDR(1,14730746,1,1,2) [2025-03-21 14:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730746', 'tblTempUsageDetail_20' ) start [2025-03-21 14:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730746', 'tblTempUsageDetail_20' ) end [2025-03-21 14:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:19:27] Production.INFO: ==6655== Releasing lock... [2025-03-21 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:19:27] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:20:06 [end_date_ymd] => 2025-03-21 14:20:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:20:06' and `end` < '2025-03-21 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-21 14:20:19] Production.INFO: count ==4828 [2025-03-21 14:20:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:20:06 - End Time 2025-03-21 14:20:06 [2025-03-21 14:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730752', 'tblTempUsageDetail_20' ) start [2025-03-21 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730752', 'tblTempUsageDetail_20' ) end [2025-03-21 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730752', 'tblTempVendorCDR_20' ) start [2025-03-21 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730752', 'tblTempVendorCDR_20' ) end [2025-03-21 14:20:22] Production.INFO: ProcessCDR(1,14730752,1,1,2) [2025-03-21 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730752', 'tblTempUsageDetail_20' ) start [2025-03-21 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730752', 'tblTempUsageDetail_20' ) end [2025-03-21 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:20:28] Production.INFO: ==6774== Releasing lock... [2025-03-21 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:20:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:21:06 [end_date_ymd] => 2025-03-21 14:21:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:21:06' and `end` < '2025-03-21 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-21 14:21:19] Production.INFO: count ==4838 [2025-03-21 14:21:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:21:06 - End Time 2025-03-21 14:21:06 [2025-03-21 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730757', 'tblTempUsageDetail_20' ) start [2025-03-21 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730757', 'tblTempUsageDetail_20' ) end [2025-03-21 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730757', 'tblTempVendorCDR_20' ) start [2025-03-21 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730757', 'tblTempVendorCDR_20' ) end [2025-03-21 14:21:21] Production.INFO: ProcessCDR(1,14730757,1,1,2) [2025-03-21 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730757', 'tblTempUsageDetail_20' ) start [2025-03-21 14:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730757', 'tblTempUsageDetail_20' ) end [2025-03-21 14:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:21:27] Production.INFO: ==6890== Releasing lock... [2025-03-21 14:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:21:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:22:06 [end_date_ymd] => 2025-03-21 14:22:06 [RateCDR] => 1 ) [2025-03-21 14:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 11:22:06' and `end` < '2025-03-21 14:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 14:22:19] Production.INFO: count ==4832 [2025-03-21 14:22:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:22:06 - End Time 2025-03-21 14:22:06 [2025-03-21 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730762', 'tblTempUsageDetail_20' ) start [2025-03-21 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730762', 'tblTempUsageDetail_20' ) end [2025-03-21 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730762', 'tblTempVendorCDR_20' ) start [2025-03-21 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730762', 'tblTempVendorCDR_20' ) end [2025-03-21 14:22:21] Production.INFO: ProcessCDR(1,14730762,1,1,2) [2025-03-21 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730762', 'tblTempUsageDetail_20' ) start [2025-03-21 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730762', 'tblTempUsageDetail_20' ) end [2025-03-21 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:22:27] Production.INFO: ==7000== Releasing lock... [2025-03-21 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:22:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:23:06 [end_date_ymd] => 2025-03-21 14:23:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:23:06' and `end` < '2025-03-21 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-21 14:23:19] Production.INFO: count ==4830 [2025-03-21 14:23:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:23:06 - End Time 2025-03-21 14:23:06 [2025-03-21 14:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730767', 'tblTempUsageDetail_20' ) start [2025-03-21 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730767', 'tblTempUsageDetail_20' ) end [2025-03-21 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730767', 'tblTempVendorCDR_20' ) start [2025-03-21 14:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730767', 'tblTempVendorCDR_20' ) end [2025-03-21 14:23:22] Production.INFO: ProcessCDR(1,14730767,1,1,2) [2025-03-21 14:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730767', 'tblTempUsageDetail_20' ) start [2025-03-21 14:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730767', 'tblTempUsageDetail_20' ) end [2025-03-21 14:23:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:23:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:23:28] Production.INFO: ==7117== Releasing lock... [2025-03-21 14:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:23:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:24:06 [end_date_ymd] => 2025-03-21 14:24:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:24:06' and `end` < '2025-03-21 14: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-21 14:24:19] Production.INFO: count ==4834 [2025-03-21 14:24:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:24:06 - End Time 2025-03-21 14:24:06 [2025-03-21 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730772', 'tblTempUsageDetail_20' ) start [2025-03-21 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730772', 'tblTempUsageDetail_20' ) end [2025-03-21 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730772', 'tblTempVendorCDR_20' ) start [2025-03-21 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730772', 'tblTempVendorCDR_20' ) end [2025-03-21 14:24:22] Production.INFO: ProcessCDR(1,14730772,1,1,2) [2025-03-21 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730772', 'tblTempUsageDetail_20' ) start [2025-03-21 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730772', 'tblTempUsageDetail_20' ) end [2025-03-21 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:24:27] Production.INFO: ==7232== Releasing lock... [2025-03-21 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:24:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:25:06 [end_date_ymd] => 2025-03-21 14:25:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:25:06' and `end` < '2025-03-21 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-21 14:25:19] Production.INFO: count ==4832 [2025-03-21 14:25:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:25:06 - End Time 2025-03-21 14:25:06 [2025-03-21 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730777', 'tblTempUsageDetail_20' ) start [2025-03-21 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730777', 'tblTempUsageDetail_20' ) end [2025-03-21 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730777', 'tblTempVendorCDR_20' ) start [2025-03-21 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730777', 'tblTempVendorCDR_20' ) end [2025-03-21 14:25:22] Production.INFO: ProcessCDR(1,14730777,1,1,2) [2025-03-21 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730777', 'tblTempUsageDetail_20' ) start [2025-03-21 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730777', 'tblTempUsageDetail_20' ) end [2025-03-21 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:25:27] Production.INFO: ==7347== Releasing lock... [2025-03-21 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:25:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:26:06 [end_date_ymd] => 2025-03-21 14:26:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:26:06' and `end` < '2025-03-21 14: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-21 14:26:19] Production.INFO: count ==4830 [2025-03-21 14:26:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:26:06 - End Time 2025-03-21 14:26:06 [2025-03-21 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730782', 'tblTempUsageDetail_20' ) start [2025-03-21 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730782', 'tblTempUsageDetail_20' ) end [2025-03-21 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730782', 'tblTempVendorCDR_20' ) start [2025-03-21 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730782', 'tblTempVendorCDR_20' ) end [2025-03-21 14:26:22] Production.INFO: ProcessCDR(1,14730782,1,1,2) [2025-03-21 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730782', 'tblTempUsageDetail_20' ) start [2025-03-21 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730782', 'tblTempUsageDetail_20' ) end [2025-03-21 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:26:27] Production.INFO: ==7464== Releasing lock... [2025-03-21 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:26:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:27:06 [end_date_ymd] => 2025-03-21 14:27:06 [RateCDR] => 1 ) [2025-03-21 14:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 11:27:06' and `end` < '2025-03-21 14:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 14:27:19] Production.INFO: count ==4818 [2025-03-21 14:27:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:27:06 - End Time 2025-03-21 14:27:06 [2025-03-21 14:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730787', 'tblTempUsageDetail_20' ) start [2025-03-21 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730787', 'tblTempUsageDetail_20' ) end [2025-03-21 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730787', 'tblTempVendorCDR_20' ) start [2025-03-21 14:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730787', 'tblTempVendorCDR_20' ) end [2025-03-21 14:27:22] Production.INFO: ProcessCDR(1,14730787,1,1,2) [2025-03-21 14:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730787', 'tblTempUsageDetail_20' ) start [2025-03-21 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730787', 'tblTempUsageDetail_20' ) end [2025-03-21 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:27:27] Production.INFO: ==7578== Releasing lock... [2025-03-21 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:27:27] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:28:05 [end_date_ymd] => 2025-03-21 14:28:05 [RateCDR] => 1 ) [2025-03-21 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-21 11:28:05' and `end` < '2025-03-21 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-21 14:28:19] Production.INFO: count ==4826 [2025-03-21 14:28:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:28:05 - End Time 2025-03-21 14:28:05 [2025-03-21 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730792', 'tblTempUsageDetail_20' ) start [2025-03-21 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730792', 'tblTempUsageDetail_20' ) end [2025-03-21 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730792', 'tblTempVendorCDR_20' ) start [2025-03-21 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730792', 'tblTempVendorCDR_20' ) end [2025-03-21 14:28:21] Production.INFO: ProcessCDR(1,14730792,1,1,2) [2025-03-21 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730792', 'tblTempUsageDetail_20' ) start [2025-03-21 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730792', 'tblTempUsageDetail_20' ) end [2025-03-21 14:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:28:27] Production.INFO: ==7689== Releasing lock... [2025-03-21 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:28:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:29:06 [end_date_ymd] => 2025-03-21 14:29:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:29:06' and `end` < '2025-03-21 14: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-21 14:29:20] Production.INFO: count ==4836 [2025-03-21 14:29:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:29:06 - End Time 2025-03-21 14:29:06 [2025-03-21 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730797', 'tblTempUsageDetail_20' ) start [2025-03-21 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730797', 'tblTempUsageDetail_20' ) end [2025-03-21 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730797', 'tblTempVendorCDR_20' ) start [2025-03-21 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730797', 'tblTempVendorCDR_20' ) end [2025-03-21 14:29:22] Production.INFO: ProcessCDR(1,14730797,1,1,2) [2025-03-21 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730797', 'tblTempUsageDetail_20' ) start [2025-03-21 14:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730797', 'tblTempUsageDetail_20' ) end [2025-03-21 14:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:29:28] Production.INFO: ==7807== Releasing lock... [2025-03-21 14:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:29:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:30:06 [end_date_ymd] => 2025-03-21 14:30:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:30:06' and `end` < '2025-03-21 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-21 14:30:19] Production.INFO: count ==4834 [2025-03-21 14:30:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:30:06 - End Time 2025-03-21 14:30:06 [2025-03-21 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730803', 'tblTempUsageDetail_20' ) start [2025-03-21 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730803', 'tblTempUsageDetail_20' ) end [2025-03-21 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730803', 'tblTempVendorCDR_20' ) start [2025-03-21 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730803', 'tblTempVendorCDR_20' ) end [2025-03-21 14:30:22] Production.INFO: ProcessCDR(1,14730803,1,1,2) [2025-03-21 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730803', 'tblTempUsageDetail_20' ) start [2025-03-21 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730803', 'tblTempUsageDetail_20' ) end [2025-03-21 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:30:28] Production.INFO: ==7928== Releasing lock... [2025-03-21 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:30:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:31:06 [end_date_ymd] => 2025-03-21 14:31:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:31:06' and `end` < '2025-03-21 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-21 14:31:19] Production.INFO: count ==4783 [2025-03-21 14:31:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:31:06 - End Time 2025-03-21 14:31:06 [2025-03-21 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730808', 'tblTempUsageDetail_20' ) start [2025-03-21 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730808', 'tblTempUsageDetail_20' ) end [2025-03-21 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730808', 'tblTempVendorCDR_20' ) start [2025-03-21 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730808', 'tblTempVendorCDR_20' ) end [2025-03-21 14:31:21] Production.INFO: ProcessCDR(1,14730808,1,1,2) [2025-03-21 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730808', 'tblTempUsageDetail_20' ) start [2025-03-21 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730808', 'tblTempUsageDetail_20' ) end [2025-03-21 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:31:27] Production.INFO: ==8043== Releasing lock... [2025-03-21 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:31:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-21 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:32:06 [end_date_ymd] => 2025-03-21 14:32:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:32:06' and `end` < '2025-03-21 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-21 14:32:19] Production.INFO: count ==4781 [2025-03-21 14:32:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:32:06 - End Time 2025-03-21 14:32:06 [2025-03-21 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730813', 'tblTempUsageDetail_20' ) start [2025-03-21 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730813', 'tblTempUsageDetail_20' ) end [2025-03-21 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730813', 'tblTempVendorCDR_20' ) start [2025-03-21 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730813', 'tblTempVendorCDR_20' ) end [2025-03-21 14:32:21] Production.INFO: ProcessCDR(1,14730813,1,1,2) [2025-03-21 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730813', 'tblTempUsageDetail_20' ) start [2025-03-21 14:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730813', 'tblTempUsageDetail_20' ) end [2025-03-21 14:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:32:27] Production.INFO: ==8164== Releasing lock... [2025-03-21 14:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:32:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-21 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:33:06 [end_date_ymd] => 2025-03-21 14:33:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:33:06' and `end` < '2025-03-21 14: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-21 14:33:19] Production.INFO: count ==4799 [2025-03-21 14:33:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:33:06 - End Time 2025-03-21 14:33:06 [2025-03-21 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730818', 'tblTempUsageDetail_20' ) start [2025-03-21 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730818', 'tblTempUsageDetail_20' ) end [2025-03-21 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730818', 'tblTempVendorCDR_20' ) start [2025-03-21 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730818', 'tblTempVendorCDR_20' ) end [2025-03-21 14:33:21] Production.INFO: ProcessCDR(1,14730818,1,1,2) [2025-03-21 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730818', 'tblTempUsageDetail_20' ) start [2025-03-21 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730818', 'tblTempUsageDetail_20' ) end [2025-03-21 14:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:33:27] Production.INFO: ==8291== Releasing lock... [2025-03-21 14:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:33:27] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:34:06 [end_date_ymd] => 2025-03-21 14:34:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:34:06' and `end` < '2025-03-21 14: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-21 14:34:19] Production.INFO: count ==4796 [2025-03-21 14:34:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:34:06 - End Time 2025-03-21 14:34:06 [2025-03-21 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730823', 'tblTempUsageDetail_20' ) start [2025-03-21 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730823', 'tblTempUsageDetail_20' ) end [2025-03-21 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730823', 'tblTempVendorCDR_20' ) start [2025-03-21 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730823', 'tblTempVendorCDR_20' ) end [2025-03-21 14:34:21] Production.INFO: ProcessCDR(1,14730823,1,1,2) [2025-03-21 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730823', 'tblTempUsageDetail_20' ) start [2025-03-21 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730823', 'tblTempUsageDetail_20' ) end [2025-03-21 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:34:27] Production.INFO: ==8426== Releasing lock... [2025-03-21 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:34:27] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:35:06 [end_date_ymd] => 2025-03-21 14:35:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:35:06' and `end` < '2025-03-21 14: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-21 14:35:19] Production.INFO: count ==4817 [2025-03-21 14:35:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:35:06 - End Time 2025-03-21 14:35:06 [2025-03-21 14:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730828', 'tblTempUsageDetail_20' ) start [2025-03-21 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730828', 'tblTempUsageDetail_20' ) end [2025-03-21 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730828', 'tblTempVendorCDR_20' ) start [2025-03-21 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730828', 'tblTempVendorCDR_20' ) end [2025-03-21 14:35:22] Production.INFO: ProcessCDR(1,14730828,1,1,2) [2025-03-21 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:35:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730828', 'tblTempUsageDetail_20' ) start [2025-03-21 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730828', 'tblTempUsageDetail_20' ) end [2025-03-21 14:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:35:28] Production.INFO: ==8600== Releasing lock... [2025-03-21 14:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:35:28] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:36:05 [end_date_ymd] => 2025-03-21 14:36:05 [RateCDR] => 1 ) [2025-03-21 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-21 11:36:05' and `end` < '2025-03-21 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-21 14:36:18] Production.INFO: count ==4817 [2025-03-21 14:36:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:36:05 - End Time 2025-03-21 14:36:05 [2025-03-21 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730833', 'tblTempUsageDetail_20' ) start [2025-03-21 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730833', 'tblTempUsageDetail_20' ) end [2025-03-21 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730833', 'tblTempVendorCDR_20' ) start [2025-03-21 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730833', 'tblTempVendorCDR_20' ) end [2025-03-21 14:36:21] Production.INFO: ProcessCDR(1,14730833,1,1,2) [2025-03-21 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730833', 'tblTempUsageDetail_20' ) start [2025-03-21 14:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730833', 'tblTempUsageDetail_20' ) end [2025-03-21 14:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:36:27] Production.INFO: ==8735== Releasing lock... [2025-03-21 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:36:27] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:37:06 [end_date_ymd] => 2025-03-21 14:37:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:37:06' and `end` < '2025-03-21 14: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-21 14:37:20] Production.INFO: count ==4815 [2025-03-21 14:37:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:37:06 - End Time 2025-03-21 14:37:06 [2025-03-21 14:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730838', 'tblTempUsageDetail_20' ) start [2025-03-21 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730838', 'tblTempUsageDetail_20' ) end [2025-03-21 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730838', 'tblTempVendorCDR_20' ) start [2025-03-21 14:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730838', 'tblTempVendorCDR_20' ) end [2025-03-21 14:37:22] Production.INFO: ProcessCDR(1,14730838,1,1,2) [2025-03-21 14:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730838', 'tblTempUsageDetail_20' ) start [2025-03-21 14:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730838', 'tblTempUsageDetail_20' ) end [2025-03-21 14:37:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:37:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:37:28] Production.INFO: ==8864== Releasing lock... [2025-03-21 14:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:37:28] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:38:06 [end_date_ymd] => 2025-03-21 14:38:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:38:06' and `end` < '2025-03-21 14: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-21 14:38:19] Production.INFO: count ==4814 [2025-03-21 14:38:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:38:06 - End Time 2025-03-21 14:38:06 [2025-03-21 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730843', 'tblTempUsageDetail_20' ) start [2025-03-21 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730843', 'tblTempUsageDetail_20' ) end [2025-03-21 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730843', 'tblTempVendorCDR_20' ) start [2025-03-21 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730843', 'tblTempVendorCDR_20' ) end [2025-03-21 14:38:22] Production.INFO: ProcessCDR(1,14730843,1,1,2) [2025-03-21 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730843', 'tblTempUsageDetail_20' ) start [2025-03-21 14:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730843', 'tblTempUsageDetail_20' ) end [2025-03-21 14:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:38:28] Production.INFO: ==8975== Releasing lock... [2025-03-21 14:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:38:28] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:39:05 [end_date_ymd] => 2025-03-21 14:39:05 [RateCDR] => 1 ) [2025-03-21 14:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 11:39:05' and `end` < '2025-03-21 14:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 14:39:19] Production.INFO: count ==4812 [2025-03-21 14:39:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:39:05 - End Time 2025-03-21 14:39:05 [2025-03-21 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730848', 'tblTempUsageDetail_20' ) start [2025-03-21 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730848', 'tblTempUsageDetail_20' ) end [2025-03-21 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730848', 'tblTempVendorCDR_20' ) start [2025-03-21 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730848', 'tblTempVendorCDR_20' ) end [2025-03-21 14:39:21] Production.INFO: ProcessCDR(1,14730848,1,1,2) [2025-03-21 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730848', 'tblTempUsageDetail_20' ) start [2025-03-21 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730848', 'tblTempUsageDetail_20' ) end [2025-03-21 14:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:39:27] Production.INFO: ==9081== Releasing lock... [2025-03-21 14:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:39:27] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:40:07 [end_date_ymd] => 2025-03-21 14:40:07 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:40:07' and `end` < '2025-03-21 14: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-21 14:40:20] Production.INFO: count ==4813 [2025-03-21 14:40:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:40:07 - End Time 2025-03-21 14:40:07 [2025-03-21 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730853', 'tblTempUsageDetail_20' ) start [2025-03-21 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730853', 'tblTempUsageDetail_20' ) end [2025-03-21 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730853', 'tblTempVendorCDR_20' ) start [2025-03-21 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730853', 'tblTempVendorCDR_20' ) end [2025-03-21 14:40:23] Production.INFO: ProcessCDR(1,14730853,1,1,2) [2025-03-21 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730853', 'tblTempUsageDetail_20' ) start [2025-03-21 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730853', 'tblTempUsageDetail_20' ) end [2025-03-21 14:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:40:28] Production.INFO: ==9157== Releasing lock... [2025-03-21 14:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:40:28] Production.INFO: 64 MB #Memory Used# [2025-03-21 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:41:05 [end_date_ymd] => 2025-03-21 14:41:05 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:41:05' and `end` < '2025-03-21 14: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-21 14:41:19] Production.INFO: count ==4830 [2025-03-21 14:41:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:41:05 - End Time 2025-03-21 14:41:05 [2025-03-21 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730859', 'tblTempUsageDetail_20' ) start [2025-03-21 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730859', 'tblTempUsageDetail_20' ) end [2025-03-21 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730859', 'tblTempVendorCDR_20' ) start [2025-03-21 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730859', 'tblTempVendorCDR_20' ) end [2025-03-21 14:41:21] Production.INFO: ProcessCDR(1,14730859,1,1,2) [2025-03-21 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730859', 'tblTempUsageDetail_20' ) start [2025-03-21 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730859', 'tblTempUsageDetail_20' ) end [2025-03-21 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:41:27] Production.INFO: ==9229== Releasing lock... [2025-03-21 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:41:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:42:06 [end_date_ymd] => 2025-03-21 14:42:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:42:06' and `end` < '2025-03-21 14: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-21 14:42:19] Production.INFO: count ==4893 [2025-03-21 14:42:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:42:06 - End Time 2025-03-21 14:42:06 [2025-03-21 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730864', 'tblTempUsageDetail_20' ) start [2025-03-21 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730864', 'tblTempUsageDetail_20' ) end [2025-03-21 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730864', 'tblTempVendorCDR_20' ) start [2025-03-21 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730864', 'tblTempVendorCDR_20' ) end [2025-03-21 14:42:22] Production.INFO: ProcessCDR(1,14730864,1,1,2) [2025-03-21 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730864', 'tblTempUsageDetail_20' ) start [2025-03-21 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730864', 'tblTempUsageDetail_20' ) end [2025-03-21 14:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:42:28] Production.INFO: ==9304== Releasing lock... [2025-03-21 14:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:42:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:43:05 [end_date_ymd] => 2025-03-21 14:43:05 [RateCDR] => 1 ) [2025-03-21 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-21 11:43:05' and `end` < '2025-03-21 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-21 14:43:19] Production.INFO: count ==4898 [2025-03-21 14:43:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:43:05 - End Time 2025-03-21 14:43:05 [2025-03-21 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730869', 'tblTempUsageDetail_20' ) start [2025-03-21 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730869', 'tblTempUsageDetail_20' ) end [2025-03-21 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730869', 'tblTempVendorCDR_20' ) start [2025-03-21 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730869', 'tblTempVendorCDR_20' ) end [2025-03-21 14:43:21] Production.INFO: ProcessCDR(1,14730869,1,1,2) [2025-03-21 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730869', 'tblTempUsageDetail_20' ) start [2025-03-21 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730869', 'tblTempUsageDetail_20' ) end [2025-03-21 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:43:27] Production.INFO: ==9381== Releasing lock... [2025-03-21 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:43:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:44:06 [end_date_ymd] => 2025-03-21 14:44:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:44:06' and `end` < '2025-03-21 14: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-21 14:44:20] Production.INFO: count ==4890 [2025-03-21 14:44:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:44:06 - End Time 2025-03-21 14:44:06 [2025-03-21 14:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730874', 'tblTempUsageDetail_20' ) start [2025-03-21 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730874', 'tblTempUsageDetail_20' ) end [2025-03-21 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730874', 'tblTempVendorCDR_20' ) start [2025-03-21 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730874', 'tblTempVendorCDR_20' ) end [2025-03-21 14:44:22] Production.INFO: ProcessCDR(1,14730874,1,1,2) [2025-03-21 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730874', 'tblTempUsageDetail_20' ) start [2025-03-21 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730874', 'tblTempUsageDetail_20' ) end [2025-03-21 14:44:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:44:28] Production.INFO: ==9454== Releasing lock... [2025-03-21 14:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:44:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:45:06 [end_date_ymd] => 2025-03-21 14:45:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:45:06' and `end` < '2025-03-21 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-21 14:45:19] Production.INFO: count ==4896 [2025-03-21 14:45:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:45:06 - End Time 2025-03-21 14:45:06 [2025-03-21 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730879', 'tblTempUsageDetail_20' ) start [2025-03-21 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730879', 'tblTempUsageDetail_20' ) end [2025-03-21 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730879', 'tblTempVendorCDR_20' ) start [2025-03-21 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730879', 'tblTempVendorCDR_20' ) end [2025-03-21 14:45:22] Production.INFO: ProcessCDR(1,14730879,1,1,2) [2025-03-21 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730879', 'tblTempUsageDetail_20' ) start [2025-03-21 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730879', 'tblTempUsageDetail_20' ) end [2025-03-21 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:45:27] Production.INFO: ==9530== Releasing lock... [2025-03-21 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:45:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:46:06 [end_date_ymd] => 2025-03-21 14:46:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:46:06' and `end` < '2025-03-21 14: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-21 14:46:19] Production.INFO: count ==4895 [2025-03-21 14:46:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:46:06 - End Time 2025-03-21 14:46:06 [2025-03-21 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730884', 'tblTempUsageDetail_20' ) start [2025-03-21 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730884', 'tblTempUsageDetail_20' ) end [2025-03-21 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730884', 'tblTempVendorCDR_20' ) start [2025-03-21 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730884', 'tblTempVendorCDR_20' ) end [2025-03-21 14:46:21] Production.INFO: ProcessCDR(1,14730884,1,1,2) [2025-03-21 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730884', 'tblTempUsageDetail_20' ) start [2025-03-21 14:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730884', 'tblTempUsageDetail_20' ) end [2025-03-21 14:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:46:27] Production.INFO: ==9603== Releasing lock... [2025-03-21 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:46:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:47:06 [end_date_ymd] => 2025-03-21 14:47:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:47:06' and `end` < '2025-03-21 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-21 14:47:19] Production.INFO: count ==4903 [2025-03-21 14:47:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:47:06 - End Time 2025-03-21 14:47:06 [2025-03-21 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730889', 'tblTempUsageDetail_20' ) start [2025-03-21 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730889', 'tblTempUsageDetail_20' ) end [2025-03-21 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730889', 'tblTempVendorCDR_20' ) start [2025-03-21 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730889', 'tblTempVendorCDR_20' ) end [2025-03-21 14:47:22] Production.INFO: ProcessCDR(1,14730889,1,1,2) [2025-03-21 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730889', 'tblTempUsageDetail_20' ) start [2025-03-21 14:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730889', 'tblTempUsageDetail_20' ) end [2025-03-21 14:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:47:28] Production.INFO: ==9674== Releasing lock... [2025-03-21 14:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:47:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 14:48:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:48:07 [end_date_ymd] => 2025-03-21 14:48:07 [RateCDR] => 1 ) [2025-03-21 14:48: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-21 11:48:07' and `end` < '2025-03-21 14:48: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-21 14:48:20] Production.INFO: count ==4926 [2025-03-21 14:48:23] Production.ERROR: pbx CDR StartTime 2025-03-21 11:48:07 - End Time 2025-03-21 14:48:07 [2025-03-21 14:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730894', 'tblTempUsageDetail_20' ) start [2025-03-21 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730894', 'tblTempUsageDetail_20' ) end [2025-03-21 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730894', 'tblTempVendorCDR_20' ) start [2025-03-21 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730894', 'tblTempVendorCDR_20' ) end [2025-03-21 14:48:23] Production.INFO: ProcessCDR(1,14730894,1,1,2) [2025-03-21 14:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730894', 'tblTempUsageDetail_20' ) start [2025-03-21 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730894', 'tblTempUsageDetail_20' ) end [2025-03-21 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:48:27] Production.INFO: ==9757== Releasing lock... [2025-03-21 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:48:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:49:06 [end_date_ymd] => 2025-03-21 14:49:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:49:06' and `end` < '2025-03-21 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-21 14:49:19] Production.INFO: count ==4966 [2025-03-21 14:49:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:49:06 - End Time 2025-03-21 14:49:06 [2025-03-21 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730899', 'tblTempUsageDetail_20' ) start [2025-03-21 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730899', 'tblTempUsageDetail_20' ) end [2025-03-21 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730899', 'tblTempVendorCDR_20' ) start [2025-03-21 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730899', 'tblTempVendorCDR_20' ) end [2025-03-21 14:49:22] Production.INFO: ProcessCDR(1,14730899,1,1,2) [2025-03-21 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730899', 'tblTempUsageDetail_20' ) start [2025-03-21 14:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730899', 'tblTempUsageDetail_20' ) end [2025-03-21 14:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:49:28] Production.INFO: ==9832== Releasing lock... [2025-03-21 14:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:49:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:50:06 [end_date_ymd] => 2025-03-21 14:50:06 [RateCDR] => 1 ) [2025-03-21 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-21 11:50:06' and `end` < '2025-03-21 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-21 14:50:20] Production.INFO: count ==4985 [2025-03-21 14:50:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:50:06 - End Time 2025-03-21 14:50:06 [2025-03-21 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730904', 'tblTempUsageDetail_20' ) start [2025-03-21 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730904', 'tblTempUsageDetail_20' ) end [2025-03-21 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730904', 'tblTempVendorCDR_20' ) start [2025-03-21 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730904', 'tblTempVendorCDR_20' ) end [2025-03-21 14:50:22] Production.INFO: ProcessCDR(1,14730904,1,1,2) [2025-03-21 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730904', 'tblTempUsageDetail_20' ) start [2025-03-21 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730904', 'tblTempUsageDetail_20' ) end [2025-03-21 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:50:28] Production.INFO: ==9951== Releasing lock... [2025-03-21 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:50:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:51:06 [end_date_ymd] => 2025-03-21 14:51:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:51:06' and `end` < '2025-03-21 14: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-21 14:51:19] Production.INFO: count ==4995 [2025-03-21 14:51:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:51:06 - End Time 2025-03-21 14:51:06 [2025-03-21 14:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730910', 'tblTempUsageDetail_20' ) start [2025-03-21 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730910', 'tblTempUsageDetail_20' ) end [2025-03-21 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730910', 'tblTempVendorCDR_20' ) start [2025-03-21 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730910', 'tblTempVendorCDR_20' ) end [2025-03-21 14:51:22] Production.INFO: ProcessCDR(1,14730910,1,1,2) [2025-03-21 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730910', 'tblTempUsageDetail_20' ) start [2025-03-21 14:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730910', 'tblTempUsageDetail_20' ) end [2025-03-21 14:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:51:28] Production.INFO: ==10022== Releasing lock... [2025-03-21 14:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:51:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:52:05 [end_date_ymd] => 2025-03-21 14:52:05 [RateCDR] => 1 ) [2025-03-21 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-21 11:52:05' and `end` < '2025-03-21 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-21 14:52:19] Production.INFO: count ==4985 [2025-03-21 14:52:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:52:05 - End Time 2025-03-21 14:52:05 [2025-03-21 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730915', 'tblTempUsageDetail_20' ) start [2025-03-21 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730915', 'tblTempUsageDetail_20' ) end [2025-03-21 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730915', 'tblTempVendorCDR_20' ) start [2025-03-21 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730915', 'tblTempVendorCDR_20' ) end [2025-03-21 14:52:21] Production.INFO: ProcessCDR(1,14730915,1,1,2) [2025-03-21 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730915', 'tblTempUsageDetail_20' ) start [2025-03-21 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730915', 'tblTempUsageDetail_20' ) end [2025-03-21 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:52:27] Production.INFO: ==10094== Releasing lock... [2025-03-21 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:52:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:53:06 [end_date_ymd] => 2025-03-21 14:53:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:53:06' and `end` < '2025-03-21 14: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-21 14:53:19] Production.INFO: count ==4986 [2025-03-21 14:53:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:53:06 - End Time 2025-03-21 14:53:06 [2025-03-21 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730920', 'tblTempUsageDetail_20' ) start [2025-03-21 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730920', 'tblTempUsageDetail_20' ) end [2025-03-21 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730920', 'tblTempVendorCDR_20' ) start [2025-03-21 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730920', 'tblTempVendorCDR_20' ) end [2025-03-21 14:53:22] Production.INFO: ProcessCDR(1,14730920,1,1,2) [2025-03-21 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730920', 'tblTempUsageDetail_20' ) start [2025-03-21 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730920', 'tblTempUsageDetail_20' ) end [2025-03-21 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:53:27] Production.INFO: ==10169== Releasing lock... [2025-03-21 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:53:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:54:05 [end_date_ymd] => 2025-03-21 14:54:05 [RateCDR] => 1 ) [2025-03-21 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-21 11:54:05' and `end` < '2025-03-21 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-21 14:54:19] Production.INFO: count ==4990 [2025-03-21 14:54:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:54:05 - End Time 2025-03-21 14:54:05 [2025-03-21 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730925', 'tblTempUsageDetail_20' ) start [2025-03-21 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730925', 'tblTempUsageDetail_20' ) end [2025-03-21 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730925', 'tblTempVendorCDR_20' ) start [2025-03-21 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730925', 'tblTempVendorCDR_20' ) end [2025-03-21 14:54:21] Production.INFO: ProcessCDR(1,14730925,1,1,2) [2025-03-21 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730925', 'tblTempUsageDetail_20' ) start [2025-03-21 14:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730925', 'tblTempUsageDetail_20' ) end [2025-03-21 14:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:54:27] Production.INFO: ==10240== Releasing lock... [2025-03-21 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:54:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:55:06 [end_date_ymd] => 2025-03-21 14:55:06 [RateCDR] => 1 ) [2025-03-21 14:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 11:55:06' and `end` < '2025-03-21 14:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 14:55:19] Production.INFO: count ==4985 [2025-03-21 14:55:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:55:06 - End Time 2025-03-21 14:55:06 [2025-03-21 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730930', 'tblTempUsageDetail_20' ) start [2025-03-21 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730930', 'tblTempUsageDetail_20' ) end [2025-03-21 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730930', 'tblTempVendorCDR_20' ) start [2025-03-21 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730930', 'tblTempVendorCDR_20' ) end [2025-03-21 14:55:21] Production.INFO: ProcessCDR(1,14730930,1,1,2) [2025-03-21 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730930', 'tblTempUsageDetail_20' ) start [2025-03-21 14:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730930', 'tblTempUsageDetail_20' ) end [2025-03-21 14:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:55:28] Production.INFO: ==10314== Releasing lock... [2025-03-21 14:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:55:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:56:05 [end_date_ymd] => 2025-03-21 14:56:05 [RateCDR] => 1 ) [2025-03-21 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-21 11:56:05' and `end` < '2025-03-21 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-21 14:56:19] Production.INFO: count ==4981 [2025-03-21 14:56:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:56:05 - End Time 2025-03-21 14:56:05 [2025-03-21 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730935', 'tblTempUsageDetail_20' ) start [2025-03-21 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730935', 'tblTempUsageDetail_20' ) end [2025-03-21 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730935', 'tblTempVendorCDR_20' ) start [2025-03-21 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730935', 'tblTempVendorCDR_20' ) end [2025-03-21 14:56:21] Production.INFO: ProcessCDR(1,14730935,1,1,2) [2025-03-21 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730935', 'tblTempUsageDetail_20' ) start [2025-03-21 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730935', 'tblTempUsageDetail_20' ) end [2025-03-21 14:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:56:27] Production.INFO: ==10394== Releasing lock... [2025-03-21 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:56:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:57:05 [end_date_ymd] => 2025-03-21 14:57:05 [RateCDR] => 1 ) [2025-03-21 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-21 11:57:05' and `end` < '2025-03-21 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-21 14:57:19] Production.INFO: count ==4975 [2025-03-21 14:57:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:57:05 - End Time 2025-03-21 14:57:05 [2025-03-21 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730940', 'tblTempUsageDetail_20' ) start [2025-03-21 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730940', 'tblTempUsageDetail_20' ) end [2025-03-21 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730940', 'tblTempVendorCDR_20' ) start [2025-03-21 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730940', 'tblTempVendorCDR_20' ) end [2025-03-21 14:57:21] Production.INFO: ProcessCDR(1,14730940,1,1,2) [2025-03-21 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730940', 'tblTempUsageDetail_20' ) start [2025-03-21 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730940', 'tblTempUsageDetail_20' ) end [2025-03-21 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:57:27] Production.INFO: ==10467== Releasing lock... [2025-03-21 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:57:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:58:06 [end_date_ymd] => 2025-03-21 14:58:06 [RateCDR] => 1 ) [2025-03-21 14: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-21 11:58:06' and `end` < '2025-03-21 14: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-21 14:58:19] Production.INFO: count ==4976 [2025-03-21 14:58:22] Production.ERROR: pbx CDR StartTime 2025-03-21 11:58:06 - End Time 2025-03-21 14:58:06 [2025-03-21 14:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730945', 'tblTempUsageDetail_20' ) start [2025-03-21 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730945', 'tblTempUsageDetail_20' ) end [2025-03-21 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730945', 'tblTempVendorCDR_20' ) start [2025-03-21 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730945', 'tblTempVendorCDR_20' ) end [2025-03-21 14:58:22] Production.INFO: ProcessCDR(1,14730945,1,1,2) [2025-03-21 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730945', 'tblTempUsageDetail_20' ) start [2025-03-21 14:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730945', 'tblTempUsageDetail_20' ) end [2025-03-21 14:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:58:28] Production.INFO: ==10541== Releasing lock... [2025-03-21 14:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:58:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 11:59:05 [end_date_ymd] => 2025-03-21 14:59:05 [RateCDR] => 1 ) [2025-03-21 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 11:59:05' and `end` < '2025-03-21 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 14:59:19] Production.INFO: count ==4984 [2025-03-21 14:59:21] Production.ERROR: pbx CDR StartTime 2025-03-21 11:59:05 - End Time 2025-03-21 14:59:05 [2025-03-21 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730950', 'tblTempUsageDetail_20' ) start [2025-03-21 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730950', 'tblTempUsageDetail_20' ) end [2025-03-21 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730950', 'tblTempVendorCDR_20' ) start [2025-03-21 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730950', 'tblTempVendorCDR_20' ) end [2025-03-21 14:59:21] Production.INFO: ProcessCDR(1,14730950,1,1,2) [2025-03-21 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730950', 'tblTempUsageDetail_20' ) start [2025-03-21 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730950', 'tblTempUsageDetail_20' ) end [2025-03-21 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 14:59:28] Production.INFO: ==10616== Releasing lock... [2025-03-21 14:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 14:59:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:00:07 [end_date_ymd] => 2025-03-21 15:00:07 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:00:07' and `end` < '2025-03-21 15: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-21 15:00:20] Production.INFO: count ==4997 [2025-03-21 15:00:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:00:07 - End Time 2025-03-21 15:00:07 [2025-03-21 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730956', 'tblTempUsageDetail_20' ) start [2025-03-21 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730956', 'tblTempUsageDetail_20' ) end [2025-03-21 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730956', 'tblTempVendorCDR_20' ) start [2025-03-21 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730956', 'tblTempVendorCDR_20' ) end [2025-03-21 15:00:23] Production.INFO: ProcessCDR(1,14730956,1,1,2) [2025-03-21 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730956', 'tblTempUsageDetail_20' ) start [2025-03-21 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730956', 'tblTempUsageDetail_20' ) end [2025-03-21 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:00:28] Production.INFO: ==10690== Releasing lock... [2025-03-21 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:00:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:01:06 [end_date_ymd] => 2025-03-21 15:01:06 [RateCDR] => 1 ) [2025-03-21 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-21 12:01:06' and `end` < '2025-03-21 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-21 15:01:19] Production.INFO: count ==5045 [2025-03-21 15:01:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:01:06 - End Time 2025-03-21 15:01:06 [2025-03-21 15:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730961', 'tblTempUsageDetail_20' ) start [2025-03-21 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730961', 'tblTempUsageDetail_20' ) end [2025-03-21 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730961', 'tblTempVendorCDR_20' ) start [2025-03-21 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730961', 'tblTempVendorCDR_20' ) end [2025-03-21 15:01:22] Production.INFO: ProcessCDR(1,14730961,1,1,2) [2025-03-21 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730961', 'tblTempUsageDetail_20' ) start [2025-03-21 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730961', 'tblTempUsageDetail_20' ) end [2025-03-21 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:01:27] Production.INFO: ==10816== Releasing lock... [2025-03-21 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:01:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:02:06 [end_date_ymd] => 2025-03-21 15:02:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:02:06' and `end` < '2025-03-21 15: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-21 15:02:19] Production.INFO: count ==5024 [2025-03-21 15:02:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:02:06 - End Time 2025-03-21 15:02:06 [2025-03-21 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730966', 'tblTempUsageDetail_20' ) start [2025-03-21 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730966', 'tblTempUsageDetail_20' ) end [2025-03-21 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730966', 'tblTempVendorCDR_20' ) start [2025-03-21 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730966', 'tblTempVendorCDR_20' ) end [2025-03-21 15:02:22] Production.INFO: ProcessCDR(1,14730966,1,1,2) [2025-03-21 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730966', 'tblTempUsageDetail_20' ) start [2025-03-21 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730966', 'tblTempUsageDetail_20' ) end [2025-03-21 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:02:27] Production.INFO: ==10931== Releasing lock... [2025-03-21 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:02:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:03:06 [end_date_ymd] => 2025-03-21 15:03:06 [RateCDR] => 1 ) [2025-03-21 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-21 12:03:06' and `end` < '2025-03-21 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-21 15:03:19] Production.INFO: count ==5038 [2025-03-21 15:03:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:03:06 - End Time 2025-03-21 15:03:06 [2025-03-21 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730971', 'tblTempUsageDetail_20' ) start [2025-03-21 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730971', 'tblTempUsageDetail_20' ) end [2025-03-21 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730971', 'tblTempVendorCDR_20' ) start [2025-03-21 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730971', 'tblTempVendorCDR_20' ) end [2025-03-21 15:03:21] Production.INFO: ProcessCDR(1,14730971,1,1,2) [2025-03-21 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730971', 'tblTempUsageDetail_20' ) start [2025-03-21 15:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730971', 'tblTempUsageDetail_20' ) end [2025-03-21 15:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:03:27] Production.INFO: ==11006== Releasing lock... [2025-03-21 15:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:03:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:04:05 [end_date_ymd] => 2025-03-21 15:04:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:04:05' and `end` < '2025-03-21 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-21 15:04:19] Production.INFO: count ==5057 [2025-03-21 15:04:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:04:05 - End Time 2025-03-21 15:04:05 [2025-03-21 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730976', 'tblTempUsageDetail_20' ) start [2025-03-21 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730976', 'tblTempUsageDetail_20' ) end [2025-03-21 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730976', 'tblTempVendorCDR_20' ) start [2025-03-21 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730976', 'tblTempVendorCDR_20' ) end [2025-03-21 15:04:21] Production.INFO: ProcessCDR(1,14730976,1,1,2) [2025-03-21 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730976', 'tblTempUsageDetail_20' ) start [2025-03-21 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730976', 'tblTempUsageDetail_20' ) end [2025-03-21 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:04:27] Production.INFO: ==11077== Releasing lock... [2025-03-21 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:04:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:05:05 [end_date_ymd] => 2025-03-21 15:05:05 [RateCDR] => 1 ) [2025-03-21 15:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 12:05:05' and `end` < '2025-03-21 15:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 15:05:18] Production.INFO: count ==5055 [2025-03-21 15:05:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:05:05 - End Time 2025-03-21 15:05:05 [2025-03-21 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730981', 'tblTempUsageDetail_20' ) start [2025-03-21 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730981', 'tblTempUsageDetail_20' ) end [2025-03-21 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730981', 'tblTempVendorCDR_20' ) start [2025-03-21 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730981', 'tblTempVendorCDR_20' ) end [2025-03-21 15:05:21] Production.INFO: ProcessCDR(1,14730981,1,1,2) [2025-03-21 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730981', 'tblTempUsageDetail_20' ) start [2025-03-21 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730981', 'tblTempUsageDetail_20' ) end [2025-03-21 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:05:27] Production.INFO: ==11228== Releasing lock... [2025-03-21 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:05:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:06:05 [end_date_ymd] => 2025-03-21 15:06:05 [RateCDR] => 1 ) [2025-03-21 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 12:06:05' and `end` < '2025-03-21 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-21 15:06:19] Production.INFO: count ==5061 [2025-03-21 15:06:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:06:05 - End Time 2025-03-21 15:06:05 [2025-03-21 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730986', 'tblTempUsageDetail_20' ) start [2025-03-21 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730986', 'tblTempUsageDetail_20' ) end [2025-03-21 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730986', 'tblTempVendorCDR_20' ) start [2025-03-21 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730986', 'tblTempVendorCDR_20' ) end [2025-03-21 15:06:21] Production.INFO: ProcessCDR(1,14730986,1,1,2) [2025-03-21 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730986', 'tblTempUsageDetail_20' ) start [2025-03-21 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730986', 'tblTempUsageDetail_20' ) end [2025-03-21 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:06:27] Production.INFO: ==11342== Releasing lock... [2025-03-21 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:06:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:07:05 [end_date_ymd] => 2025-03-21 15:07:05 [RateCDR] => 1 ) [2025-03-21 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 12:07:05' and `end` < '2025-03-21 15: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-21 15:07:18] Production.INFO: count ==5085 [2025-03-21 15:07:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:07:05 - End Time 2025-03-21 15:07:05 [2025-03-21 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730991', 'tblTempUsageDetail_20' ) start [2025-03-21 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730991', 'tblTempUsageDetail_20' ) end [2025-03-21 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730991', 'tblTempVendorCDR_20' ) start [2025-03-21 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730991', 'tblTempVendorCDR_20' ) end [2025-03-21 15:07:21] Production.INFO: ProcessCDR(1,14730991,1,1,2) [2025-03-21 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730991', 'tblTempUsageDetail_20' ) start [2025-03-21 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730991', 'tblTempUsageDetail_20' ) end [2025-03-21 15:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:07:26] Production.INFO: ==11416== Releasing lock... [2025-03-21 15:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:07:26] Production.INFO: 66 MB #Memory Used# [2025-03-21 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:08:06 [end_date_ymd] => 2025-03-21 15:08:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:08:06' and `end` < '2025-03-21 15: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-21 15:08:19] Production.INFO: count ==5091 [2025-03-21 15:08:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:08:06 - End Time 2025-03-21 15:08:06 [2025-03-21 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730996', 'tblTempUsageDetail_20' ) start [2025-03-21 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14730996', 'tblTempUsageDetail_20' ) end [2025-03-21 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730996', 'tblTempVendorCDR_20' ) start [2025-03-21 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14730996', 'tblTempVendorCDR_20' ) end [2025-03-21 15:08:21] Production.INFO: ProcessCDR(1,14730996,1,1,2) [2025-03-21 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14730996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14730996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14730996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14730996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730996', 'tblTempUsageDetail_20' ) start [2025-03-21 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14730996', 'tblTempUsageDetail_20' ) end [2025-03-21 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:08:27] Production.INFO: ==11568== Releasing lock... [2025-03-21 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:08:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:09:06 [end_date_ymd] => 2025-03-21 15:09:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:09:06' and `end` < '2025-03-21 15: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-21 15:09:19] Production.INFO: count ==5105 [2025-03-21 15:09:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:09:06 - End Time 2025-03-21 15:09:06 [2025-03-21 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731001', 'tblTempUsageDetail_20' ) start [2025-03-21 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731001', 'tblTempUsageDetail_20' ) end [2025-03-21 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731001', 'tblTempVendorCDR_20' ) start [2025-03-21 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731001', 'tblTempVendorCDR_20' ) end [2025-03-21 15:09:22] Production.INFO: ProcessCDR(1,14731001,1,1,2) [2025-03-21 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731001', 'tblTempUsageDetail_20' ) start [2025-03-21 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731001', 'tblTempUsageDetail_20' ) end [2025-03-21 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:09:27] Production.INFO: ==11655== Releasing lock... [2025-03-21 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:09:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:10:07 [end_date_ymd] => 2025-03-21 15:10:07 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:10:07' and `end` < '2025-03-21 15: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-21 15:10:21] Production.INFO: count ==5107 [2025-03-21 15:10:23] Production.ERROR: pbx CDR StartTime 2025-03-21 12:10:07 - End Time 2025-03-21 15:10:07 [2025-03-21 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731006', 'tblTempUsageDetail_20' ) start [2025-03-21 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731006', 'tblTempUsageDetail_20' ) end [2025-03-21 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731006', 'tblTempVendorCDR_20' ) start [2025-03-21 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731006', 'tblTempVendorCDR_20' ) end [2025-03-21 15:10:23] Production.INFO: ProcessCDR(1,14731006,1,1,2) [2025-03-21 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731006', 'tblTempUsageDetail_20' ) start [2025-03-21 15:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731006', 'tblTempUsageDetail_20' ) end [2025-03-21 15:10:30] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:10:30] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:10:30] Production.INFO: ==11749== Releasing lock... [2025-03-21 15:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:10:30] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:11:05 [end_date_ymd] => 2025-03-21 15:11:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:11:05' and `end` < '2025-03-21 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-21 15:11:19] Production.INFO: count ==5078 [2025-03-21 15:11:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:11:05 - End Time 2025-03-21 15:11:05 [2025-03-21 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731012', 'tblTempUsageDetail_20' ) start [2025-03-21 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731012', 'tblTempUsageDetail_20' ) end [2025-03-21 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731012', 'tblTempVendorCDR_20' ) start [2025-03-21 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731012', 'tblTempVendorCDR_20' ) end [2025-03-21 15:11:21] Production.INFO: ProcessCDR(1,14731012,1,1,2) [2025-03-21 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731012', 'tblTempUsageDetail_20' ) start [2025-03-21 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731012', 'tblTempUsageDetail_20' ) end [2025-03-21 15:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:11:27] Production.INFO: ==11823== Releasing lock... [2025-03-21 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:11:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:12:06 [end_date_ymd] => 2025-03-21 15:12:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:12:06' and `end` < '2025-03-21 15: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-21 15:12:19] Production.INFO: count ==5085 [2025-03-21 15:12:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:12:06 - End Time 2025-03-21 15:12:06 [2025-03-21 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731017', 'tblTempUsageDetail_20' ) start [2025-03-21 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731017', 'tblTempUsageDetail_20' ) end [2025-03-21 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731017', 'tblTempVendorCDR_20' ) start [2025-03-21 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731017', 'tblTempVendorCDR_20' ) end [2025-03-21 15:12:22] Production.INFO: ProcessCDR(1,14731017,1,1,2) [2025-03-21 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731017', 'tblTempUsageDetail_20' ) start [2025-03-21 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731017', 'tblTempUsageDetail_20' ) end [2025-03-21 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:12:27] Production.INFO: ==11974== Releasing lock... [2025-03-21 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:12:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:13:05 [end_date_ymd] => 2025-03-21 15:13:05 [RateCDR] => 1 ) [2025-03-21 15:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 12:13:05' and `end` < '2025-03-21 15:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 15:13:18] Production.INFO: count ==5070 [2025-03-21 15:13:20] Production.ERROR: pbx CDR StartTime 2025-03-21 12:13:05 - End Time 2025-03-21 15:13:05 [2025-03-21 15:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731022', 'tblTempUsageDetail_20' ) start [2025-03-21 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731022', 'tblTempUsageDetail_20' ) end [2025-03-21 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731022', 'tblTempVendorCDR_20' ) start [2025-03-21 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731022', 'tblTempVendorCDR_20' ) end [2025-03-21 15:13:21] Production.INFO: ProcessCDR(1,14731022,1,1,2) [2025-03-21 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731022', 'tblTempUsageDetail_20' ) start [2025-03-21 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731022', 'tblTempUsageDetail_20' ) end [2025-03-21 15:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:13:27] Production.INFO: ==12045== Releasing lock... [2025-03-21 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:13:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:14:06 [end_date_ymd] => 2025-03-21 15:14:06 [RateCDR] => 1 ) [2025-03-21 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-21 12:14:06' and `end` < '2025-03-21 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-21 15:14:19] Production.INFO: count ==5039 [2025-03-21 15:14:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:14:06 - End Time 2025-03-21 15:14:06 [2025-03-21 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731027', 'tblTempUsageDetail_20' ) start [2025-03-21 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731027', 'tblTempUsageDetail_20' ) end [2025-03-21 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731027', 'tblTempVendorCDR_20' ) start [2025-03-21 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731027', 'tblTempVendorCDR_20' ) end [2025-03-21 15:14:22] Production.INFO: ProcessCDR(1,14731027,1,1,2) [2025-03-21 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731027', 'tblTempUsageDetail_20' ) start [2025-03-21 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731027', 'tblTempUsageDetail_20' ) end [2025-03-21 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:14:27] Production.INFO: ==12119== Releasing lock... [2025-03-21 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:14:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:15:05 [end_date_ymd] => 2025-03-21 15:15:05 [RateCDR] => 1 ) [2025-03-21 15:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 12:15:05' and `end` < '2025-03-21 15:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 15:15:19] Production.INFO: count ==5013 [2025-03-21 15:15:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:15:05 - End Time 2025-03-21 15:15:05 [2025-03-21 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731032', 'tblTempUsageDetail_20' ) start [2025-03-21 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731032', 'tblTempUsageDetail_20' ) end [2025-03-21 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731032', 'tblTempVendorCDR_20' ) start [2025-03-21 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731032', 'tblTempVendorCDR_20' ) end [2025-03-21 15:15:21] Production.INFO: ProcessCDR(1,14731032,1,1,2) [2025-03-21 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731032', 'tblTempUsageDetail_20' ) start [2025-03-21 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731032', 'tblTempUsageDetail_20' ) end [2025-03-21 15:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:15:27] Production.INFO: ==12270== Releasing lock... [2025-03-21 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:15:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:16:06 [end_date_ymd] => 2025-03-21 15:16:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:16:06' and `end` < '2025-03-21 15: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-21 15:16:19] Production.INFO: count ==5011 [2025-03-21 15:16:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:16:06 - End Time 2025-03-21 15:16:06 [2025-03-21 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731037', 'tblTempUsageDetail_20' ) start [2025-03-21 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731037', 'tblTempUsageDetail_20' ) end [2025-03-21 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731037', 'tblTempVendorCDR_20' ) start [2025-03-21 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731037', 'tblTempVendorCDR_20' ) end [2025-03-21 15:16:22] Production.INFO: ProcessCDR(1,14731037,1,1,2) [2025-03-21 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731037', 'tblTempUsageDetail_20' ) start [2025-03-21 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731037', 'tblTempUsageDetail_20' ) end [2025-03-21 15:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:16:27] Production.INFO: ==12341== Releasing lock... [2025-03-21 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:16:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:17:05 [end_date_ymd] => 2025-03-21 15:17:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:17:05' and `end` < '2025-03-21 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-21 15:17:19] Production.INFO: count ==5013 [2025-03-21 15:17:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:17:05 - End Time 2025-03-21 15:17:05 [2025-03-21 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731042', 'tblTempUsageDetail_20' ) start [2025-03-21 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731042', 'tblTempUsageDetail_20' ) end [2025-03-21 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731042', 'tblTempVendorCDR_20' ) start [2025-03-21 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731042', 'tblTempVendorCDR_20' ) end [2025-03-21 15:17:21] Production.INFO: ProcessCDR(1,14731042,1,1,2) [2025-03-21 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731042', 'tblTempUsageDetail_20' ) start [2025-03-21 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731042', 'tblTempUsageDetail_20' ) end [2025-03-21 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:17:27] Production.INFO: ==12412== Releasing lock... [2025-03-21 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:17:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 15:18:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:18:07 [end_date_ymd] => 2025-03-21 15:18:07 [RateCDR] => 1 ) [2025-03-21 15:18: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-21 12:18:07' and `end` < '2025-03-21 15:18: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-21 15:18:20] Production.INFO: count ==5012 [2025-03-21 15:18:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:18:07 - End Time 2025-03-21 15:18:07 [2025-03-21 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731047', 'tblTempUsageDetail_20' ) start [2025-03-21 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731047', 'tblTempUsageDetail_20' ) end [2025-03-21 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731047', 'tblTempVendorCDR_20' ) start [2025-03-21 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731047', 'tblTempVendorCDR_20' ) end [2025-03-21 15:18:22] Production.INFO: ProcessCDR(1,14731047,1,1,2) [2025-03-21 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:18:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731047', 'tblTempUsageDetail_20' ) start [2025-03-21 15:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731047', 'tblTempUsageDetail_20' ) end [2025-03-21 15:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:18:28] Production.INFO: ==12491== Releasing lock... [2025-03-21 15:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:18:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:19:06 [end_date_ymd] => 2025-03-21 15:19:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:19:06' and `end` < '2025-03-21 15: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-21 15:19:19] Production.INFO: count ==4996 [2025-03-21 15:19:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:19:06 - End Time 2025-03-21 15:19:06 [2025-03-21 15:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731052', 'tblTempUsageDetail_20' ) start [2025-03-21 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731052', 'tblTempUsageDetail_20' ) end [2025-03-21 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731052', 'tblTempVendorCDR_20' ) start [2025-03-21 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731052', 'tblTempVendorCDR_20' ) end [2025-03-21 15:19:22] Production.INFO: ProcessCDR(1,14731052,1,1,2) [2025-03-21 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731052', 'tblTempUsageDetail_20' ) start [2025-03-21 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731052', 'tblTempUsageDetail_20' ) end [2025-03-21 15:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:19:26] Production.INFO: ==12565== Releasing lock... [2025-03-21 15:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:19:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:20:07 [end_date_ymd] => 2025-03-21 15:20:07 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:20:07' and `end` < '2025-03-21 15: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-21 15:20:21] Production.INFO: count ==4965 [2025-03-21 15:20:23] Production.ERROR: pbx CDR StartTime 2025-03-21 12:20:07 - End Time 2025-03-21 15:20:07 [2025-03-21 15:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731058', 'tblTempUsageDetail_20' ) start [2025-03-21 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731058', 'tblTempUsageDetail_20' ) end [2025-03-21 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731058', 'tblTempVendorCDR_20' ) start [2025-03-21 15:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731058', 'tblTempVendorCDR_20' ) end [2025-03-21 15:20:23] Production.INFO: ProcessCDR(1,14731058,1,1,2) [2025-03-21 15:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731058', 'tblTempUsageDetail_20' ) start [2025-03-21 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731058', 'tblTempUsageDetail_20' ) end [2025-03-21 15:20:29] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:20:29] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:20:29] Production.INFO: ==12638== Releasing lock... [2025-03-21 15:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:20:29] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:21:05 [end_date_ymd] => 2025-03-21 15:21:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:21:05' and `end` < '2025-03-21 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-21 15:21:19] Production.INFO: count ==4952 [2025-03-21 15:21:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:21:05 - End Time 2025-03-21 15:21:05 [2025-03-21 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731063', 'tblTempUsageDetail_20' ) start [2025-03-21 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731063', 'tblTempUsageDetail_20' ) end [2025-03-21 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731063', 'tblTempVendorCDR_20' ) start [2025-03-21 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731063', 'tblTempVendorCDR_20' ) end [2025-03-21 15:21:21] Production.INFO: ProcessCDR(1,14731063,1,1,2) [2025-03-21 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731063', 'tblTempUsageDetail_20' ) start [2025-03-21 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731063', 'tblTempUsageDetail_20' ) end [2025-03-21 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:21:26] Production.INFO: ==12755== Releasing lock... [2025-03-21 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:21:26] Production.INFO: 65 MB #Memory Used# [2025-03-21 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:22:06 [end_date_ymd] => 2025-03-21 15:22:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:22:06' and `end` < '2025-03-21 15: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-21 15:22:19] Production.INFO: count ==4937 [2025-03-21 15:22:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:22:06 - End Time 2025-03-21 15:22:06 [2025-03-21 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731068', 'tblTempUsageDetail_20' ) start [2025-03-21 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731068', 'tblTempUsageDetail_20' ) end [2025-03-21 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731068', 'tblTempVendorCDR_20' ) start [2025-03-21 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731068', 'tblTempVendorCDR_20' ) end [2025-03-21 15:22:21] Production.INFO: ProcessCDR(1,14731068,1,1,2) [2025-03-21 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731068', 'tblTempUsageDetail_20' ) start [2025-03-21 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731068', 'tblTempUsageDetail_20' ) end [2025-03-21 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:22:27] Production.INFO: ==12828== Releasing lock... [2025-03-21 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:22:27] Production.INFO: 65 MB #Memory Used# [2025-03-21 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:23:05 [end_date_ymd] => 2025-03-21 15:23:05 [RateCDR] => 1 ) [2025-03-21 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 12:23:05' and `end` < '2025-03-21 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-21 15:23:19] Production.INFO: count ==4934 [2025-03-21 15:23:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:23:05 - End Time 2025-03-21 15:23:05 [2025-03-21 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731073', 'tblTempUsageDetail_20' ) start [2025-03-21 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731073', 'tblTempUsageDetail_20' ) end [2025-03-21 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731073', 'tblTempVendorCDR_20' ) start [2025-03-21 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731073', 'tblTempVendorCDR_20' ) end [2025-03-21 15:23:21] Production.INFO: ProcessCDR(1,14731073,1,1,2) [2025-03-21 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731073', 'tblTempUsageDetail_20' ) start [2025-03-21 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731073', 'tblTempUsageDetail_20' ) end [2025-03-21 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:23:26] Production.INFO: ==12901== Releasing lock... [2025-03-21 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:23:26] Production.INFO: 65 MB #Memory Used# [2025-03-21 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:24:05 [end_date_ymd] => 2025-03-21 15:24:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:24:05' and `end` < '2025-03-21 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-21 15:24:19] Production.INFO: count ==4936 [2025-03-21 15:24:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:24:05 - End Time 2025-03-21 15:24:05 [2025-03-21 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731078', 'tblTempUsageDetail_20' ) start [2025-03-21 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731078', 'tblTempUsageDetail_20' ) end [2025-03-21 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731078', 'tblTempVendorCDR_20' ) start [2025-03-21 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731078', 'tblTempVendorCDR_20' ) end [2025-03-21 15:24:21] Production.INFO: ProcessCDR(1,14731078,1,1,2) [2025-03-21 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731078', 'tblTempUsageDetail_20' ) start [2025-03-21 15:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731078', 'tblTempUsageDetail_20' ) end [2025-03-21 15:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:24:27] Production.INFO: ==12974== Releasing lock... [2025-03-21 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:24:27] Production.INFO: 65 MB #Memory Used# [2025-03-21 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:25:05 [end_date_ymd] => 2025-03-21 15:25:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:25:05' and `end` < '2025-03-21 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-21 15:25:19] Production.INFO: count ==4921 [2025-03-21 15:25:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:25:05 - End Time 2025-03-21 15:25:05 [2025-03-21 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731083', 'tblTempUsageDetail_20' ) start [2025-03-21 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731083', 'tblTempUsageDetail_20' ) end [2025-03-21 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731083', 'tblTempVendorCDR_20' ) start [2025-03-21 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731083', 'tblTempVendorCDR_20' ) end [2025-03-21 15:25:21] Production.INFO: ProcessCDR(1,14731083,1,1,2) [2025-03-21 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731083', 'tblTempUsageDetail_20' ) start [2025-03-21 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731083', 'tblTempUsageDetail_20' ) end [2025-03-21 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:25:27] Production.INFO: ==13045== Releasing lock... [2025-03-21 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:25:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:26:06 [end_date_ymd] => 2025-03-21 15:26:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:26:06' and `end` < '2025-03-21 15: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-21 15:26:19] Production.INFO: count ==4930 [2025-03-21 15:26:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:26:06 - End Time 2025-03-21 15:26:06 [2025-03-21 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731088', 'tblTempUsageDetail_20' ) start [2025-03-21 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731088', 'tblTempUsageDetail_20' ) end [2025-03-21 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731088', 'tblTempVendorCDR_20' ) start [2025-03-21 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731088', 'tblTempVendorCDR_20' ) end [2025-03-21 15:26:21] Production.INFO: ProcessCDR(1,14731088,1,1,2) [2025-03-21 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731088', 'tblTempUsageDetail_20' ) start [2025-03-21 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731088', 'tblTempUsageDetail_20' ) end [2025-03-21 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:26:27] Production.INFO: ==13117== Releasing lock... [2025-03-21 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:26:27] Production.INFO: 65 MB #Memory Used# [2025-03-21 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:27:05 [end_date_ymd] => 2025-03-21 15:27:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:27:05' and `end` < '2025-03-21 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-21 15:27:18] Production.INFO: count ==4923 [2025-03-21 15:27:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:27:05 - End Time 2025-03-21 15:27:05 [2025-03-21 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731093', 'tblTempUsageDetail_20' ) start [2025-03-21 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731093', 'tblTempUsageDetail_20' ) end [2025-03-21 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731093', 'tblTempVendorCDR_20' ) start [2025-03-21 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731093', 'tblTempVendorCDR_20' ) end [2025-03-21 15:27:21] Production.INFO: ProcessCDR(1,14731093,1,1,2) [2025-03-21 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731093', 'tblTempUsageDetail_20' ) start [2025-03-21 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731093', 'tblTempUsageDetail_20' ) end [2025-03-21 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:27:26] Production.INFO: ==13189== Releasing lock... [2025-03-21 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:27:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:28:06 [end_date_ymd] => 2025-03-21 15:28:06 [RateCDR] => 1 ) [2025-03-21 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-21 12:28:06' and `end` < '2025-03-21 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-21 15:28:19] Production.INFO: count ==4919 [2025-03-21 15:28:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:28:06 - End Time 2025-03-21 15:28:06 [2025-03-21 15:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731098', 'tblTempUsageDetail_20' ) start [2025-03-21 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731098', 'tblTempUsageDetail_20' ) end [2025-03-21 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731098', 'tblTempVendorCDR_20' ) start [2025-03-21 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731098', 'tblTempVendorCDR_20' ) end [2025-03-21 15:28:22] Production.INFO: ProcessCDR(1,14731098,1,1,2) [2025-03-21 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731098', 'tblTempUsageDetail_20' ) start [2025-03-21 15:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731098', 'tblTempUsageDetail_20' ) end [2025-03-21 15:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:28:28] Production.INFO: ==13264== Releasing lock... [2025-03-21 15:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:28:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:29:06 [end_date_ymd] => 2025-03-21 15:29:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:29:06' and `end` < '2025-03-21 15: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-21 15:29:19] Production.INFO: count ==4936 [2025-03-21 15:29:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:29:06 - End Time 2025-03-21 15:29:06 [2025-03-21 15:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731103', 'tblTempUsageDetail_20' ) start [2025-03-21 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731103', 'tblTempUsageDetail_20' ) end [2025-03-21 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731103', 'tblTempVendorCDR_20' ) start [2025-03-21 15:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731103', 'tblTempVendorCDR_20' ) end [2025-03-21 15:29:22] Production.INFO: ProcessCDR(1,14731103,1,1,2) [2025-03-21 15:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731103', 'tblTempUsageDetail_20' ) start [2025-03-21 15:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731103', 'tblTempUsageDetail_20' ) end [2025-03-21 15:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:29:28] Production.INFO: ==13339== Releasing lock... [2025-03-21 15:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:29:28] Production.INFO: 65 MB #Memory Used# [2025-03-21 15:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:30:07 [end_date_ymd] => 2025-03-21 15:30:07 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:30:07' and `end` < '2025-03-21 15: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-21 15:30:20] Production.INFO: count ==4940 [2025-03-21 15:30:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:30:07 - End Time 2025-03-21 15:30:07 [2025-03-21 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731109', 'tblTempUsageDetail_20' ) start [2025-03-21 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731109', 'tblTempUsageDetail_20' ) end [2025-03-21 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731109', 'tblTempVendorCDR_20' ) start [2025-03-21 15:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731109', 'tblTempVendorCDR_20' ) end [2025-03-21 15:30:23] Production.INFO: ProcessCDR(1,14731109,1,1,2) [2025-03-21 15:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731109', 'tblTempUsageDetail_20' ) start [2025-03-21 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731109', 'tblTempUsageDetail_20' ) end [2025-03-21 15:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:30:28] Production.INFO: ==13419== Releasing lock... [2025-03-21 15:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:30:28] Production.INFO: 65 MB #Memory Used# [2025-03-21 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:31:06 [end_date_ymd] => 2025-03-21 15:31:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:31:06' and `end` < '2025-03-21 15: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-21 15:31:19] Production.INFO: count ==4931 [2025-03-21 15:31:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:31:06 - End Time 2025-03-21 15:31:06 [2025-03-21 15:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731114', 'tblTempUsageDetail_20' ) start [2025-03-21 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731114', 'tblTempUsageDetail_20' ) end [2025-03-21 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731114', 'tblTempVendorCDR_20' ) start [2025-03-21 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731114', 'tblTempVendorCDR_20' ) end [2025-03-21 15:31:22] Production.INFO: ProcessCDR(1,14731114,1,1,2) [2025-03-21 15:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731114', 'tblTempUsageDetail_20' ) start [2025-03-21 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731114', 'tblTempUsageDetail_20' ) end [2025-03-21 15:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:31:27] Production.INFO: ==13496== Releasing lock... [2025-03-21 15:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:31:27] Production.INFO: 65 MB #Memory Used# [2025-03-21 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:32:06 [end_date_ymd] => 2025-03-21 15:32:06 [RateCDR] => 1 ) [2025-03-21 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-21 12:32:06' and `end` < '2025-03-21 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-21 15:32:20] Production.INFO: count ==4933 [2025-03-21 15:32:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:32:06 - End Time 2025-03-21 15:32:06 [2025-03-21 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731119', 'tblTempUsageDetail_20' ) start [2025-03-21 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731119', 'tblTempUsageDetail_20' ) end [2025-03-21 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731119', 'tblTempVendorCDR_20' ) start [2025-03-21 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731119', 'tblTempVendorCDR_20' ) end [2025-03-21 15:32:22] Production.INFO: ProcessCDR(1,14731119,1,1,2) [2025-03-21 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731119', 'tblTempUsageDetail_20' ) start [2025-03-21 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731119', 'tblTempUsageDetail_20' ) end [2025-03-21 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:32:28] Production.INFO: ==13573== Releasing lock... [2025-03-21 15:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:32:28] Production.INFO: 65 MB #Memory Used# [2025-03-21 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:33:05 [end_date_ymd] => 2025-03-21 15:33:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:33:05' and `end` < '2025-03-21 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-21 15:33:19] Production.INFO: count ==4930 [2025-03-21 15:33:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:33:05 - End Time 2025-03-21 15:33:05 [2025-03-21 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731124', 'tblTempUsageDetail_20' ) start [2025-03-21 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731124', 'tblTempUsageDetail_20' ) end [2025-03-21 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731124', 'tblTempVendorCDR_20' ) start [2025-03-21 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731124', 'tblTempVendorCDR_20' ) end [2025-03-21 15:33:21] Production.INFO: ProcessCDR(1,14731124,1,1,2) [2025-03-21 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731124', 'tblTempUsageDetail_20' ) start [2025-03-21 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731124', 'tblTempUsageDetail_20' ) end [2025-03-21 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:33:27] Production.INFO: ==13643== Releasing lock... [2025-03-21 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:33:27] Production.INFO: 65 MB #Memory Used# [2025-03-21 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:34:06 [end_date_ymd] => 2025-03-21 15:34:06 [RateCDR] => 1 ) [2025-03-21 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-21 12:34:06' and `end` < '2025-03-21 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-21 15:34:20] Production.INFO: count ==4950 [2025-03-21 15:34:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:34:06 - End Time 2025-03-21 15:34:06 [2025-03-21 15:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731129', 'tblTempUsageDetail_20' ) start [2025-03-21 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731129', 'tblTempUsageDetail_20' ) end [2025-03-21 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731129', 'tblTempVendorCDR_20' ) start [2025-03-21 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731129', 'tblTempVendorCDR_20' ) end [2025-03-21 15:34:22] Production.INFO: ProcessCDR(1,14731129,1,1,2) [2025-03-21 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731129', 'tblTempUsageDetail_20' ) start [2025-03-21 15:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731129', 'tblTempUsageDetail_20' ) end [2025-03-21 15:34:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:34:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:34:28] Production.INFO: ==13718== Releasing lock... [2025-03-21 15:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:34:28] Production.INFO: 65 MB #Memory Used# [2025-03-21 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:35:05 [end_date_ymd] => 2025-03-21 15:35:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:35:05' and `end` < '2025-03-21 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-21 15:35:20] Production.INFO: count ==4945 [2025-03-21 15:35:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:35:05 - End Time 2025-03-21 15:35:05 [2025-03-21 15:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731134', 'tblTempUsageDetail_20' ) start [2025-03-21 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731134', 'tblTempUsageDetail_20' ) end [2025-03-21 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731134', 'tblTempVendorCDR_20' ) start [2025-03-21 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731134', 'tblTempVendorCDR_20' ) end [2025-03-21 15:35:22] Production.INFO: ProcessCDR(1,14731134,1,1,2) [2025-03-21 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731134', 'tblTempUsageDetail_20' ) start [2025-03-21 15:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731134', 'tblTempUsageDetail_20' ) end [2025-03-21 15:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:35:28] Production.INFO: ==13801== Releasing lock... [2025-03-21 15:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:35:28] Production.INFO: 65 MB #Memory Used# [2025-03-21 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:36:05 [end_date_ymd] => 2025-03-21 15:36:05 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:36:05' and `end` < '2025-03-21 15: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-21 15:36:19] Production.INFO: count ==4966 [2025-03-21 15:36:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:36:05 - End Time 2025-03-21 15:36:05 [2025-03-21 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731139', 'tblTempUsageDetail_20' ) start [2025-03-21 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731139', 'tblTempUsageDetail_20' ) end [2025-03-21 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731139', 'tblTempVendorCDR_20' ) start [2025-03-21 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731139', 'tblTempVendorCDR_20' ) end [2025-03-21 15:36:21] Production.INFO: ProcessCDR(1,14731139,1,1,2) [2025-03-21 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731139', 'tblTempUsageDetail_20' ) start [2025-03-21 15:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731139', 'tblTempUsageDetail_20' ) end [2025-03-21 15:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:36:27] Production.INFO: ==13911== Releasing lock... [2025-03-21 15:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:36:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:37:05 [end_date_ymd] => 2025-03-21 15:37:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:37:05' and `end` < '2025-03-21 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-21 15:37:19] Production.INFO: count ==4959 [2025-03-21 15:37:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:37:05 - End Time 2025-03-21 15:37:05 [2025-03-21 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731144', 'tblTempUsageDetail_20' ) start [2025-03-21 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731144', 'tblTempUsageDetail_20' ) end [2025-03-21 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731144', 'tblTempVendorCDR_20' ) start [2025-03-21 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731144', 'tblTempVendorCDR_20' ) end [2025-03-21 15:37:21] Production.INFO: ProcessCDR(1,14731144,1,1,2) [2025-03-21 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731144', 'tblTempUsageDetail_20' ) start [2025-03-21 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731144', 'tblTempUsageDetail_20' ) end [2025-03-21 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:37:27] Production.INFO: ==13986== Releasing lock... [2025-03-21 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:37:27] Production.INFO: 65 MB #Memory Used# [2025-03-21 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:38:06 [end_date_ymd] => 2025-03-21 15:38:06 [RateCDR] => 1 ) [2025-03-21 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-21 12:38:06' and `end` < '2025-03-21 15: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-21 15:38:19] Production.INFO: count ==4995 [2025-03-21 15:38:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:38:06 - End Time 2025-03-21 15:38:06 [2025-03-21 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731149', 'tblTempUsageDetail_20' ) start [2025-03-21 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731149', 'tblTempUsageDetail_20' ) end [2025-03-21 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731149', 'tblTempVendorCDR_20' ) start [2025-03-21 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731149', 'tblTempVendorCDR_20' ) end [2025-03-21 15:38:22] Production.INFO: ProcessCDR(1,14731149,1,1,2) [2025-03-21 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731149', 'tblTempUsageDetail_20' ) start [2025-03-21 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731149', 'tblTempUsageDetail_20' ) end [2025-03-21 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:38:27] Production.INFO: ==14061== Releasing lock... [2025-03-21 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:38:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:39:06 [end_date_ymd] => 2025-03-21 15:39:06 [RateCDR] => 1 ) [2025-03-21 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-21 12:39:06' and `end` < '2025-03-21 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-21 15:39:19] Production.INFO: count ==4987 [2025-03-21 15:39:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:39:06 - End Time 2025-03-21 15:39:06 [2025-03-21 15:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731154', 'tblTempUsageDetail_20' ) start [2025-03-21 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731154', 'tblTempUsageDetail_20' ) end [2025-03-21 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731154', 'tblTempVendorCDR_20' ) start [2025-03-21 15:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731154', 'tblTempVendorCDR_20' ) end [2025-03-21 15:39:22] Production.INFO: ProcessCDR(1,14731154,1,1,2) [2025-03-21 15:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731154', 'tblTempUsageDetail_20' ) start [2025-03-21 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731154', 'tblTempUsageDetail_20' ) end [2025-03-21 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:39:27] Production.INFO: ==14132== Releasing lock... [2025-03-21 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:39:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:40:06 [end_date_ymd] => 2025-03-21 15:40:06 [RateCDR] => 1 ) [2025-03-21 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-21 12:40:06' and `end` < '2025-03-21 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-21 15:40:20] Production.INFO: count ==5008 [2025-03-21 15:40:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:40:06 - End Time 2025-03-21 15:40:06 [2025-03-21 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731160', 'tblTempUsageDetail_20' ) start [2025-03-21 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731160', 'tblTempUsageDetail_20' ) end [2025-03-21 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731160', 'tblTempVendorCDR_20' ) start [2025-03-21 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731160', 'tblTempVendorCDR_20' ) end [2025-03-21 15:40:22] Production.INFO: ProcessCDR(1,14731160,1,1,2) [2025-03-21 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731160', 'tblTempUsageDetail_20' ) start [2025-03-21 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731160', 'tblTempUsageDetail_20' ) end [2025-03-21 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:40:28] Production.INFO: ==14205== Releasing lock... [2025-03-21 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:40:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:41:06 [end_date_ymd] => 2025-03-21 15:41:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:41:06' and `end` < '2025-03-21 15: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-21 15:41:20] Production.INFO: count ==5026 [2025-03-21 15:41:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:41:06 - End Time 2025-03-21 15:41:06 [2025-03-21 15:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731165', 'tblTempUsageDetail_20' ) start [2025-03-21 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731165', 'tblTempUsageDetail_20' ) end [2025-03-21 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731165', 'tblTempVendorCDR_20' ) start [2025-03-21 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731165', 'tblTempVendorCDR_20' ) end [2025-03-21 15:41:22] Production.INFO: ProcessCDR(1,14731165,1,1,2) [2025-03-21 15:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731165', 'tblTempUsageDetail_20' ) start [2025-03-21 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731165', 'tblTempUsageDetail_20' ) end [2025-03-21 15:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:41:28] Production.INFO: ==14282== Releasing lock... [2025-03-21 15:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:41:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:42:05 [end_date_ymd] => 2025-03-21 15:42:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:42:05' and `end` < '2025-03-21 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-21 15:42:19] Production.INFO: count ==5033 [2025-03-21 15:42:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:42:05 - End Time 2025-03-21 15:42:05 [2025-03-21 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731170', 'tblTempUsageDetail_20' ) start [2025-03-21 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731170', 'tblTempUsageDetail_20' ) end [2025-03-21 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731170', 'tblTempVendorCDR_20' ) start [2025-03-21 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731170', 'tblTempVendorCDR_20' ) end [2025-03-21 15:42:21] Production.INFO: ProcessCDR(1,14731170,1,1,2) [2025-03-21 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731170', 'tblTempUsageDetail_20' ) start [2025-03-21 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731170', 'tblTempUsageDetail_20' ) end [2025-03-21 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:42:26] Production.INFO: ==14355== Releasing lock... [2025-03-21 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:42:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:43:06 [end_date_ymd] => 2025-03-21 15:43:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:43:06' and `end` < '2025-03-21 15: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-21 15:43:20] Production.INFO: count ==5043 [2025-03-21 15:43:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:43:06 - End Time 2025-03-21 15:43:06 [2025-03-21 15:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731175', 'tblTempUsageDetail_20' ) start [2025-03-21 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731175', 'tblTempUsageDetail_20' ) end [2025-03-21 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731175', 'tblTempVendorCDR_20' ) start [2025-03-21 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731175', 'tblTempVendorCDR_20' ) end [2025-03-21 15:43:22] Production.INFO: ProcessCDR(1,14731175,1,1,2) [2025-03-21 15:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731175', 'tblTempUsageDetail_20' ) start [2025-03-21 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731175', 'tblTempUsageDetail_20' ) end [2025-03-21 15:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:43:28] Production.INFO: ==14434== Releasing lock... [2025-03-21 15:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:43:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:44:05 [end_date_ymd] => 2025-03-21 15:44:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:44:05' and `end` < '2025-03-21 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-21 15:44:19] Production.INFO: count ==5054 [2025-03-21 15:44:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:44:05 - End Time 2025-03-21 15:44:05 [2025-03-21 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731180', 'tblTempUsageDetail_20' ) start [2025-03-21 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731180', 'tblTempUsageDetail_20' ) end [2025-03-21 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731180', 'tblTempVendorCDR_20' ) start [2025-03-21 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731180', 'tblTempVendorCDR_20' ) end [2025-03-21 15:44:21] Production.INFO: ProcessCDR(1,14731180,1,1,2) [2025-03-21 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731180', 'tblTempUsageDetail_20' ) start [2025-03-21 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731180', 'tblTempUsageDetail_20' ) end [2025-03-21 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:44:27] Production.INFO: ==14505== Releasing lock... [2025-03-21 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:44:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:45:06 [end_date_ymd] => 2025-03-21 15:45:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:45:06' and `end` < '2025-03-21 15: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-21 15:45:19] Production.INFO: count ==5048 [2025-03-21 15:45:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:45:06 - End Time 2025-03-21 15:45:06 [2025-03-21 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731185', 'tblTempUsageDetail_20' ) start [2025-03-21 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731185', 'tblTempUsageDetail_20' ) end [2025-03-21 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731185', 'tblTempVendorCDR_20' ) start [2025-03-21 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731185', 'tblTempVendorCDR_20' ) end [2025-03-21 15:45:22] Production.INFO: ProcessCDR(1,14731185,1,1,2) [2025-03-21 15:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731185', 'tblTempUsageDetail_20' ) start [2025-03-21 15:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731185', 'tblTempUsageDetail_20' ) end [2025-03-21 15:45:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:45:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:45:28] Production.INFO: ==14580== Releasing lock... [2025-03-21 15:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:45:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:46:06 [end_date_ymd] => 2025-03-21 15:46:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:46:06' and `end` < '2025-03-21 15: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-21 15:46:19] Production.INFO: count ==5042 [2025-03-21 15:46:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:46:06 - End Time 2025-03-21 15:46:06 [2025-03-21 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731190', 'tblTempUsageDetail_20' ) start [2025-03-21 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731190', 'tblTempUsageDetail_20' ) end [2025-03-21 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731190', 'tblTempVendorCDR_20' ) start [2025-03-21 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731190', 'tblTempVendorCDR_20' ) end [2025-03-21 15:46:22] Production.INFO: ProcessCDR(1,14731190,1,1,2) [2025-03-21 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731190', 'tblTempUsageDetail_20' ) start [2025-03-21 15:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731190', 'tblTempUsageDetail_20' ) end [2025-03-21 15:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:46:27] Production.INFO: ==14650== Releasing lock... [2025-03-21 15:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:46:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:47:06 [end_date_ymd] => 2025-03-21 15:47:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:47:06' and `end` < '2025-03-21 15: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-21 15:47:19] Production.INFO: count ==5048 [2025-03-21 15:47:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:47:06 - End Time 2025-03-21 15:47:06 [2025-03-21 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731195', 'tblTempUsageDetail_20' ) start [2025-03-21 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731195', 'tblTempUsageDetail_20' ) end [2025-03-21 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731195', 'tblTempVendorCDR_20' ) start [2025-03-21 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731195', 'tblTempVendorCDR_20' ) end [2025-03-21 15:47:21] Production.INFO: ProcessCDR(1,14731195,1,1,2) [2025-03-21 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731195', 'tblTempUsageDetail_20' ) start [2025-03-21 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731195', 'tblTempUsageDetail_20' ) end [2025-03-21 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:47:27] Production.INFO: ==14722== Releasing lock... [2025-03-21 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:47:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:48:06 [end_date_ymd] => 2025-03-21 15:48:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:48:06' and `end` < '2025-03-21 15: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-21 15:48:19] Production.INFO: count ==5034 [2025-03-21 15:48:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:48:06 - End Time 2025-03-21 15:48:06 [2025-03-21 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731200', 'tblTempUsageDetail_20' ) start [2025-03-21 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731200', 'tblTempUsageDetail_20' ) end [2025-03-21 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731200', 'tblTempVendorCDR_20' ) start [2025-03-21 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731200', 'tblTempVendorCDR_20' ) end [2025-03-21 15:48:21] Production.INFO: ProcessCDR(1,14731200,1,1,2) [2025-03-21 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731200', 'tblTempUsageDetail_20' ) start [2025-03-21 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731200', 'tblTempUsageDetail_20' ) end [2025-03-21 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:48:27] Production.INFO: ==14802== Releasing lock... [2025-03-21 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:48:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:49:05 [end_date_ymd] => 2025-03-21 15:49:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:49:05' and `end` < '2025-03-21 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-21 15:49:19] Production.INFO: count ==5035 [2025-03-21 15:49:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:49:05 - End Time 2025-03-21 15:49:05 [2025-03-21 15:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731205', 'tblTempUsageDetail_20' ) start [2025-03-21 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731205', 'tblTempUsageDetail_20' ) end [2025-03-21 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731205', 'tblTempVendorCDR_20' ) start [2025-03-21 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731205', 'tblTempVendorCDR_20' ) end [2025-03-21 15:49:22] Production.INFO: ProcessCDR(1,14731205,1,1,2) [2025-03-21 15:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731205', 'tblTempUsageDetail_20' ) start [2025-03-21 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731205', 'tblTempUsageDetail_20' ) end [2025-03-21 15:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:49:28] Production.INFO: ==14878== Releasing lock... [2025-03-21 15:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:49:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:50:06 [end_date_ymd] => 2025-03-21 15:50:06 [RateCDR] => 1 ) [2025-03-21 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-21 12:50:06' and `end` < '2025-03-21 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-21 15:50:19] Production.INFO: count ==5045 [2025-03-21 15:50:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:50:06 - End Time 2025-03-21 15:50:06 [2025-03-21 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731210', 'tblTempUsageDetail_20' ) start [2025-03-21 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731210', 'tblTempUsageDetail_20' ) end [2025-03-21 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731210', 'tblTempVendorCDR_20' ) start [2025-03-21 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731210', 'tblTempVendorCDR_20' ) end [2025-03-21 15:50:22] Production.INFO: ProcessCDR(1,14731210,1,1,2) [2025-03-21 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731210', 'tblTempUsageDetail_20' ) start [2025-03-21 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731210', 'tblTempUsageDetail_20' ) end [2025-03-21 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:50:28] Production.INFO: ==14952== Releasing lock... [2025-03-21 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:50:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:51:06 [end_date_ymd] => 2025-03-21 15:51:06 [RateCDR] => 1 ) [2025-03-21 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-21 12:51:06' and `end` < '2025-03-21 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-21 15:51:19] Production.INFO: count ==5010 [2025-03-21 15:51:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:51:06 - End Time 2025-03-21 15:51:06 [2025-03-21 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731216', 'tblTempUsageDetail_20' ) start [2025-03-21 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731216', 'tblTempUsageDetail_20' ) end [2025-03-21 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731216', 'tblTempVendorCDR_20' ) start [2025-03-21 15:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731216', 'tblTempVendorCDR_20' ) end [2025-03-21 15:51:22] Production.INFO: ProcessCDR(1,14731216,1,1,2) [2025-03-21 15:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731216', 'tblTempUsageDetail_20' ) start [2025-03-21 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731216', 'tblTempUsageDetail_20' ) end [2025-03-21 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:51:28] Production.INFO: ==15028== Releasing lock... [2025-03-21 15:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:51:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:52:05 [end_date_ymd] => 2025-03-21 15:52:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:52:05' and `end` < '2025-03-21 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-21 15:52:19] Production.INFO: count ==5013 [2025-03-21 15:52:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:52:05 - End Time 2025-03-21 15:52:05 [2025-03-21 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731221', 'tblTempUsageDetail_20' ) start [2025-03-21 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731221', 'tblTempUsageDetail_20' ) end [2025-03-21 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731221', 'tblTempVendorCDR_20' ) start [2025-03-21 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731221', 'tblTempVendorCDR_20' ) end [2025-03-21 15:52:21] Production.INFO: ProcessCDR(1,14731221,1,1,2) [2025-03-21 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731221', 'tblTempUsageDetail_20' ) start [2025-03-21 15:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731221', 'tblTempUsageDetail_20' ) end [2025-03-21 15:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:52:25] Production.INFO: ==15137== Releasing lock... [2025-03-21 15:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:52:25] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:53:05 [end_date_ymd] => 2025-03-21 15:53:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:53:05' and `end` < '2025-03-21 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-21 15:53:19] Production.INFO: count ==5016 [2025-03-21 15:53:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:53:05 - End Time 2025-03-21 15:53:05 [2025-03-21 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731226', 'tblTempUsageDetail_20' ) start [2025-03-21 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731226', 'tblTempUsageDetail_20' ) end [2025-03-21 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731226', 'tblTempVendorCDR_20' ) start [2025-03-21 15:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731226', 'tblTempVendorCDR_20' ) end [2025-03-21 15:53:22] Production.INFO: ProcessCDR(1,14731226,1,1,2) [2025-03-21 15:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731226', 'tblTempUsageDetail_20' ) start [2025-03-21 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731226', 'tblTempUsageDetail_20' ) end [2025-03-21 15:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:53:27] Production.INFO: ==15213== Releasing lock... [2025-03-21 15:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:53:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:54:06 [end_date_ymd] => 2025-03-21 15:54:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:54:06' and `end` < '2025-03-21 15: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-21 15:54:20] Production.INFO: count ==5016 [2025-03-21 15:54:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:54:06 - End Time 2025-03-21 15:54:06 [2025-03-21 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731231', 'tblTempUsageDetail_20' ) start [2025-03-21 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731231', 'tblTempUsageDetail_20' ) end [2025-03-21 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731231', 'tblTempVendorCDR_20' ) start [2025-03-21 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731231', 'tblTempVendorCDR_20' ) end [2025-03-21 15:54:22] Production.INFO: ProcessCDR(1,14731231,1,1,2) [2025-03-21 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731231', 'tblTempUsageDetail_20' ) start [2025-03-21 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731231', 'tblTempUsageDetail_20' ) end [2025-03-21 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:54:27] Production.INFO: ==15287== Releasing lock... [2025-03-21 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:54:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:55:05 [end_date_ymd] => 2025-03-21 15:55:05 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:55:05' and `end` < '2025-03-21 15: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-21 15:55:19] Production.INFO: count ==4998 [2025-03-21 15:55:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:55:05 - End Time 2025-03-21 15:55:05 [2025-03-21 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731236', 'tblTempUsageDetail_20' ) start [2025-03-21 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731236', 'tblTempUsageDetail_20' ) end [2025-03-21 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731236', 'tblTempVendorCDR_20' ) start [2025-03-21 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731236', 'tblTempVendorCDR_20' ) end [2025-03-21 15:55:21] Production.INFO: ProcessCDR(1,14731236,1,1,2) [2025-03-21 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731236', 'tblTempUsageDetail_20' ) start [2025-03-21 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731236', 'tblTempUsageDetail_20' ) end [2025-03-21 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:55:27] Production.INFO: ==15359== Releasing lock... [2025-03-21 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:55:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:56:06 [end_date_ymd] => 2025-03-21 15:56:06 [RateCDR] => 1 ) [2025-03-21 15: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-21 12:56:06' and `end` < '2025-03-21 15: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-21 15:56:19] Production.INFO: count ==4990 [2025-03-21 15:56:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:56:06 - End Time 2025-03-21 15:56:06 [2025-03-21 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731241', 'tblTempUsageDetail_20' ) start [2025-03-21 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731241', 'tblTempUsageDetail_20' ) end [2025-03-21 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731241', 'tblTempVendorCDR_20' ) start [2025-03-21 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731241', 'tblTempVendorCDR_20' ) end [2025-03-21 15:56:22] Production.INFO: ProcessCDR(1,14731241,1,1,2) [2025-03-21 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731241', 'tblTempUsageDetail_20' ) start [2025-03-21 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731241', 'tblTempUsageDetail_20' ) end [2025-03-21 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:56:27] Production.INFO: ==15434== Releasing lock... [2025-03-21 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:56:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:57:05 [end_date_ymd] => 2025-03-21 15:57:05 [RateCDR] => 1 ) [2025-03-21 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-21 12:57:05' and `end` < '2025-03-21 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-21 15:57:19] Production.INFO: count ==4976 [2025-03-21 15:57:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:57:05 - End Time 2025-03-21 15:57:05 [2025-03-21 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731246', 'tblTempUsageDetail_20' ) start [2025-03-21 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731246', 'tblTempUsageDetail_20' ) end [2025-03-21 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731246', 'tblTempVendorCDR_20' ) start [2025-03-21 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731246', 'tblTempVendorCDR_20' ) end [2025-03-21 15:57:21] Production.INFO: ProcessCDR(1,14731246,1,1,2) [2025-03-21 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731246', 'tblTempUsageDetail_20' ) start [2025-03-21 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731246', 'tblTempUsageDetail_20' ) end [2025-03-21 15:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:57:27] Production.INFO: ==15506== Releasing lock... [2025-03-21 15:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:57:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 15:58:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:58:07 [end_date_ymd] => 2025-03-21 15:58:07 [RateCDR] => 1 ) [2025-03-21 15:58: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-21 12:58:07' and `end` < '2025-03-21 15:58: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-21 15:58:20] Production.INFO: count ==4952 [2025-03-21 15:58:22] Production.ERROR: pbx CDR StartTime 2025-03-21 12:58:07 - End Time 2025-03-21 15:58:07 [2025-03-21 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731251', 'tblTempUsageDetail_20' ) start [2025-03-21 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731251', 'tblTempUsageDetail_20' ) end [2025-03-21 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731251', 'tblTempVendorCDR_20' ) start [2025-03-21 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731251', 'tblTempVendorCDR_20' ) end [2025-03-21 15:58:22] Production.INFO: ProcessCDR(1,14731251,1,1,2) [2025-03-21 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:58:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:58:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731251', 'tblTempUsageDetail_20' ) start [2025-03-21 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731251', 'tblTempUsageDetail_20' ) end [2025-03-21 15:58:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:58:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:58:29] Production.INFO: ==15582== Releasing lock... [2025-03-21 15:58:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:58:29] Production.INFO: 65 MB #Memory Used# [2025-03-21 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 12:59:06 [end_date_ymd] => 2025-03-21 15:59:06 [RateCDR] => 1 ) [2025-03-21 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-21 12:59:06' and `end` < '2025-03-21 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-21 15:59:19] Production.INFO: count ==4941 [2025-03-21 15:59:21] Production.ERROR: pbx CDR StartTime 2025-03-21 12:59:06 - End Time 2025-03-21 15:59:06 [2025-03-21 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731256', 'tblTempUsageDetail_20' ) start [2025-03-21 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731256', 'tblTempUsageDetail_20' ) end [2025-03-21 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731256', 'tblTempVendorCDR_20' ) start [2025-03-21 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731256', 'tblTempVendorCDR_20' ) end [2025-03-21 15:59:21] Production.INFO: ProcessCDR(1,14731256,1,1,2) [2025-03-21 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731256', 'tblTempUsageDetail_20' ) start [2025-03-21 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731256', 'tblTempUsageDetail_20' ) end [2025-03-21 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 15:59:27] Production.INFO: ==15652== Releasing lock... [2025-03-21 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 15:59:27] Production.INFO: 65 MB #Memory Used# [2025-03-21 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:00:07 [end_date_ymd] => 2025-03-21 16:00:07 [RateCDR] => 1 ) [2025-03-21 16:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 13:00:07' and `end` < '2025-03-21 16:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 16:00:20] Production.INFO: count ==4937 [2025-03-21 16:00:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:00:07 - End Time 2025-03-21 16:00:07 [2025-03-21 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731262', 'tblTempUsageDetail_20' ) start [2025-03-21 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731262', 'tblTempUsageDetail_20' ) end [2025-03-21 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731262', 'tblTempVendorCDR_20' ) start [2025-03-21 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731262', 'tblTempVendorCDR_20' ) end [2025-03-21 16:00:23] Production.INFO: ProcessCDR(1,14731262,1,1,2) [2025-03-21 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731262', 'tblTempUsageDetail_20' ) start [2025-03-21 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731262', 'tblTempUsageDetail_20' ) end [2025-03-21 16:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:00:29] Production.INFO: ==15727== Releasing lock... [2025-03-21 16:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:00:29] Production.INFO: 65 MB #Memory Used# [2025-03-21 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:01:05 [end_date_ymd] => 2025-03-21 16:01:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:01:05' and `end` < '2025-03-21 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 16:01:19] Production.INFO: count ==4917 [2025-03-21 16:01:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:01:05 - End Time 2025-03-21 16:01:05 [2025-03-21 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731267', 'tblTempUsageDetail_20' ) start [2025-03-21 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731267', 'tblTempUsageDetail_20' ) end [2025-03-21 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731267', 'tblTempVendorCDR_20' ) start [2025-03-21 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731267', 'tblTempVendorCDR_20' ) end [2025-03-21 16:01:21] Production.INFO: ProcessCDR(1,14731267,1,1,2) [2025-03-21 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731267', 'tblTempUsageDetail_20' ) start [2025-03-21 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731267', 'tblTempUsageDetail_20' ) end [2025-03-21 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:01:27] Production.INFO: ==15814== Releasing lock... [2025-03-21 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:01:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:02:06 [end_date_ymd] => 2025-03-21 16:02:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:02:06' and `end` < '2025-03-21 16: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-21 16:02:19] Production.INFO: count ==4922 [2025-03-21 16:02:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:02:06 - End Time 2025-03-21 16:02:06 [2025-03-21 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731272', 'tblTempUsageDetail_20' ) start [2025-03-21 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731272', 'tblTempUsageDetail_20' ) end [2025-03-21 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731272', 'tblTempVendorCDR_20' ) start [2025-03-21 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731272', 'tblTempVendorCDR_20' ) end [2025-03-21 16:02:22] Production.INFO: ProcessCDR(1,14731272,1,1,2) [2025-03-21 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731272', 'tblTempUsageDetail_20' ) start [2025-03-21 16:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731272', 'tblTempUsageDetail_20' ) end [2025-03-21 16:02:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:02:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:02:28] Production.INFO: ==15887== Releasing lock... [2025-03-21 16:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:02:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:03:05 [end_date_ymd] => 2025-03-21 16:03:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:03:05' and `end` < '2025-03-21 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-21 16:03:19] Production.INFO: count ==4924 [2025-03-21 16:03:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:03:05 - End Time 2025-03-21 16:03:05 [2025-03-21 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731277', 'tblTempUsageDetail_20' ) start [2025-03-21 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731277', 'tblTempUsageDetail_20' ) end [2025-03-21 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731277', 'tblTempVendorCDR_20' ) start [2025-03-21 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731277', 'tblTempVendorCDR_20' ) end [2025-03-21 16:03:21] Production.INFO: ProcessCDR(1,14731277,1,1,2) [2025-03-21 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731277', 'tblTempUsageDetail_20' ) start [2025-03-21 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731277', 'tblTempUsageDetail_20' ) end [2025-03-21 16:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:03:27] Production.INFO: ==15960== Releasing lock... [2025-03-21 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:03:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:04:05 [end_date_ymd] => 2025-03-21 16:04:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:04:05' and `end` < '2025-03-21 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-21 16:04:19] Production.INFO: count ==4919 [2025-03-21 16:04:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:04:05 - End Time 2025-03-21 16:04:05 [2025-03-21 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731282', 'tblTempUsageDetail_20' ) start [2025-03-21 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731282', 'tblTempUsageDetail_20' ) end [2025-03-21 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731282', 'tblTempVendorCDR_20' ) start [2025-03-21 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731282', 'tblTempVendorCDR_20' ) end [2025-03-21 16:04:21] Production.INFO: ProcessCDR(1,14731282,1,1,2) [2025-03-21 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731282', 'tblTempUsageDetail_20' ) start [2025-03-21 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731282', 'tblTempUsageDetail_20' ) end [2025-03-21 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:04:27] Production.INFO: ==16035== Releasing lock... [2025-03-21 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:04:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:05:05 [end_date_ymd] => 2025-03-21 16:05:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:05:05' and `end` < '2025-03-21 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-21 16:05:19] Production.INFO: count ==4897 [2025-03-21 16:05:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:05:05 - End Time 2025-03-21 16:05:05 [2025-03-21 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731287', 'tblTempUsageDetail_20' ) start [2025-03-21 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731287', 'tblTempUsageDetail_20' ) end [2025-03-21 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731287', 'tblTempVendorCDR_20' ) start [2025-03-21 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731287', 'tblTempVendorCDR_20' ) end [2025-03-21 16:05:21] Production.INFO: ProcessCDR(1,14731287,1,1,2) [2025-03-21 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731287', 'tblTempUsageDetail_20' ) start [2025-03-21 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731287', 'tblTempUsageDetail_20' ) end [2025-03-21 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:05:27] Production.INFO: ==16108== Releasing lock... [2025-03-21 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:05:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:06:06 [end_date_ymd] => 2025-03-21 16:06:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:06:06' and `end` < '2025-03-21 16: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-21 16:06:19] Production.INFO: count ==4861 [2025-03-21 16:06:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:06:06 - End Time 2025-03-21 16:06:06 [2025-03-21 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731292', 'tblTempUsageDetail_20' ) start [2025-03-21 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731292', 'tblTempUsageDetail_20' ) end [2025-03-21 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731292', 'tblTempVendorCDR_20' ) start [2025-03-21 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731292', 'tblTempVendorCDR_20' ) end [2025-03-21 16:06:22] Production.INFO: ProcessCDR(1,14731292,1,1,2) [2025-03-21 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731292', 'tblTempUsageDetail_20' ) start [2025-03-21 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731292', 'tblTempUsageDetail_20' ) end [2025-03-21 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:06:27] Production.INFO: ==16182== Releasing lock... [2025-03-21 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:06:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:07:06 [end_date_ymd] => 2025-03-21 16:07:06 [RateCDR] => 1 ) [2025-03-21 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-21 13:07:06' and `end` < '2025-03-21 16: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-21 16:07:19] Production.INFO: count ==4871 [2025-03-21 16:07:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:07:06 - End Time 2025-03-21 16:07:06 [2025-03-21 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731297', 'tblTempUsageDetail_20' ) start [2025-03-21 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731297', 'tblTempUsageDetail_20' ) end [2025-03-21 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731297', 'tblTempVendorCDR_20' ) start [2025-03-21 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731297', 'tblTempVendorCDR_20' ) end [2025-03-21 16:07:21] Production.INFO: ProcessCDR(1,14731297,1,1,2) [2025-03-21 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731297', 'tblTempUsageDetail_20' ) start [2025-03-21 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731297', 'tblTempUsageDetail_20' ) end [2025-03-21 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:07:27] Production.INFO: ==16301== Releasing lock... [2025-03-21 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:07:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 16:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:08:06 [end_date_ymd] => 2025-03-21 16:08:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:08:06' and `end` < '2025-03-21 16: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-21 16:08:19] Production.INFO: count ==4876 [2025-03-21 16:08:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:08:06 - End Time 2025-03-21 16:08:06 [2025-03-21 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731302', 'tblTempUsageDetail_20' ) start [2025-03-21 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731302', 'tblTempUsageDetail_20' ) end [2025-03-21 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731302', 'tblTempVendorCDR_20' ) start [2025-03-21 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731302', 'tblTempVendorCDR_20' ) end [2025-03-21 16:08:22] Production.INFO: ProcessCDR(1,14731302,1,1,2) [2025-03-21 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731302', 'tblTempUsageDetail_20' ) start [2025-03-21 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731302', 'tblTempUsageDetail_20' ) end [2025-03-21 16:08:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:08:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:08:28] Production.INFO: ==16372== Releasing lock... [2025-03-21 16:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:08:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:09:06 [end_date_ymd] => 2025-03-21 16:09:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:09:06' and `end` < '2025-03-21 16: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-21 16:09:19] Production.INFO: count ==4889 [2025-03-21 16:09:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:09:06 - End Time 2025-03-21 16:09:06 [2025-03-21 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731307', 'tblTempUsageDetail_20' ) start [2025-03-21 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731307', 'tblTempUsageDetail_20' ) end [2025-03-21 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731307', 'tblTempVendorCDR_20' ) start [2025-03-21 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731307', 'tblTempVendorCDR_20' ) end [2025-03-21 16:09:22] Production.INFO: ProcessCDR(1,14731307,1,1,2) [2025-03-21 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731307', 'tblTempUsageDetail_20' ) start [2025-03-21 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731307', 'tblTempUsageDetail_20' ) end [2025-03-21 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:09:27] Production.INFO: ==16444== Releasing lock... [2025-03-21 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:09:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:10:06 [end_date_ymd] => 2025-03-21 16:10:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:10:06' and `end` < '2025-03-21 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-21 16:10:20] Production.INFO: count ==4894 [2025-03-21 16:10:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:10:06 - End Time 2025-03-21 16:10:06 [2025-03-21 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731313', 'tblTempUsageDetail_20' ) start [2025-03-21 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731313', 'tblTempUsageDetail_20' ) end [2025-03-21 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731313', 'tblTempVendorCDR_20' ) start [2025-03-21 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731313', 'tblTempVendorCDR_20' ) end [2025-03-21 16:10:22] Production.INFO: ProcessCDR(1,14731313,1,1,2) [2025-03-21 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731313', 'tblTempUsageDetail_20' ) start [2025-03-21 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731313', 'tblTempUsageDetail_20' ) end [2025-03-21 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:10:28] Production.INFO: ==16518== Releasing lock... [2025-03-21 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:10:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:11:06 [end_date_ymd] => 2025-03-21 16:11:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:11:06' and `end` < '2025-03-21 16: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-21 16:11:19] Production.INFO: count ==4900 [2025-03-21 16:11:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:11:06 - End Time 2025-03-21 16:11:06 [2025-03-21 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731318', 'tblTempUsageDetail_20' ) start [2025-03-21 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731318', 'tblTempUsageDetail_20' ) end [2025-03-21 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731318', 'tblTempVendorCDR_20' ) start [2025-03-21 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731318', 'tblTempVendorCDR_20' ) end [2025-03-21 16:11:21] Production.INFO: ProcessCDR(1,14731318,1,1,2) [2025-03-21 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731318', 'tblTempUsageDetail_20' ) start [2025-03-21 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731318', 'tblTempUsageDetail_20' ) end [2025-03-21 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:11:27] Production.INFO: ==16598== Releasing lock... [2025-03-21 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:11:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:12:06 [end_date_ymd] => 2025-03-21 16:12:06 [RateCDR] => 1 ) [2025-03-21 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-21 13:12:06' and `end` < '2025-03-21 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-21 16:12:19] Production.INFO: count ==4921 [2025-03-21 16:12:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:12:06 - End Time 2025-03-21 16:12:06 [2025-03-21 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731323', 'tblTempUsageDetail_20' ) start [2025-03-21 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731323', 'tblTempUsageDetail_20' ) end [2025-03-21 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731323', 'tblTempVendorCDR_20' ) start [2025-03-21 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731323', 'tblTempVendorCDR_20' ) end [2025-03-21 16:12:22] Production.INFO: ProcessCDR(1,14731323,1,1,2) [2025-03-21 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731323', 'tblTempUsageDetail_20' ) start [2025-03-21 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731323', 'tblTempUsageDetail_20' ) end [2025-03-21 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:12:27] Production.INFO: ==16673== Releasing lock... [2025-03-21 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:12:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:13:05 [end_date_ymd] => 2025-03-21 16:13:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:13:05' and `end` < '2025-03-21 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-21 16:13:19] Production.INFO: count ==4903 [2025-03-21 16:13:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:13:05 - End Time 2025-03-21 16:13:05 [2025-03-21 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731328', 'tblTempUsageDetail_20' ) start [2025-03-21 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731328', 'tblTempUsageDetail_20' ) end [2025-03-21 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731328', 'tblTempVendorCDR_20' ) start [2025-03-21 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731328', 'tblTempVendorCDR_20' ) end [2025-03-21 16:13:21] Production.INFO: ProcessCDR(1,14731328,1,1,2) [2025-03-21 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731328', 'tblTempUsageDetail_20' ) start [2025-03-21 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731328', 'tblTempUsageDetail_20' ) end [2025-03-21 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:13:27] Production.INFO: ==16745== Releasing lock... [2025-03-21 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:13:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:14:06 [end_date_ymd] => 2025-03-21 16:14:06 [RateCDR] => 1 ) [2025-03-21 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-21 13:14:06' and `end` < '2025-03-21 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-21 16:14:19] Production.INFO: count ==4901 [2025-03-21 16:14:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:14:06 - End Time 2025-03-21 16:14:06 [2025-03-21 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731333', 'tblTempUsageDetail_20' ) start [2025-03-21 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731333', 'tblTempUsageDetail_20' ) end [2025-03-21 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731333', 'tblTempVendorCDR_20' ) start [2025-03-21 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731333', 'tblTempVendorCDR_20' ) end [2025-03-21 16:14:21] Production.INFO: ProcessCDR(1,14731333,1,1,2) [2025-03-21 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731333', 'tblTempUsageDetail_20' ) start [2025-03-21 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731333', 'tblTempUsageDetail_20' ) end [2025-03-21 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:14:27] Production.INFO: ==16820== Releasing lock... [2025-03-21 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:14:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:15:05 [end_date_ymd] => 2025-03-21 16:15:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:15:05' and `end` < '2025-03-21 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-21 16:15:19] Production.INFO: count ==4894 [2025-03-21 16:15:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:15:05 - End Time 2025-03-21 16:15:05 [2025-03-21 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731338', 'tblTempUsageDetail_20' ) start [2025-03-21 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731338', 'tblTempUsageDetail_20' ) end [2025-03-21 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731338', 'tblTempVendorCDR_20' ) start [2025-03-21 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731338', 'tblTempVendorCDR_20' ) end [2025-03-21 16:15:21] Production.INFO: ProcessCDR(1,14731338,1,1,2) [2025-03-21 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731338', 'tblTempUsageDetail_20' ) start [2025-03-21 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731338', 'tblTempUsageDetail_20' ) end [2025-03-21 16:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:15:25] Production.INFO: ==16892== Releasing lock... [2025-03-21 16:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:15:25] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:16:06 [end_date_ymd] => 2025-03-21 16:16:06 [RateCDR] => 1 ) [2025-03-21 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-21 13:16:06' and `end` < '2025-03-21 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-21 16:16:19] Production.INFO: count ==4889 [2025-03-21 16:16:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:16:06 - End Time 2025-03-21 16:16:06 [2025-03-21 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731343', 'tblTempUsageDetail_20' ) start [2025-03-21 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731343', 'tblTempUsageDetail_20' ) end [2025-03-21 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731343', 'tblTempVendorCDR_20' ) start [2025-03-21 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731343', 'tblTempVendorCDR_20' ) end [2025-03-21 16:16:21] Production.INFO: ProcessCDR(1,14731343,1,1,2) [2025-03-21 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731343', 'tblTempUsageDetail_20' ) start [2025-03-21 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731343', 'tblTempUsageDetail_20' ) end [2025-03-21 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:16:27] Production.INFO: ==16967== Releasing lock... [2025-03-21 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:16:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:17:05 [end_date_ymd] => 2025-03-21 16:17:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:17:05' and `end` < '2025-03-21 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-21 16:17:19] Production.INFO: count ==4891 [2025-03-21 16:17:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:17:05 - End Time 2025-03-21 16:17:05 [2025-03-21 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731348', 'tblTempUsageDetail_20' ) start [2025-03-21 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731348', 'tblTempUsageDetail_20' ) end [2025-03-21 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731348', 'tblTempVendorCDR_20' ) start [2025-03-21 16:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731348', 'tblTempVendorCDR_20' ) end [2025-03-21 16:17:22] Production.INFO: ProcessCDR(1,14731348,1,1,2) [2025-03-21 16:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731348', 'tblTempUsageDetail_20' ) start [2025-03-21 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731348', 'tblTempUsageDetail_20' ) end [2025-03-21 16:17:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:17:28] Production.INFO: ==17043== Releasing lock... [2025-03-21 16:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:17:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:18:06 [end_date_ymd] => 2025-03-21 16:18:06 [RateCDR] => 1 ) [2025-03-21 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-21 13:18:06' and `end` < '2025-03-21 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-21 16:18:20] Production.INFO: count ==4908 [2025-03-21 16:18:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:18:06 - End Time 2025-03-21 16:18:06 [2025-03-21 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731353', 'tblTempUsageDetail_20' ) start [2025-03-21 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731353', 'tblTempUsageDetail_20' ) end [2025-03-21 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731353', 'tblTempVendorCDR_20' ) start [2025-03-21 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731353', 'tblTempVendorCDR_20' ) end [2025-03-21 16:18:22] Production.INFO: ProcessCDR(1,14731353,1,1,2) [2025-03-21 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731353', 'tblTempUsageDetail_20' ) start [2025-03-21 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731353', 'tblTempUsageDetail_20' ) end [2025-03-21 16:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:18:28] Production.INFO: ==17115== Releasing lock... [2025-03-21 16:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:18:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:19:05 [end_date_ymd] => 2025-03-21 16:19:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:19:05' and `end` < '2025-03-21 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-21 16:19:19] Production.INFO: count ==4909 [2025-03-21 16:19:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:19:05 - End Time 2025-03-21 16:19:05 [2025-03-21 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731358', 'tblTempUsageDetail_20' ) start [2025-03-21 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731358', 'tblTempUsageDetail_20' ) end [2025-03-21 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731358', 'tblTempVendorCDR_20' ) start [2025-03-21 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731358', 'tblTempVendorCDR_20' ) end [2025-03-21 16:19:21] Production.INFO: ProcessCDR(1,14731358,1,1,2) [2025-03-21 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731358', 'tblTempUsageDetail_20' ) start [2025-03-21 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731358', 'tblTempUsageDetail_20' ) end [2025-03-21 16:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:19:26] Production.INFO: ==17188== Releasing lock... [2025-03-21 16:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:19:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:20:06 [end_date_ymd] => 2025-03-21 16:20:06 [RateCDR] => 1 ) [2025-03-21 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-21 13:20:06' and `end` < '2025-03-21 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-21 16:20:20] Production.INFO: count ==4918 [2025-03-21 16:20:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:20:06 - End Time 2025-03-21 16:20:06 [2025-03-21 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731362', 'tblTempUsageDetail_20' ) start [2025-03-21 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731362', 'tblTempUsageDetail_20' ) end [2025-03-21 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731362', 'tblTempVendorCDR_20' ) start [2025-03-21 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731362', 'tblTempVendorCDR_20' ) end [2025-03-21 16:20:22] Production.INFO: ProcessCDR(1,14731362,1,1,2) [2025-03-21 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731362', 'tblTempUsageDetail_20' ) start [2025-03-21 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731362', 'tblTempUsageDetail_20' ) end [2025-03-21 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:20:27] Production.INFO: ==17264== Releasing lock... [2025-03-21 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:20:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:21:05 [end_date_ymd] => 2025-03-21 16:21:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:21:05' and `end` < '2025-03-21 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-21 16:21:19] Production.INFO: count ==4946 [2025-03-21 16:21:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:21:05 - End Time 2025-03-21 16:21:05 [2025-03-21 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731369', 'tblTempUsageDetail_20' ) start [2025-03-21 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731369', 'tblTempUsageDetail_20' ) end [2025-03-21 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731369', 'tblTempVendorCDR_20' ) start [2025-03-21 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731369', 'tblTempVendorCDR_20' ) end [2025-03-21 16:21:21] Production.INFO: ProcessCDR(1,14731369,1,1,2) [2025-03-21 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731369', 'tblTempUsageDetail_20' ) start [2025-03-21 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731369', 'tblTempUsageDetail_20' ) end [2025-03-21 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:21:27] Production.INFO: ==17336== Releasing lock... [2025-03-21 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:21:27] Production.INFO: 65 MB #Memory Used# [2025-03-21 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:22:05 [end_date_ymd] => 2025-03-21 16:22:05 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:22:05' and `end` < '2025-03-21 16: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-21 16:22:19] Production.INFO: count ==4979 [2025-03-21 16:22:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:22:05 - End Time 2025-03-21 16:22:05 [2025-03-21 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731374', 'tblTempUsageDetail_20' ) start [2025-03-21 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731374', 'tblTempUsageDetail_20' ) end [2025-03-21 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731374', 'tblTempVendorCDR_20' ) start [2025-03-21 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731374', 'tblTempVendorCDR_20' ) end [2025-03-21 16:22:21] Production.INFO: ProcessCDR(1,14731374,1,1,2) [2025-03-21 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731374', 'tblTempUsageDetail_20' ) start [2025-03-21 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731374', 'tblTempUsageDetail_20' ) end [2025-03-21 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:22:27] Production.INFO: ==17408== Releasing lock... [2025-03-21 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:22:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:23:05 [end_date_ymd] => 2025-03-21 16:23:05 [RateCDR] => 1 ) [2025-03-21 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 13:23:05' and `end` < '2025-03-21 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 16:23:18] Production.INFO: count ==4968 [2025-03-21 16:23:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:23:05 - End Time 2025-03-21 16:23:05 [2025-03-21 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731379', 'tblTempUsageDetail_20' ) start [2025-03-21 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731379', 'tblTempUsageDetail_20' ) end [2025-03-21 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731379', 'tblTempVendorCDR_20' ) start [2025-03-21 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731379', 'tblTempVendorCDR_20' ) end [2025-03-21 16:23:21] Production.INFO: ProcessCDR(1,14731379,1,1,2) [2025-03-21 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731379', 'tblTempUsageDetail_20' ) start [2025-03-21 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731379', 'tblTempUsageDetail_20' ) end [2025-03-21 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:23:26] Production.INFO: ==17520== Releasing lock... [2025-03-21 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:23:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:24:06 [end_date_ymd] => 2025-03-21 16:24:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:24:06' and `end` < '2025-03-21 16: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-21 16:24:20] Production.INFO: count ==4928 [2025-03-21 16:24:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:24:06 - End Time 2025-03-21 16:24:06 [2025-03-21 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731384', 'tblTempUsageDetail_20' ) start [2025-03-21 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731384', 'tblTempUsageDetail_20' ) end [2025-03-21 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731384', 'tblTempVendorCDR_20' ) start [2025-03-21 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731384', 'tblTempVendorCDR_20' ) end [2025-03-21 16:24:22] Production.INFO: ProcessCDR(1,14731384,1,1,2) [2025-03-21 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731384', 'tblTempUsageDetail_20' ) start [2025-03-21 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731384', 'tblTempUsageDetail_20' ) end [2025-03-21 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:24:27] Production.INFO: ==17605== Releasing lock... [2025-03-21 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:24:27] Production.INFO: 65 MB #Memory Used# [2025-03-21 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:25:05 [end_date_ymd] => 2025-03-21 16:25:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:25:05' and `end` < '2025-03-21 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-21 16:25:19] Production.INFO: count ==4919 [2025-03-21 16:25:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:25:05 - End Time 2025-03-21 16:25:05 [2025-03-21 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731389', 'tblTempUsageDetail_20' ) start [2025-03-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731389', 'tblTempUsageDetail_20' ) end [2025-03-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731389', 'tblTempVendorCDR_20' ) start [2025-03-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731389', 'tblTempVendorCDR_20' ) end [2025-03-21 16:25:21] Production.INFO: ProcessCDR(1,14731389,1,1,2) [2025-03-21 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731389', 'tblTempUsageDetail_20' ) start [2025-03-21 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731389', 'tblTempUsageDetail_20' ) end [2025-03-21 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:25:26] Production.INFO: ==17707== Releasing lock... [2025-03-21 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:25:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:26:06 [end_date_ymd] => 2025-03-21 16:26:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:26:06' and `end` < '2025-03-21 16: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-21 16:26:19] Production.INFO: count ==4928 [2025-03-21 16:26:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:26:06 - End Time 2025-03-21 16:26:06 [2025-03-21 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731394', 'tblTempUsageDetail_20' ) start [2025-03-21 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731394', 'tblTempUsageDetail_20' ) end [2025-03-21 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731394', 'tblTempVendorCDR_20' ) start [2025-03-21 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731394', 'tblTempVendorCDR_20' ) end [2025-03-21 16:26:22] Production.INFO: ProcessCDR(1,14731394,1,1,2) [2025-03-21 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731394', 'tblTempUsageDetail_20' ) start [2025-03-21 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731394', 'tblTempUsageDetail_20' ) end [2025-03-21 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:26:27] Production.INFO: ==17810== Releasing lock... [2025-03-21 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:26:27] Production.INFO: 65 MB #Memory Used# [2025-03-21 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:27:05 [end_date_ymd] => 2025-03-21 16:27:05 [RateCDR] => 1 ) [2025-03-21 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 13:27:05' and `end` < '2025-03-21 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 16:27:19] Production.INFO: count ==4935 [2025-03-21 16:27:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:27:05 - End Time 2025-03-21 16:27:05 [2025-03-21 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731399', 'tblTempUsageDetail_20' ) start [2025-03-21 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731399', 'tblTempUsageDetail_20' ) end [2025-03-21 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731399', 'tblTempVendorCDR_20' ) start [2025-03-21 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731399', 'tblTempVendorCDR_20' ) end [2025-03-21 16:27:21] Production.INFO: ProcessCDR(1,14731399,1,1,2) [2025-03-21 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731399', 'tblTempUsageDetail_20' ) start [2025-03-21 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731399', 'tblTempUsageDetail_20' ) end [2025-03-21 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:27:27] Production.INFO: ==17900== Releasing lock... [2025-03-21 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:27:27] Production.INFO: 65 MB #Memory Used# [2025-03-21 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:28:06 [end_date_ymd] => 2025-03-21 16:28:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:28:06' and `end` < '2025-03-21 16: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-21 16:28:19] Production.INFO: count ==4959 [2025-03-21 16:28:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:28:06 - End Time 2025-03-21 16:28:06 [2025-03-21 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731404', 'tblTempUsageDetail_20' ) start [2025-03-21 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731404', 'tblTempUsageDetail_20' ) end [2025-03-21 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731404', 'tblTempVendorCDR_20' ) start [2025-03-21 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731404', 'tblTempVendorCDR_20' ) end [2025-03-21 16:28:21] Production.INFO: ProcessCDR(1,14731404,1,1,2) [2025-03-21 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731404', 'tblTempUsageDetail_20' ) start [2025-03-21 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731404', 'tblTempUsageDetail_20' ) end [2025-03-21 16:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:28:28] Production.INFO: ==17975== Releasing lock... [2025-03-21 16:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:28:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:29:06 [end_date_ymd] => 2025-03-21 16:29:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:29:06' and `end` < '2025-03-21 16: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-21 16:29:19] Production.INFO: count ==4959 [2025-03-21 16:29:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:29:06 - End Time 2025-03-21 16:29:06 [2025-03-21 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731409', 'tblTempUsageDetail_20' ) start [2025-03-21 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731409', 'tblTempUsageDetail_20' ) end [2025-03-21 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731409', 'tblTempVendorCDR_20' ) start [2025-03-21 16:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731409', 'tblTempVendorCDR_20' ) end [2025-03-21 16:29:22] Production.INFO: ProcessCDR(1,14731409,1,1,2) [2025-03-21 16:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731409', 'tblTempUsageDetail_20' ) start [2025-03-21 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731409', 'tblTempUsageDetail_20' ) end [2025-03-21 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:29:27] Production.INFO: ==18052== Releasing lock... [2025-03-21 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:29:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 16:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:30:07 [end_date_ymd] => 2025-03-21 16:30:07 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:30:07' and `end` < '2025-03-21 16: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-21 16:30:20] Production.INFO: count ==4953 [2025-03-21 16:30:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:30:07 - End Time 2025-03-21 16:30:07 [2025-03-21 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731415', 'tblTempUsageDetail_20' ) start [2025-03-21 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731415', 'tblTempUsageDetail_20' ) end [2025-03-21 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731415', 'tblTempVendorCDR_20' ) start [2025-03-21 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731415', 'tblTempVendorCDR_20' ) end [2025-03-21 16:30:22] Production.INFO: ProcessCDR(1,14731415,1,1,2) [2025-03-21 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731415', 'tblTempUsageDetail_20' ) start [2025-03-21 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731415', 'tblTempUsageDetail_20' ) end [2025-03-21 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:30:28] Production.INFO: ==18128== Releasing lock... [2025-03-21 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:30:28] Production.INFO: 65 MB #Memory Used# [2025-03-21 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:31:05 [end_date_ymd] => 2025-03-21 16:31:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:31:05' and `end` < '2025-03-21 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-21 16:31:18] Production.INFO: count ==4944 [2025-03-21 16:31:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:31:05 - End Time 2025-03-21 16:31:05 [2025-03-21 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731420', 'tblTempUsageDetail_20' ) start [2025-03-21 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731420', 'tblTempUsageDetail_20' ) end [2025-03-21 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731420', 'tblTempVendorCDR_20' ) start [2025-03-21 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731420', 'tblTempVendorCDR_20' ) end [2025-03-21 16:31:21] Production.INFO: ProcessCDR(1,14731420,1,1,2) [2025-03-21 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731420', 'tblTempUsageDetail_20' ) start [2025-03-21 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731420', 'tblTempUsageDetail_20' ) end [2025-03-21 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:31:26] Production.INFO: ==18199== Releasing lock... [2025-03-21 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:31:26] Production.INFO: 65 MB #Memory Used# [2025-03-21 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:32:06 [end_date_ymd] => 2025-03-21 16:32:06 [RateCDR] => 1 ) [2025-03-21 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-21 13:32:06' and `end` < '2025-03-21 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-21 16:32:19] Production.INFO: count ==4945 [2025-03-21 16:32:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:32:06 - End Time 2025-03-21 16:32:06 [2025-03-21 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731425', 'tblTempUsageDetail_20' ) start [2025-03-21 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731425', 'tblTempUsageDetail_20' ) end [2025-03-21 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731425', 'tblTempVendorCDR_20' ) start [2025-03-21 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731425', 'tblTempVendorCDR_20' ) end [2025-03-21 16:32:22] Production.INFO: ProcessCDR(1,14731425,1,1,2) [2025-03-21 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731425', 'tblTempUsageDetail_20' ) start [2025-03-21 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731425', 'tblTempUsageDetail_20' ) end [2025-03-21 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:32:27] Production.INFO: ==18274== Releasing lock... [2025-03-21 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:32:27] Production.INFO: 65 MB #Memory Used# [2025-03-21 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:33:05 [end_date_ymd] => 2025-03-21 16:33:05 [RateCDR] => 1 ) [2025-03-21 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 13:33:05' and `end` < '2025-03-21 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 16:33:19] Production.INFO: count ==4949 [2025-03-21 16:33:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:33:05 - End Time 2025-03-21 16:33:05 [2025-03-21 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731430', 'tblTempUsageDetail_20' ) start [2025-03-21 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731430', 'tblTempUsageDetail_20' ) end [2025-03-21 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731430', 'tblTempVendorCDR_20' ) start [2025-03-21 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731430', 'tblTempVendorCDR_20' ) end [2025-03-21 16:33:21] Production.INFO: ProcessCDR(1,14731430,1,1,2) [2025-03-21 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731430', 'tblTempUsageDetail_20' ) start [2025-03-21 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731430', 'tblTempUsageDetail_20' ) end [2025-03-21 16:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:33:26] Production.INFO: ==18345== Releasing lock... [2025-03-21 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:33:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:34:06 [end_date_ymd] => 2025-03-21 16:34:06 [RateCDR] => 1 ) [2025-03-21 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-21 13:34:06' and `end` < '2025-03-21 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-21 16:34:19] Production.INFO: count ==4941 [2025-03-21 16:34:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:34:06 - End Time 2025-03-21 16:34:06 [2025-03-21 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731435', 'tblTempUsageDetail_20' ) start [2025-03-21 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731435', 'tblTempUsageDetail_20' ) end [2025-03-21 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731435', 'tblTempVendorCDR_20' ) start [2025-03-21 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731435', 'tblTempVendorCDR_20' ) end [2025-03-21 16:34:21] Production.INFO: ProcessCDR(1,14731435,1,1,2) [2025-03-21 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731435', 'tblTempUsageDetail_20' ) start [2025-03-21 16:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731435', 'tblTempUsageDetail_20' ) end [2025-03-21 16:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:34:25] Production.INFO: ==18416== Releasing lock... [2025-03-21 16:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:34:25] Production.INFO: 65 MB #Memory Used# [2025-03-21 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:35:05 [end_date_ymd] => 2025-03-21 16:35:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:35:05' and `end` < '2025-03-21 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-21 16:35:19] Production.INFO: count ==4929 [2025-03-21 16:35:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:35:05 - End Time 2025-03-21 16:35:05 [2025-03-21 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731440', 'tblTempUsageDetail_20' ) start [2025-03-21 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731440', 'tblTempUsageDetail_20' ) end [2025-03-21 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731440', 'tblTempVendorCDR_20' ) start [2025-03-21 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731440', 'tblTempVendorCDR_20' ) end [2025-03-21 16:35:22] Production.INFO: ProcessCDR(1,14731440,1,1,2) [2025-03-21 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731440', 'tblTempUsageDetail_20' ) start [2025-03-21 16:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731440', 'tblTempUsageDetail_20' ) end [2025-03-21 16:35:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:35:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:35:28] Production.INFO: ==18492== Releasing lock... [2025-03-21 16:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:35:28] Production.INFO: 65 MB #Memory Used# [2025-03-21 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:36:06 [end_date_ymd] => 2025-03-21 16:36:06 [RateCDR] => 1 ) [2025-03-21 16:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 13:36:06' and `end` < '2025-03-21 16:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 16:36:19] Production.INFO: count ==4918 [2025-03-21 16:36:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:36:06 - End Time 2025-03-21 16:36:06 [2025-03-21 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731445', 'tblTempUsageDetail_20' ) start [2025-03-21 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731445', 'tblTempUsageDetail_20' ) end [2025-03-21 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731445', 'tblTempVendorCDR_20' ) start [2025-03-21 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731445', 'tblTempVendorCDR_20' ) end [2025-03-21 16:36:21] Production.INFO: ProcessCDR(1,14731445,1,1,2) [2025-03-21 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731445', 'tblTempUsageDetail_20' ) start [2025-03-21 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731445', 'tblTempUsageDetail_20' ) end [2025-03-21 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:36:27] Production.INFO: ==18564== Releasing lock... [2025-03-21 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:36:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:37:05 [end_date_ymd] => 2025-03-21 16:37:05 [RateCDR] => 1 ) [2025-03-21 16:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 13:37:05' and `end` < '2025-03-21 16:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 16:37:18] Production.INFO: count ==4902 [2025-03-21 16:37:20] Production.ERROR: pbx CDR StartTime 2025-03-21 13:37:05 - End Time 2025-03-21 16:37:05 [2025-03-21 16:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731450', 'tblTempUsageDetail_20' ) start [2025-03-21 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731450', 'tblTempUsageDetail_20' ) end [2025-03-21 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731450', 'tblTempVendorCDR_20' ) start [2025-03-21 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731450', 'tblTempVendorCDR_20' ) end [2025-03-21 16:37:21] Production.INFO: ProcessCDR(1,14731450,1,1,2) [2025-03-21 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731450', 'tblTempUsageDetail_20' ) start [2025-03-21 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731450', 'tblTempUsageDetail_20' ) end [2025-03-21 16:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:37:26] Production.INFO: ==18637== Releasing lock... [2025-03-21 16:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:37:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:38:06 [end_date_ymd] => 2025-03-21 16:38:06 [RateCDR] => 1 ) [2025-03-21 16:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 13:38:06' and `end` < '2025-03-21 16:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 16:38:19] Production.INFO: count ==4891 [2025-03-21 16:38:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:38:06 - End Time 2025-03-21 16:38:06 [2025-03-21 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731455', 'tblTempUsageDetail_20' ) start [2025-03-21 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731455', 'tblTempUsageDetail_20' ) end [2025-03-21 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731455', 'tblTempVendorCDR_20' ) start [2025-03-21 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731455', 'tblTempVendorCDR_20' ) end [2025-03-21 16:38:21] Production.INFO: ProcessCDR(1,14731455,1,1,2) [2025-03-21 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731455', 'tblTempUsageDetail_20' ) start [2025-03-21 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731455', 'tblTempUsageDetail_20' ) end [2025-03-21 16:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:38:27] Production.INFO: ==18753== Releasing lock... [2025-03-21 16:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:38:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:39:05 [end_date_ymd] => 2025-03-21 16:39:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:39:05' and `end` < '2025-03-21 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-21 16:39:19] Production.INFO: count ==4874 [2025-03-21 16:39:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:39:05 - End Time 2025-03-21 16:39:05 [2025-03-21 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731460', 'tblTempUsageDetail_20' ) start [2025-03-21 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731460', 'tblTempUsageDetail_20' ) end [2025-03-21 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731460', 'tblTempVendorCDR_20' ) start [2025-03-21 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731460', 'tblTempVendorCDR_20' ) end [2025-03-21 16:39:21] Production.INFO: ProcessCDR(1,14731460,1,1,2) [2025-03-21 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731460', 'tblTempUsageDetail_20' ) start [2025-03-21 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731460', 'tblTempUsageDetail_20' ) end [2025-03-21 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:39:27] Production.INFO: ==18829== Releasing lock... [2025-03-21 16:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:39:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:40:06 [end_date_ymd] => 2025-03-21 16:40:06 [RateCDR] => 1 ) [2025-03-21 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-21 13:40:06' and `end` < '2025-03-21 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-21 16:40:20] Production.INFO: count ==4894 [2025-03-21 16:40:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:40:06 - End Time 2025-03-21 16:40:06 [2025-03-21 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731465', 'tblTempUsageDetail_20' ) start [2025-03-21 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731465', 'tblTempUsageDetail_20' ) end [2025-03-21 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731465', 'tblTempVendorCDR_20' ) start [2025-03-21 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731465', 'tblTempVendorCDR_20' ) end [2025-03-21 16:40:22] Production.INFO: ProcessCDR(1,14731465,1,1,2) [2025-03-21 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731465', 'tblTempUsageDetail_20' ) start [2025-03-21 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731465', 'tblTempUsageDetail_20' ) end [2025-03-21 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:40:28] Production.INFO: ==18909== Releasing lock... [2025-03-21 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:40:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:41:05 [end_date_ymd] => 2025-03-21 16:41:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:41:05' and `end` < '2025-03-21 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-21 16:41:19] Production.INFO: count ==4891 [2025-03-21 16:41:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:41:05 - End Time 2025-03-21 16:41:05 [2025-03-21 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731471', 'tblTempUsageDetail_20' ) start [2025-03-21 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731471', 'tblTempUsageDetail_20' ) end [2025-03-21 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731471', 'tblTempVendorCDR_20' ) start [2025-03-21 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731471', 'tblTempVendorCDR_20' ) end [2025-03-21 16:41:21] Production.INFO: ProcessCDR(1,14731471,1,1,2) [2025-03-21 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731471', 'tblTempUsageDetail_20' ) start [2025-03-21 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731471', 'tblTempUsageDetail_20' ) end [2025-03-21 16:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:41:27] Production.INFO: ==18982== Releasing lock... [2025-03-21 16:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:41:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:42:06 [end_date_ymd] => 2025-03-21 16:42:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:42:06' and `end` < '2025-03-21 16: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-21 16:42:19] Production.INFO: count ==4905 [2025-03-21 16:42:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:42:06 - End Time 2025-03-21 16:42:06 [2025-03-21 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731476', 'tblTempUsageDetail_20' ) start [2025-03-21 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731476', 'tblTempUsageDetail_20' ) end [2025-03-21 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731476', 'tblTempVendorCDR_20' ) start [2025-03-21 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731476', 'tblTempVendorCDR_20' ) end [2025-03-21 16:42:22] Production.INFO: ProcessCDR(1,14731476,1,1,2) [2025-03-21 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731476', 'tblTempUsageDetail_20' ) start [2025-03-21 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731476', 'tblTempUsageDetail_20' ) end [2025-03-21 16:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:42:28] Production.INFO: ==19060== Releasing lock... [2025-03-21 16:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:42:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:43:05 [end_date_ymd] => 2025-03-21 16:43:05 [RateCDR] => 1 ) [2025-03-21 16:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 13:43:05' and `end` < '2025-03-21 16:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 16:43:19] Production.INFO: count ==4921 [2025-03-21 16:43:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:43:05 - End Time 2025-03-21 16:43:05 [2025-03-21 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731481', 'tblTempUsageDetail_20' ) start [2025-03-21 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731481', 'tblTempUsageDetail_20' ) end [2025-03-21 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731481', 'tblTempVendorCDR_20' ) start [2025-03-21 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731481', 'tblTempVendorCDR_20' ) end [2025-03-21 16:43:21] Production.INFO: ProcessCDR(1,14731481,1,1,2) [2025-03-21 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731481', 'tblTempUsageDetail_20' ) start [2025-03-21 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731481', 'tblTempUsageDetail_20' ) end [2025-03-21 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:43:27] Production.INFO: ==19148== Releasing lock... [2025-03-21 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:43:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:44:06 [end_date_ymd] => 2025-03-21 16:44:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:44:06' and `end` < '2025-03-21 16: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-21 16:44:19] Production.INFO: count ==4905 [2025-03-21 16:44:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:44:06 - End Time 2025-03-21 16:44:06 [2025-03-21 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731486', 'tblTempUsageDetail_20' ) start [2025-03-21 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731486', 'tblTempUsageDetail_20' ) end [2025-03-21 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731486', 'tblTempVendorCDR_20' ) start [2025-03-21 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731486', 'tblTempVendorCDR_20' ) end [2025-03-21 16:44:22] Production.INFO: ProcessCDR(1,14731486,1,1,2) [2025-03-21 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731486', 'tblTempUsageDetail_20' ) start [2025-03-21 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731486', 'tblTempUsageDetail_20' ) end [2025-03-21 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:44:27] Production.INFO: ==19223== Releasing lock... [2025-03-21 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:44:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:45:05 [end_date_ymd] => 2025-03-21 16:45:05 [RateCDR] => 1 ) [2025-03-21 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 13:45:05' and `end` < '2025-03-21 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 16:45:19] Production.INFO: count ==4906 [2025-03-21 16:45:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:45:05 - End Time 2025-03-21 16:45:05 [2025-03-21 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731491', 'tblTempUsageDetail_20' ) start [2025-03-21 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731491', 'tblTempUsageDetail_20' ) end [2025-03-21 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731491', 'tblTempVendorCDR_20' ) start [2025-03-21 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731491', 'tblTempVendorCDR_20' ) end [2025-03-21 16:45:21] Production.INFO: ProcessCDR(1,14731491,1,1,2) [2025-03-21 16:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731491', 'tblTempUsageDetail_20' ) start [2025-03-21 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731491', 'tblTempUsageDetail_20' ) end [2025-03-21 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:45:27] Production.INFO: ==19299== Releasing lock... [2025-03-21 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:45:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:46:06 [end_date_ymd] => 2025-03-21 16:46:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:46:06' and `end` < '2025-03-21 16: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-21 16:46:19] Production.INFO: count ==4895 [2025-03-21 16:46:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:46:06 - End Time 2025-03-21 16:46:06 [2025-03-21 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731496', 'tblTempUsageDetail_20' ) start [2025-03-21 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731496', 'tblTempUsageDetail_20' ) end [2025-03-21 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731496', 'tblTempVendorCDR_20' ) start [2025-03-21 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731496', 'tblTempVendorCDR_20' ) end [2025-03-21 16:46:22] Production.INFO: ProcessCDR(1,14731496,1,1,2) [2025-03-21 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731496', 'tblTempUsageDetail_20' ) start [2025-03-21 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731496', 'tblTempUsageDetail_20' ) end [2025-03-21 16:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:46:28] Production.INFO: ==19383== Releasing lock... [2025-03-21 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:46:28] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:47:05 [end_date_ymd] => 2025-03-21 16:47:05 [RateCDR] => 1 ) [2025-03-21 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-21 13:47:05' and `end` < '2025-03-21 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-21 16:47:20] Production.INFO: count ==4880 [2025-03-21 16:47:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:47:05 - End Time 2025-03-21 16:47:05 [2025-03-21 16:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731501', 'tblTempUsageDetail_20' ) start [2025-03-21 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731501', 'tblTempUsageDetail_20' ) end [2025-03-21 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731501', 'tblTempVendorCDR_20' ) start [2025-03-21 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731501', 'tblTempVendorCDR_20' ) end [2025-03-21 16:47:22] Production.INFO: ProcessCDR(1,14731501,1,1,2) [2025-03-21 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731501', 'tblTempUsageDetail_20' ) start [2025-03-21 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731501', 'tblTempUsageDetail_20' ) end [2025-03-21 16:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:47:28] Production.INFO: ==19458== Releasing lock... [2025-03-21 16:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:47:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:48:06 [end_date_ymd] => 2025-03-21 16:48:06 [RateCDR] => 1 ) [2025-03-21 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-21 13:48:06' and `end` < '2025-03-21 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-21 16:48:20] Production.INFO: count ==4899 [2025-03-21 16:48:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:48:06 - End Time 2025-03-21 16:48:06 [2025-03-21 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731506', 'tblTempUsageDetail_20' ) start [2025-03-21 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731506', 'tblTempUsageDetail_20' ) end [2025-03-21 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731506', 'tblTempVendorCDR_20' ) start [2025-03-21 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731506', 'tblTempVendorCDR_20' ) end [2025-03-21 16:48:22] Production.INFO: ProcessCDR(1,14731506,1,1,2) [2025-03-21 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731506', 'tblTempUsageDetail_20' ) start [2025-03-21 16:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731506', 'tblTempUsageDetail_20' ) end [2025-03-21 16:48:29] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:48:29] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:48:29] Production.INFO: ==19533== Releasing lock... [2025-03-21 16:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:48:29] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:49:06 [end_date_ymd] => 2025-03-21 16:49:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:49:06' and `end` < '2025-03-21 16: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-21 16:49:19] Production.INFO: count ==4910 [2025-03-21 16:49:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:49:06 - End Time 2025-03-21 16:49:06 [2025-03-21 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731511', 'tblTempUsageDetail_20' ) start [2025-03-21 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731511', 'tblTempUsageDetail_20' ) end [2025-03-21 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731511', 'tblTempVendorCDR_20' ) start [2025-03-21 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731511', 'tblTempVendorCDR_20' ) end [2025-03-21 16:49:22] Production.INFO: ProcessCDR(1,14731511,1,1,2) [2025-03-21 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731511', 'tblTempUsageDetail_20' ) start [2025-03-21 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731511', 'tblTempUsageDetail_20' ) end [2025-03-21 16:49:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:49:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:49:27] Production.INFO: ==19613== Releasing lock... [2025-03-21 16:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:49:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:50:07 [end_date_ymd] => 2025-03-21 16:50:07 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:50:07' and `end` < '2025-03-21 16: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-21 16:50:21] Production.INFO: count ==4920 [2025-03-21 16:50:23] Production.ERROR: pbx CDR StartTime 2025-03-21 13:50:07 - End Time 2025-03-21 16:50:07 [2025-03-21 16:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731517', 'tblTempUsageDetail_20' ) start [2025-03-21 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731517', 'tblTempUsageDetail_20' ) end [2025-03-21 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731517', 'tblTempVendorCDR_20' ) start [2025-03-21 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731517', 'tblTempVendorCDR_20' ) end [2025-03-21 16:50:23] Production.INFO: ProcessCDR(1,14731517,1,1,2) [2025-03-21 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731517', 'tblTempUsageDetail_20' ) start [2025-03-21 16:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731517', 'tblTempUsageDetail_20' ) end [2025-03-21 16:50:30] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:50:30] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:50:30] Production.INFO: ==19691== Releasing lock... [2025-03-21 16:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:50:30] Production.INFO: 64.75 MB #Memory Used# [2025-03-21 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:51:06 [end_date_ymd] => 2025-03-21 16:51:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:51:06' and `end` < '2025-03-21 16: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-21 16:51:19] Production.INFO: count ==4987 [2025-03-21 16:51:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:51:06 - End Time 2025-03-21 16:51:06 [2025-03-21 16:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731522', 'tblTempUsageDetail_20' ) start [2025-03-21 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731522', 'tblTempUsageDetail_20' ) end [2025-03-21 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731522', 'tblTempVendorCDR_20' ) start [2025-03-21 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731522', 'tblTempVendorCDR_20' ) end [2025-03-21 16:51:22] Production.INFO: ProcessCDR(1,14731522,1,1,2) [2025-03-21 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731522', 'tblTempUsageDetail_20' ) start [2025-03-21 16:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731522', 'tblTempUsageDetail_20' ) end [2025-03-21 16:51:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:51:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:51:28] Production.INFO: ==19774== Releasing lock... [2025-03-21 16:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:51:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:52:06 [end_date_ymd] => 2025-03-21 16:52:06 [RateCDR] => 1 ) [2025-03-21 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-21 13:52:06' and `end` < '2025-03-21 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-21 16:52:20] Production.INFO: count ==5016 [2025-03-21 16:52:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:52:06 - End Time 2025-03-21 16:52:06 [2025-03-21 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731527', 'tblTempUsageDetail_20' ) start [2025-03-21 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731527', 'tblTempUsageDetail_20' ) end [2025-03-21 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731527', 'tblTempVendorCDR_20' ) start [2025-03-21 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731527', 'tblTempVendorCDR_20' ) end [2025-03-21 16:52:22] Production.INFO: ProcessCDR(1,14731527,1,1,2) [2025-03-21 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731527', 'tblTempUsageDetail_20' ) start [2025-03-21 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731527', 'tblTempUsageDetail_20' ) end [2025-03-21 16:52:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:52:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:52:28] Production.INFO: ==19851== Releasing lock... [2025-03-21 16:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:52:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:53:05 [end_date_ymd] => 2025-03-21 16:53:05 [RateCDR] => 1 ) [2025-03-21 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 13:53:05' and `end` < '2025-03-21 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 16:53:19] Production.INFO: count ==5008 [2025-03-21 16:53:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:53:05 - End Time 2025-03-21 16:53:05 [2025-03-21 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731532', 'tblTempUsageDetail_20' ) start [2025-03-21 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731532', 'tblTempUsageDetail_20' ) end [2025-03-21 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731532', 'tblTempVendorCDR_20' ) start [2025-03-21 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731532', 'tblTempVendorCDR_20' ) end [2025-03-21 16:53:21] Production.INFO: ProcessCDR(1,14731532,1,1,2) [2025-03-21 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731532', 'tblTempUsageDetail_20' ) start [2025-03-21 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731532', 'tblTempUsageDetail_20' ) end [2025-03-21 16:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:53:26] Production.INFO: ==19926== Releasing lock... [2025-03-21 16:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:53:26] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:54:06 [end_date_ymd] => 2025-03-21 16:54:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:54:06' and `end` < '2025-03-21 16: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-21 16:54:19] Production.INFO: count ==5011 [2025-03-21 16:54:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:54:06 - End Time 2025-03-21 16:54:06 [2025-03-21 16:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731537', 'tblTempUsageDetail_20' ) start [2025-03-21 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731537', 'tblTempUsageDetail_20' ) end [2025-03-21 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731537', 'tblTempVendorCDR_20' ) start [2025-03-21 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731537', 'tblTempVendorCDR_20' ) end [2025-03-21 16:54:22] Production.INFO: ProcessCDR(1,14731537,1,1,2) [2025-03-21 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731537', 'tblTempUsageDetail_20' ) start [2025-03-21 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731537', 'tblTempUsageDetail_20' ) end [2025-03-21 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:54:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:54:28] Production.INFO: ==20042== Releasing lock... [2025-03-21 16:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:54:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:55:06 [end_date_ymd] => 2025-03-21 16:55:06 [RateCDR] => 1 ) [2025-03-21 16:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 13:55:06' and `end` < '2025-03-21 16: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-21 16:55:20] Production.INFO: count ==5026 [2025-03-21 16:55:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:55:06 - End Time 2025-03-21 16:55:06 [2025-03-21 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731542', 'tblTempUsageDetail_20' ) start [2025-03-21 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731542', 'tblTempUsageDetail_20' ) end [2025-03-21 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731542', 'tblTempVendorCDR_20' ) start [2025-03-21 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731542', 'tblTempVendorCDR_20' ) end [2025-03-21 16:55:22] Production.INFO: ProcessCDR(1,14731542,1,1,2) [2025-03-21 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731542', 'tblTempUsageDetail_20' ) start [2025-03-21 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731542', 'tblTempUsageDetail_20' ) end [2025-03-21 16:55:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:55:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:55:28] Production.INFO: ==20121== Releasing lock... [2025-03-21 16:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:55:28] Production.INFO: 65.5 MB #Memory Used# [2025-03-21 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:56:06 [end_date_ymd] => 2025-03-21 16:56:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:56:06' and `end` < '2025-03-21 16: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-21 16:56:20] Production.INFO: count ==5045 [2025-03-21 16:56:22] Production.ERROR: pbx CDR StartTime 2025-03-21 13:56:06 - End Time 2025-03-21 16:56:06 [2025-03-21 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731547', 'tblTempUsageDetail_20' ) start [2025-03-21 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731547', 'tblTempUsageDetail_20' ) end [2025-03-21 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731547', 'tblTempVendorCDR_20' ) start [2025-03-21 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731547', 'tblTempVendorCDR_20' ) end [2025-03-21 16:56:22] Production.INFO: ProcessCDR(1,14731547,1,1,2) [2025-03-21 16:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731547', 'tblTempUsageDetail_20' ) start [2025-03-21 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731547', 'tblTempUsageDetail_20' ) end [2025-03-21 16:56:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:56:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:56:28] Production.INFO: ==20208== Releasing lock... [2025-03-21 16:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:56:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:57:06 [end_date_ymd] => 2025-03-21 16:57:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:57:06' and `end` < '2025-03-21 16: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-21 16:57:19] Production.INFO: count ==5063 [2025-03-21 16:57:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:57:06 - End Time 2025-03-21 16:57:06 [2025-03-21 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731552', 'tblTempUsageDetail_20' ) start [2025-03-21 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731552', 'tblTempUsageDetail_20' ) end [2025-03-21 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731552', 'tblTempVendorCDR_20' ) start [2025-03-21 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731552', 'tblTempVendorCDR_20' ) end [2025-03-21 16:57:21] Production.INFO: ProcessCDR(1,14731552,1,1,2) [2025-03-21 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731552', 'tblTempUsageDetail_20' ) start [2025-03-21 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731552', 'tblTempUsageDetail_20' ) end [2025-03-21 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:57:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:57:28] Production.INFO: ==20280== Releasing lock... [2025-03-21 16:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:57:28] Production.INFO: 66 MB #Memory Used# [2025-03-21 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:58:05 [end_date_ymd] => 2025-03-21 16:58:05 [RateCDR] => 1 ) [2025-03-21 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 13:58:05' and `end` < '2025-03-21 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 16:58:18] Production.INFO: count ==5077 [2025-03-21 16:58:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:58:05 - End Time 2025-03-21 16:58:05 [2025-03-21 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731557', 'tblTempUsageDetail_20' ) start [2025-03-21 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731557', 'tblTempUsageDetail_20' ) end [2025-03-21 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731557', 'tblTempVendorCDR_20' ) start [2025-03-21 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731557', 'tblTempVendorCDR_20' ) end [2025-03-21 16:58:21] Production.INFO: ProcessCDR(1,14731557,1,1,2) [2025-03-21 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731557', 'tblTempUsageDetail_20' ) start [2025-03-21 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731557', 'tblTempUsageDetail_20' ) end [2025-03-21 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:58:26] Production.INFO: ==20360== Releasing lock... [2025-03-21 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:58:26] Production.INFO: 66 MB #Memory Used# [2025-03-21 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 13:59:06 [end_date_ymd] => 2025-03-21 16:59:06 [RateCDR] => 1 ) [2025-03-21 16: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-21 13:59:06' and `end` < '2025-03-21 16: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-21 16:59:19] Production.INFO: count ==5098 [2025-03-21 16:59:21] Production.ERROR: pbx CDR StartTime 2025-03-21 13:59:06 - End Time 2025-03-21 16:59:06 [2025-03-21 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731562', 'tblTempUsageDetail_20' ) start [2025-03-21 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731562', 'tblTempUsageDetail_20' ) end [2025-03-21 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731562', 'tblTempVendorCDR_20' ) start [2025-03-21 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731562', 'tblTempVendorCDR_20' ) end [2025-03-21 16:59:21] Production.INFO: ProcessCDR(1,14731562,1,1,2) [2025-03-21 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731562', 'tblTempUsageDetail_20' ) start [2025-03-21 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731562', 'tblTempUsageDetail_20' ) end [2025-03-21 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 16:59:27] Production.INFO: ==20436== Releasing lock... [2025-03-21 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 16:59:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:00:06 [end_date_ymd] => 2025-03-21 17:00:06 [RateCDR] => 1 ) [2025-03-21 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 14:00:06' and `end` < '2025-03-21 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 17:00:19] Production.INFO: count ==5108 [2025-03-21 17:00:22] Production.ERROR: pbx CDR StartTime 2025-03-21 14:00:06 - End Time 2025-03-21 17:00:06 [2025-03-21 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731568', 'tblTempUsageDetail_20' ) start [2025-03-21 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731568', 'tblTempUsageDetail_20' ) end [2025-03-21 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731568', 'tblTempVendorCDR_20' ) start [2025-03-21 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731568', 'tblTempVendorCDR_20' ) end [2025-03-21 17:00:22] Production.INFO: ProcessCDR(1,14731568,1,1,2) [2025-03-21 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731568', 'tblTempUsageDetail_20' ) start [2025-03-21 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731568', 'tblTempUsageDetail_20' ) end [2025-03-21 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:00:28] Production.INFO: ==20517== Releasing lock... [2025-03-21 17:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:00:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:01:06 [end_date_ymd] => 2025-03-21 17:01:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:01:06' and `end` < '2025-03-21 17: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-21 17:01:20] Production.INFO: count ==5130 [2025-03-21 17:01:22] Production.ERROR: pbx CDR StartTime 2025-03-21 14:01:06 - End Time 2025-03-21 17:01:06 [2025-03-21 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731573', 'tblTempUsageDetail_20' ) start [2025-03-21 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731573', 'tblTempUsageDetail_20' ) end [2025-03-21 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731573', 'tblTempVendorCDR_20' ) start [2025-03-21 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731573', 'tblTempVendorCDR_20' ) end [2025-03-21 17:01:22] Production.INFO: ProcessCDR(1,14731573,1,1,2) [2025-03-21 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731573', 'tblTempUsageDetail_20' ) start [2025-03-21 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731573', 'tblTempUsageDetail_20' ) end [2025-03-21 17:01:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:01:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:01:28] Production.INFO: ==20609== Releasing lock... [2025-03-21 17:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:01:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:02:06 [end_date_ymd] => 2025-03-21 17:02:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:02:06' and `end` < '2025-03-21 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-21 17:02:19] Production.INFO: count ==5105 [2025-03-21 17:02:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:02:06 - End Time 2025-03-21 17:02:06 [2025-03-21 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731578', 'tblTempUsageDetail_20' ) start [2025-03-21 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731578', 'tblTempUsageDetail_20' ) end [2025-03-21 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731578', 'tblTempVendorCDR_20' ) start [2025-03-21 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731578', 'tblTempVendorCDR_20' ) end [2025-03-21 17:02:22] Production.INFO: ProcessCDR(1,14731578,1,1,2) [2025-03-21 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731578', 'tblTempUsageDetail_20' ) start [2025-03-21 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731578', 'tblTempUsageDetail_20' ) end [2025-03-21 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:02:27] Production.INFO: ==20690== Releasing lock... [2025-03-21 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:02:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:03:06 [end_date_ymd] => 2025-03-21 17:03:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:03:06' and `end` < '2025-03-21 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-21 17:03:20] Production.INFO: count ==5077 [2025-03-21 17:03:22] Production.ERROR: pbx CDR StartTime 2025-03-21 14:03:06 - End Time 2025-03-21 17:03:06 [2025-03-21 17:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731583', 'tblTempUsageDetail_20' ) start [2025-03-21 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731583', 'tblTempUsageDetail_20' ) end [2025-03-21 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731583', 'tblTempVendorCDR_20' ) start [2025-03-21 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731583', 'tblTempVendorCDR_20' ) end [2025-03-21 17:03:22] Production.INFO: ProcessCDR(1,14731583,1,1,2) [2025-03-21 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731583', 'tblTempUsageDetail_20' ) start [2025-03-21 17:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731583', 'tblTempUsageDetail_20' ) end [2025-03-21 17:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:03:28] Production.INFO: ==20763== Releasing lock... [2025-03-21 17:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:03:28] Production.INFO: 66 MB #Memory Used# [2025-03-21 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:04:06 [end_date_ymd] => 2025-03-21 17:04:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:04:06' and `end` < '2025-03-21 17: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-21 17:04:19] Production.INFO: count ==5085 [2025-03-21 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:04:06 - End Time 2025-03-21 17:04:06 [2025-03-21 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731588', 'tblTempUsageDetail_20' ) start [2025-03-21 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731588', 'tblTempUsageDetail_20' ) end [2025-03-21 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731588', 'tblTempVendorCDR_20' ) start [2025-03-21 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731588', 'tblTempVendorCDR_20' ) end [2025-03-21 17:04:21] Production.INFO: ProcessCDR(1,14731588,1,1,2) [2025-03-21 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731588', 'tblTempUsageDetail_20' ) start [2025-03-21 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731588', 'tblTempUsageDetail_20' ) end [2025-03-21 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:04:27] Production.INFO: ==20841== Releasing lock... [2025-03-21 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:04:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:05:06 [end_date_ymd] => 2025-03-21 17:05:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:05:06' and `end` < '2025-03-21 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-21 17:05:19] Production.INFO: count ==5099 [2025-03-21 17:05:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:05:06 - End Time 2025-03-21 17:05:06 [2025-03-21 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731593', 'tblTempUsageDetail_20' ) start [2025-03-21 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731593', 'tblTempUsageDetail_20' ) end [2025-03-21 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731593', 'tblTempVendorCDR_20' ) start [2025-03-21 17:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731593', 'tblTempVendorCDR_20' ) end [2025-03-21 17:05:22] Production.INFO: ProcessCDR(1,14731593,1,1,2) [2025-03-21 17:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731593', 'tblTempUsageDetail_20' ) start [2025-03-21 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731593', 'tblTempUsageDetail_20' ) end [2025-03-21 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:05:26] Production.INFO: ==20921== Releasing lock... [2025-03-21 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:05:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:06:06 [end_date_ymd] => 2025-03-21 17:06:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:06:06' and `end` < '2025-03-21 17: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-21 17:06:19] Production.INFO: count ==5100 [2025-03-21 17:06:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:06:06 - End Time 2025-03-21 17:06:06 [2025-03-21 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731598', 'tblTempUsageDetail_20' ) start [2025-03-21 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731598', 'tblTempUsageDetail_20' ) end [2025-03-21 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731598', 'tblTempVendorCDR_20' ) start [2025-03-21 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731598', 'tblTempVendorCDR_20' ) end [2025-03-21 17:06:21] Production.INFO: ProcessCDR(1,14731598,1,1,2) [2025-03-21 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731598', 'tblTempUsageDetail_20' ) start [2025-03-21 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731598', 'tblTempUsageDetail_20' ) end [2025-03-21 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:06:27] Production.INFO: ==21003== Releasing lock... [2025-03-21 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:06:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:07:06 [end_date_ymd] => 2025-03-21 17:07:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:07:06' and `end` < '2025-03-21 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-21 17:07:19] Production.INFO: count ==5108 [2025-03-21 17:07:22] Production.ERROR: pbx CDR StartTime 2025-03-21 14:07:06 - End Time 2025-03-21 17:07:06 [2025-03-21 17:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731603', 'tblTempUsageDetail_20' ) start [2025-03-21 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731603', 'tblTempUsageDetail_20' ) end [2025-03-21 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731603', 'tblTempVendorCDR_20' ) start [2025-03-21 17:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731603', 'tblTempVendorCDR_20' ) end [2025-03-21 17:07:22] Production.INFO: ProcessCDR(1,14731603,1,1,2) [2025-03-21 17:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731603', 'tblTempUsageDetail_20' ) start [2025-03-21 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731603', 'tblTempUsageDetail_20' ) end [2025-03-21 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:07:27] Production.INFO: ==21086== Releasing lock... [2025-03-21 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:07:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:08:05 [end_date_ymd] => 2025-03-21 17:08:05 [RateCDR] => 1 ) [2025-03-21 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-21 14:08:05' and `end` < '2025-03-21 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-21 17:08:19] Production.INFO: count ==5091 [2025-03-21 17:08:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:08:05 - End Time 2025-03-21 17:08:05 [2025-03-21 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731608', 'tblTempUsageDetail_20' ) start [2025-03-21 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731608', 'tblTempUsageDetail_20' ) end [2025-03-21 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731608', 'tblTempVendorCDR_20' ) start [2025-03-21 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731608', 'tblTempVendorCDR_20' ) end [2025-03-21 17:08:21] Production.INFO: ProcessCDR(1,14731608,1,1,2) [2025-03-21 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731608', 'tblTempUsageDetail_20' ) start [2025-03-21 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731608', 'tblTempUsageDetail_20' ) end [2025-03-21 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:08:26] Production.INFO: ==21163== Releasing lock... [2025-03-21 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:08:26] Production.INFO: 66 MB #Memory Used# [2025-03-21 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:09:06 [end_date_ymd] => 2025-03-21 17:09:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:09:06' and `end` < '2025-03-21 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-21 17:09:19] Production.INFO: count ==5085 [2025-03-21 17:09:22] Production.ERROR: pbx CDR StartTime 2025-03-21 14:09:06 - End Time 2025-03-21 17:09:06 [2025-03-21 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731613', 'tblTempUsageDetail_20' ) start [2025-03-21 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731613', 'tblTempUsageDetail_20' ) end [2025-03-21 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731613', 'tblTempVendorCDR_20' ) start [2025-03-21 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731613', 'tblTempVendorCDR_20' ) end [2025-03-21 17:09:22] Production.INFO: ProcessCDR(1,14731613,1,1,2) [2025-03-21 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731613', 'tblTempUsageDetail_20' ) start [2025-03-21 17:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731613', 'tblTempUsageDetail_20' ) end [2025-03-21 17:09:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:09:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:09:28] Production.INFO: ==21283== Releasing lock... [2025-03-21 17:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:09:28] Production.INFO: 66 MB #Memory Used# [2025-03-21 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:10:06 [end_date_ymd] => 2025-03-21 17:10:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:10:06' and `end` < '2025-03-21 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-21 17:10:19] Production.INFO: count ==5083 [2025-03-21 17:10:22] Production.ERROR: pbx CDR StartTime 2025-03-21 14:10:06 - End Time 2025-03-21 17:10:06 [2025-03-21 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731619', 'tblTempUsageDetail_20' ) start [2025-03-21 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731619', 'tblTempUsageDetail_20' ) end [2025-03-21 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731619', 'tblTempVendorCDR_20' ) start [2025-03-21 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731619', 'tblTempVendorCDR_20' ) end [2025-03-21 17:10:22] Production.INFO: ProcessCDR(1,14731619,1,1,2) [2025-03-21 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731619', 'tblTempUsageDetail_20' ) start [2025-03-21 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731619', 'tblTempUsageDetail_20' ) end [2025-03-21 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:10:27] Production.INFO: ==21360== Releasing lock... [2025-03-21 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:10:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:11:06 [end_date_ymd] => 2025-03-21 17:11:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:11:06' and `end` < '2025-03-21 17: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-21 17:11:19] Production.INFO: count ==5102 [2025-03-21 17:11:22] Production.ERROR: pbx CDR StartTime 2025-03-21 14:11:06 - End Time 2025-03-21 17:11:06 [2025-03-21 17:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731624', 'tblTempUsageDetail_20' ) start [2025-03-21 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731624', 'tblTempUsageDetail_20' ) end [2025-03-21 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731624', 'tblTempVendorCDR_20' ) start [2025-03-21 17:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731624', 'tblTempVendorCDR_20' ) end [2025-03-21 17:11:22] Production.INFO: ProcessCDR(1,14731624,1,1,2) [2025-03-21 17:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731624', 'tblTempUsageDetail_20' ) start [2025-03-21 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731624', 'tblTempUsageDetail_20' ) end [2025-03-21 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:11:28] Production.INFO: ==21441== Releasing lock... [2025-03-21 17:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:11:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:12:05 [end_date_ymd] => 2025-03-21 17:12:05 [RateCDR] => 1 ) [2025-03-21 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-21 14:12:05' and `end` < '2025-03-21 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-21 17:12:19] Production.INFO: count ==5117 [2025-03-21 17:12:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:12:05 - End Time 2025-03-21 17:12:05 [2025-03-21 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731629', 'tblTempUsageDetail_20' ) start [2025-03-21 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731629', 'tblTempUsageDetail_20' ) end [2025-03-21 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731629', 'tblTempVendorCDR_20' ) start [2025-03-21 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731629', 'tblTempVendorCDR_20' ) end [2025-03-21 17:12:21] Production.INFO: ProcessCDR(1,14731629,1,1,2) [2025-03-21 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731629', 'tblTempUsageDetail_20' ) start [2025-03-21 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731629', 'tblTempUsageDetail_20' ) end [2025-03-21 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:12:27] Production.INFO: ==21517== Releasing lock... [2025-03-21 17:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:12:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:13:06 [end_date_ymd] => 2025-03-21 17:13:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:13:06' and `end` < '2025-03-21 17: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-21 17:13:19] Production.INFO: count ==5102 [2025-03-21 17:13:22] Production.ERROR: pbx CDR StartTime 2025-03-21 14:13:06 - End Time 2025-03-21 17:13:06 [2025-03-21 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731634', 'tblTempUsageDetail_20' ) start [2025-03-21 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731634', 'tblTempUsageDetail_20' ) end [2025-03-21 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731634', 'tblTempVendorCDR_20' ) start [2025-03-21 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731634', 'tblTempVendorCDR_20' ) end [2025-03-21 17:13:22] Production.INFO: ProcessCDR(1,14731634,1,1,2) [2025-03-21 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731634', 'tblTempUsageDetail_20' ) start [2025-03-21 17:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731634', 'tblTempUsageDetail_20' ) end [2025-03-21 17:13:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:13:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:13:28] Production.INFO: ==21591== Releasing lock... [2025-03-21 17:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:13:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:14:05 [end_date_ymd] => 2025-03-21 17:14:05 [RateCDR] => 1 ) [2025-03-21 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-21 14:14:05' and `end` < '2025-03-21 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-21 17:14:19] Production.INFO: count ==5094 [2025-03-21 17:14:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:14:05 - End Time 2025-03-21 17:14:05 [2025-03-21 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731639', 'tblTempUsageDetail_20' ) start [2025-03-21 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731639', 'tblTempUsageDetail_20' ) end [2025-03-21 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731639', 'tblTempVendorCDR_20' ) start [2025-03-21 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731639', 'tblTempVendorCDR_20' ) end [2025-03-21 17:14:21] Production.INFO: ProcessCDR(1,14731639,1,1,2) [2025-03-21 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731639', 'tblTempUsageDetail_20' ) start [2025-03-21 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731639', 'tblTempUsageDetail_20' ) end [2025-03-21 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:14:27] Production.INFO: ==21666== Releasing lock... [2025-03-21 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:14:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:15:06 [end_date_ymd] => 2025-03-21 17:15:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:15:06' and `end` < '2025-03-21 17: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-21 17:15:19] Production.INFO: count ==5088 [2025-03-21 17:15:22] Production.ERROR: pbx CDR StartTime 2025-03-21 14:15:06 - End Time 2025-03-21 17:15:06 [2025-03-21 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731644', 'tblTempUsageDetail_20' ) start [2025-03-21 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731644', 'tblTempUsageDetail_20' ) end [2025-03-21 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731644', 'tblTempVendorCDR_20' ) start [2025-03-21 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731644', 'tblTempVendorCDR_20' ) end [2025-03-21 17:15:22] Production.INFO: ProcessCDR(1,14731644,1,1,2) [2025-03-21 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731644', 'tblTempUsageDetail_20' ) start [2025-03-21 17:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731644', 'tblTempUsageDetail_20' ) end [2025-03-21 17:15:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:15:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:15:28] Production.INFO: ==21745== Releasing lock... [2025-03-21 17:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:15:28] Production.INFO: 66 MB #Memory Used# [2025-03-21 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:16:06 [end_date_ymd] => 2025-03-21 17:16:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:16:06' and `end` < '2025-03-21 17: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-21 17:16:19] Production.INFO: count ==5094 [2025-03-21 17:16:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:16:06 - End Time 2025-03-21 17:16:06 [2025-03-21 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731649', 'tblTempUsageDetail_20' ) start [2025-03-21 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731649', 'tblTempUsageDetail_20' ) end [2025-03-21 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731649', 'tblTempVendorCDR_20' ) start [2025-03-21 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731649', 'tblTempVendorCDR_20' ) end [2025-03-21 17:16:21] Production.INFO: ProcessCDR(1,14731649,1,1,2) [2025-03-21 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731649', 'tblTempUsageDetail_20' ) start [2025-03-21 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731649', 'tblTempUsageDetail_20' ) end [2025-03-21 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:16:27] Production.INFO: ==21825== Releasing lock... [2025-03-21 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:16:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:17:06 [end_date_ymd] => 2025-03-21 17:17:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:17:06' and `end` < '2025-03-21 17: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-21 17:17:19] Production.INFO: count ==5092 [2025-03-21 17:17:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:17:06 - End Time 2025-03-21 17:17:06 [2025-03-21 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731654', 'tblTempUsageDetail_20' ) start [2025-03-21 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731654', 'tblTempUsageDetail_20' ) end [2025-03-21 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731654', 'tblTempVendorCDR_20' ) start [2025-03-21 17:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731654', 'tblTempVendorCDR_20' ) end [2025-03-21 17:17:22] Production.INFO: ProcessCDR(1,14731654,1,1,2) [2025-03-21 17:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731654', 'tblTempUsageDetail_20' ) start [2025-03-21 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731654', 'tblTempUsageDetail_20' ) end [2025-03-21 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:17:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:17:28] Production.INFO: ==21900== Releasing lock... [2025-03-21 17:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:17:28] Production.INFO: 66 MB #Memory Used# [2025-03-21 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:18:05 [end_date_ymd] => 2025-03-21 17:18:05 [RateCDR] => 1 ) [2025-03-21 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-21 14:18:05' and `end` < '2025-03-21 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-21 17:18:19] Production.INFO: count ==5084 [2025-03-21 17:18:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:18:05 - End Time 2025-03-21 17:18:05 [2025-03-21 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731659', 'tblTempUsageDetail_20' ) start [2025-03-21 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731659', 'tblTempUsageDetail_20' ) end [2025-03-21 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731659', 'tblTempVendorCDR_20' ) start [2025-03-21 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731659', 'tblTempVendorCDR_20' ) end [2025-03-21 17:18:21] Production.INFO: ProcessCDR(1,14731659,1,1,2) [2025-03-21 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731659', 'tblTempUsageDetail_20' ) start [2025-03-21 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731659', 'tblTempUsageDetail_20' ) end [2025-03-21 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:18:27] Production.INFO: ==21984== Releasing lock... [2025-03-21 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:18:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:19:06 [end_date_ymd] => 2025-03-21 17:19:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:19:06' and `end` < '2025-03-21 17: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-21 17:19:19] Production.INFO: count ==5094 [2025-03-21 17:19:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:19:06 - End Time 2025-03-21 17:19:06 [2025-03-21 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731664', 'tblTempUsageDetail_20' ) start [2025-03-21 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731664', 'tblTempUsageDetail_20' ) end [2025-03-21 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731664', 'tblTempVendorCDR_20' ) start [2025-03-21 17:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731664', 'tblTempVendorCDR_20' ) end [2025-03-21 17:19:22] Production.INFO: ProcessCDR(1,14731664,1,1,2) [2025-03-21 17:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731664', 'tblTempUsageDetail_20' ) start [2025-03-21 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731664', 'tblTempUsageDetail_20' ) end [2025-03-21 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:19:26] Production.INFO: ==22057== Releasing lock... [2025-03-21 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:19:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:20:06 [end_date_ymd] => 2025-03-21 17:20:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:20:06' and `end` < '2025-03-21 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-21 17:20:19] Production.INFO: count ==5089 [2025-03-21 17:20:22] Production.ERROR: pbx CDR StartTime 2025-03-21 14:20:06 - End Time 2025-03-21 17:20:06 [2025-03-21 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731670', 'tblTempUsageDetail_20' ) start [2025-03-21 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731670', 'tblTempUsageDetail_20' ) end [2025-03-21 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731670', 'tblTempVendorCDR_20' ) start [2025-03-21 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731670', 'tblTempVendorCDR_20' ) end [2025-03-21 17:20:22] Production.INFO: ProcessCDR(1,14731670,1,1,2) [2025-03-21 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731670', 'tblTempUsageDetail_20' ) start [2025-03-21 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731670', 'tblTempUsageDetail_20' ) end [2025-03-21 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:20:27] Production.INFO: ==22138== Releasing lock... [2025-03-21 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:20:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:21:06 [end_date_ymd] => 2025-03-21 17:21:06 [RateCDR] => 1 ) [2025-03-21 17:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 14:21:06' and `end` < '2025-03-21 17:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 17:21:19] Production.INFO: count ==5109 [2025-03-21 17:21:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:21:06 - End Time 2025-03-21 17:21:06 [2025-03-21 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731675', 'tblTempUsageDetail_20' ) start [2025-03-21 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731675', 'tblTempUsageDetail_20' ) end [2025-03-21 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731675', 'tblTempVendorCDR_20' ) start [2025-03-21 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731675', 'tblTempVendorCDR_20' ) end [2025-03-21 17:21:21] Production.INFO: ProcessCDR(1,14731675,1,1,2) [2025-03-21 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731675', 'tblTempUsageDetail_20' ) start [2025-03-21 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731675', 'tblTempUsageDetail_20' ) end [2025-03-21 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:21:27] Production.INFO: ==22215== Releasing lock... [2025-03-21 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:21:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:22:05 [end_date_ymd] => 2025-03-21 17:22:05 [RateCDR] => 1 ) [2025-03-21 17:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 14:22:05' and `end` < '2025-03-21 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 17:22:19] Production.INFO: count ==5118 [2025-03-21 17:22:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:22:05 - End Time 2025-03-21 17:22:05 [2025-03-21 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731680', 'tblTempUsageDetail_20' ) start [2025-03-21 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731680', 'tblTempUsageDetail_20' ) end [2025-03-21 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731680', 'tblTempVendorCDR_20' ) start [2025-03-21 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731680', 'tblTempVendorCDR_20' ) end [2025-03-21 17:22:21] Production.INFO: ProcessCDR(1,14731680,1,1,2) [2025-03-21 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731680', 'tblTempUsageDetail_20' ) start [2025-03-21 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731680', 'tblTempUsageDetail_20' ) end [2025-03-21 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:22:27] Production.INFO: ==22297== Releasing lock... [2025-03-21 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:22:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:23:05 [end_date_ymd] => 2025-03-21 17:23:05 [RateCDR] => 1 ) [2025-03-21 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-21 14:23:05' and `end` < '2025-03-21 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-21 17:23:19] Production.INFO: count ==5113 [2025-03-21 17:23:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:23:05 - End Time 2025-03-21 17:23:05 [2025-03-21 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731685', 'tblTempUsageDetail_20' ) start [2025-03-21 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731685', 'tblTempUsageDetail_20' ) end [2025-03-21 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731685', 'tblTempVendorCDR_20' ) start [2025-03-21 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731685', 'tblTempVendorCDR_20' ) end [2025-03-21 17:23:21] Production.INFO: ProcessCDR(1,14731685,1,1,2) [2025-03-21 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731685', 'tblTempUsageDetail_20' ) start [2025-03-21 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731685', 'tblTempUsageDetail_20' ) end [2025-03-21 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:23:27] Production.INFO: ==22368== Releasing lock... [2025-03-21 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:23:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:24:05 [end_date_ymd] => 2025-03-21 17:24:05 [RateCDR] => 1 ) [2025-03-21 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 14:24:05' and `end` < '2025-03-21 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 17:24:19] Production.INFO: count ==5115 [2025-03-21 17:24:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:24:05 - End Time 2025-03-21 17:24:05 [2025-03-21 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731690', 'tblTempUsageDetail_20' ) start [2025-03-21 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731690', 'tblTempUsageDetail_20' ) end [2025-03-21 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731690', 'tblTempVendorCDR_20' ) start [2025-03-21 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731690', 'tblTempVendorCDR_20' ) end [2025-03-21 17:24:21] Production.INFO: ProcessCDR(1,14731690,1,1,2) [2025-03-21 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731690', 'tblTempUsageDetail_20' ) start [2025-03-21 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731690', 'tblTempUsageDetail_20' ) end [2025-03-21 17:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:24:27] Production.INFO: ==22444== Releasing lock... [2025-03-21 17:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:24:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:25:06 [end_date_ymd] => 2025-03-21 17:25:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:25:06' and `end` < '2025-03-21 17: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-21 17:25:19] Production.INFO: count ==5106 [2025-03-21 17:25:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:25:06 - End Time 2025-03-21 17:25:06 [2025-03-21 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731695', 'tblTempUsageDetail_20' ) start [2025-03-21 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731695', 'tblTempUsageDetail_20' ) end [2025-03-21 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731695', 'tblTempVendorCDR_20' ) start [2025-03-21 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731695', 'tblTempVendorCDR_20' ) end [2025-03-21 17:25:21] Production.INFO: ProcessCDR(1,14731695,1,1,2) [2025-03-21 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731695', 'tblTempUsageDetail_20' ) start [2025-03-21 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731695', 'tblTempUsageDetail_20' ) end [2025-03-21 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:25:26] Production.INFO: ==22565== Releasing lock... [2025-03-21 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:25:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:26:05 [end_date_ymd] => 2025-03-21 17:26:05 [RateCDR] => 1 ) [2025-03-21 17:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 14:26:05' and `end` < '2025-03-21 17:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 17:26:18] Production.INFO: count ==5098 [2025-03-21 17:26:20] Production.ERROR: pbx CDR StartTime 2025-03-21 14:26:05 - End Time 2025-03-21 17:26:05 [2025-03-21 17:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731700', 'tblTempUsageDetail_20' ) start [2025-03-21 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731700', 'tblTempUsageDetail_20' ) end [2025-03-21 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731700', 'tblTempVendorCDR_20' ) start [2025-03-21 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731700', 'tblTempVendorCDR_20' ) end [2025-03-21 17:26:21] Production.INFO: ProcessCDR(1,14731700,1,1,2) [2025-03-21 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731700', 'tblTempUsageDetail_20' ) start [2025-03-21 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731700', 'tblTempUsageDetail_20' ) end [2025-03-21 17:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:26:24] Production.INFO: ==22645== Releasing lock... [2025-03-21 17:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:26:24] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:27:06 [end_date_ymd] => 2025-03-21 17:27:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:27:06' and `end` < '2025-03-21 17: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-21 17:27:19] Production.INFO: count ==5110 [2025-03-21 17:27:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:27:06 - End Time 2025-03-21 17:27:06 [2025-03-21 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731705', 'tblTempUsageDetail_20' ) start [2025-03-21 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731705', 'tblTempUsageDetail_20' ) end [2025-03-21 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731705', 'tblTempVendorCDR_20' ) start [2025-03-21 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731705', 'tblTempVendorCDR_20' ) end [2025-03-21 17:27:21] Production.INFO: ProcessCDR(1,14731705,1,1,2) [2025-03-21 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731705', 'tblTempUsageDetail_20' ) start [2025-03-21 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731705', 'tblTempUsageDetail_20' ) end [2025-03-21 17:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:27:25] Production.INFO: ==22722== Releasing lock... [2025-03-21 17:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:27:25] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:28:06 [end_date_ymd] => 2025-03-21 17:28:06 [RateCDR] => 1 ) [2025-03-21 17:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 14:28:06' and `end` < '2025-03-21 17:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 17:28:19] Production.INFO: count ==5124 [2025-03-21 17:28:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:28:06 - End Time 2025-03-21 17:28:06 [2025-03-21 17:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731710', 'tblTempUsageDetail_20' ) start [2025-03-21 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731710', 'tblTempUsageDetail_20' ) end [2025-03-21 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731710', 'tblTempVendorCDR_20' ) start [2025-03-21 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731710', 'tblTempVendorCDR_20' ) end [2025-03-21 17:28:21] Production.INFO: ProcessCDR(1,14731710,1,1,2) [2025-03-21 17:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731710', 'tblTempUsageDetail_20' ) start [2025-03-21 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731710', 'tblTempUsageDetail_20' ) end [2025-03-21 17:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:28:27] Production.INFO: ==22800== Releasing lock... [2025-03-21 17:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:28:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:29:06 [end_date_ymd] => 2025-03-21 17:29:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:29:06' and `end` < '2025-03-21 17: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-21 17:29:19] Production.INFO: count ==5114 [2025-03-21 17:29:22] Production.ERROR: pbx CDR StartTime 2025-03-21 14:29:06 - End Time 2025-03-21 17:29:06 [2025-03-21 17:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731715', 'tblTempUsageDetail_20' ) start [2025-03-21 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731715', 'tblTempUsageDetail_20' ) end [2025-03-21 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731715', 'tblTempVendorCDR_20' ) start [2025-03-21 17:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731715', 'tblTempVendorCDR_20' ) end [2025-03-21 17:29:22] Production.INFO: ProcessCDR(1,14731715,1,1,2) [2025-03-21 17:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731715', 'tblTempUsageDetail_20' ) start [2025-03-21 17:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731715', 'tblTempUsageDetail_20' ) end [2025-03-21 17:29:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:29:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:29:28] Production.INFO: ==22877== Releasing lock... [2025-03-21 17:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:29:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:30:06 [end_date_ymd] => 2025-03-21 17:30:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:30:06' and `end` < '2025-03-21 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-21 17:30:19] Production.INFO: count ==5115 [2025-03-21 17:30:22] Production.ERROR: pbx CDR StartTime 2025-03-21 14:30:06 - End Time 2025-03-21 17:30:06 [2025-03-21 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731721', 'tblTempUsageDetail_20' ) start [2025-03-21 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731721', 'tblTempUsageDetail_20' ) end [2025-03-21 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731721', 'tblTempVendorCDR_20' ) start [2025-03-21 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731721', 'tblTempVendorCDR_20' ) end [2025-03-21 17:30:22] Production.INFO: ProcessCDR(1,14731721,1,1,2) [2025-03-21 17:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731721', 'tblTempUsageDetail_20' ) start [2025-03-21 17:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731721', 'tblTempUsageDetail_20' ) end [2025-03-21 17:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:30:28] Production.INFO: ==22955== Releasing lock... [2025-03-21 17:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:30:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:31:06 [end_date_ymd] => 2025-03-21 17:31:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:31:06' and `end` < '2025-03-21 17: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-21 17:31:19] Production.INFO: count ==5156 [2025-03-21 17:31:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:31:06 - End Time 2025-03-21 17:31:06 [2025-03-21 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731726', 'tblTempUsageDetail_20' ) start [2025-03-21 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731726', 'tblTempUsageDetail_20' ) end [2025-03-21 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731726', 'tblTempVendorCDR_20' ) start [2025-03-21 17:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731726', 'tblTempVendorCDR_20' ) end [2025-03-21 17:31:22] Production.INFO: ProcessCDR(1,14731726,1,1,2) [2025-03-21 17:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731726', 'tblTempUsageDetail_20' ) start [2025-03-21 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731726', 'tblTempUsageDetail_20' ) end [2025-03-21 17:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:31:27] Production.INFO: ==23036== Releasing lock... [2025-03-21 17:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:31:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:32:05 [end_date_ymd] => 2025-03-21 17:32:05 [RateCDR] => 1 ) [2025-03-21 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-21 14:32:05' and `end` < '2025-03-21 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-21 17:32:19] Production.INFO: count ==5137 [2025-03-21 17:32:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:32:05 - End Time 2025-03-21 17:32:05 [2025-03-21 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731731', 'tblTempUsageDetail_20' ) start [2025-03-21 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731731', 'tblTempUsageDetail_20' ) end [2025-03-21 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731731', 'tblTempVendorCDR_20' ) start [2025-03-21 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731731', 'tblTempVendorCDR_20' ) end [2025-03-21 17:32:21] Production.INFO: ProcessCDR(1,14731731,1,1,2) [2025-03-21 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731731', 'tblTempUsageDetail_20' ) start [2025-03-21 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731731', 'tblTempUsageDetail_20' ) end [2025-03-21 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:32:27] Production.INFO: ==23122== Releasing lock... [2025-03-21 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:32:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:33:06 [end_date_ymd] => 2025-03-21 17:33:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:33:06' and `end` < '2025-03-21 17: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-21 17:33:19] Production.INFO: count ==5123 [2025-03-21 17:33:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:33:06 - End Time 2025-03-21 17:33:06 [2025-03-21 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731736', 'tblTempUsageDetail_20' ) start [2025-03-21 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731736', 'tblTempUsageDetail_20' ) end [2025-03-21 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731736', 'tblTempVendorCDR_20' ) start [2025-03-21 17:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731736', 'tblTempVendorCDR_20' ) end [2025-03-21 17:33:22] Production.INFO: ProcessCDR(1,14731736,1,1,2) [2025-03-21 17:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731736', 'tblTempUsageDetail_20' ) start [2025-03-21 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731736', 'tblTempUsageDetail_20' ) end [2025-03-21 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:33:26] Production.INFO: ==23207== Releasing lock... [2025-03-21 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:33:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-21 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:34:06 [end_date_ymd] => 2025-03-21 17:34:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:34:06' and `end` < '2025-03-21 17: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-21 17:34:19] Production.INFO: count ==5102 [2025-03-21 17:34:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:34:06 - End Time 2025-03-21 17:34:06 [2025-03-21 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731741', 'tblTempUsageDetail_20' ) start [2025-03-21 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731741', 'tblTempUsageDetail_20' ) end [2025-03-21 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731741', 'tblTempVendorCDR_20' ) start [2025-03-21 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731741', 'tblTempVendorCDR_20' ) end [2025-03-21 17:34:21] Production.INFO: ProcessCDR(1,14731741,1,1,2) [2025-03-21 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731741', 'tblTempUsageDetail_20' ) start [2025-03-21 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731741', 'tblTempUsageDetail_20' ) end [2025-03-21 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:34:27] Production.INFO: ==23294== Releasing lock... [2025-03-21 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:34:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-21 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:35:06 [end_date_ymd] => 2025-03-21 17:35:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:35:06' and `end` < '2025-03-21 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-21 17:35:19] Production.INFO: count ==5084 [2025-03-21 17:35:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:35:06 - End Time 2025-03-21 17:35:06 [2025-03-21 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731746', 'tblTempUsageDetail_20' ) start [2025-03-21 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731746', 'tblTempUsageDetail_20' ) end [2025-03-21 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731746', 'tblTempVendorCDR_20' ) start [2025-03-21 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731746', 'tblTempVendorCDR_20' ) end [2025-03-21 17:35:21] Production.INFO: ProcessCDR(1,14731746,1,1,2) [2025-03-21 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731746', 'tblTempUsageDetail_20' ) start [2025-03-21 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731746', 'tblTempUsageDetail_20' ) end [2025-03-21 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:35:27] Production.INFO: ==23388== Releasing lock... [2025-03-21 17:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:35:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:36:06 [end_date_ymd] => 2025-03-21 17:36:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:36:06' and `end` < '2025-03-21 17: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-21 17:36:19] Production.INFO: count ==5074 [2025-03-21 17:36:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:36:06 - End Time 2025-03-21 17:36:06 [2025-03-21 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731751', 'tblTempUsageDetail_20' ) start [2025-03-21 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731751', 'tblTempUsageDetail_20' ) end [2025-03-21 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731751', 'tblTempVendorCDR_20' ) start [2025-03-21 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731751', 'tblTempVendorCDR_20' ) end [2025-03-21 17:36:21] Production.INFO: ProcessCDR(1,14731751,1,1,2) [2025-03-21 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731751', 'tblTempUsageDetail_20' ) start [2025-03-21 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731751', 'tblTempUsageDetail_20' ) end [2025-03-21 17:36:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:36:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:36:27] Production.INFO: ==23469== Releasing lock... [2025-03-21 17:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:36:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:37:06 [end_date_ymd] => 2025-03-21 17:37:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:37:06' and `end` < '2025-03-21 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-21 17:37:19] Production.INFO: count ==5080 [2025-03-21 17:37:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:37:06 - End Time 2025-03-21 17:37:06 [2025-03-21 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731756', 'tblTempUsageDetail_20' ) start [2025-03-21 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731756', 'tblTempUsageDetail_20' ) end [2025-03-21 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731756', 'tblTempVendorCDR_20' ) start [2025-03-21 17:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731756', 'tblTempVendorCDR_20' ) end [2025-03-21 17:37:22] Production.INFO: ProcessCDR(1,14731756,1,1,2) [2025-03-21 17:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731756', 'tblTempUsageDetail_20' ) start [2025-03-21 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731756', 'tblTempUsageDetail_20' ) end [2025-03-21 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:37:26] Production.INFO: ==23556== Releasing lock... [2025-03-21 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:37:26] Production.INFO: 66 MB #Memory Used# [2025-03-21 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:38:06 [end_date_ymd] => 2025-03-21 17:38:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:38:06' and `end` < '2025-03-21 17: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-21 17:38:19] Production.INFO: count ==5065 [2025-03-21 17:38:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:38:06 - End Time 2025-03-21 17:38:06 [2025-03-21 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731761', 'tblTempUsageDetail_20' ) start [2025-03-21 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731761', 'tblTempUsageDetail_20' ) end [2025-03-21 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731761', 'tblTempVendorCDR_20' ) start [2025-03-21 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731761', 'tblTempVendorCDR_20' ) end [2025-03-21 17:38:22] Production.INFO: ProcessCDR(1,14731761,1,1,2) [2025-03-21 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731761', 'tblTempUsageDetail_20' ) start [2025-03-21 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731761', 'tblTempUsageDetail_20' ) end [2025-03-21 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:38:27] Production.INFO: ==23642== Releasing lock... [2025-03-21 17:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:38:27] Production.INFO: 66 MB #Memory Used# [2025-03-21 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:39:06 [end_date_ymd] => 2025-03-21 17:39:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:39:06' and `end` < '2025-03-21 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-21 17:39:19] Production.INFO: count ==5049 [2025-03-21 17:39:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:39:06 - End Time 2025-03-21 17:39:06 [2025-03-21 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731766', 'tblTempUsageDetail_20' ) start [2025-03-21 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731766', 'tblTempUsageDetail_20' ) end [2025-03-21 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731766', 'tblTempVendorCDR_20' ) start [2025-03-21 17:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731766', 'tblTempVendorCDR_20' ) end [2025-03-21 17:39:22] Production.INFO: ProcessCDR(1,14731766,1,1,2) [2025-03-21 17:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731766', 'tblTempUsageDetail_20' ) start [2025-03-21 17:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731766', 'tblTempUsageDetail_20' ) end [2025-03-21 17:39:28] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:39:28] Production.INFO: ==23730== Releasing lock... [2025-03-21 17:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:39:28] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:40:06 [end_date_ymd] => 2025-03-21 17:40:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:40:06' and `end` < '2025-03-21 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-21 17:40:20] Production.INFO: count ==5040 [2025-03-21 17:40:22] Production.ERROR: pbx CDR StartTime 2025-03-21 14:40:06 - End Time 2025-03-21 17:40:06 [2025-03-21 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731772', 'tblTempUsageDetail_20' ) start [2025-03-21 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731772', 'tblTempUsageDetail_20' ) end [2025-03-21 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731772', 'tblTempVendorCDR_20' ) start [2025-03-21 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731772', 'tblTempVendorCDR_20' ) end [2025-03-21 17:40:22] Production.INFO: ProcessCDR(1,14731772,1,1,2) [2025-03-21 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731772', 'tblTempUsageDetail_20' ) start [2025-03-21 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731772', 'tblTempUsageDetail_20' ) end [2025-03-21 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:40:26] Production.INFO: ==23856== Releasing lock... [2025-03-21 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:40:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-21 17:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:41:06 [end_date_ymd] => 2025-03-21 17:41:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:41:06' and `end` < '2025-03-21 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-21 17:41:19] Production.INFO: count ==4966 [2025-03-21 17:41:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:41:06 - End Time 2025-03-21 17:41:06 [2025-03-21 17:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731777', 'tblTempUsageDetail_20' ) start [2025-03-21 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731777', 'tblTempUsageDetail_20' ) end [2025-03-21 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731777', 'tblTempVendorCDR_20' ) start [2025-03-21 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731777', 'tblTempVendorCDR_20' ) end [2025-03-21 17:41:22] Production.INFO: ProcessCDR(1,14731777,1,1,2) [2025-03-21 17:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731777', 'tblTempUsageDetail_20' ) start [2025-03-21 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731777', 'tblTempUsageDetail_20' ) end [2025-03-21 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:41:27] Production.INFO: ==23951== Releasing lock... [2025-03-21 17:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:41:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-21 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:42:05 [end_date_ymd] => 2025-03-21 17:42:05 [RateCDR] => 1 ) [2025-03-21 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 14:42:05' and `end` < '2025-03-21 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 17:42:19] Production.INFO: count ==4892 [2025-03-21 17:42:20] Production.ERROR: pbx CDR StartTime 2025-03-21 14:42:05 - End Time 2025-03-21 17:42:05 [2025-03-21 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731782', 'tblTempUsageDetail_20' ) start [2025-03-21 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731782', 'tblTempUsageDetail_20' ) end [2025-03-21 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731782', 'tblTempVendorCDR_20' ) start [2025-03-21 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731782', 'tblTempVendorCDR_20' ) end [2025-03-21 17:42:21] Production.INFO: ProcessCDR(1,14731782,1,1,2) [2025-03-21 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731782', 'tblTempUsageDetail_20' ) start [2025-03-21 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731782', 'tblTempUsageDetail_20' ) end [2025-03-21 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:42:26] Production.INFO: ==24032== Releasing lock... [2025-03-21 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:42:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 17:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:43:06 [end_date_ymd] => 2025-03-21 17:43:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:43:06' and `end` < '2025-03-21 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-21 17:43:19] Production.INFO: count ==4876 [2025-03-21 17:43:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:43:06 - End Time 2025-03-21 17:43:06 [2025-03-21 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731787', 'tblTempUsageDetail_20' ) start [2025-03-21 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731787', 'tblTempUsageDetail_20' ) end [2025-03-21 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731787', 'tblTempVendorCDR_20' ) start [2025-03-21 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731787', 'tblTempVendorCDR_20' ) end [2025-03-21 17:43:21] Production.INFO: ProcessCDR(1,14731787,1,1,2) [2025-03-21 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731787', 'tblTempUsageDetail_20' ) start [2025-03-21 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731787', 'tblTempUsageDetail_20' ) end [2025-03-21 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:43:26] Production.INFO: ==24120== Releasing lock... [2025-03-21 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:43:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:44:06 [end_date_ymd] => 2025-03-21 17:44:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:44:06' and `end` < '2025-03-21 17: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-21 17:44:19] Production.INFO: count ==4861 [2025-03-21 17:44:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:44:06 - End Time 2025-03-21 17:44:06 [2025-03-21 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731792', 'tblTempUsageDetail_20' ) start [2025-03-21 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731792', 'tblTempUsageDetail_20' ) end [2025-03-21 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731792', 'tblTempVendorCDR_20' ) start [2025-03-21 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731792', 'tblTempVendorCDR_20' ) end [2025-03-21 17:44:21] Production.INFO: ProcessCDR(1,14731792,1,1,2) [2025-03-21 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731792', 'tblTempUsageDetail_20' ) start [2025-03-21 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731792', 'tblTempUsageDetail_20' ) end [2025-03-21 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:44:26] Production.INFO: ==24206== Releasing lock... [2025-03-21 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:44:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-21 17:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:45:06 [end_date_ymd] => 2025-03-21 17:45:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:45:06' and `end` < '2025-03-21 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-21 17:45:19] Production.INFO: count ==4844 [2025-03-21 17:45:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:45:06 - End Time 2025-03-21 17:45:06 [2025-03-21 17:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731797', 'tblTempUsageDetail_20' ) start [2025-03-21 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731797', 'tblTempUsageDetail_20' ) end [2025-03-21 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731797', 'tblTempVendorCDR_20' ) start [2025-03-21 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731797', 'tblTempVendorCDR_20' ) end [2025-03-21 17:45:21] Production.INFO: ProcessCDR(1,14731797,1,1,2) [2025-03-21 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731797', 'tblTempUsageDetail_20' ) start [2025-03-21 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731797', 'tblTempUsageDetail_20' ) end [2025-03-21 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:45:26] Production.INFO: ==24292== Releasing lock... [2025-03-21 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:45:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:46:05 [end_date_ymd] => 2025-03-21 17:46:05 [RateCDR] => 1 ) [2025-03-21 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-21 14:46:05' and `end` < '2025-03-21 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-21 17:46:18] Production.INFO: count ==4842 [2025-03-21 17:46:20] Production.ERROR: pbx CDR StartTime 2025-03-21 14:46:05 - End Time 2025-03-21 17:46:05 [2025-03-21 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731802', 'tblTempUsageDetail_20' ) start [2025-03-21 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731802', 'tblTempUsageDetail_20' ) end [2025-03-21 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731802', 'tblTempVendorCDR_20' ) start [2025-03-21 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731802', 'tblTempVendorCDR_20' ) end [2025-03-21 17:46:20] Production.INFO: ProcessCDR(1,14731802,1,1,2) [2025-03-21 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731802', 'tblTempUsageDetail_20' ) start [2025-03-21 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731802', 'tblTempUsageDetail_20' ) end [2025-03-21 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:46:26] Production.INFO: ==24374== Releasing lock... [2025-03-21 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:46:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 17:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:47:06 [end_date_ymd] => 2025-03-21 17:47:06 [RateCDR] => 1 ) [2025-03-21 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-21 14:47:06' and `end` < '2025-03-21 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-21 17:47:19] Production.INFO: count ==4844 [2025-03-21 17:47:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:47:06 - End Time 2025-03-21 17:47:06 [2025-03-21 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731807', 'tblTempUsageDetail_20' ) start [2025-03-21 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731807', 'tblTempUsageDetail_20' ) end [2025-03-21 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731807', 'tblTempVendorCDR_20' ) start [2025-03-21 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731807', 'tblTempVendorCDR_20' ) end [2025-03-21 17:47:21] Production.INFO: ProcessCDR(1,14731807,1,1,2) [2025-03-21 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731807', 'tblTempUsageDetail_20' ) start [2025-03-21 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731807', 'tblTempUsageDetail_20' ) end [2025-03-21 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:47:26] Production.INFO: ==24456== Releasing lock... [2025-03-21 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:47:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-21 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:48:05 [end_date_ymd] => 2025-03-21 17:48:05 [RateCDR] => 1 ) [2025-03-21 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-21 14:48:05' and `end` < '2025-03-21 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-21 17:48:18] Production.INFO: count ==4824 [2025-03-21 17:48:20] Production.ERROR: pbx CDR StartTime 2025-03-21 14:48:05 - End Time 2025-03-21 17:48:05 [2025-03-21 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731812', 'tblTempUsageDetail_20' ) start [2025-03-21 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731812', 'tblTempUsageDetail_20' ) end [2025-03-21 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731812', 'tblTempVendorCDR_20' ) start [2025-03-21 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731812', 'tblTempVendorCDR_20' ) end [2025-03-21 17:48:20] Production.INFO: ProcessCDR(1,14731812,1,1,2) [2025-03-21 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731812', 'tblTempUsageDetail_20' ) start [2025-03-21 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731812', 'tblTempUsageDetail_20' ) end [2025-03-21 17:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:48:26] Production.INFO: ==24544== Releasing lock... [2025-03-21 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:48:26] Production.INFO: 64 MB #Memory Used# [2025-03-21 17:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:49:06 [end_date_ymd] => 2025-03-21 17:49:06 [RateCDR] => 1 ) [2025-03-21 17:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 14:49:06' and `end` < '2025-03-21 17:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 17:49:19] Production.INFO: count ==4786 [2025-03-21 17:49:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:49:06 - End Time 2025-03-21 17:49:06 [2025-03-21 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731817', 'tblTempUsageDetail_20' ) start [2025-03-21 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731817', 'tblTempUsageDetail_20' ) end [2025-03-21 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731817', 'tblTempVendorCDR_20' ) start [2025-03-21 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731817', 'tblTempVendorCDR_20' ) end [2025-03-21 17:49:21] Production.INFO: ProcessCDR(1,14731817,1,1,2) [2025-03-21 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731817', 'tblTempUsageDetail_20' ) start [2025-03-21 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731817', 'tblTempUsageDetail_20' ) end [2025-03-21 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:49:26] Production.INFO: ==24630== Releasing lock... [2025-03-21 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:49:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-21 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:50:06 [end_date_ymd] => 2025-03-21 17:50:06 [RateCDR] => 1 ) [2025-03-21 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 14:50:06' and `end` < '2025-03-21 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 17:50:19] Production.INFO: count ==4785 [2025-03-21 17:50:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:50:06 - End Time 2025-03-21 17:50:06 [2025-03-21 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731822', 'tblTempUsageDetail_20' ) start [2025-03-21 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731822', 'tblTempUsageDetail_20' ) end [2025-03-21 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731822', 'tblTempVendorCDR_20' ) start [2025-03-21 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731822', 'tblTempVendorCDR_20' ) end [2025-03-21 17:50:21] Production.INFO: ProcessCDR(1,14731822,1,1,2) [2025-03-21 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731822', 'tblTempUsageDetail_20' ) start [2025-03-21 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731822', 'tblTempUsageDetail_20' ) end [2025-03-21 17:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:50:26] Production.INFO: ==24717== Releasing lock... [2025-03-21 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:50:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-21 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:51:05 [end_date_ymd] => 2025-03-21 17:51:05 [RateCDR] => 1 ) [2025-03-21 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 14:51:05' and `end` < '2025-03-21 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 17:51:18] Production.INFO: count ==4764 [2025-03-21 17:51:20] Production.ERROR: pbx CDR StartTime 2025-03-21 14:51:05 - End Time 2025-03-21 17:51:05 [2025-03-21 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731828', 'tblTempUsageDetail_20' ) start [2025-03-21 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731828', 'tblTempUsageDetail_20' ) end [2025-03-21 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731828', 'tblTempVendorCDR_20' ) start [2025-03-21 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731828', 'tblTempVendorCDR_20' ) end [2025-03-21 17:51:21] Production.INFO: ProcessCDR(1,14731828,1,1,2) [2025-03-21 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731828', 'tblTempUsageDetail_20' ) start [2025-03-21 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731828', 'tblTempUsageDetail_20' ) end [2025-03-21 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:51:26] Production.INFO: ==24803== Releasing lock... [2025-03-21 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:51:26] Production.INFO: 63.75 MB #Memory Used# [2025-03-21 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:52:06 [end_date_ymd] => 2025-03-21 17:52:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:52:06' and `end` < '2025-03-21 17: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-21 17:52:19] Production.INFO: count ==4749 [2025-03-21 17:52:20] Production.ERROR: pbx CDR StartTime 2025-03-21 14:52:06 - End Time 2025-03-21 17:52:06 [2025-03-21 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731833', 'tblTempUsageDetail_20' ) start [2025-03-21 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731833', 'tblTempUsageDetail_20' ) end [2025-03-21 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731833', 'tblTempVendorCDR_20' ) start [2025-03-21 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731833', 'tblTempVendorCDR_20' ) end [2025-03-21 17:52:21] Production.INFO: ProcessCDR(1,14731833,1,1,2) [2025-03-21 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731833', 'tblTempUsageDetail_20' ) start [2025-03-21 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731833', 'tblTempUsageDetail_20' ) end [2025-03-21 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:52:26] Production.INFO: ==24885== Releasing lock... [2025-03-21 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:52:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-21 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:53:05 [end_date_ymd] => 2025-03-21 17:53:05 [RateCDR] => 1 ) [2025-03-21 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-21 14:53:05' and `end` < '2025-03-21 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-21 17:53:18] Production.INFO: count ==4736 [2025-03-21 17:53:20] Production.ERROR: pbx CDR StartTime 2025-03-21 14:53:05 - End Time 2025-03-21 17:53:05 [2025-03-21 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731838', 'tblTempUsageDetail_20' ) start [2025-03-21 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731838', 'tblTempUsageDetail_20' ) end [2025-03-21 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731838', 'tblTempVendorCDR_20' ) start [2025-03-21 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731838', 'tblTempVendorCDR_20' ) end [2025-03-21 17:53:20] Production.INFO: ProcessCDR(1,14731838,1,1,2) [2025-03-21 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731838', 'tblTempUsageDetail_20' ) start [2025-03-21 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731838', 'tblTempUsageDetail_20' ) end [2025-03-21 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:53:25] Production.INFO: ==24967== Releasing lock... [2025-03-21 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:53:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-21 17:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:54:04 [end_date_ymd] => 2025-03-21 17:54:04 [RateCDR] => 1 ) [2025-03-21 17:54: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-21 14:54:04' and `end` < '2025-03-21 17: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-21 17:54:18] Production.INFO: count ==4728 [2025-03-21 17:54:20] Production.ERROR: pbx CDR StartTime 2025-03-21 14:54:04 - End Time 2025-03-21 17:54:04 [2025-03-21 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731843', 'tblTempUsageDetail_20' ) start [2025-03-21 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731843', 'tblTempUsageDetail_20' ) end [2025-03-21 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731843', 'tblTempVendorCDR_20' ) start [2025-03-21 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731843', 'tblTempVendorCDR_20' ) end [2025-03-21 17:54:20] Production.INFO: ProcessCDR(1,14731843,1,1,2) [2025-03-21 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731843', 'tblTempUsageDetail_20' ) start [2025-03-21 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731843', 'tblTempUsageDetail_20' ) end [2025-03-21 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:54:25] Production.INFO: ==25052== Releasing lock... [2025-03-21 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:54:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-21 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:55:05 [end_date_ymd] => 2025-03-21 17:55:05 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:55:05' and `end` < '2025-03-21 17: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-21 17:55:19] Production.INFO: count ==4721 [2025-03-21 17:55:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:55:05 - End Time 2025-03-21 17:55:05 [2025-03-21 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731848', 'tblTempUsageDetail_20' ) start [2025-03-21 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731848', 'tblTempUsageDetail_20' ) end [2025-03-21 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731848', 'tblTempVendorCDR_20' ) start [2025-03-21 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731848', 'tblTempVendorCDR_20' ) end [2025-03-21 17:55:21] Production.INFO: ProcessCDR(1,14731848,1,1,2) [2025-03-21 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731848', 'tblTempUsageDetail_20' ) start [2025-03-21 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731848', 'tblTempUsageDetail_20' ) end [2025-03-21 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:55:26] Production.INFO: ==25175== Releasing lock... [2025-03-21 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:55:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-21 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:56:05 [end_date_ymd] => 2025-03-21 17:56:05 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:56:05' and `end` < '2025-03-21 17: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-21 17:56:18] Production.INFO: count ==4696 [2025-03-21 17:56:20] Production.ERROR: pbx CDR StartTime 2025-03-21 14:56:05 - End Time 2025-03-21 17:56:05 [2025-03-21 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731853', 'tblTempUsageDetail_20' ) start [2025-03-21 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731853', 'tblTempUsageDetail_20' ) end [2025-03-21 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731853', 'tblTempVendorCDR_20' ) start [2025-03-21 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731853', 'tblTempVendorCDR_20' ) end [2025-03-21 17:56:20] Production.INFO: ProcessCDR(1,14731853,1,1,2) [2025-03-21 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731853', 'tblTempUsageDetail_20' ) start [2025-03-21 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731853', 'tblTempUsageDetail_20' ) end [2025-03-21 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:56:25] Production.INFO: ==25258== Releasing lock... [2025-03-21 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:56:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-21 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:57:05 [end_date_ymd] => 2025-03-21 17:57:05 [RateCDR] => 1 ) [2025-03-21 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-21 14:57:05' and `end` < '2025-03-21 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-21 17:57:18] Production.INFO: count ==4678 [2025-03-21 17:57:20] Production.ERROR: pbx CDR StartTime 2025-03-21 14:57:05 - End Time 2025-03-21 17:57:05 [2025-03-21 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731858', 'tblTempUsageDetail_20' ) start [2025-03-21 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731858', 'tblTempUsageDetail_20' ) end [2025-03-21 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731858', 'tblTempVendorCDR_20' ) start [2025-03-21 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731858', 'tblTempVendorCDR_20' ) end [2025-03-21 17:57:20] Production.INFO: ProcessCDR(1,14731858,1,1,2) [2025-03-21 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731858', 'tblTempUsageDetail_20' ) start [2025-03-21 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731858', 'tblTempUsageDetail_20' ) end [2025-03-21 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:57:26] Production.INFO: ==25345== Releasing lock... [2025-03-21 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:57:26] Production.INFO: 63 MB #Memory Used# [2025-03-21 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:58:05 [end_date_ymd] => 2025-03-21 17:58:05 [RateCDR] => 1 ) [2025-03-21 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-21 14:58:05' and `end` < '2025-03-21 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-21 17:58:18] Production.INFO: count ==4670 [2025-03-21 17:58:20] Production.ERROR: pbx CDR StartTime 2025-03-21 14:58:05 - End Time 2025-03-21 17:58:05 [2025-03-21 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731863', 'tblTempUsageDetail_20' ) start [2025-03-21 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731863', 'tblTempUsageDetail_20' ) end [2025-03-21 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731863', 'tblTempVendorCDR_20' ) start [2025-03-21 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731863', 'tblTempVendorCDR_20' ) end [2025-03-21 17:58:20] Production.INFO: ProcessCDR(1,14731863,1,1,2) [2025-03-21 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731863', 'tblTempUsageDetail_20' ) start [2025-03-21 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731863', 'tblTempUsageDetail_20' ) end [2025-03-21 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:58:26] Production.INFO: ==25430== Releasing lock... [2025-03-21 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:58:26] Production.INFO: 63 MB #Memory Used# [2025-03-21 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 14:59:06 [end_date_ymd] => 2025-03-21 17:59:06 [RateCDR] => 1 ) [2025-03-21 17: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-21 14:59:06' and `end` < '2025-03-21 17: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-21 17:59:19] Production.INFO: count ==4671 [2025-03-21 17:59:21] Production.ERROR: pbx CDR StartTime 2025-03-21 14:59:06 - End Time 2025-03-21 17:59:06 [2025-03-21 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731868', 'tblTempUsageDetail_20' ) start [2025-03-21 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731868', 'tblTempUsageDetail_20' ) end [2025-03-21 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731868', 'tblTempVendorCDR_20' ) start [2025-03-21 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731868', 'tblTempVendorCDR_20' ) end [2025-03-21 17:59:21] Production.INFO: ProcessCDR(1,14731868,1,1,2) [2025-03-21 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731868', 'tblTempUsageDetail_20' ) start [2025-03-21 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731868', 'tblTempUsageDetail_20' ) end [2025-03-21 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 17:59:25] Production.INFO: ==25511== Releasing lock... [2025-03-21 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 17:59:25] Production.INFO: 63 MB #Memory Used# [2025-03-21 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:00:06 [end_date_ymd] => 2025-03-21 18:00:06 [RateCDR] => 1 ) [2025-03-21 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-21 15:00:06' and `end` < '2025-03-21 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-21 18:00:19] Production.INFO: count ==4652 [2025-03-21 18:00:21] Production.ERROR: pbx CDR StartTime 2025-03-21 15:00:06 - End Time 2025-03-21 18:00:06 [2025-03-21 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731874', 'tblTempUsageDetail_20' ) start [2025-03-21 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731874', 'tblTempUsageDetail_20' ) end [2025-03-21 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731874', 'tblTempVendorCDR_20' ) start [2025-03-21 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731874', 'tblTempVendorCDR_20' ) end [2025-03-21 18:00:21] Production.INFO: ProcessCDR(1,14731874,1,1,2) [2025-03-21 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731874', 'tblTempUsageDetail_20' ) start [2025-03-21 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731874', 'tblTempUsageDetail_20' ) end [2025-03-21 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:00:27] Production.INFO: ==25596== Releasing lock... [2025-03-21 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:00:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-21 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:01:06 [end_date_ymd] => 2025-03-21 18:01:06 [RateCDR] => 1 ) [2025-03-21 18: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-21 15:01:06' and `end` < '2025-03-21 18: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-21 18:01:20] Production.INFO: count ==4582 [2025-03-21 18:01:21] Production.ERROR: pbx CDR StartTime 2025-03-21 15:01:06 - End Time 2025-03-21 18:01:06 [2025-03-21 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731879', 'tblTempUsageDetail_20' ) start [2025-03-21 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731879', 'tblTempUsageDetail_20' ) end [2025-03-21 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731879', 'tblTempVendorCDR_20' ) start [2025-03-21 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731879', 'tblTempVendorCDR_20' ) end [2025-03-21 18:01:21] Production.INFO: ProcessCDR(1,14731879,1,1,2) [2025-03-21 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731879', 'tblTempUsageDetail_20' ) start [2025-03-21 18:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731879', 'tblTempUsageDetail_20' ) end [2025-03-21 18:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:01:27] Production.INFO: ==25698== Releasing lock... [2025-03-21 18:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:01:27] Production.INFO: 62.25 MB #Memory Used# [2025-03-21 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:02:05 [end_date_ymd] => 2025-03-21 18:02:05 [RateCDR] => 1 ) [2025-03-21 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 15:02:05' and `end` < '2025-03-21 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 18:02:19] Production.INFO: count ==4551 [2025-03-21 18:02:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:02:05 - End Time 2025-03-21 18:02:05 [2025-03-21 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731884', 'tblTempUsageDetail_20' ) start [2025-03-21 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731884', 'tblTempUsageDetail_20' ) end [2025-03-21 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731884', 'tblTempVendorCDR_20' ) start [2025-03-21 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731884', 'tblTempVendorCDR_20' ) end [2025-03-21 18:02:20] Production.INFO: ProcessCDR(1,14731884,1,1,2) [2025-03-21 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731884', 'tblTempUsageDetail_20' ) start [2025-03-21 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731884', 'tblTempUsageDetail_20' ) end [2025-03-21 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:02:26] Production.INFO: ==25785== Releasing lock... [2025-03-21 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:02:26] Production.INFO: 62 MB #Memory Used# [2025-03-21 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:03:05 [end_date_ymd] => 2025-03-21 18:03:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:03:05' and `end` < '2025-03-21 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-21 18:03:19] Production.INFO: count ==4548 [2025-03-21 18:03:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:03:05 - End Time 2025-03-21 18:03:05 [2025-03-21 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731889', 'tblTempUsageDetail_20' ) start [2025-03-21 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731889', 'tblTempUsageDetail_20' ) end [2025-03-21 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731889', 'tblTempVendorCDR_20' ) start [2025-03-21 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731889', 'tblTempVendorCDR_20' ) end [2025-03-21 18:03:21] Production.INFO: ProcessCDR(1,14731889,1,1,2) [2025-03-21 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731889', 'tblTempUsageDetail_20' ) start [2025-03-21 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731889', 'tblTempUsageDetail_20' ) end [2025-03-21 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:03:26] Production.INFO: ==25862== Releasing lock... [2025-03-21 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:03:26] Production.INFO: 62 MB #Memory Used# [2025-03-21 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:04:05 [end_date_ymd] => 2025-03-21 18:04:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:04:05' and `end` < '2025-03-21 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-21 18:04:18] Production.INFO: count ==4523 [2025-03-21 18:04:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:04:05 - End Time 2025-03-21 18:04:05 [2025-03-21 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731894', 'tblTempUsageDetail_20' ) start [2025-03-21 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731894', 'tblTempUsageDetail_20' ) end [2025-03-21 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731894', 'tblTempVendorCDR_20' ) start [2025-03-21 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731894', 'tblTempVendorCDR_20' ) end [2025-03-21 18:04:20] Production.INFO: ProcessCDR(1,14731894,1,1,2) [2025-03-21 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731894', 'tblTempUsageDetail_20' ) start [2025-03-21 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731894', 'tblTempUsageDetail_20' ) end [2025-03-21 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:04:25] Production.INFO: ==25948== Releasing lock... [2025-03-21 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:04:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-21 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:05:06 [end_date_ymd] => 2025-03-21 18:05:06 [RateCDR] => 1 ) [2025-03-21 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-21 15:05:06' and `end` < '2025-03-21 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-21 18:05:19] Production.INFO: count ==4532 [2025-03-21 18:05:21] Production.ERROR: pbx CDR StartTime 2025-03-21 15:05:06 - End Time 2025-03-21 18:05:06 [2025-03-21 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731899', 'tblTempUsageDetail_20' ) start [2025-03-21 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731899', 'tblTempUsageDetail_20' ) end [2025-03-21 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731899', 'tblTempVendorCDR_20' ) start [2025-03-21 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731899', 'tblTempVendorCDR_20' ) end [2025-03-21 18:05:21] Production.INFO: ProcessCDR(1,14731899,1,1,2) [2025-03-21 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731899', 'tblTempUsageDetail_20' ) start [2025-03-21 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731899', 'tblTempUsageDetail_20' ) end [2025-03-21 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:05:26] Production.INFO: ==26031== Releasing lock... [2025-03-21 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:05:26] Production.INFO: 62 MB #Memory Used# [2025-03-21 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:06:05 [end_date_ymd] => 2025-03-21 18:06:05 [RateCDR] => 1 ) [2025-03-21 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 15:06:05' and `end` < '2025-03-21 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 18:06:18] Production.INFO: count ==4516 [2025-03-21 18:06:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:06:05 - End Time 2025-03-21 18:06:05 [2025-03-21 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731904', 'tblTempUsageDetail_20' ) start [2025-03-21 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731904', 'tblTempUsageDetail_20' ) end [2025-03-21 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731904', 'tblTempVendorCDR_20' ) start [2025-03-21 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731904', 'tblTempVendorCDR_20' ) end [2025-03-21 18:06:20] Production.INFO: ProcessCDR(1,14731904,1,1,2) [2025-03-21 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731904', 'tblTempUsageDetail_20' ) start [2025-03-21 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731904', 'tblTempUsageDetail_20' ) end [2025-03-21 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:06:23] Production.INFO: ==26109== Releasing lock... [2025-03-21 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:06:23] Production.INFO: 61.75 MB #Memory Used# [2025-03-21 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:07:06 [end_date_ymd] => 2025-03-21 18:07:06 [RateCDR] => 1 ) [2025-03-21 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-21 15:07:06' and `end` < '2025-03-21 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-21 18:07:19] Production.INFO: count ==4531 [2025-03-21 18:07:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:07:06 - End Time 2025-03-21 18:07:06 [2025-03-21 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731909', 'tblTempUsageDetail_20' ) start [2025-03-21 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731909', 'tblTempUsageDetail_20' ) end [2025-03-21 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731909', 'tblTempVendorCDR_20' ) start [2025-03-21 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731909', 'tblTempVendorCDR_20' ) end [2025-03-21 18:07:21] Production.INFO: ProcessCDR(1,14731909,1,1,2) [2025-03-21 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731909', 'tblTempUsageDetail_20' ) start [2025-03-21 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731909', 'tblTempUsageDetail_20' ) end [2025-03-21 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:07:26] Production.INFO: ==26190== Releasing lock... [2025-03-21 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:07:26] Production.INFO: 62 MB #Memory Used# [2025-03-21 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:08:05 [end_date_ymd] => 2025-03-21 18:08:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:08:05' and `end` < '2025-03-21 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-21 18:08:18] Production.INFO: count ==4492 [2025-03-21 18:08:19] Production.ERROR: pbx CDR StartTime 2025-03-21 15:08:05 - End Time 2025-03-21 18:08:05 [2025-03-21 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731914', 'tblTempUsageDetail_20' ) start [2025-03-21 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731914', 'tblTempUsageDetail_20' ) end [2025-03-21 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731914', 'tblTempVendorCDR_20' ) start [2025-03-21 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731914', 'tblTempVendorCDR_20' ) end [2025-03-21 18:08:20] Production.INFO: ProcessCDR(1,14731914,1,1,2) [2025-03-21 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731914', 'tblTempUsageDetail_20' ) start [2025-03-21 18:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731914', 'tblTempUsageDetail_20' ) end [2025-03-21 18:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:08:23] Production.INFO: ==26262== Releasing lock... [2025-03-21 18:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:08:23] Production.INFO: 61.5 MB #Memory Used# [2025-03-21 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:09:05 [end_date_ymd] => 2025-03-21 18:09:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:09:05' and `end` < '2025-03-21 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-21 18:09:18] Production.INFO: count ==4489 [2025-03-21 18:09:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:09:05 - End Time 2025-03-21 18:09:05 [2025-03-21 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731919', 'tblTempUsageDetail_20' ) start [2025-03-21 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731919', 'tblTempUsageDetail_20' ) end [2025-03-21 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731919', 'tblTempVendorCDR_20' ) start [2025-03-21 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731919', 'tblTempVendorCDR_20' ) end [2025-03-21 18:09:20] Production.INFO: ProcessCDR(1,14731919,1,1,2) [2025-03-21 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731919', 'tblTempUsageDetail_20' ) start [2025-03-21 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731919', 'tblTempUsageDetail_20' ) end [2025-03-21 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:09:23] Production.INFO: ==26344== Releasing lock... [2025-03-21 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:09:23] Production.INFO: 61.5 MB #Memory Used# [2025-03-21 18:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:10:07 [end_date_ymd] => 2025-03-21 18:10:07 [RateCDR] => 1 ) [2025-03-21 18: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-21 15:10:07' and `end` < '2025-03-21 18: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-21 18:10:20] Production.INFO: count ==4464 [2025-03-21 18:10:22] Production.ERROR: pbx CDR StartTime 2025-03-21 15:10:07 - End Time 2025-03-21 18:10:07 [2025-03-21 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731925', 'tblTempUsageDetail_20' ) start [2025-03-21 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731925', 'tblTempUsageDetail_20' ) end [2025-03-21 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731925', 'tblTempVendorCDR_20' ) start [2025-03-21 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731925', 'tblTempVendorCDR_20' ) end [2025-03-21 18:10:22] Production.INFO: ProcessCDR(1,14731925,1,1,2) [2025-03-21 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731925', 'tblTempUsageDetail_20' ) start [2025-03-21 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731925', 'tblTempUsageDetail_20' ) end [2025-03-21 18:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:10:27] Production.INFO: ==26422== Releasing lock... [2025-03-21 18:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:10:27] Production.INFO: 61.5 MB #Memory Used# [2025-03-21 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:11:05 [end_date_ymd] => 2025-03-21 18:11:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:11:05' and `end` < '2025-03-21 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-21 18:11:18] Production.INFO: count ==4451 [2025-03-21 18:11:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:11:05 - End Time 2025-03-21 18:11:05 [2025-03-21 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731930', 'tblTempUsageDetail_20' ) start [2025-03-21 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731930', 'tblTempUsageDetail_20' ) end [2025-03-21 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731930', 'tblTempVendorCDR_20' ) start [2025-03-21 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731930', 'tblTempVendorCDR_20' ) end [2025-03-21 18:11:20] Production.INFO: ProcessCDR(1,14731930,1,1,2) [2025-03-21 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731930', 'tblTempUsageDetail_20' ) start [2025-03-21 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731930', 'tblTempUsageDetail_20' ) end [2025-03-21 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:11:25] Production.INFO: ==26543== Releasing lock... [2025-03-21 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:11:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-21 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:12:05 [end_date_ymd] => 2025-03-21 18:12:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:12:05' and `end` < '2025-03-21 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-21 18:12:19] Production.INFO: count ==4451 [2025-03-21 18:12:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:12:05 - End Time 2025-03-21 18:12:05 [2025-03-21 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731935', 'tblTempUsageDetail_20' ) start [2025-03-21 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731935', 'tblTempUsageDetail_20' ) end [2025-03-21 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731935', 'tblTempVendorCDR_20' ) start [2025-03-21 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731935', 'tblTempVendorCDR_20' ) end [2025-03-21 18:12:20] Production.INFO: ProcessCDR(1,14731935,1,1,2) [2025-03-21 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731935', 'tblTempUsageDetail_20' ) start [2025-03-21 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731935', 'tblTempUsageDetail_20' ) end [2025-03-21 18:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:12:26] Production.INFO: ==26619== Releasing lock... [2025-03-21 18:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:12:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-21 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:13:05 [end_date_ymd] => 2025-03-21 18:13:05 [RateCDR] => 1 ) [2025-03-21 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 15:13:05' and `end` < '2025-03-21 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 18:13:18] Production.INFO: count ==4438 [2025-03-21 18:13:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:13:05 - End Time 2025-03-21 18:13:05 [2025-03-21 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731940', 'tblTempUsageDetail_20' ) start [2025-03-21 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731940', 'tblTempUsageDetail_20' ) end [2025-03-21 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731940', 'tblTempVendorCDR_20' ) start [2025-03-21 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731940', 'tblTempVendorCDR_20' ) end [2025-03-21 18:13:20] Production.INFO: ProcessCDR(1,14731940,1,1,2) [2025-03-21 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731940', 'tblTempUsageDetail_20' ) start [2025-03-21 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731940', 'tblTempUsageDetail_20' ) end [2025-03-21 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:13:23] Production.INFO: ==26694== Releasing lock... [2025-03-21 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:13:23] Production.INFO: 61.25 MB #Memory Used# [2025-03-21 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:14:06 [end_date_ymd] => 2025-03-21 18:14:06 [RateCDR] => 1 ) [2025-03-21 18: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-21 15:14:06' and `end` < '2025-03-21 18: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-21 18:14:19] Production.INFO: count ==4419 [2025-03-21 18:14:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:14:06 - End Time 2025-03-21 18:14:06 [2025-03-21 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731945', 'tblTempUsageDetail_20' ) start [2025-03-21 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731945', 'tblTempUsageDetail_20' ) end [2025-03-21 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731945', 'tblTempVendorCDR_20' ) start [2025-03-21 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731945', 'tblTempVendorCDR_20' ) end [2025-03-21 18:14:21] Production.INFO: ProcessCDR(1,14731945,1,1,2) [2025-03-21 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731945', 'tblTempUsageDetail_20' ) start [2025-03-21 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731945', 'tblTempUsageDetail_20' ) end [2025-03-21 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:14:26] Production.INFO: ==26770== Releasing lock... [2025-03-21 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:14:26] Production.INFO: 61 MB #Memory Used# [2025-03-21 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:15:05 [end_date_ymd] => 2025-03-21 18:15:05 [RateCDR] => 1 ) [2025-03-21 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 15:15:05' and `end` < '2025-03-21 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 18:15:18] Production.INFO: count ==4411 [2025-03-21 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:15:05 - End Time 2025-03-21 18:15:05 [2025-03-21 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731950', 'tblTempUsageDetail_20' ) start [2025-03-21 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731950', 'tblTempUsageDetail_20' ) end [2025-03-21 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731950', 'tblTempVendorCDR_20' ) start [2025-03-21 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731950', 'tblTempVendorCDR_20' ) end [2025-03-21 18:15:20] Production.INFO: ProcessCDR(1,14731950,1,1,2) [2025-03-21 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731950', 'tblTempUsageDetail_20' ) start [2025-03-21 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731950', 'tblTempUsageDetail_20' ) end [2025-03-21 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:15:25] Production.INFO: ==26849== Releasing lock... [2025-03-21 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:15:25] Production.INFO: 61 MB #Memory Used# [2025-03-21 18:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:16:06 [end_date_ymd] => 2025-03-21 18:16:06 [RateCDR] => 1 ) [2025-03-21 18: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-21 15:16:06' and `end` < '2025-03-21 18: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-21 18:16:19] Production.INFO: count ==4407 [2025-03-21 18:16:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:16:06 - End Time 2025-03-21 18:16:06 [2025-03-21 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731955', 'tblTempUsageDetail_20' ) start [2025-03-21 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731955', 'tblTempUsageDetail_20' ) end [2025-03-21 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731955', 'tblTempVendorCDR_20' ) start [2025-03-21 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731955', 'tblTempVendorCDR_20' ) end [2025-03-21 18:16:21] Production.INFO: ProcessCDR(1,14731955,1,1,2) [2025-03-21 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731955', 'tblTempUsageDetail_20' ) start [2025-03-21 18:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731955', 'tblTempUsageDetail_20' ) end [2025-03-21 18:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:16:26] Production.INFO: ==26922== Releasing lock... [2025-03-21 18:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:16:26] Production.INFO: 61 MB #Memory Used# [2025-03-21 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:17:05 [end_date_ymd] => 2025-03-21 18:17:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:17:05' and `end` < '2025-03-21 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-21 18:17:18] Production.INFO: count ==4384 [2025-03-21 18:17:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:17:05 - End Time 2025-03-21 18:17:05 [2025-03-21 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731960', 'tblTempUsageDetail_20' ) start [2025-03-21 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731960', 'tblTempUsageDetail_20' ) end [2025-03-21 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731960', 'tblTempVendorCDR_20' ) start [2025-03-21 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731960', 'tblTempVendorCDR_20' ) end [2025-03-21 18:17:20] Production.INFO: ProcessCDR(1,14731960,1,1,2) [2025-03-21 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731960', 'tblTempUsageDetail_20' ) start [2025-03-21 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731960', 'tblTempUsageDetail_20' ) end [2025-03-21 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:17:25] Production.INFO: ==26998== Releasing lock... [2025-03-21 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:17:25] Production.INFO: 61 MB #Memory Used# [2025-03-21 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:18:06 [end_date_ymd] => 2025-03-21 18:18:06 [RateCDR] => 1 ) [2025-03-21 18: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-21 15:18:06' and `end` < '2025-03-21 18: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-21 18:18:19] Production.INFO: count ==4373 [2025-03-21 18:18:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:18:06 - End Time 2025-03-21 18:18:06 [2025-03-21 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731965', 'tblTempUsageDetail_20' ) start [2025-03-21 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731965', 'tblTempUsageDetail_20' ) end [2025-03-21 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731965', 'tblTempVendorCDR_20' ) start [2025-03-21 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731965', 'tblTempVendorCDR_20' ) end [2025-03-21 18:18:21] Production.INFO: ProcessCDR(1,14731965,1,1,2) [2025-03-21 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731965', 'tblTempUsageDetail_20' ) start [2025-03-21 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731965', 'tblTempUsageDetail_20' ) end [2025-03-21 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:18:24] Production.INFO: ==27070== Releasing lock... [2025-03-21 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:18:24] Production.INFO: 60.75 MB #Memory Used# [2025-03-21 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:19:05 [end_date_ymd] => 2025-03-21 18:19:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:19:05' and `end` < '2025-03-21 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-21 18:19:18] Production.INFO: count ==4361 [2025-03-21 18:19:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:19:05 - End Time 2025-03-21 18:19:05 [2025-03-21 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731970', 'tblTempUsageDetail_20' ) start [2025-03-21 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731970', 'tblTempUsageDetail_20' ) end [2025-03-21 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731970', 'tblTempVendorCDR_20' ) start [2025-03-21 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731970', 'tblTempVendorCDR_20' ) end [2025-03-21 18:19:20] Production.INFO: ProcessCDR(1,14731970,1,1,2) [2025-03-21 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731970', 'tblTempUsageDetail_20' ) start [2025-03-21 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731970', 'tblTempUsageDetail_20' ) end [2025-03-21 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:19:23] Production.INFO: ==27144== Releasing lock... [2025-03-21 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:19:23] Production.INFO: 60.5 MB #Memory Used# [2025-03-21 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:20:06 [end_date_ymd] => 2025-03-21 18:20:06 [RateCDR] => 1 ) [2025-03-21 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-21 15:20:06' and `end` < '2025-03-21 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-21 18:20:19] Production.INFO: count ==4351 [2025-03-21 18:20:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:20:06 - End Time 2025-03-21 18:20:06 [2025-03-21 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731975', 'tblTempUsageDetail_20' ) start [2025-03-21 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731975', 'tblTempUsageDetail_20' ) end [2025-03-21 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731975', 'tblTempVendorCDR_20' ) start [2025-03-21 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731975', 'tblTempVendorCDR_20' ) end [2025-03-21 18:20:21] Production.INFO: ProcessCDR(1,14731975,1,1,2) [2025-03-21 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731975', 'tblTempUsageDetail_20' ) start [2025-03-21 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731975', 'tblTempUsageDetail_20' ) end [2025-03-21 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:20:26] Production.INFO: ==27223== Releasing lock... [2025-03-21 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:20:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-21 18:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:21:04 [end_date_ymd] => 2025-03-21 18:21:04 [RateCDR] => 1 ) [2025-03-21 18:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 15:21:04' and `end` < '2025-03-21 18:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 18:21:17] Production.INFO: count ==4314 [2025-03-21 18:21:19] Production.ERROR: pbx CDR StartTime 2025-03-21 15:21:04 - End Time 2025-03-21 18:21:04 [2025-03-21 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731981', 'tblTempUsageDetail_20' ) start [2025-03-21 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731981', 'tblTempUsageDetail_20' ) end [2025-03-21 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731981', 'tblTempVendorCDR_20' ) start [2025-03-21 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731981', 'tblTempVendorCDR_20' ) end [2025-03-21 18:21:19] Production.INFO: ProcessCDR(1,14731981,1,1,2) [2025-03-21 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731981', 'tblTempUsageDetail_20' ) start [2025-03-21 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731981', 'tblTempUsageDetail_20' ) end [2025-03-21 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:21:24] Production.INFO: ==27295== Releasing lock... [2025-03-21 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:21:24] Production.INFO: 60.25 MB #Memory Used# [2025-03-21 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:22:06 [end_date_ymd] => 2025-03-21 18:22:06 [RateCDR] => 1 ) [2025-03-21 18: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-21 15:22:06' and `end` < '2025-03-21 18: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-21 18:22:19] Production.INFO: count ==4309 [2025-03-21 18:22:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:22:06 - End Time 2025-03-21 18:22:06 [2025-03-21 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731986', 'tblTempUsageDetail_20' ) start [2025-03-21 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731986', 'tblTempUsageDetail_20' ) end [2025-03-21 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731986', 'tblTempVendorCDR_20' ) start [2025-03-21 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731986', 'tblTempVendorCDR_20' ) end [2025-03-21 18:22:20] Production.INFO: ProcessCDR(1,14731986,1,1,2) [2025-03-21 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731986', 'tblTempUsageDetail_20' ) start [2025-03-21 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731986', 'tblTempUsageDetail_20' ) end [2025-03-21 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:22:25] Production.INFO: ==27369== Releasing lock... [2025-03-21 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:22:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-21 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:23:05 [end_date_ymd] => 2025-03-21 18:23:05 [RateCDR] => 1 ) [2025-03-21 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 15:23:05' and `end` < '2025-03-21 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 18:23:18] Production.INFO: count ==4310 [2025-03-21 18:23:19] Production.ERROR: pbx CDR StartTime 2025-03-21 15:23:05 - End Time 2025-03-21 18:23:05 [2025-03-21 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731991', 'tblTempUsageDetail_20' ) start [2025-03-21 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731991', 'tblTempUsageDetail_20' ) end [2025-03-21 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731991', 'tblTempVendorCDR_20' ) start [2025-03-21 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731991', 'tblTempVendorCDR_20' ) end [2025-03-21 18:23:19] Production.INFO: ProcessCDR(1,14731991,1,1,2) [2025-03-21 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731991', 'tblTempUsageDetail_20' ) start [2025-03-21 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731991', 'tblTempUsageDetail_20' ) end [2025-03-21 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:23:23] Production.INFO: ==27451== Releasing lock... [2025-03-21 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:23:23] Production.INFO: 60.25 MB #Memory Used# [2025-03-21 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:24:06 [end_date_ymd] => 2025-03-21 18:24:06 [RateCDR] => 1 ) [2025-03-21 18: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-21 15:24:06' and `end` < '2025-03-21 18: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-21 18:24:19] Production.INFO: count ==4299 [2025-03-21 18:24:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:24:06 - End Time 2025-03-21 18:24:06 [2025-03-21 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731996', 'tblTempUsageDetail_20' ) start [2025-03-21 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14731996', 'tblTempUsageDetail_20' ) end [2025-03-21 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731996', 'tblTempVendorCDR_20' ) start [2025-03-21 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14731996', 'tblTempVendorCDR_20' ) end [2025-03-21 18:24:20] Production.INFO: ProcessCDR(1,14731996,1,1,2) [2025-03-21 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14731996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14731996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14731996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14731996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731996', 'tblTempUsageDetail_20' ) start [2025-03-21 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14731996', 'tblTempUsageDetail_20' ) end [2025-03-21 18:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:24:23] Production.INFO: ==27526== Releasing lock... [2025-03-21 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:24:23] Production.INFO: 60.25 MB #Memory Used# [2025-03-21 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:25:06 [end_date_ymd] => 2025-03-21 18:25:06 [RateCDR] => 1 ) [2025-03-21 18: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-21 15:25:06' and `end` < '2025-03-21 18: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-21 18:25:19] Production.INFO: count ==4273 [2025-03-21 18:25:21] Production.ERROR: pbx CDR StartTime 2025-03-21 15:25:06 - End Time 2025-03-21 18:25:06 [2025-03-21 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732001', 'tblTempUsageDetail_20' ) start [2025-03-21 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732001', 'tblTempUsageDetail_20' ) end [2025-03-21 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732001', 'tblTempVendorCDR_20' ) start [2025-03-21 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732001', 'tblTempVendorCDR_20' ) end [2025-03-21 18:25:21] Production.INFO: ProcessCDR(1,14732001,1,1,2) [2025-03-21 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732001', 'tblTempUsageDetail_20' ) start [2025-03-21 18:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732001', 'tblTempUsageDetail_20' ) end [2025-03-21 18:25:36] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:25:36] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:25:36] Production.INFO: ==27603== Releasing lock... [2025-03-21 18:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:25:36] Production.INFO: 60 MB #Memory Used# [2025-03-21 18:26:25] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:26:25 [end_date_ymd] => 2025-03-21 18:26:25 [RateCDR] => 1 ) [2025-03-21 18:26:25] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 15:26:25' and `end` < '2025-03-21 18:26:25' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 18:26:38] Production.INFO: count ==4255 [2025-03-21 18:27:38] Production.ERROR: pbx CDR StartTime 2025-03-21 15:26:25 - End Time 2025-03-21 18:26:25 [2025-03-21 18:27:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:27:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732006', 'tblTempUsageDetail_20' ) start [2025-03-21 18:27:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732006', 'tblTempUsageDetail_20' ) end [2025-03-21 18:27:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732006', 'tblTempVendorCDR_20' ) start [2025-03-21 18:27:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732006', 'tblTempVendorCDR_20' ) end [2025-03-21 18:27:43] Production.INFO: ProcessCDR(1,14732006,1,1,2) [2025-03-21 18:27:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:27:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:27:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:28:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:28:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732006', 'tblTempUsageDetail_20' ) start [2025-03-21 18:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732006', 'tblTempUsageDetail_20' ) end [2025-03-21 18:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:28:25] Production.INFO: ==27718== Releasing lock... [2025-03-21 18:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:28:25] Production.INFO: 59.75 MB #Memory Used# [2025-03-21 18:29:22] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:29:22 [end_date_ymd] => 2025-03-21 18:29:22 [RateCDR] => 1 ) [2025-03-21 18:29:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 15:29:22' and `end` < '2025-03-21 18:29:22' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 18:29:35] Production.INFO: count ==4230 [2025-03-21 18:30:18] Production.ERROR: pbx CDR StartTime 2025-03-21 15:29:22 - End Time 2025-03-21 18:29:22 [2025-03-21 18:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732017', 'tblTempUsageDetail_20' ) start [2025-03-21 18:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732017', 'tblTempUsageDetail_20' ) end [2025-03-21 18:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732017', 'tblTempVendorCDR_20' ) start [2025-03-21 18:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732017', 'tblTempVendorCDR_20' ) end [2025-03-21 18:30:25] Production.INFO: ProcessCDR(1,14732017,1,1,2) [2025-03-21 18:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:30:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:30:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:31:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:31:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732017', 'tblTempUsageDetail_20' ) start [2025-03-21 18:31:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732017', 'tblTempUsageDetail_20' ) end [2025-03-21 18:31:15] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:31:15] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:31:21] Production.INFO: ==28000== Releasing lock... [2025-03-21 18:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:31:21] Production.INFO: 59.75 MB #Memory Used# [2025-03-21 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:32:05 [end_date_ymd] => 2025-03-21 18:32:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:32:05' and `end` < '2025-03-21 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-21 18:32:17] Production.INFO: count ==4170 [2025-03-21 18:32:19] Production.ERROR: pbx CDR StartTime 2025-03-21 15:32:05 - End Time 2025-03-21 18:32:05 [2025-03-21 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732029', 'tblTempUsageDetail_20' ) start [2025-03-21 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732029', 'tblTempUsageDetail_20' ) end [2025-03-21 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732029', 'tblTempVendorCDR_20' ) start [2025-03-21 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732029', 'tblTempVendorCDR_20' ) end [2025-03-21 18:32:19] Production.INFO: ProcessCDR(1,14732029,1,1,2) [2025-03-21 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732029', 'tblTempUsageDetail_20' ) start [2025-03-21 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732029', 'tblTempUsageDetail_20' ) end [2025-03-21 18:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:32:23] Production.INFO: ==28306== Releasing lock... [2025-03-21 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:32:23] Production.INFO: 59.5 MB #Memory Used# [2025-03-21 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:33:05 [end_date_ymd] => 2025-03-21 18:33:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:33:05' and `end` < '2025-03-21 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-21 18:33:18] Production.INFO: count ==4149 [2025-03-21 18:33:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:33:05 - End Time 2025-03-21 18:33:05 [2025-03-21 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732034', 'tblTempUsageDetail_20' ) start [2025-03-21 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732034', 'tblTempUsageDetail_20' ) end [2025-03-21 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732034', 'tblTempVendorCDR_20' ) start [2025-03-21 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732034', 'tblTempVendorCDR_20' ) end [2025-03-21 18:33:20] Production.INFO: ProcessCDR(1,14732034,1,1,2) [2025-03-21 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732034', 'tblTempUsageDetail_20' ) start [2025-03-21 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732034', 'tblTempUsageDetail_20' ) end [2025-03-21 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:33:23] Production.INFO: ==28411== Releasing lock... [2025-03-21 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:33:23] Production.INFO: 59 MB #Memory Used# [2025-03-21 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:34:06 [end_date_ymd] => 2025-03-21 18:34:06 [RateCDR] => 1 ) [2025-03-21 18: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-21 15:34:06' and `end` < '2025-03-21 18: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-21 18:34:19] Production.INFO: count ==4135 [2025-03-21 18:34:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:34:06 - End Time 2025-03-21 18:34:06 [2025-03-21 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732039', 'tblTempUsageDetail_20' ) start [2025-03-21 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732039', 'tblTempUsageDetail_20' ) end [2025-03-21 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732039', 'tblTempVendorCDR_20' ) start [2025-03-21 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732039', 'tblTempVendorCDR_20' ) end [2025-03-21 18:34:20] Production.INFO: ProcessCDR(1,14732039,1,1,2) [2025-03-21 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732039', 'tblTempUsageDetail_20' ) start [2025-03-21 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732039', 'tblTempUsageDetail_20' ) end [2025-03-21 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:34:24] Production.INFO: ==28518== Releasing lock... [2025-03-21 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:34:24] Production.INFO: 59 MB #Memory Used# [2025-03-21 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:35:05 [end_date_ymd] => 2025-03-21 18:35:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:35:05' and `end` < '2025-03-21 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-21 18:35:18] Production.INFO: count ==4126 [2025-03-21 18:35:19] Production.ERROR: pbx CDR StartTime 2025-03-21 15:35:05 - End Time 2025-03-21 18:35:05 [2025-03-21 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732044', 'tblTempUsageDetail_20' ) start [2025-03-21 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732044', 'tblTempUsageDetail_20' ) end [2025-03-21 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732044', 'tblTempVendorCDR_20' ) start [2025-03-21 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732044', 'tblTempVendorCDR_20' ) end [2025-03-21 18:35:19] Production.INFO: ProcessCDR(1,14732044,1,1,2) [2025-03-21 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732044', 'tblTempUsageDetail_20' ) start [2025-03-21 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732044', 'tblTempUsageDetail_20' ) end [2025-03-21 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:35:25] Production.INFO: ==28622== Releasing lock... [2025-03-21 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:35:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-21 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:36:05 [end_date_ymd] => 2025-03-21 18:36:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:36:05' and `end` < '2025-03-21 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-21 18:36:18] Production.INFO: count ==4109 [2025-03-21 18:36:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:36:05 - End Time 2025-03-21 18:36:05 [2025-03-21 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732049', 'tblTempUsageDetail_20' ) start [2025-03-21 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732049', 'tblTempUsageDetail_20' ) end [2025-03-21 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732049', 'tblTempVendorCDR_20' ) start [2025-03-21 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732049', 'tblTempVendorCDR_20' ) end [2025-03-21 18:36:20] Production.INFO: ProcessCDR(1,14732049,1,1,2) [2025-03-21 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732049', 'tblTempUsageDetail_20' ) start [2025-03-21 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732049', 'tblTempUsageDetail_20' ) end [2025-03-21 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:36:25] Production.INFO: ==28731== Releasing lock... [2025-03-21 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:36:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-21 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:37:05 [end_date_ymd] => 2025-03-21 18:37:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:37:05' and `end` < '2025-03-21 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-21 18:37:18] Production.INFO: count ==4095 [2025-03-21 18:37:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:37:05 - End Time 2025-03-21 18:37:05 [2025-03-21 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732054', 'tblTempUsageDetail_20' ) start [2025-03-21 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732054', 'tblTempUsageDetail_20' ) end [2025-03-21 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732054', 'tblTempVendorCDR_20' ) start [2025-03-21 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732054', 'tblTempVendorCDR_20' ) end [2025-03-21 18:37:20] Production.INFO: ProcessCDR(1,14732054,1,1,2) [2025-03-21 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732054', 'tblTempUsageDetail_20' ) start [2025-03-21 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732054', 'tblTempUsageDetail_20' ) end [2025-03-21 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:37:23] Production.INFO: ==28831== Releasing lock... [2025-03-21 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:37:23] Production.INFO: 58.75 MB #Memory Used# [2025-03-21 18:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:38:06 [end_date_ymd] => 2025-03-21 18:38:06 [RateCDR] => 1 ) [2025-03-21 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-21 15:38:06' and `end` < '2025-03-21 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-21 18:38:18] Production.INFO: count ==4043 [2025-03-21 18:38:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:38:06 - End Time 2025-03-21 18:38:06 [2025-03-21 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732059', 'tblTempUsageDetail_20' ) start [2025-03-21 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732059', 'tblTempUsageDetail_20' ) end [2025-03-21 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732059', 'tblTempVendorCDR_20' ) start [2025-03-21 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732059', 'tblTempVendorCDR_20' ) end [2025-03-21 18:38:20] Production.INFO: ProcessCDR(1,14732059,1,1,2) [2025-03-21 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732059', 'tblTempUsageDetail_20' ) start [2025-03-21 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732059', 'tblTempUsageDetail_20' ) end [2025-03-21 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:38:25] Production.INFO: ==28940== Releasing lock... [2025-03-21 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:38:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-21 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:39:05 [end_date_ymd] => 2025-03-21 18:39:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:39:05' and `end` < '2025-03-21 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-21 18:39:18] Production.INFO: count ==4038 [2025-03-21 18:39:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:39:05 - End Time 2025-03-21 18:39:05 [2025-03-21 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732064', 'tblTempUsageDetail_20' ) start [2025-03-21 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732064', 'tblTempUsageDetail_20' ) end [2025-03-21 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732064', 'tblTempVendorCDR_20' ) start [2025-03-21 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732064', 'tblTempVendorCDR_20' ) end [2025-03-21 18:39:20] Production.INFO: ProcessCDR(1,14732064,1,1,2) [2025-03-21 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732064', 'tblTempUsageDetail_20' ) start [2025-03-21 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732064', 'tblTempUsageDetail_20' ) end [2025-03-21 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:39:25] Production.INFO: ==29046== Releasing lock... [2025-03-21 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:39:25] Production.INFO: 58.25 MB #Memory Used# [2025-03-21 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:40:06 [end_date_ymd] => 2025-03-21 18:40:06 [RateCDR] => 1 ) [2025-03-21 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-21 15:40:06' and `end` < '2025-03-21 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-21 18:40:19] Production.INFO: count ==4031 [2025-03-21 18:40:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:40:06 - End Time 2025-03-21 18:40:06 [2025-03-21 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732070', 'tblTempUsageDetail_20' ) start [2025-03-21 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732070', 'tblTempUsageDetail_20' ) end [2025-03-21 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732070', 'tblTempVendorCDR_20' ) start [2025-03-21 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732070', 'tblTempVendorCDR_20' ) end [2025-03-21 18:40:20] Production.INFO: ProcessCDR(1,14732070,1,1,2) [2025-03-21 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732070', 'tblTempUsageDetail_20' ) start [2025-03-21 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732070', 'tblTempUsageDetail_20' ) end [2025-03-21 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:40:24] Production.INFO: ==29153== Releasing lock... [2025-03-21 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:40:24] Production.INFO: 58 MB #Memory Used# [2025-03-21 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:41:05 [end_date_ymd] => 2025-03-21 18:41:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:41:05' and `end` < '2025-03-21 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-21 18:41:18] Production.INFO: count ==3987 [2025-03-21 18:41:19] Production.ERROR: pbx CDR StartTime 2025-03-21 15:41:05 - End Time 2025-03-21 18:41:05 [2025-03-21 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732075', 'tblTempUsageDetail_20' ) start [2025-03-21 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732075', 'tblTempUsageDetail_20' ) end [2025-03-21 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732075', 'tblTempVendorCDR_20' ) start [2025-03-21 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732075', 'tblTempVendorCDR_20' ) end [2025-03-21 18:41:19] Production.INFO: ProcessCDR(1,14732075,1,1,2) [2025-03-21 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732075', 'tblTempUsageDetail_20' ) start [2025-03-21 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732075', 'tblTempUsageDetail_20' ) end [2025-03-21 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:41:25] Production.INFO: ==29260== Releasing lock... [2025-03-21 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:41:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-21 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:42:06 [end_date_ymd] => 2025-03-21 18:42:06 [RateCDR] => 1 ) [2025-03-21 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-21 15:42:06' and `end` < '2025-03-21 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-21 18:42:19] Production.INFO: count ==3983 [2025-03-21 18:42:21] Production.ERROR: pbx CDR StartTime 2025-03-21 15:42:06 - End Time 2025-03-21 18:42:06 [2025-03-21 18:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732080', 'tblTempUsageDetail_20' ) start [2025-03-21 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732080', 'tblTempUsageDetail_20' ) end [2025-03-21 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732080', 'tblTempVendorCDR_20' ) start [2025-03-21 18:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732080', 'tblTempVendorCDR_20' ) end [2025-03-21 18:42:21] Production.INFO: ProcessCDR(1,14732080,1,1,2) [2025-03-21 18:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732080', 'tblTempUsageDetail_20' ) start [2025-03-21 18:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732080', 'tblTempUsageDetail_20' ) end [2025-03-21 18:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:42:26] Production.INFO: ==29414== Releasing lock... [2025-03-21 18:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:42:26] Production.INFO: 57.75 MB #Memory Used# [2025-03-21 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:43:05 [end_date_ymd] => 2025-03-21 18:43:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:43:05' and `end` < '2025-03-21 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-21 18:43:18] Production.INFO: count ==3968 [2025-03-21 18:43:19] Production.ERROR: pbx CDR StartTime 2025-03-21 15:43:05 - End Time 2025-03-21 18:43:05 [2025-03-21 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732085', 'tblTempUsageDetail_20' ) start [2025-03-21 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732085', 'tblTempUsageDetail_20' ) end [2025-03-21 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732085', 'tblTempVendorCDR_20' ) start [2025-03-21 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732085', 'tblTempVendorCDR_20' ) end [2025-03-21 18:43:19] Production.INFO: ProcessCDR(1,14732085,1,1,2) [2025-03-21 18:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732085', 'tblTempUsageDetail_20' ) start [2025-03-21 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732085', 'tblTempUsageDetail_20' ) end [2025-03-21 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:43:24] Production.INFO: ==29522== Releasing lock... [2025-03-21 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:43:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-21 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:44:05 [end_date_ymd] => 2025-03-21 18:44:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:44:05' and `end` < '2025-03-21 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-21 18:44:18] Production.INFO: count ==3956 [2025-03-21 18:44:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:44:05 - End Time 2025-03-21 18:44:05 [2025-03-21 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732090', 'tblTempUsageDetail_20' ) start [2025-03-21 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732090', 'tblTempUsageDetail_20' ) end [2025-03-21 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732090', 'tblTempVendorCDR_20' ) start [2025-03-21 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732090', 'tblTempVendorCDR_20' ) end [2025-03-21 18:44:20] Production.INFO: ProcessCDR(1,14732090,1,1,2) [2025-03-21 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732090', 'tblTempUsageDetail_20' ) start [2025-03-21 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732090', 'tblTempUsageDetail_20' ) end [2025-03-21 18:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:44:23] Production.INFO: ==29626== Releasing lock... [2025-03-21 18:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:44:23] Production.INFO: 57.5 MB #Memory Used# [2025-03-21 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:45:05 [end_date_ymd] => 2025-03-21 18:45:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:45:05' and `end` < '2025-03-21 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-21 18:45:18] Production.INFO: count ==3941 [2025-03-21 18:45:19] Production.ERROR: pbx CDR StartTime 2025-03-21 15:45:05 - End Time 2025-03-21 18:45:05 [2025-03-21 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732095', 'tblTempUsageDetail_20' ) start [2025-03-21 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732095', 'tblTempUsageDetail_20' ) end [2025-03-21 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732095', 'tblTempVendorCDR_20' ) start [2025-03-21 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732095', 'tblTempVendorCDR_20' ) end [2025-03-21 18:45:19] Production.INFO: ProcessCDR(1,14732095,1,1,2) [2025-03-21 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732095', 'tblTempUsageDetail_20' ) start [2025-03-21 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732095', 'tblTempUsageDetail_20' ) end [2025-03-21 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:45:24] Production.INFO: ==29706== Releasing lock... [2025-03-21 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:45:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-21 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:46:05 [end_date_ymd] => 2025-03-21 18:46:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:46:05' and `end` < '2025-03-21 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-21 18:46:18] Production.INFO: count ==3928 [2025-03-21 18:46:19] Production.ERROR: pbx CDR StartTime 2025-03-21 15:46:05 - End Time 2025-03-21 18:46:05 [2025-03-21 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732100', 'tblTempUsageDetail_20' ) start [2025-03-21 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732100', 'tblTempUsageDetail_20' ) end [2025-03-21 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732100', 'tblTempVendorCDR_20' ) start [2025-03-21 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732100', 'tblTempVendorCDR_20' ) end [2025-03-21 18:46:19] Production.INFO: ProcessCDR(1,14732100,1,1,2) [2025-03-21 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732100', 'tblTempUsageDetail_20' ) start [2025-03-21 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732100', 'tblTempUsageDetail_20' ) end [2025-03-21 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:46:23] Production.INFO: ==29784== Releasing lock... [2025-03-21 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:46:23] Production.INFO: 57.5 MB #Memory Used# [2025-03-21 18:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:47:06 [end_date_ymd] => 2025-03-21 18:47:06 [RateCDR] => 1 ) [2025-03-21 18: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-21 15:47:06' and `end` < '2025-03-21 18: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-21 18:47:19] Production.INFO: count ==3927 [2025-03-21 18:47:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:47:06 - End Time 2025-03-21 18:47:06 [2025-03-21 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732105', 'tblTempUsageDetail_20' ) start [2025-03-21 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732105', 'tblTempUsageDetail_20' ) end [2025-03-21 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732105', 'tblTempVendorCDR_20' ) start [2025-03-21 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732105', 'tblTempVendorCDR_20' ) end [2025-03-21 18:47:20] Production.INFO: ProcessCDR(1,14732105,1,1,2) [2025-03-21 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732105', 'tblTempUsageDetail_20' ) start [2025-03-21 18:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732105', 'tblTempUsageDetail_20' ) end [2025-03-21 18:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:47:26] Production.INFO: ==29865== Releasing lock... [2025-03-21 18:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:47:26] Production.INFO: 57.25 MB #Memory Used# [2025-03-21 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:48:05 [end_date_ymd] => 2025-03-21 18:48:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:48:05' and `end` < '2025-03-21 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-21 18:48:18] Production.INFO: count ==3948 [2025-03-21 18:48:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:48:05 - End Time 2025-03-21 18:48:05 [2025-03-21 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732110', 'tblTempUsageDetail_20' ) start [2025-03-21 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732110', 'tblTempUsageDetail_20' ) end [2025-03-21 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732110', 'tblTempVendorCDR_20' ) start [2025-03-21 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732110', 'tblTempVendorCDR_20' ) end [2025-03-21 18:48:20] Production.INFO: ProcessCDR(1,14732110,1,1,2) [2025-03-21 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732110', 'tblTempUsageDetail_20' ) start [2025-03-21 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732110', 'tblTempUsageDetail_20' ) end [2025-03-21 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:48:25] Production.INFO: ==29939== Releasing lock... [2025-03-21 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:48:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-21 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:49:05 [end_date_ymd] => 2025-03-21 18:49:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:49:05' and `end` < '2025-03-21 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-21 18:49:18] Production.INFO: count ==3937 [2025-03-21 18:49:19] Production.ERROR: pbx CDR StartTime 2025-03-21 15:49:05 - End Time 2025-03-21 18:49:05 [2025-03-21 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732115', 'tblTempUsageDetail_20' ) start [2025-03-21 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732115', 'tblTempUsageDetail_20' ) end [2025-03-21 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732115', 'tblTempVendorCDR_20' ) start [2025-03-21 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732115', 'tblTempVendorCDR_20' ) end [2025-03-21 18:49:19] Production.INFO: ProcessCDR(1,14732115,1,1,2) [2025-03-21 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732115', 'tblTempUsageDetail_20' ) start [2025-03-21 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732115', 'tblTempUsageDetail_20' ) end [2025-03-21 18:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:49:25] Production.INFO: ==30023== Releasing lock... [2025-03-21 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:49:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-21 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:50:06 [end_date_ymd] => 2025-03-21 18:50:06 [RateCDR] => 1 ) [2025-03-21 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 15:50:06' and `end` < '2025-03-21 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 18:50:19] Production.INFO: count ==3909 [2025-03-21 18:50:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:50:06 - End Time 2025-03-21 18:50:06 [2025-03-21 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732121', 'tblTempUsageDetail_20' ) start [2025-03-21 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732121', 'tblTempUsageDetail_20' ) end [2025-03-21 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732121', 'tblTempVendorCDR_20' ) start [2025-03-21 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732121', 'tblTempVendorCDR_20' ) end [2025-03-21 18:50:20] Production.INFO: ProcessCDR(1,14732121,1,1,2) [2025-03-21 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732121', 'tblTempUsageDetail_20' ) start [2025-03-21 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732121', 'tblTempUsageDetail_20' ) end [2025-03-21 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:50:25] Production.INFO: ==30101== Releasing lock... [2025-03-21 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:50:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-21 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:51:06 [end_date_ymd] => 2025-03-21 18:51:06 [RateCDR] => 1 ) [2025-03-21 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-21 15:51:06' and `end` < '2025-03-21 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-21 18:51:19] Production.INFO: count ==3901 [2025-03-21 18:51:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:51:06 - End Time 2025-03-21 18:51:06 [2025-03-21 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732126', 'tblTempUsageDetail_20' ) start [2025-03-21 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732126', 'tblTempUsageDetail_20' ) end [2025-03-21 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732126', 'tblTempVendorCDR_20' ) start [2025-03-21 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732126', 'tblTempVendorCDR_20' ) end [2025-03-21 18:51:20] Production.INFO: ProcessCDR(1,14732126,1,1,2) [2025-03-21 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732126', 'tblTempUsageDetail_20' ) start [2025-03-21 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732126', 'tblTempUsageDetail_20' ) end [2025-03-21 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:51:24] Production.INFO: ==30186== Releasing lock... [2025-03-21 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:51:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-21 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:52:05 [end_date_ymd] => 2025-03-21 18:52:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:52:05' and `end` < '2025-03-21 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-21 18:52:18] Production.INFO: count ==3909 [2025-03-21 18:52:19] Production.ERROR: pbx CDR StartTime 2025-03-21 15:52:05 - End Time 2025-03-21 18:52:05 [2025-03-21 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732131', 'tblTempUsageDetail_20' ) start [2025-03-21 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732131', 'tblTempUsageDetail_20' ) end [2025-03-21 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732131', 'tblTempVendorCDR_20' ) start [2025-03-21 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732131', 'tblTempVendorCDR_20' ) end [2025-03-21 18:52:19] Production.INFO: ProcessCDR(1,14732131,1,1,2) [2025-03-21 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732131', 'tblTempUsageDetail_20' ) start [2025-03-21 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732131', 'tblTempUsageDetail_20' ) end [2025-03-21 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:52:24] Production.INFO: ==30273== Releasing lock... [2025-03-21 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:52:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-21 18:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:53:06 [end_date_ymd] => 2025-03-21 18:53:06 [RateCDR] => 1 ) [2025-03-21 18: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-21 15:53:06' and `end` < '2025-03-21 18: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-21 18:53:19] Production.INFO: count ==3914 [2025-03-21 18:53:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:53:06 - End Time 2025-03-21 18:53:06 [2025-03-21 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732136', 'tblTempUsageDetail_20' ) start [2025-03-21 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732136', 'tblTempUsageDetail_20' ) end [2025-03-21 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732136', 'tblTempVendorCDR_20' ) start [2025-03-21 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732136', 'tblTempVendorCDR_20' ) end [2025-03-21 18:53:20] Production.INFO: ProcessCDR(1,14732136,1,1,2) [2025-03-21 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732136', 'tblTempUsageDetail_20' ) start [2025-03-21 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732136', 'tblTempUsageDetail_20' ) end [2025-03-21 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:53:25] Production.INFO: ==30351== Releasing lock... [2025-03-21 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:53:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-21 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:54:05 [end_date_ymd] => 2025-03-21 18:54:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:54:05' and `end` < '2025-03-21 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-21 18:54:18] Production.INFO: count ==3908 [2025-03-21 18:54:19] Production.ERROR: pbx CDR StartTime 2025-03-21 15:54:05 - End Time 2025-03-21 18:54:05 [2025-03-21 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732141', 'tblTempUsageDetail_20' ) start [2025-03-21 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732141', 'tblTempUsageDetail_20' ) end [2025-03-21 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732141', 'tblTempVendorCDR_20' ) start [2025-03-21 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732141', 'tblTempVendorCDR_20' ) end [2025-03-21 18:54:19] Production.INFO: ProcessCDR(1,14732141,1,1,2) [2025-03-21 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732141', 'tblTempUsageDetail_20' ) start [2025-03-21 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732141', 'tblTempUsageDetail_20' ) end [2025-03-21 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:54:24] Production.INFO: ==30443== Releasing lock... [2025-03-21 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:54:24] Production.INFO: 57.75 MB #Memory Used# [2025-03-21 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:55:06 [end_date_ymd] => 2025-03-21 18:55:06 [RateCDR] => 1 ) [2025-03-21 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-21 15:55:06' and `end` < '2025-03-21 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-21 18:55:19] Production.INFO: count ==3908 [2025-03-21 18:55:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:55:06 - End Time 2025-03-21 18:55:06 [2025-03-21 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732146', 'tblTempUsageDetail_20' ) start [2025-03-21 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732146', 'tblTempUsageDetail_20' ) end [2025-03-21 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732146', 'tblTempVendorCDR_20' ) start [2025-03-21 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732146', 'tblTempVendorCDR_20' ) end [2025-03-21 18:55:20] Production.INFO: ProcessCDR(1,14732146,1,1,2) [2025-03-21 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732146', 'tblTempUsageDetail_20' ) start [2025-03-21 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732146', 'tblTempUsageDetail_20' ) end [2025-03-21 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:55:25] Production.INFO: ==30526== Releasing lock... [2025-03-21 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:55:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-21 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:56:06 [end_date_ymd] => 2025-03-21 18:56:06 [RateCDR] => 1 ) [2025-03-21 18: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-21 15:56:06' and `end` < '2025-03-21 18: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-21 18:56:19] Production.INFO: count ==3913 [2025-03-21 18:56:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:56:06 - End Time 2025-03-21 18:56:06 [2025-03-21 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732151', 'tblTempUsageDetail_20' ) start [2025-03-21 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732151', 'tblTempUsageDetail_20' ) end [2025-03-21 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732151', 'tblTempVendorCDR_20' ) start [2025-03-21 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732151', 'tblTempVendorCDR_20' ) end [2025-03-21 18:56:20] Production.INFO: ProcessCDR(1,14732151,1,1,2) [2025-03-21 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732151', 'tblTempUsageDetail_20' ) start [2025-03-21 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732151', 'tblTempUsageDetail_20' ) end [2025-03-21 18:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:56:25] Production.INFO: ==30609== Releasing lock... [2025-03-21 18:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:56:25] Production.INFO: 57.5 MB #Memory Used# [2025-03-21 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:57:05 [end_date_ymd] => 2025-03-21 18:57:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:57:05' and `end` < '2025-03-21 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-21 18:57:18] Production.INFO: count ==3912 [2025-03-21 18:57:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:57:05 - End Time 2025-03-21 18:57:05 [2025-03-21 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732156', 'tblTempUsageDetail_20' ) start [2025-03-21 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732156', 'tblTempUsageDetail_20' ) end [2025-03-21 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732156', 'tblTempVendorCDR_20' ) start [2025-03-21 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732156', 'tblTempVendorCDR_20' ) end [2025-03-21 18:57:20] Production.INFO: ProcessCDR(1,14732156,1,1,2) [2025-03-21 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732156', 'tblTempUsageDetail_20' ) start [2025-03-21 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732156', 'tblTempUsageDetail_20' ) end [2025-03-21 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:57:25] Production.INFO: ==30728== Releasing lock... [2025-03-21 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:57:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-21 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:58:05 [end_date_ymd] => 2025-03-21 18:58:05 [RateCDR] => 1 ) [2025-03-21 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 15:58:05' and `end` < '2025-03-21 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 18:58:18] Production.INFO: count ==3909 [2025-03-21 18:58:20] Production.ERROR: pbx CDR StartTime 2025-03-21 15:58:05 - End Time 2025-03-21 18:58:05 [2025-03-21 18:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732161', 'tblTempUsageDetail_20' ) start [2025-03-21 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732161', 'tblTempUsageDetail_20' ) end [2025-03-21 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732161', 'tblTempVendorCDR_20' ) start [2025-03-21 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732161', 'tblTempVendorCDR_20' ) end [2025-03-21 18:58:20] Production.INFO: ProcessCDR(1,14732161,1,1,2) [2025-03-21 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732161', 'tblTempUsageDetail_20' ) start [2025-03-21 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732161', 'tblTempUsageDetail_20' ) end [2025-03-21 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:58:25] Production.INFO: ==30808== Releasing lock... [2025-03-21 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:58:25] Production.INFO: 57.75 MB #Memory Used# [2025-03-21 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 15:59:05 [end_date_ymd] => 2025-03-21 18:59:05 [RateCDR] => 1 ) [2025-03-21 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-21 15:59:05' and `end` < '2025-03-21 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-21 18:59:18] Production.INFO: count ==3883 [2025-03-21 18:59:19] Production.ERROR: pbx CDR StartTime 2025-03-21 15:59:05 - End Time 2025-03-21 18:59:05 [2025-03-21 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732166', 'tblTempUsageDetail_20' ) start [2025-03-21 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732166', 'tblTempUsageDetail_20' ) end [2025-03-21 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732166', 'tblTempVendorCDR_20' ) start [2025-03-21 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732166', 'tblTempVendorCDR_20' ) end [2025-03-21 18:59:19] Production.INFO: ProcessCDR(1,14732166,1,1,2) [2025-03-21 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732166', 'tblTempUsageDetail_20' ) start [2025-03-21 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732166', 'tblTempUsageDetail_20' ) end [2025-03-21 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 18:59:25] Production.INFO: ==30888== Releasing lock... [2025-03-21 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 18:59:25] Production.INFO: 57.25 MB #Memory Used# [2025-03-21 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:00:06 [end_date_ymd] => 2025-03-21 19:00:06 [RateCDR] => 1 ) [2025-03-21 19: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-21 16:00:06' and `end` < '2025-03-21 19: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-21 19:00:19] Production.INFO: count ==3873 [2025-03-21 19:00:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:00:06 - End Time 2025-03-21 19:00:06 [2025-03-21 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732172', 'tblTempUsageDetail_20' ) start [2025-03-21 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732172', 'tblTempUsageDetail_20' ) end [2025-03-21 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732172', 'tblTempVendorCDR_20' ) start [2025-03-21 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732172', 'tblTempVendorCDR_20' ) end [2025-03-21 19:00:20] Production.INFO: ProcessCDR(1,14732172,1,1,2) [2025-03-21 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732172', 'tblTempUsageDetail_20' ) start [2025-03-21 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732172', 'tblTempUsageDetail_20' ) end [2025-03-21 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:00:25] Production.INFO: ==30973== Releasing lock... [2025-03-21 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:00:25] Production.INFO: 57 MB #Memory Used# [2025-03-21 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:01:06 [end_date_ymd] => 2025-03-21 19:01:06 [RateCDR] => 1 ) [2025-03-21 19: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-21 16:01:06' and `end` < '2025-03-21 19: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-21 19:01:18] Production.INFO: count ==3845 [2025-03-21 19:01:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:01:06 - End Time 2025-03-21 19:01:06 [2025-03-21 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732177', 'tblTempUsageDetail_20' ) start [2025-03-21 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732177', 'tblTempUsageDetail_20' ) end [2025-03-21 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732177', 'tblTempVendorCDR_20' ) start [2025-03-21 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732177', 'tblTempVendorCDR_20' ) end [2025-03-21 19:01:20] Production.INFO: ProcessCDR(1,14732177,1,1,2) [2025-03-21 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732177', 'tblTempUsageDetail_20' ) start [2025-03-21 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732177', 'tblTempUsageDetail_20' ) end [2025-03-21 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:01:24] Production.INFO: ==31146== Releasing lock... [2025-03-21 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:01:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-21 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:02:05 [end_date_ymd] => 2025-03-21 19:02:05 [RateCDR] => 1 ) [2025-03-21 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 16:02:05' and `end` < '2025-03-21 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:02:18] Production.INFO: count ==3845 [2025-03-21 19:02:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:02:05 - End Time 2025-03-21 19:02:05 [2025-03-21 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732182', 'tblTempUsageDetail_20' ) start [2025-03-21 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732182', 'tblTempUsageDetail_20' ) end [2025-03-21 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732182', 'tblTempVendorCDR_20' ) start [2025-03-21 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732182', 'tblTempVendorCDR_20' ) end [2025-03-21 19:02:19] Production.INFO: ProcessCDR(1,14732182,1,1,2) [2025-03-21 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732182', 'tblTempUsageDetail_20' ) start [2025-03-21 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732182', 'tblTempUsageDetail_20' ) end [2025-03-21 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:02:23] Production.INFO: ==31239== Releasing lock... [2025-03-21 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:02:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-21 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:03:05 [end_date_ymd] => 2025-03-21 19:03:05 [RateCDR] => 1 ) [2025-03-21 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 16:03:05' and `end` < '2025-03-21 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:03:18] Production.INFO: count ==3835 [2025-03-21 19:03:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:03:05 - End Time 2025-03-21 19:03:05 [2025-03-21 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732187', 'tblTempUsageDetail_20' ) start [2025-03-21 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732187', 'tblTempUsageDetail_20' ) end [2025-03-21 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732187', 'tblTempVendorCDR_20' ) start [2025-03-21 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732187', 'tblTempVendorCDR_20' ) end [2025-03-21 19:03:20] Production.INFO: ProcessCDR(1,14732187,1,1,2) [2025-03-21 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732187', 'tblTempUsageDetail_20' ) start [2025-03-21 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732187', 'tblTempUsageDetail_20' ) end [2025-03-21 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:03:23] Production.INFO: ==31321== Releasing lock... [2025-03-21 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:03:23] Production.INFO: 56.75 MB #Memory Used# [2025-03-21 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:04:05 [end_date_ymd] => 2025-03-21 19:04:05 [RateCDR] => 1 ) [2025-03-21 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 16:04:05' and `end` < '2025-03-21 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:04:18] Production.INFO: count ==3825 [2025-03-21 19:04:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:04:05 - End Time 2025-03-21 19:04:05 [2025-03-21 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732192', 'tblTempUsageDetail_20' ) start [2025-03-21 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732192', 'tblTempUsageDetail_20' ) end [2025-03-21 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732192', 'tblTempVendorCDR_20' ) start [2025-03-21 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732192', 'tblTempVendorCDR_20' ) end [2025-03-21 19:04:19] Production.INFO: ProcessCDR(1,14732192,1,1,2) [2025-03-21 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732192', 'tblTempUsageDetail_20' ) start [2025-03-21 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732192', 'tblTempUsageDetail_20' ) end [2025-03-21 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:04:23] Production.INFO: ==31403== Releasing lock... [2025-03-21 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:04:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-21 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:05:06 [end_date_ymd] => 2025-03-21 19:05:06 [RateCDR] => 1 ) [2025-03-21 19: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-21 16:05:06' and `end` < '2025-03-21 19: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-21 19:05:19] Production.INFO: count ==3803 [2025-03-21 19:05:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:05:06 - End Time 2025-03-21 19:05:06 [2025-03-21 19:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732197', 'tblTempUsageDetail_20' ) start [2025-03-21 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732197', 'tblTempUsageDetail_20' ) end [2025-03-21 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732197', 'tblTempVendorCDR_20' ) start [2025-03-21 19:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732197', 'tblTempVendorCDR_20' ) end [2025-03-21 19:05:20] Production.INFO: ProcessCDR(1,14732197,1,1,2) [2025-03-21 19:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732197', 'tblTempUsageDetail_20' ) start [2025-03-21 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732197', 'tblTempUsageDetail_20' ) end [2025-03-21 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:05:24] Production.INFO: ==31567== Releasing lock... [2025-03-21 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:05:24] Production.INFO: 56.75 MB #Memory Used# [2025-03-21 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:06:05 [end_date_ymd] => 2025-03-21 19:06:05 [RateCDR] => 1 ) [2025-03-21 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 16:06:05' and `end` < '2025-03-21 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:06:18] Production.INFO: count ==3781 [2025-03-21 19:06:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:06:05 - End Time 2025-03-21 19:06:05 [2025-03-21 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732202', 'tblTempUsageDetail_20' ) start [2025-03-21 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732202', 'tblTempUsageDetail_20' ) end [2025-03-21 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732202', 'tblTempVendorCDR_20' ) start [2025-03-21 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732202', 'tblTempVendorCDR_20' ) end [2025-03-21 19:06:19] Production.INFO: ProcessCDR(1,14732202,1,1,2) [2025-03-21 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732202', 'tblTempUsageDetail_20' ) start [2025-03-21 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732202', 'tblTempUsageDetail_20' ) end [2025-03-21 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:06:24] Production.INFO: ==31648== Releasing lock... [2025-03-21 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:06:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-21 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:07:05 [end_date_ymd] => 2025-03-21 19:07:05 [RateCDR] => 1 ) [2025-03-21 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 16:07:05' and `end` < '2025-03-21 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:07:18] Production.INFO: count ==3786 [2025-03-21 19:07:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:07:05 - End Time 2025-03-21 19:07:05 [2025-03-21 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732207', 'tblTempUsageDetail_20' ) start [2025-03-21 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732207', 'tblTempUsageDetail_20' ) end [2025-03-21 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732207', 'tblTempVendorCDR_20' ) start [2025-03-21 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732207', 'tblTempVendorCDR_20' ) end [2025-03-21 19:07:20] Production.INFO: ProcessCDR(1,14732207,1,1,2) [2025-03-21 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732207', 'tblTempUsageDetail_20' ) start [2025-03-21 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732207', 'tblTempUsageDetail_20' ) end [2025-03-21 19:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:07:25] Production.INFO: ==31734== Releasing lock... [2025-03-21 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:07:25] Production.INFO: 56.75 MB #Memory Used# [2025-03-21 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:08:05 [end_date_ymd] => 2025-03-21 19:08:05 [RateCDR] => 1 ) [2025-03-21 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 16:08:05' and `end` < '2025-03-21 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:08:18] Production.INFO: count ==3767 [2025-03-21 19:08:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:08:05 - End Time 2025-03-21 19:08:05 [2025-03-21 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732212', 'tblTempUsageDetail_20' ) start [2025-03-21 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732212', 'tblTempUsageDetail_20' ) end [2025-03-21 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732212', 'tblTempVendorCDR_20' ) start [2025-03-21 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732212', 'tblTempVendorCDR_20' ) end [2025-03-21 19:08:19] Production.INFO: ProcessCDR(1,14732212,1,1,2) [2025-03-21 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732212', 'tblTempUsageDetail_20' ) start [2025-03-21 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732212', 'tblTempUsageDetail_20' ) end [2025-03-21 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:08:23] Production.INFO: ==31898== Releasing lock... [2025-03-21 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:08:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-21 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:09:05 [end_date_ymd] => 2025-03-21 19:09:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:09:05' and `end` < '2025-03-21 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-21 19:09:18] Production.INFO: count ==3748 [2025-03-21 19:09:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:09:05 - End Time 2025-03-21 19:09:05 [2025-03-21 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732217', 'tblTempUsageDetail_20' ) start [2025-03-21 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732217', 'tblTempUsageDetail_20' ) end [2025-03-21 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732217', 'tblTempVendorCDR_20' ) start [2025-03-21 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732217', 'tblTempVendorCDR_20' ) end [2025-03-21 19:09:19] Production.INFO: ProcessCDR(1,14732217,1,1,2) [2025-03-21 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732217', 'tblTempUsageDetail_20' ) start [2025-03-21 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732217', 'tblTempUsageDetail_20' ) end [2025-03-21 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:09:24] Production.INFO: ==31984== Releasing lock... [2025-03-21 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:09:24] Production.INFO: 56 MB #Memory Used# [2025-03-21 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:10:06 [end_date_ymd] => 2025-03-21 19:10:06 [RateCDR] => 1 ) [2025-03-21 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-21 16:10:06' and `end` < '2025-03-21 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-21 19:10:19] Production.INFO: count ==3747 [2025-03-21 19:10:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:10:06 - End Time 2025-03-21 19:10:06 [2025-03-21 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732222', 'tblTempUsageDetail_20' ) start [2025-03-21 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732222', 'tblTempUsageDetail_20' ) end [2025-03-21 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732222', 'tblTempVendorCDR_20' ) start [2025-03-21 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732222', 'tblTempVendorCDR_20' ) end [2025-03-21 19:10:20] Production.INFO: ProcessCDR(1,14732222,1,1,2) [2025-03-21 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732222', 'tblTempUsageDetail_20' ) start [2025-03-21 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732222', 'tblTempUsageDetail_20' ) end [2025-03-21 19:10:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:10:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:10:25] Production.INFO: ==32072== Releasing lock... [2025-03-21 19:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:10:25] Production.INFO: 57 MB #Memory Used# [2025-03-21 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:11:05 [end_date_ymd] => 2025-03-21 19:11:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:11:05' and `end` < '2025-03-21 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-21 19:11:18] Production.INFO: count ==3735 [2025-03-21 19:11:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:11:05 - End Time 2025-03-21 19:11:05 [2025-03-21 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732228', 'tblTempUsageDetail_20' ) start [2025-03-21 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732228', 'tblTempUsageDetail_20' ) end [2025-03-21 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732228', 'tblTempVendorCDR_20' ) start [2025-03-21 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732228', 'tblTempVendorCDR_20' ) end [2025-03-21 19:11:19] Production.INFO: ProcessCDR(1,14732228,1,1,2) [2025-03-21 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732228', 'tblTempUsageDetail_20' ) start [2025-03-21 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732228', 'tblTempUsageDetail_20' ) end [2025-03-21 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:11:24] Production.INFO: ==32159== Releasing lock... [2025-03-21 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:11:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-21 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:12:06 [end_date_ymd] => 2025-03-21 19:12:06 [RateCDR] => 1 ) [2025-03-21 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-21 16:12:06' and `end` < '2025-03-21 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-21 19:12:18] Production.INFO: count ==3725 [2025-03-21 19:12:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:12:06 - End Time 2025-03-21 19:12:06 [2025-03-21 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732233', 'tblTempUsageDetail_20' ) start [2025-03-21 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732233', 'tblTempUsageDetail_20' ) end [2025-03-21 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732233', 'tblTempVendorCDR_20' ) start [2025-03-21 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732233', 'tblTempVendorCDR_20' ) end [2025-03-21 19:12:20] Production.INFO: ProcessCDR(1,14732233,1,1,2) [2025-03-21 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732233', 'tblTempUsageDetail_20' ) start [2025-03-21 19:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732233', 'tblTempUsageDetail_20' ) end [2025-03-21 19:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:12:23] Production.INFO: ==32318== Releasing lock... [2025-03-21 19:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:12:23] Production.INFO: 56.25 MB #Memory Used# [2025-03-21 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:13:05 [end_date_ymd] => 2025-03-21 19:13:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:13:05' and `end` < '2025-03-21 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-21 19:13:17] Production.INFO: count ==3726 [2025-03-21 19:13:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:13:05 - End Time 2025-03-21 19:13:05 [2025-03-21 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732238', 'tblTempUsageDetail_20' ) start [2025-03-21 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732238', 'tblTempUsageDetail_20' ) end [2025-03-21 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732238', 'tblTempVendorCDR_20' ) start [2025-03-21 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732238', 'tblTempVendorCDR_20' ) end [2025-03-21 19:13:19] Production.INFO: ProcessCDR(1,14732238,1,1,2) [2025-03-21 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732238', 'tblTempUsageDetail_20' ) start [2025-03-21 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732238', 'tblTempUsageDetail_20' ) end [2025-03-21 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:13:22] Production.INFO: ==32440== Releasing lock... [2025-03-21 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:13:22] Production.INFO: 56 MB #Memory Used# [2025-03-21 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:14:05 [end_date_ymd] => 2025-03-21 19:14:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:14:05' and `end` < '2025-03-21 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-21 19:14:18] Production.INFO: count ==3713 [2025-03-21 19:14:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:14:05 - End Time 2025-03-21 19:14:05 [2025-03-21 19:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732243', 'tblTempUsageDetail_20' ) start [2025-03-21 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732243', 'tblTempUsageDetail_20' ) end [2025-03-21 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732243', 'tblTempVendorCDR_20' ) start [2025-03-21 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732243', 'tblTempVendorCDR_20' ) end [2025-03-21 19:14:20] Production.INFO: ProcessCDR(1,14732243,1,1,2) [2025-03-21 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732243', 'tblTempUsageDetail_20' ) start [2025-03-21 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732243', 'tblTempUsageDetail_20' ) end [2025-03-21 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:14:25] Production.INFO: ==32523== Releasing lock... [2025-03-21 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:14:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-21 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:15:05 [end_date_ymd] => 2025-03-21 19:15:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:15:05' and `end` < '2025-03-21 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-21 19:15:18] Production.INFO: count ==3724 [2025-03-21 19:15:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:15:05 - End Time 2025-03-21 19:15:05 [2025-03-21 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732248', 'tblTempUsageDetail_20' ) start [2025-03-21 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732248', 'tblTempUsageDetail_20' ) end [2025-03-21 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732248', 'tblTempVendorCDR_20' ) start [2025-03-21 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732248', 'tblTempVendorCDR_20' ) end [2025-03-21 19:15:19] Production.INFO: ProcessCDR(1,14732248,1,1,2) [2025-03-21 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732248', 'tblTempUsageDetail_20' ) start [2025-03-21 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732248', 'tblTempUsageDetail_20' ) end [2025-03-21 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:15:23] Production.INFO: ==32687== Releasing lock... [2025-03-21 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:15:23] Production.INFO: 55.75 MB #Memory Used# [2025-03-21 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:16:06 [end_date_ymd] => 2025-03-21 19:16:06 [RateCDR] => 1 ) [2025-03-21 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-21 16:16:06' and `end` < '2025-03-21 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-21 19:16:18] Production.INFO: count ==3721 [2025-03-21 19:16:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:16:06 - End Time 2025-03-21 19:16:06 [2025-03-21 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732253', 'tblTempUsageDetail_20' ) start [2025-03-21 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732253', 'tblTempUsageDetail_20' ) end [2025-03-21 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732253', 'tblTempVendorCDR_20' ) start [2025-03-21 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732253', 'tblTempVendorCDR_20' ) end [2025-03-21 19:16:20] Production.INFO: ProcessCDR(1,14732253,1,1,2) [2025-03-21 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732253', 'tblTempUsageDetail_20' ) start [2025-03-21 19:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732253', 'tblTempUsageDetail_20' ) end [2025-03-21 19:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:16:25] Production.INFO: ==32763== Releasing lock... [2025-03-21 19:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:16:25] Production.INFO: 56.25 MB #Memory Used# [2025-03-21 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:17:05 [end_date_ymd] => 2025-03-21 19:17:05 [RateCDR] => 1 ) [2025-03-21 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 16:17:05' and `end` < '2025-03-21 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:17:18] Production.INFO: count ==3701 [2025-03-21 19:17:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:17:05 - End Time 2025-03-21 19:17:05 [2025-03-21 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732258', 'tblTempUsageDetail_20' ) start [2025-03-21 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732258', 'tblTempUsageDetail_20' ) end [2025-03-21 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732258', 'tblTempVendorCDR_20' ) start [2025-03-21 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732258', 'tblTempVendorCDR_20' ) end [2025-03-21 19:17:19] Production.INFO: ProcessCDR(1,14732258,1,1,2) [2025-03-21 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732258', 'tblTempUsageDetail_20' ) start [2025-03-21 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732258', 'tblTempUsageDetail_20' ) end [2025-03-21 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:17:24] Production.INFO: ==396== Releasing lock... [2025-03-21 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:17:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-21 19:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:18:06 [end_date_ymd] => 2025-03-21 19:18:06 [RateCDR] => 1 ) [2025-03-21 19: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-21 16:18:06' and `end` < '2025-03-21 19: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-21 19:18:19] Production.INFO: count ==3686 [2025-03-21 19:18:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:18:06 - End Time 2025-03-21 19:18:06 [2025-03-21 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732263', 'tblTempUsageDetail_20' ) start [2025-03-21 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732263', 'tblTempUsageDetail_20' ) end [2025-03-21 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732263', 'tblTempVendorCDR_20' ) start [2025-03-21 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732263', 'tblTempVendorCDR_20' ) end [2025-03-21 19:18:20] Production.INFO: ProcessCDR(1,14732263,1,1,2) [2025-03-21 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732263', 'tblTempUsageDetail_20' ) start [2025-03-21 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732263', 'tblTempUsageDetail_20' ) end [2025-03-21 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:18:23] Production.INFO: ==476== Releasing lock... [2025-03-21 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:18:23] Production.INFO: 55.5 MB #Memory Used# [2025-03-21 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:19:05 [end_date_ymd] => 2025-03-21 19:19:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:19:05' and `end` < '2025-03-21 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-21 19:19:18] Production.INFO: count ==3691 [2025-03-21 19:19:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:19:05 - End Time 2025-03-21 19:19:05 [2025-03-21 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732268', 'tblTempUsageDetail_20' ) start [2025-03-21 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732268', 'tblTempUsageDetail_20' ) end [2025-03-21 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732268', 'tblTempVendorCDR_20' ) start [2025-03-21 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732268', 'tblTempVendorCDR_20' ) end [2025-03-21 19:19:19] Production.INFO: ProcessCDR(1,14732268,1,1,2) [2025-03-21 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732268', 'tblTempUsageDetail_20' ) start [2025-03-21 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732268', 'tblTempUsageDetail_20' ) end [2025-03-21 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:19:23] Production.INFO: ==557== Releasing lock... [2025-03-21 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:19:23] Production.INFO: 56 MB #Memory Used# [2025-03-21 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:20:06 [end_date_ymd] => 2025-03-21 19:20:06 [RateCDR] => 1 ) [2025-03-21 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-21 16:20:06' and `end` < '2025-03-21 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-21 19:20:19] Production.INFO: count ==3681 [2025-03-21 19:20:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:20:06 - End Time 2025-03-21 19:20:06 [2025-03-21 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732274', 'tblTempUsageDetail_20' ) start [2025-03-21 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732274', 'tblTempUsageDetail_20' ) end [2025-03-21 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732274', 'tblTempVendorCDR_20' ) start [2025-03-21 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732274', 'tblTempVendorCDR_20' ) end [2025-03-21 19:20:20] Production.INFO: ProcessCDR(1,14732274,1,1,2) [2025-03-21 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732274', 'tblTempUsageDetail_20' ) start [2025-03-21 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732274', 'tblTempUsageDetail_20' ) end [2025-03-21 19:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:20:26] Production.INFO: ==651== Releasing lock... [2025-03-21 19:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:20:26] Production.INFO: 55.5 MB #Memory Used# [2025-03-21 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:21:05 [end_date_ymd] => 2025-03-21 19:21:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:21:05' and `end` < '2025-03-21 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-21 19:21:18] Production.INFO: count ==3657 [2025-03-21 19:21:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:21:05 - End Time 2025-03-21 19:21:05 [2025-03-21 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732279', 'tblTempUsageDetail_20' ) start [2025-03-21 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732279', 'tblTempUsageDetail_20' ) end [2025-03-21 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732279', 'tblTempVendorCDR_20' ) start [2025-03-21 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732279', 'tblTempVendorCDR_20' ) end [2025-03-21 19:21:19] Production.INFO: ProcessCDR(1,14732279,1,1,2) [2025-03-21 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732279', 'tblTempUsageDetail_20' ) start [2025-03-21 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732279', 'tblTempUsageDetail_20' ) end [2025-03-21 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:21:25] Production.INFO: ==766== Releasing lock... [2025-03-21 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:21:25] Production.INFO: 55.5 MB #Memory Used# [2025-03-21 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:22:06 [end_date_ymd] => 2025-03-21 19:22:06 [RateCDR] => 1 ) [2025-03-21 19: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-21 16:22:06' and `end` < '2025-03-21 19: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-21 19:22:19] Production.INFO: count ==3614 [2025-03-21 19:22:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:22:06 - End Time 2025-03-21 19:22:06 [2025-03-21 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732284', 'tblTempUsageDetail_20' ) start [2025-03-21 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732284', 'tblTempUsageDetail_20' ) end [2025-03-21 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732284', 'tblTempVendorCDR_20' ) start [2025-03-21 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732284', 'tblTempVendorCDR_20' ) end [2025-03-21 19:22:20] Production.INFO: ProcessCDR(1,14732284,1,1,2) [2025-03-21 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732284', 'tblTempUsageDetail_20' ) start [2025-03-21 19:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732284', 'tblTempUsageDetail_20' ) end [2025-03-21 19:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:22:25] Production.INFO: ==849== Releasing lock... [2025-03-21 19:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:22:25] Production.INFO: 55 MB #Memory Used# [2025-03-21 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:23:05 [end_date_ymd] => 2025-03-21 19:23:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:23:05' and `end` < '2025-03-21 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-21 19:23:17] Production.INFO: count ==3609 [2025-03-21 19:23:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:23:05 - End Time 2025-03-21 19:23:05 [2025-03-21 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732289', 'tblTempUsageDetail_20' ) start [2025-03-21 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732289', 'tblTempUsageDetail_20' ) end [2025-03-21 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732289', 'tblTempVendorCDR_20' ) start [2025-03-21 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732289', 'tblTempVendorCDR_20' ) end [2025-03-21 19:23:19] Production.INFO: ProcessCDR(1,14732289,1,1,2) [2025-03-21 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732289', 'tblTempUsageDetail_20' ) start [2025-03-21 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732289', 'tblTempUsageDetail_20' ) end [2025-03-21 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:23:22] Production.INFO: ==940== Releasing lock... [2025-03-21 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:23:22] Production.INFO: 55.25 MB #Memory Used# [2025-03-21 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:24:05 [end_date_ymd] => 2025-03-21 19:24:05 [RateCDR] => 1 ) [2025-03-21 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 16:24:05' and `end` < '2025-03-21 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:24:18] Production.INFO: count ==3590 [2025-03-21 19:24:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:24:05 - End Time 2025-03-21 19:24:05 [2025-03-21 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732294', 'tblTempUsageDetail_20' ) start [2025-03-21 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732294', 'tblTempUsageDetail_20' ) end [2025-03-21 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732294', 'tblTempVendorCDR_20' ) start [2025-03-21 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732294', 'tblTempVendorCDR_20' ) end [2025-03-21 19:24:19] Production.INFO: ProcessCDR(1,14732294,1,1,2) [2025-03-21 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732294', 'tblTempUsageDetail_20' ) start [2025-03-21 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732294', 'tblTempUsageDetail_20' ) end [2025-03-21 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:24:23] Production.INFO: ==1024== Releasing lock... [2025-03-21 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:24:23] Production.INFO: 54.75 MB #Memory Used# [2025-03-21 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:25:05 [end_date_ymd] => 2025-03-21 19:25:05 [RateCDR] => 1 ) [2025-03-21 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 16:25:05' and `end` < '2025-03-21 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:25:18] Production.INFO: count ==3590 [2025-03-21 19:25:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:25:05 - End Time 2025-03-21 19:25:05 [2025-03-21 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732299', 'tblTempUsageDetail_20' ) start [2025-03-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732299', 'tblTempUsageDetail_20' ) end [2025-03-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732299', 'tblTempVendorCDR_20' ) start [2025-03-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732299', 'tblTempVendorCDR_20' ) end [2025-03-21 19:25:19] Production.INFO: ProcessCDR(1,14732299,1,1,2) [2025-03-21 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732299', 'tblTempUsageDetail_20' ) start [2025-03-21 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732299', 'tblTempUsageDetail_20' ) end [2025-03-21 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:25:24] Production.INFO: ==1103== Releasing lock... [2025-03-21 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:25:24] Production.INFO: 55.5 MB #Memory Used# [2025-03-21 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:26:05 [end_date_ymd] => 2025-03-21 19:26:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:26:05' and `end` < '2025-03-21 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-21 19:26:18] Production.INFO: count ==3554 [2025-03-21 19:26:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:26:05 - End Time 2025-03-21 19:26:05 [2025-03-21 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732304', 'tblTempUsageDetail_20' ) start [2025-03-21 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732304', 'tblTempUsageDetail_20' ) end [2025-03-21 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732304', 'tblTempVendorCDR_20' ) start [2025-03-21 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732304', 'tblTempVendorCDR_20' ) end [2025-03-21 19:26:19] Production.INFO: ProcessCDR(1,14732304,1,1,2) [2025-03-21 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732304', 'tblTempUsageDetail_20' ) start [2025-03-21 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732304', 'tblTempUsageDetail_20' ) end [2025-03-21 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:26:22] Production.INFO: ==1187== Releasing lock... [2025-03-21 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:26:23] Production.INFO: 54.5 MB #Memory Used# [2025-03-21 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:27:05 [end_date_ymd] => 2025-03-21 19:27:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:27:05' and `end` < '2025-03-21 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-21 19:27:18] Production.INFO: count ==3533 [2025-03-21 19:27:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:27:05 - End Time 2025-03-21 19:27:05 [2025-03-21 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732309', 'tblTempUsageDetail_20' ) start [2025-03-21 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732309', 'tblTempUsageDetail_20' ) end [2025-03-21 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732309', 'tblTempVendorCDR_20' ) start [2025-03-21 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732309', 'tblTempVendorCDR_20' ) end [2025-03-21 19:27:19] Production.INFO: ProcessCDR(1,14732309,1,1,2) [2025-03-21 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732309', 'tblTempUsageDetail_20' ) start [2025-03-21 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732309', 'tblTempUsageDetail_20' ) end [2025-03-21 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:27:24] Production.INFO: ==1276== Releasing lock... [2025-03-21 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:27:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-21 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:28:05 [end_date_ymd] => 2025-03-21 19:28:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:28:05' and `end` < '2025-03-21 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-21 19:28:18] Production.INFO: count ==3518 [2025-03-21 19:28:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:28:05 - End Time 2025-03-21 19:28:05 [2025-03-21 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732314', 'tblTempUsageDetail_20' ) start [2025-03-21 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732314', 'tblTempUsageDetail_20' ) end [2025-03-21 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732314', 'tblTempVendorCDR_20' ) start [2025-03-21 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732314', 'tblTempVendorCDR_20' ) end [2025-03-21 19:28:19] Production.INFO: ProcessCDR(1,14732314,1,1,2) [2025-03-21 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732314', 'tblTempUsageDetail_20' ) start [2025-03-21 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732314', 'tblTempUsageDetail_20' ) end [2025-03-21 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:28:23] Production.INFO: ==1403== Releasing lock... [2025-03-21 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:28:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-21 19:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:29:06 [end_date_ymd] => 2025-03-21 19:29:06 [RateCDR] => 1 ) [2025-03-21 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-21 16:29:06' and `end` < '2025-03-21 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-21 19:29:19] Production.INFO: count ==3521 [2025-03-21 19:29:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:29:06 - End Time 2025-03-21 19:29:06 [2025-03-21 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732319', 'tblTempUsageDetail_20' ) start [2025-03-21 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732319', 'tblTempUsageDetail_20' ) end [2025-03-21 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732319', 'tblTempVendorCDR_20' ) start [2025-03-21 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732319', 'tblTempVendorCDR_20' ) end [2025-03-21 19:29:20] Production.INFO: ProcessCDR(1,14732319,1,1,2) [2025-03-21 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732319', 'tblTempUsageDetail_20' ) start [2025-03-21 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732319', 'tblTempUsageDetail_20' ) end [2025-03-21 19:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:29:25] Production.INFO: ==1477== Releasing lock... [2025-03-21 19:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:29:25] Production.INFO: 55 MB #Memory Used# [2025-03-21 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:30:06 [end_date_ymd] => 2025-03-21 19:30:06 [RateCDR] => 1 ) [2025-03-21 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-21 16:30:06' and `end` < '2025-03-21 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-21 19:30:18] Production.INFO: count ==3523 [2025-03-21 19:30:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:30:06 - End Time 2025-03-21 19:30:06 [2025-03-21 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732325', 'tblTempUsageDetail_20' ) start [2025-03-21 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732325', 'tblTempUsageDetail_20' ) end [2025-03-21 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732325', 'tblTempVendorCDR_20' ) start [2025-03-21 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732325', 'tblTempVendorCDR_20' ) end [2025-03-21 19:30:20] Production.INFO: ProcessCDR(1,14732325,1,1,2) [2025-03-21 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732325', 'tblTempUsageDetail_20' ) start [2025-03-21 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732325', 'tblTempUsageDetail_20' ) end [2025-03-21 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:30:23] Production.INFO: ==1596== Releasing lock... [2025-03-21 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:30:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-21 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:31:06 [end_date_ymd] => 2025-03-21 19:31:06 [RateCDR] => 1 ) [2025-03-21 19: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-21 16:31:06' and `end` < '2025-03-21 19: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-21 19:31:19] Production.INFO: count ==3509 [2025-03-21 19:31:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:31:06 - End Time 2025-03-21 19:31:06 [2025-03-21 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732330', 'tblTempUsageDetail_20' ) start [2025-03-21 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732330', 'tblTempUsageDetail_20' ) end [2025-03-21 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732330', 'tblTempVendorCDR_20' ) start [2025-03-21 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732330', 'tblTempVendorCDR_20' ) end [2025-03-21 19:31:20] Production.INFO: ProcessCDR(1,14732330,1,1,2) [2025-03-21 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732330', 'tblTempUsageDetail_20' ) start [2025-03-21 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732330', 'tblTempUsageDetail_20' ) end [2025-03-21 19:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:31:25] Production.INFO: ==1671== Releasing lock... [2025-03-21 19:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:31:25] Production.INFO: 55.25 MB #Memory Used# [2025-03-21 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:32:05 [end_date_ymd] => 2025-03-21 19:32:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:32:05' and `end` < '2025-03-21 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-21 19:32:18] Production.INFO: count ==3513 [2025-03-21 19:32:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:32:05 - End Time 2025-03-21 19:32:05 [2025-03-21 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732335', 'tblTempUsageDetail_20' ) start [2025-03-21 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732335', 'tblTempUsageDetail_20' ) end [2025-03-21 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732335', 'tblTempVendorCDR_20' ) start [2025-03-21 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732335', 'tblTempVendorCDR_20' ) end [2025-03-21 19:32:19] Production.INFO: ProcessCDR(1,14732335,1,1,2) [2025-03-21 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732335', 'tblTempUsageDetail_20' ) start [2025-03-21 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732335', 'tblTempUsageDetail_20' ) end [2025-03-21 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:32:24] Production.INFO: ==1741== Releasing lock... [2025-03-21 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:32:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-21 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:33:05 [end_date_ymd] => 2025-03-21 19:33:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:33:05' and `end` < '2025-03-21 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-21 19:33:18] Production.INFO: count ==3503 [2025-03-21 19:33:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:33:05 - End Time 2025-03-21 19:33:05 [2025-03-21 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732340', 'tblTempUsageDetail_20' ) start [2025-03-21 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732340', 'tblTempUsageDetail_20' ) end [2025-03-21 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732340', 'tblTempVendorCDR_20' ) start [2025-03-21 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732340', 'tblTempVendorCDR_20' ) end [2025-03-21 19:33:19] Production.INFO: ProcessCDR(1,14732340,1,1,2) [2025-03-21 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732340', 'tblTempUsageDetail_20' ) start [2025-03-21 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732340', 'tblTempUsageDetail_20' ) end [2025-03-21 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:33:22] Production.INFO: ==1822== Releasing lock... [2025-03-21 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:33:22] Production.INFO: 54.75 MB #Memory Used# [2025-03-21 19:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:34:04 [end_date_ymd] => 2025-03-21 19:34:04 [RateCDR] => 1 ) [2025-03-21 19: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-21 16:34:04' and `end` < '2025-03-21 19: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-21 19:34:17] Production.INFO: count ==3502 [2025-03-21 19:34:18] Production.ERROR: pbx CDR StartTime 2025-03-21 16:34:04 - End Time 2025-03-21 19:34:04 [2025-03-21 19:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732342', 'tblTempUsageDetail_20' ) start [2025-03-21 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732342', 'tblTempUsageDetail_20' ) end [2025-03-21 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732342', 'tblTempVendorCDR_20' ) start [2025-03-21 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732342', 'tblTempVendorCDR_20' ) end [2025-03-21 19:34:18] Production.INFO: ProcessCDR(1,14732342,1,1,2) [2025-03-21 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732342', 'tblTempUsageDetail_20' ) start [2025-03-21 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732342', 'tblTempUsageDetail_20' ) end [2025-03-21 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:34:24] Production.INFO: ==1902== Releasing lock... [2025-03-21 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:34:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-21 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:35:05 [end_date_ymd] => 2025-03-21 19:35:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:35:05' and `end` < '2025-03-21 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-21 19:35:18] Production.INFO: count ==3517 [2025-03-21 19:35:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:35:05 - End Time 2025-03-21 19:35:05 [2025-03-21 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732350', 'tblTempUsageDetail_20' ) start [2025-03-21 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732350', 'tblTempUsageDetail_20' ) end [2025-03-21 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732350', 'tblTempVendorCDR_20' ) start [2025-03-21 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732350', 'tblTempVendorCDR_20' ) end [2025-03-21 19:35:19] Production.INFO: ProcessCDR(1,14732350,1,1,2) [2025-03-21 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732350', 'tblTempUsageDetail_20' ) start [2025-03-21 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732350', 'tblTempUsageDetail_20' ) end [2025-03-21 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:35:24] Production.INFO: ==1977== Releasing lock... [2025-03-21 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:35:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-21 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:36:05 [end_date_ymd] => 2025-03-21 19:36:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:36:05' and `end` < '2025-03-21 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-21 19:36:17] Production.INFO: count ==3515 [2025-03-21 19:36:18] Production.ERROR: pbx CDR StartTime 2025-03-21 16:36:05 - End Time 2025-03-21 19:36:05 [2025-03-21 19:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732355', 'tblTempUsageDetail_20' ) start [2025-03-21 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732355', 'tblTempUsageDetail_20' ) end [2025-03-21 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732355', 'tblTempVendorCDR_20' ) start [2025-03-21 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732355', 'tblTempVendorCDR_20' ) end [2025-03-21 19:36:18] Production.INFO: ProcessCDR(1,14732355,1,1,2) [2025-03-21 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732355', 'tblTempUsageDetail_20' ) start [2025-03-21 19:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732355', 'tblTempUsageDetail_20' ) end [2025-03-21 19:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:36:23] Production.INFO: ==2051== Releasing lock... [2025-03-21 19:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:36:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-21 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:37:05 [end_date_ymd] => 2025-03-21 19:37:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:37:05' and `end` < '2025-03-21 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-21 19:37:18] Production.INFO: count ==3517 [2025-03-21 19:37:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:37:05 - End Time 2025-03-21 19:37:05 [2025-03-21 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732360', 'tblTempUsageDetail_20' ) start [2025-03-21 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732360', 'tblTempUsageDetail_20' ) end [2025-03-21 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732360', 'tblTempVendorCDR_20' ) start [2025-03-21 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732360', 'tblTempVendorCDR_20' ) end [2025-03-21 19:37:19] Production.INFO: ProcessCDR(1,14732360,1,1,2) [2025-03-21 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732360', 'tblTempUsageDetail_20' ) start [2025-03-21 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732360', 'tblTempUsageDetail_20' ) end [2025-03-21 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:37:23] Production.INFO: ==2126== Releasing lock... [2025-03-21 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:37:23] Production.INFO: 54.5 MB #Memory Used# [2025-03-21 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:38:05 [end_date_ymd] => 2025-03-21 19:38:05 [RateCDR] => 1 ) [2025-03-21 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 16:38:05' and `end` < '2025-03-21 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:38:18] Production.INFO: count ==3503 [2025-03-21 19:38:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:38:05 - End Time 2025-03-21 19:38:05 [2025-03-21 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732365', 'tblTempUsageDetail_20' ) start [2025-03-21 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732365', 'tblTempUsageDetail_20' ) end [2025-03-21 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732365', 'tblTempVendorCDR_20' ) start [2025-03-21 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732365', 'tblTempVendorCDR_20' ) end [2025-03-21 19:38:19] Production.INFO: ProcessCDR(1,14732365,1,1,2) [2025-03-21 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732365', 'tblTempUsageDetail_20' ) start [2025-03-21 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732365', 'tblTempUsageDetail_20' ) end [2025-03-21 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:38:24] Production.INFO: ==2201== Releasing lock... [2025-03-21 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:38:24] Production.INFO: 54.25 MB #Memory Used# [2025-03-21 19:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:39:04 [end_date_ymd] => 2025-03-21 19:39:04 [RateCDR] => 1 ) [2025-03-21 19:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 16:39:04' and `end` < '2025-03-21 19:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:39:17] Production.INFO: count ==3493 [2025-03-21 19:39:18] Production.ERROR: pbx CDR StartTime 2025-03-21 16:39:04 - End Time 2025-03-21 19:39:04 [2025-03-21 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732370', 'tblTempUsageDetail_20' ) start [2025-03-21 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732370', 'tblTempUsageDetail_20' ) end [2025-03-21 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732370', 'tblTempVendorCDR_20' ) start [2025-03-21 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732370', 'tblTempVendorCDR_20' ) end [2025-03-21 19:39:18] Production.INFO: ProcessCDR(1,14732370,1,1,2) [2025-03-21 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732370', 'tblTempUsageDetail_20' ) start [2025-03-21 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732370', 'tblTempUsageDetail_20' ) end [2025-03-21 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:39:23] Production.INFO: ==2276== Releasing lock... [2025-03-21 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:39:23] Production.INFO: 55 MB #Memory Used# [2025-03-21 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:40:06 [end_date_ymd] => 2025-03-21 19:40:06 [RateCDR] => 1 ) [2025-03-21 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-21 16:40:06' and `end` < '2025-03-21 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-21 19:40:19] Production.INFO: count ==3462 [2025-03-21 19:40:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:40:06 - End Time 2025-03-21 19:40:06 [2025-03-21 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732375', 'tblTempUsageDetail_20' ) start [2025-03-21 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732375', 'tblTempUsageDetail_20' ) end [2025-03-21 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732375', 'tblTempVendorCDR_20' ) start [2025-03-21 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732375', 'tblTempVendorCDR_20' ) end [2025-03-21 19:40:20] Production.INFO: ProcessCDR(1,14732375,1,1,2) [2025-03-21 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732375', 'tblTempUsageDetail_20' ) start [2025-03-21 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732375', 'tblTempUsageDetail_20' ) end [2025-03-21 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:40:23] Production.INFO: ==2359== Releasing lock... [2025-03-21 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:40:23] Production.INFO: 54.25 MB #Memory Used# [2025-03-21 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:41:05 [end_date_ymd] => 2025-03-21 19:41:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:41:05' and `end` < '2025-03-21 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-21 19:41:18] Production.INFO: count ==3413 [2025-03-21 19:41:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:41:05 - End Time 2025-03-21 19:41:05 [2025-03-21 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732381', 'tblTempUsageDetail_20' ) start [2025-03-21 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732381', 'tblTempUsageDetail_20' ) end [2025-03-21 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732381', 'tblTempVendorCDR_20' ) start [2025-03-21 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732381', 'tblTempVendorCDR_20' ) end [2025-03-21 19:41:19] Production.INFO: ProcessCDR(1,14732381,1,1,2) [2025-03-21 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732381', 'tblTempUsageDetail_20' ) start [2025-03-21 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732381', 'tblTempUsageDetail_20' ) end [2025-03-21 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:41:22] Production.INFO: ==2432== Releasing lock... [2025-03-21 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:41:22] Production.INFO: 54 MB #Memory Used# [2025-03-21 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:42:05 [end_date_ymd] => 2025-03-21 19:42:05 [RateCDR] => 1 ) [2025-03-21 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 16:42:05' and `end` < '2025-03-21 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:42:18] Production.INFO: count ==3378 [2025-03-21 19:42:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:42:05 - End Time 2025-03-21 19:42:05 [2025-03-21 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732386', 'tblTempUsageDetail_20' ) start [2025-03-21 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732386', 'tblTempUsageDetail_20' ) end [2025-03-21 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732386', 'tblTempVendorCDR_20' ) start [2025-03-21 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732386', 'tblTempVendorCDR_20' ) end [2025-03-21 19:42:19] Production.INFO: ProcessCDR(1,14732386,1,1,2) [2025-03-21 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732386', 'tblTempUsageDetail_20' ) start [2025-03-21 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732386', 'tblTempUsageDetail_20' ) end [2025-03-21 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:42:24] Production.INFO: ==2508== Releasing lock... [2025-03-21 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:42:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-21 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:43:05 [end_date_ymd] => 2025-03-21 19:43:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:43:05' and `end` < '2025-03-21 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-21 19:43:18] Production.INFO: count ==3361 [2025-03-21 19:43:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:43:05 - End Time 2025-03-21 19:43:05 [2025-03-21 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732391', 'tblTempUsageDetail_20' ) start [2025-03-21 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732391', 'tblTempUsageDetail_20' ) end [2025-03-21 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732391', 'tblTempVendorCDR_20' ) start [2025-03-21 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732391', 'tblTempVendorCDR_20' ) end [2025-03-21 19:43:19] Production.INFO: ProcessCDR(1,14732391,1,1,2) [2025-03-21 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732391', 'tblTempUsageDetail_20' ) start [2025-03-21 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732391', 'tblTempUsageDetail_20' ) end [2025-03-21 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:43:23] Production.INFO: ==2583== Releasing lock... [2025-03-21 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:43:23] Production.INFO: 53 MB #Memory Used# [2025-03-21 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:44:05 [end_date_ymd] => 2025-03-21 19:44:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:44:05' and `end` < '2025-03-21 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-21 19:44:18] Production.INFO: count ==3353 [2025-03-21 19:44:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:44:05 - End Time 2025-03-21 19:44:05 [2025-03-21 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732396', 'tblTempUsageDetail_20' ) start [2025-03-21 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732396', 'tblTempUsageDetail_20' ) end [2025-03-21 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732396', 'tblTempVendorCDR_20' ) start [2025-03-21 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732396', 'tblTempVendorCDR_20' ) end [2025-03-21 19:44:19] Production.INFO: ProcessCDR(1,14732396,1,1,2) [2025-03-21 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732396', 'tblTempUsageDetail_20' ) start [2025-03-21 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732396', 'tblTempUsageDetail_20' ) end [2025-03-21 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:44:24] Production.INFO: ==2701== Releasing lock... [2025-03-21 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:44:24] Production.INFO: 53 MB #Memory Used# [2025-03-21 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:45:05 [end_date_ymd] => 2025-03-21 19:45:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:45:05' and `end` < '2025-03-21 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-21 19:45:18] Production.INFO: count ==3344 [2025-03-21 19:45:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:45:05 - End Time 2025-03-21 19:45:05 [2025-03-21 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732401', 'tblTempUsageDetail_20' ) start [2025-03-21 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732401', 'tblTempUsageDetail_20' ) end [2025-03-21 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732401', 'tblTempVendorCDR_20' ) start [2025-03-21 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732401', 'tblTempVendorCDR_20' ) end [2025-03-21 19:45:19] Production.INFO: ProcessCDR(1,14732401,1,1,2) [2025-03-21 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732401', 'tblTempUsageDetail_20' ) start [2025-03-21 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732401', 'tblTempUsageDetail_20' ) end [2025-03-21 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:45:22] Production.INFO: ==2777== Releasing lock... [2025-03-21 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:45:22] Production.INFO: 53 MB #Memory Used# [2025-03-21 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:46:05 [end_date_ymd] => 2025-03-21 19:46:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:46:05' and `end` < '2025-03-21 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-21 19:46:18] Production.INFO: count ==3323 [2025-03-21 19:46:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:46:05 - End Time 2025-03-21 19:46:05 [2025-03-21 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732406', 'tblTempUsageDetail_20' ) start [2025-03-21 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732406', 'tblTempUsageDetail_20' ) end [2025-03-21 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732406', 'tblTempVendorCDR_20' ) start [2025-03-21 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732406', 'tblTempVendorCDR_20' ) end [2025-03-21 19:46:19] Production.INFO: ProcessCDR(1,14732406,1,1,2) [2025-03-21 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732406', 'tblTempUsageDetail_20' ) start [2025-03-21 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732406', 'tblTempUsageDetail_20' ) end [2025-03-21 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:46:22] Production.INFO: ==2850== Releasing lock... [2025-03-21 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:46:22] Production.INFO: 53 MB #Memory Used# [2025-03-21 19:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:47:04 [end_date_ymd] => 2025-03-21 19:47:04 [RateCDR] => 1 ) [2025-03-21 19:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 16:47:04' and `end` < '2025-03-21 19:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:47:17] Production.INFO: count ==3316 [2025-03-21 19:47:18] Production.ERROR: pbx CDR StartTime 2025-03-21 16:47:04 - End Time 2025-03-21 19:47:04 [2025-03-21 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732411', 'tblTempUsageDetail_20' ) start [2025-03-21 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732411', 'tblTempUsageDetail_20' ) end [2025-03-21 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732411', 'tblTempVendorCDR_20' ) start [2025-03-21 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732411', 'tblTempVendorCDR_20' ) end [2025-03-21 19:47:18] Production.INFO: ProcessCDR(1,14732411,1,1,2) [2025-03-21 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732411', 'tblTempUsageDetail_20' ) start [2025-03-21 19:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732411', 'tblTempUsageDetail_20' ) end [2025-03-21 19:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:47:23] Production.INFO: ==2923== Releasing lock... [2025-03-21 19:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:47:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-21 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:48:05 [end_date_ymd] => 2025-03-21 19:48:05 [RateCDR] => 1 ) [2025-03-21 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 16:48:05' and `end` < '2025-03-21 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:48:18] Production.INFO: count ==3283 [2025-03-21 19:48:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:48:05 - End Time 2025-03-21 19:48:05 [2025-03-21 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732416', 'tblTempUsageDetail_20' ) start [2025-03-21 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732416', 'tblTempUsageDetail_20' ) end [2025-03-21 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732416', 'tblTempVendorCDR_20' ) start [2025-03-21 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732416', 'tblTempVendorCDR_20' ) end [2025-03-21 19:48:19] Production.INFO: ProcessCDR(1,14732416,1,1,2) [2025-03-21 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732416', 'tblTempUsageDetail_20' ) start [2025-03-21 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732416', 'tblTempUsageDetail_20' ) end [2025-03-21 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:48:22] Production.INFO: ==2998== Releasing lock... [2025-03-21 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:48:22] Production.INFO: 53 MB #Memory Used# [2025-03-21 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:49:06 [end_date_ymd] => 2025-03-21 19:49:06 [RateCDR] => 1 ) [2025-03-21 19: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-21 16:49:06' and `end` < '2025-03-21 19: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-21 19:49:18] Production.INFO: count ==3248 [2025-03-21 19:49:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:49:06 - End Time 2025-03-21 19:49:06 [2025-03-21 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732421', 'tblTempUsageDetail_20' ) start [2025-03-21 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732421', 'tblTempUsageDetail_20' ) end [2025-03-21 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732421', 'tblTempVendorCDR_20' ) start [2025-03-21 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732421', 'tblTempVendorCDR_20' ) end [2025-03-21 19:49:19] Production.INFO: ProcessCDR(1,14732421,1,1,2) [2025-03-21 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732421', 'tblTempUsageDetail_20' ) start [2025-03-21 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732421', 'tblTempUsageDetail_20' ) end [2025-03-21 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:49:24] Production.INFO: ==3073== Releasing lock... [2025-03-21 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:49:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-21 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:50:06 [end_date_ymd] => 2025-03-21 19:50:06 [RateCDR] => 1 ) [2025-03-21 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-21 16:50:06' and `end` < '2025-03-21 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-21 19:50:19] Production.INFO: count ==3232 [2025-03-21 19:50:20] Production.ERROR: pbx CDR StartTime 2025-03-21 16:50:06 - End Time 2025-03-21 19:50:06 [2025-03-21 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732427', 'tblTempUsageDetail_20' ) start [2025-03-21 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732427', 'tblTempUsageDetail_20' ) end [2025-03-21 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732427', 'tblTempVendorCDR_20' ) start [2025-03-21 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732427', 'tblTempVendorCDR_20' ) end [2025-03-21 19:50:20] Production.INFO: ProcessCDR(1,14732427,1,1,2) [2025-03-21 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732427', 'tblTempUsageDetail_20' ) start [2025-03-21 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732427', 'tblTempUsageDetail_20' ) end [2025-03-21 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:50:24] Production.INFO: ==3149== Releasing lock... [2025-03-21 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:50:24] Production.INFO: 52.25 MB #Memory Used# [2025-03-21 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:51:05 [end_date_ymd] => 2025-03-21 19:51:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:51:05' and `end` < '2025-03-21 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-21 19:51:18] Production.INFO: count ==3105 [2025-03-21 19:51:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:51:05 - End Time 2025-03-21 19:51:05 [2025-03-21 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732432', 'tblTempUsageDetail_20' ) start [2025-03-21 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732432', 'tblTempUsageDetail_20' ) end [2025-03-21 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732432', 'tblTempVendorCDR_20' ) start [2025-03-21 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732432', 'tblTempVendorCDR_20' ) end [2025-03-21 19:51:19] Production.INFO: ProcessCDR(1,14732432,1,1,2) [2025-03-21 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732432', 'tblTempUsageDetail_20' ) start [2025-03-21 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732432', 'tblTempUsageDetail_20' ) end [2025-03-21 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:51:22] Production.INFO: ==3228== Releasing lock... [2025-03-21 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:51:22] Production.INFO: 51 MB #Memory Used# [2025-03-21 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:52:05 [end_date_ymd] => 2025-03-21 19:52:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:52:05' and `end` < '2025-03-21 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-21 19:52:18] Production.INFO: count ==3068 [2025-03-21 19:52:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:52:05 - End Time 2025-03-21 19:52:05 [2025-03-21 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732437', 'tblTempUsageDetail_20' ) start [2025-03-21 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732437', 'tblTempUsageDetail_20' ) end [2025-03-21 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732437', 'tblTempVendorCDR_20' ) start [2025-03-21 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732437', 'tblTempVendorCDR_20' ) end [2025-03-21 19:52:19] Production.INFO: ProcessCDR(1,14732437,1,1,2) [2025-03-21 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732437', 'tblTempUsageDetail_20' ) start [2025-03-21 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732437', 'tblTempUsageDetail_20' ) end [2025-03-21 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:52:24] Production.INFO: ==3306== Releasing lock... [2025-03-21 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:52:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-21 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:53:05 [end_date_ymd] => 2025-03-21 19:53:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:53:05' and `end` < '2025-03-21 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 19:53:18] Production.INFO: count ==3061 [2025-03-21 19:53:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:53:05 - End Time 2025-03-21 19:53:05 [2025-03-21 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732442', 'tblTempUsageDetail_20' ) start [2025-03-21 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732442', 'tblTempUsageDetail_20' ) end [2025-03-21 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732442', 'tblTempVendorCDR_20' ) start [2025-03-21 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732442', 'tblTempVendorCDR_20' ) end [2025-03-21 19:53:19] Production.INFO: ProcessCDR(1,14732442,1,1,2) [2025-03-21 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732442', 'tblTempUsageDetail_20' ) start [2025-03-21 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732442', 'tblTempUsageDetail_20' ) end [2025-03-21 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:53:23] Production.INFO: ==3379== Releasing lock... [2025-03-21 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:53:23] Production.INFO: 50.75 MB #Memory Used# [2025-03-21 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:54:05 [end_date_ymd] => 2025-03-21 19:54:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:54:05' and `end` < '2025-03-21 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-21 19:54:18] Production.INFO: count ==3052 [2025-03-21 19:54:18] Production.ERROR: pbx CDR StartTime 2025-03-21 16:54:05 - End Time 2025-03-21 19:54:05 [2025-03-21 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732447', 'tblTempUsageDetail_20' ) start [2025-03-21 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732447', 'tblTempUsageDetail_20' ) end [2025-03-21 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732447', 'tblTempVendorCDR_20' ) start [2025-03-21 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732447', 'tblTempVendorCDR_20' ) end [2025-03-21 19:54:18] Production.INFO: ProcessCDR(1,14732447,1,1,2) [2025-03-21 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732447', 'tblTempUsageDetail_20' ) start [2025-03-21 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732447', 'tblTempUsageDetail_20' ) end [2025-03-21 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:54:22] Production.INFO: ==3452== Releasing lock... [2025-03-21 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:54:22] Production.INFO: 50.75 MB #Memory Used# [2025-03-21 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:55:06 [end_date_ymd] => 2025-03-21 19:55:06 [RateCDR] => 1 ) [2025-03-21 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-21 16:55:06' and `end` < '2025-03-21 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-21 19:55:18] Production.INFO: count ==3030 [2025-03-21 19:55:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:55:06 - End Time 2025-03-21 19:55:06 [2025-03-21 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732452', 'tblTempUsageDetail_20' ) start [2025-03-21 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732452', 'tblTempUsageDetail_20' ) end [2025-03-21 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732452', 'tblTempVendorCDR_20' ) start [2025-03-21 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732452', 'tblTempVendorCDR_20' ) end [2025-03-21 19:55:19] Production.INFO: ProcessCDR(1,14732452,1,1,2) [2025-03-21 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732452', 'tblTempUsageDetail_20' ) start [2025-03-21 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732452', 'tblTempUsageDetail_20' ) end [2025-03-21 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:55:23] Production.INFO: ==3525== Releasing lock... [2025-03-21 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:55:23] Production.INFO: 50.5 MB #Memory Used# [2025-03-21 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:56:05 [end_date_ymd] => 2025-03-21 19:56:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:56:05' and `end` < '2025-03-21 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-21 19:56:18] Production.INFO: count ==2993 [2025-03-21 19:56:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:56:05 - End Time 2025-03-21 19:56:05 [2025-03-21 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732457', 'tblTempUsageDetail_20' ) start [2025-03-21 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732457', 'tblTempUsageDetail_20' ) end [2025-03-21 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732457', 'tblTempVendorCDR_20' ) start [2025-03-21 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732457', 'tblTempVendorCDR_20' ) end [2025-03-21 19:56:19] Production.INFO: ProcessCDR(1,14732457,1,1,2) [2025-03-21 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732457', 'tblTempUsageDetail_20' ) start [2025-03-21 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732457', 'tblTempUsageDetail_20' ) end [2025-03-21 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:56:22] Production.INFO: ==3597== Releasing lock... [2025-03-21 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:56:22] Production.INFO: 50.25 MB #Memory Used# [2025-03-21 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:57:04 [end_date_ymd] => 2025-03-21 19:57:04 [RateCDR] => 1 ) [2025-03-21 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-21 16:57:04' and `end` < '2025-03-21 19: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-21 19:57:17] Production.INFO: count ==2971 [2025-03-21 19:57:18] Production.ERROR: pbx CDR StartTime 2025-03-21 16:57:04 - End Time 2025-03-21 19:57:04 [2025-03-21 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732462', 'tblTempUsageDetail_20' ) start [2025-03-21 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732462', 'tblTempUsageDetail_20' ) end [2025-03-21 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732462', 'tblTempVendorCDR_20' ) start [2025-03-21 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732462', 'tblTempVendorCDR_20' ) end [2025-03-21 19:57:18] Production.INFO: ProcessCDR(1,14732462,1,1,2) [2025-03-21 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732462', 'tblTempUsageDetail_20' ) start [2025-03-21 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732462', 'tblTempUsageDetail_20' ) end [2025-03-21 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:57:21] Production.INFO: ==3668== Releasing lock... [2025-03-21 19:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:57:21] Production.INFO: 50 MB #Memory Used# [2025-03-21 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:58:05 [end_date_ymd] => 2025-03-21 19:58:05 [RateCDR] => 1 ) [2025-03-21 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-21 16:58:05' and `end` < '2025-03-21 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-21 19:58:18] Production.INFO: count ==2955 [2025-03-21 19:58:18] Production.ERROR: pbx CDR StartTime 2025-03-21 16:58:05 - End Time 2025-03-21 19:58:05 [2025-03-21 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732467', 'tblTempUsageDetail_20' ) start [2025-03-21 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732467', 'tblTempUsageDetail_20' ) end [2025-03-21 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732467', 'tblTempVendorCDR_20' ) start [2025-03-21 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732467', 'tblTempVendorCDR_20' ) end [2025-03-21 19:58:18] Production.INFO: ProcessCDR(1,14732467,1,1,2) [2025-03-21 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732467', 'tblTempUsageDetail_20' ) start [2025-03-21 19:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732467', 'tblTempUsageDetail_20' ) end [2025-03-21 19:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:58:23] Production.INFO: ==3743== Releasing lock... [2025-03-21 19:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:58:23] Production.INFO: 49.75 MB #Memory Used# [2025-03-21 19:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 16:59:06 [end_date_ymd] => 2025-03-21 19:59:06 [RateCDR] => 1 ) [2025-03-21 19: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-21 16:59:06' and `end` < '2025-03-21 19: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-21 19:59:19] Production.INFO: count ==2930 [2025-03-21 19:59:19] Production.ERROR: pbx CDR StartTime 2025-03-21 16:59:06 - End Time 2025-03-21 19:59:06 [2025-03-21 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732472', 'tblTempUsageDetail_20' ) start [2025-03-21 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732472', 'tblTempUsageDetail_20' ) end [2025-03-21 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732472', 'tblTempVendorCDR_20' ) start [2025-03-21 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732472', 'tblTempVendorCDR_20' ) end [2025-03-21 19:59:19] Production.INFO: ProcessCDR(1,14732472,1,1,2) [2025-03-21 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 19:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 19:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732472', 'tblTempUsageDetail_20' ) start [2025-03-21 19:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732472', 'tblTempUsageDetail_20' ) end [2025-03-21 19:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 19:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 19:59:25] Production.INFO: ==3857== Releasing lock... [2025-03-21 19:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 19:59:25] Production.INFO: 50.25 MB #Memory Used# [2025-03-21 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:00:06 [end_date_ymd] => 2025-03-21 20:00:06 [RateCDR] => 1 ) [2025-03-21 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-21 17:00:06' and `end` < '2025-03-21 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-21 20:00:19] Production.INFO: count ==2921 [2025-03-21 20:00:20] Production.ERROR: pbx CDR StartTime 2025-03-21 17:00:06 - End Time 2025-03-21 20:00:06 [2025-03-21 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732477', 'tblTempUsageDetail_20' ) start [2025-03-21 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732477', 'tblTempUsageDetail_20' ) end [2025-03-21 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732477', 'tblTempVendorCDR_20' ) start [2025-03-21 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732477', 'tblTempVendorCDR_20' ) end [2025-03-21 20:00:20] Production.INFO: ProcessCDR(1,14732477,1,1,2) [2025-03-21 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732477', 'tblTempUsageDetail_20' ) start [2025-03-21 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732477', 'tblTempUsageDetail_20' ) end [2025-03-21 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:00:25] Production.INFO: ==3941== Releasing lock... [2025-03-21 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:00:25] Production.INFO: 50.25 MB #Memory Used# [2025-03-21 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:01:05 [end_date_ymd] => 2025-03-21 20:01:05 [RateCDR] => 1 ) [2025-03-21 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 17:01:05' and `end` < '2025-03-21 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 20:01:18] Production.INFO: count ==2907 [2025-03-21 20:01:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:01:05 - End Time 2025-03-21 20:01:05 [2025-03-21 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732483', 'tblTempUsageDetail_20' ) start [2025-03-21 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732483', 'tblTempUsageDetail_20' ) end [2025-03-21 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732483', 'tblTempVendorCDR_20' ) start [2025-03-21 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732483', 'tblTempVendorCDR_20' ) end [2025-03-21 20:01:18] Production.INFO: ProcessCDR(1,14732483,1,1,2) [2025-03-21 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732483', 'tblTempUsageDetail_20' ) start [2025-03-21 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732483', 'tblTempUsageDetail_20' ) end [2025-03-21 20:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:01:24] Production.INFO: ==4082== Releasing lock... [2025-03-21 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:01:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-21 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:02:05 [end_date_ymd] => 2025-03-21 20:02:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:02:05' and `end` < '2025-03-21 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-21 20:02:18] Production.INFO: count ==2903 [2025-03-21 20:02:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:02:05 - End Time 2025-03-21 20:02:05 [2025-03-21 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732488', 'tblTempUsageDetail_20' ) start [2025-03-21 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732488', 'tblTempUsageDetail_20' ) end [2025-03-21 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732488', 'tblTempVendorCDR_20' ) start [2025-03-21 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732488', 'tblTempVendorCDR_20' ) end [2025-03-21 20:02:19] Production.INFO: ProcessCDR(1,14732488,1,1,2) [2025-03-21 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732488', 'tblTempUsageDetail_20' ) start [2025-03-21 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732488', 'tblTempUsageDetail_20' ) end [2025-03-21 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:02:22] Production.INFO: ==4163== Releasing lock... [2025-03-21 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:02:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-21 20:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:03:04 [end_date_ymd] => 2025-03-21 20:03:04 [RateCDR] => 1 ) [2025-03-21 20:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 17:03:04' and `end` < '2025-03-21 20:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 20:03:17] Production.INFO: count ==2901 [2025-03-21 20:03:17] Production.ERROR: pbx CDR StartTime 2025-03-21 17:03:04 - End Time 2025-03-21 20:03:04 [2025-03-21 20:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732493', 'tblTempUsageDetail_20' ) start [2025-03-21 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732493', 'tblTempUsageDetail_20' ) end [2025-03-21 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732493', 'tblTempVendorCDR_20' ) start [2025-03-21 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732493', 'tblTempVendorCDR_20' ) end [2025-03-21 20:03:18] Production.INFO: ProcessCDR(1,14732493,1,1,2) [2025-03-21 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732493', 'tblTempUsageDetail_20' ) start [2025-03-21 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732493', 'tblTempUsageDetail_20' ) end [2025-03-21 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:03:22] Production.INFO: ==4237== Releasing lock... [2025-03-21 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:03:22] Production.INFO: 50 MB #Memory Used# [2025-03-21 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:04:05 [end_date_ymd] => 2025-03-21 20:04:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:04:05' and `end` < '2025-03-21 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-21 20:04:18] Production.INFO: count ==2882 [2025-03-21 20:04:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:04:05 - End Time 2025-03-21 20:04:05 [2025-03-21 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732498', 'tblTempUsageDetail_20' ) start [2025-03-21 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732498', 'tblTempUsageDetail_20' ) end [2025-03-21 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732498', 'tblTempVendorCDR_20' ) start [2025-03-21 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732498', 'tblTempVendorCDR_20' ) end [2025-03-21 20:04:19] Production.INFO: ProcessCDR(1,14732498,1,1,2) [2025-03-21 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732498', 'tblTempUsageDetail_20' ) start [2025-03-21 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732498', 'tblTempUsageDetail_20' ) end [2025-03-21 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:04:24] Production.INFO: ==4311== Releasing lock... [2025-03-21 20:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:04:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-21 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:05:05 [end_date_ymd] => 2025-03-21 20:05:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:05:05' and `end` < '2025-03-21 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-21 20:05:18] Production.INFO: count ==2876 [2025-03-21 20:05:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:05:05 - End Time 2025-03-21 20:05:05 [2025-03-21 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732503', 'tblTempUsageDetail_20' ) start [2025-03-21 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732503', 'tblTempUsageDetail_20' ) end [2025-03-21 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732503', 'tblTempVendorCDR_20' ) start [2025-03-21 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732503', 'tblTempVendorCDR_20' ) end [2025-03-21 20:05:18] Production.INFO: ProcessCDR(1,14732503,1,1,2) [2025-03-21 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732503', 'tblTempUsageDetail_20' ) start [2025-03-21 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732503', 'tblTempUsageDetail_20' ) end [2025-03-21 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:05:22] Production.INFO: ==4382== Releasing lock... [2025-03-21 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:05:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-21 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:06:05 [end_date_ymd] => 2025-03-21 20:06:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:06:05' and `end` < '2025-03-21 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-21 20:06:18] Production.INFO: count ==2865 [2025-03-21 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:06:05 - End Time 2025-03-21 20:06:05 [2025-03-21 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732508', 'tblTempUsageDetail_20' ) start [2025-03-21 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732508', 'tblTempUsageDetail_20' ) end [2025-03-21 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732508', 'tblTempVendorCDR_20' ) start [2025-03-21 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732508', 'tblTempVendorCDR_20' ) end [2025-03-21 20:06:19] Production.INFO: ProcessCDR(1,14732508,1,1,2) [2025-03-21 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732508', 'tblTempUsageDetail_20' ) start [2025-03-21 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732508', 'tblTempUsageDetail_20' ) end [2025-03-21 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:06:22] Production.INFO: ==4457== Releasing lock... [2025-03-21 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:06:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-21 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:07:05 [end_date_ymd] => 2025-03-21 20:07:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:07:05' and `end` < '2025-03-21 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-21 20:07:18] Production.INFO: count ==2863 [2025-03-21 20:07:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:07:05 - End Time 2025-03-21 20:07:05 [2025-03-21 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732513', 'tblTempUsageDetail_20' ) start [2025-03-21 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732513', 'tblTempUsageDetail_20' ) end [2025-03-21 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732513', 'tblTempVendorCDR_20' ) start [2025-03-21 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732513', 'tblTempVendorCDR_20' ) end [2025-03-21 20:07:19] Production.INFO: ProcessCDR(1,14732513,1,1,2) [2025-03-21 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732513', 'tblTempUsageDetail_20' ) start [2025-03-21 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732513', 'tblTempUsageDetail_20' ) end [2025-03-21 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:07:22] Production.INFO: ==4529== Releasing lock... [2025-03-21 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:07:22] Production.INFO: 49.5 MB #Memory Used# [2025-03-21 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:08:05 [end_date_ymd] => 2025-03-21 20:08:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:08:05' and `end` < '2025-03-21 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-21 20:08:18] Production.INFO: count ==2859 [2025-03-21 20:08:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:08:05 - End Time 2025-03-21 20:08:05 [2025-03-21 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732518', 'tblTempUsageDetail_20' ) start [2025-03-21 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732518', 'tblTempUsageDetail_20' ) end [2025-03-21 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732518', 'tblTempVendorCDR_20' ) start [2025-03-21 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732518', 'tblTempVendorCDR_20' ) end [2025-03-21 20:08:18] Production.INFO: ProcessCDR(1,14732518,1,1,2) [2025-03-21 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732518', 'tblTempUsageDetail_20' ) start [2025-03-21 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732518', 'tblTempUsageDetail_20' ) end [2025-03-21 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:08:22] Production.INFO: ==4607== Releasing lock... [2025-03-21 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:08:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-21 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:09:05 [end_date_ymd] => 2025-03-21 20:09:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:09:05' and `end` < '2025-03-21 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-21 20:09:18] Production.INFO: count ==2860 [2025-03-21 20:09:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:09:05 - End Time 2025-03-21 20:09:05 [2025-03-21 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732523', 'tblTempUsageDetail_20' ) start [2025-03-21 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732523', 'tblTempUsageDetail_20' ) end [2025-03-21 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732523', 'tblTempVendorCDR_20' ) start [2025-03-21 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732523', 'tblTempVendorCDR_20' ) end [2025-03-21 20:09:18] Production.INFO: ProcessCDR(1,14732523,1,1,2) [2025-03-21 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732523', 'tblTempUsageDetail_20' ) start [2025-03-21 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732523', 'tblTempUsageDetail_20' ) end [2025-03-21 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:09:24] Production.INFO: ==4681== Releasing lock... [2025-03-21 20:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:09:24] Production.INFO: 49.25 MB #Memory Used# [2025-03-21 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:10:05 [end_date_ymd] => 2025-03-21 20:10:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:10:05' and `end` < '2025-03-21 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-21 20:10:18] Production.INFO: count ==2855 [2025-03-21 20:10:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:10:05 - End Time 2025-03-21 20:10:05 [2025-03-21 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732528', 'tblTempUsageDetail_20' ) start [2025-03-21 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732528', 'tblTempUsageDetail_20' ) end [2025-03-21 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732528', 'tblTempVendorCDR_20' ) start [2025-03-21 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732528', 'tblTempVendorCDR_20' ) end [2025-03-21 20:10:19] Production.INFO: ProcessCDR(1,14732528,1,1,2) [2025-03-21 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732528', 'tblTempUsageDetail_20' ) start [2025-03-21 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732528', 'tblTempUsageDetail_20' ) end [2025-03-21 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:10:23] Production.INFO: ==4755== Releasing lock... [2025-03-21 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:10:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-21 20:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:11:06 [end_date_ymd] => 2025-03-21 20:11:06 [RateCDR] => 1 ) [2025-03-21 20: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-21 17:11:06' and `end` < '2025-03-21 20: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-21 20:11:18] Production.INFO: count ==2768 [2025-03-21 20:11:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:11:06 - End Time 2025-03-21 20:11:06 [2025-03-21 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732534', 'tblTempUsageDetail_20' ) start [2025-03-21 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732534', 'tblTempUsageDetail_20' ) end [2025-03-21 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732534', 'tblTempVendorCDR_20' ) start [2025-03-21 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732534', 'tblTempVendorCDR_20' ) end [2025-03-21 20:11:19] Production.INFO: ProcessCDR(1,14732534,1,1,2) [2025-03-21 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732534', 'tblTempUsageDetail_20' ) start [2025-03-21 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732534', 'tblTempUsageDetail_20' ) end [2025-03-21 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:11:23] Production.INFO: ==4832== Releasing lock... [2025-03-21 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:11:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-21 20:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:12:04 [end_date_ymd] => 2025-03-21 20:12:04 [RateCDR] => 1 ) [2025-03-21 20:12: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-21 17:12:04' and `end` < '2025-03-21 20:12: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-21 20:12:17] Production.INFO: count ==2757 [2025-03-21 20:12:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:12:04 - End Time 2025-03-21 20:12:04 [2025-03-21 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732539', 'tblTempUsageDetail_20' ) start [2025-03-21 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732539', 'tblTempUsageDetail_20' ) end [2025-03-21 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732539', 'tblTempVendorCDR_20' ) start [2025-03-21 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732539', 'tblTempVendorCDR_20' ) end [2025-03-21 20:12:18] Production.INFO: ProcessCDR(1,14732539,1,1,2) [2025-03-21 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732539', 'tblTempUsageDetail_20' ) start [2025-03-21 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732539', 'tblTempUsageDetail_20' ) end [2025-03-21 20:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:12:21] Production.INFO: ==4908== Releasing lock... [2025-03-21 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:12:21] Production.INFO: 48.75 MB #Memory Used# [2025-03-21 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:13:05 [end_date_ymd] => 2025-03-21 20:13:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:13:05' and `end` < '2025-03-21 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-21 20:13:18] Production.INFO: count ==2749 [2025-03-21 20:13:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:13:05 - End Time 2025-03-21 20:13:05 [2025-03-21 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732544', 'tblTempUsageDetail_20' ) start [2025-03-21 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732544', 'tblTempUsageDetail_20' ) end [2025-03-21 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732544', 'tblTempVendorCDR_20' ) start [2025-03-21 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732544', 'tblTempVendorCDR_20' ) end [2025-03-21 20:13:19] Production.INFO: ProcessCDR(1,14732544,1,1,2) [2025-03-21 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732544', 'tblTempUsageDetail_20' ) start [2025-03-21 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732544', 'tblTempUsageDetail_20' ) end [2025-03-21 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:13:22] Production.INFO: ==4989== Releasing lock... [2025-03-21 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:13:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-21 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:14:05 [end_date_ymd] => 2025-03-21 20:14:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:14:05' and `end` < '2025-03-21 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-21 20:14:17] Production.INFO: count ==2752 [2025-03-21 20:14:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:14:05 - End Time 2025-03-21 20:14:05 [2025-03-21 20:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732549', 'tblTempUsageDetail_20' ) start [2025-03-21 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732549', 'tblTempUsageDetail_20' ) end [2025-03-21 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732549', 'tblTempVendorCDR_20' ) start [2025-03-21 20:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732549', 'tblTempVendorCDR_20' ) end [2025-03-21 20:14:18] Production.INFO: ProcessCDR(1,14732549,1,1,2) [2025-03-21 20:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732549', 'tblTempUsageDetail_20' ) start [2025-03-21 20:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732549', 'tblTempUsageDetail_20' ) end [2025-03-21 20:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:14:21] Production.INFO: ==5065== Releasing lock... [2025-03-21 20:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:14:21] Production.INFO: 48.75 MB #Memory Used# [2025-03-21 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:15:06 [end_date_ymd] => 2025-03-21 20:15:06 [RateCDR] => 1 ) [2025-03-21 20: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-21 17:15:06' and `end` < '2025-03-21 20: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-21 20:15:18] Production.INFO: count ==2747 [2025-03-21 20:15:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:15:06 - End Time 2025-03-21 20:15:06 [2025-03-21 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732554', 'tblTempUsageDetail_20' ) start [2025-03-21 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732554', 'tblTempUsageDetail_20' ) end [2025-03-21 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732554', 'tblTempVendorCDR_20' ) start [2025-03-21 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732554', 'tblTempVendorCDR_20' ) end [2025-03-21 20:15:19] Production.INFO: ProcessCDR(1,14732554,1,1,2) [2025-03-21 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732554', 'tblTempUsageDetail_20' ) start [2025-03-21 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732554', 'tblTempUsageDetail_20' ) end [2025-03-21 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:15:22] Production.INFO: ==5186== Releasing lock... [2025-03-21 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:15:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-21 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:16:05 [end_date_ymd] => 2025-03-21 20:16:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:16:05' and `end` < '2025-03-21 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-21 20:16:17] Production.INFO: count ==2732 [2025-03-21 20:16:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:16:05 - End Time 2025-03-21 20:16:05 [2025-03-21 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732559', 'tblTempUsageDetail_20' ) start [2025-03-21 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732559', 'tblTempUsageDetail_20' ) end [2025-03-21 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732559', 'tblTempVendorCDR_20' ) start [2025-03-21 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732559', 'tblTempVendorCDR_20' ) end [2025-03-21 20:16:18] Production.INFO: ProcessCDR(1,14732559,1,1,2) [2025-03-21 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732559', 'tblTempUsageDetail_20' ) start [2025-03-21 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732559', 'tblTempUsageDetail_20' ) end [2025-03-21 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:16:22] Production.INFO: ==5257== Releasing lock... [2025-03-21 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:16:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-21 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:17:05 [end_date_ymd] => 2025-03-21 20:17:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:17:05' and `end` < '2025-03-21 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-21 20:17:18] Production.INFO: count ==2736 [2025-03-21 20:17:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:17:05 - End Time 2025-03-21 20:17:05 [2025-03-21 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732564', 'tblTempUsageDetail_20' ) start [2025-03-21 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732564', 'tblTempUsageDetail_20' ) end [2025-03-21 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732564', 'tblTempVendorCDR_20' ) start [2025-03-21 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732564', 'tblTempVendorCDR_20' ) end [2025-03-21 20:17:18] Production.INFO: ProcessCDR(1,14732564,1,1,2) [2025-03-21 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732564', 'tblTempUsageDetail_20' ) start [2025-03-21 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732564', 'tblTempUsageDetail_20' ) end [2025-03-21 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:17:22] Production.INFO: ==5329== Releasing lock... [2025-03-21 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:17:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-21 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:18:06 [end_date_ymd] => 2025-03-21 20:18:06 [RateCDR] => 1 ) [2025-03-21 20: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-21 17:18:06' and `end` < '2025-03-21 20: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-21 20:18:19] Production.INFO: count ==2723 [2025-03-21 20:18:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:18:06 - End Time 2025-03-21 20:18:06 [2025-03-21 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732569', 'tblTempUsageDetail_20' ) start [2025-03-21 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732569', 'tblTempUsageDetail_20' ) end [2025-03-21 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732569', 'tblTempVendorCDR_20' ) start [2025-03-21 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732569', 'tblTempVendorCDR_20' ) end [2025-03-21 20:18:19] Production.INFO: ProcessCDR(1,14732569,1,1,2) [2025-03-21 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732569', 'tblTempUsageDetail_20' ) start [2025-03-21 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732569', 'tblTempUsageDetail_20' ) end [2025-03-21 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:18:23] Production.INFO: ==5401== Releasing lock... [2025-03-21 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:18:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-21 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:19:05 [end_date_ymd] => 2025-03-21 20:19:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:19:05' and `end` < '2025-03-21 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-21 20:19:18] Production.INFO: count ==2711 [2025-03-21 20:19:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:19:05 - End Time 2025-03-21 20:19:05 [2025-03-21 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732574', 'tblTempUsageDetail_20' ) start [2025-03-21 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732574', 'tblTempUsageDetail_20' ) end [2025-03-21 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732574', 'tblTempVendorCDR_20' ) start [2025-03-21 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732574', 'tblTempVendorCDR_20' ) end [2025-03-21 20:19:18] Production.INFO: ProcessCDR(1,14732574,1,1,2) [2025-03-21 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732574', 'tblTempUsageDetail_20' ) start [2025-03-21 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732574', 'tblTempUsageDetail_20' ) end [2025-03-21 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:19:22] Production.INFO: ==5481== Releasing lock... [2025-03-21 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:19:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-21 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:20:06 [end_date_ymd] => 2025-03-21 20:20:06 [RateCDR] => 1 ) [2025-03-21 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-21 17:20:06' and `end` < '2025-03-21 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-21 20:20:19] Production.INFO: count ==2711 [2025-03-21 20:20:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:20:06 - End Time 2025-03-21 20:20:06 [2025-03-21 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732580', 'tblTempUsageDetail_20' ) start [2025-03-21 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732580', 'tblTempUsageDetail_20' ) end [2025-03-21 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732580', 'tblTempVendorCDR_20' ) start [2025-03-21 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732580', 'tblTempVendorCDR_20' ) end [2025-03-21 20:20:20] Production.INFO: ProcessCDR(1,14732580,1,1,2) [2025-03-21 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732580', 'tblTempUsageDetail_20' ) start [2025-03-21 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732580', 'tblTempUsageDetail_20' ) end [2025-03-21 20:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:20:25] Production.INFO: ==5556== Releasing lock... [2025-03-21 20:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:20:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-21 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:21:05 [end_date_ymd] => 2025-03-21 20:21:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:21:05' and `end` < '2025-03-21 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-21 20:21:18] Production.INFO: count ==2653 [2025-03-21 20:21:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:21:05 - End Time 2025-03-21 20:21:05 [2025-03-21 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732585', 'tblTempUsageDetail_20' ) start [2025-03-21 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732585', 'tblTempUsageDetail_20' ) end [2025-03-21 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732585', 'tblTempVendorCDR_20' ) start [2025-03-21 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732585', 'tblTempVendorCDR_20' ) end [2025-03-21 20:21:18] Production.INFO: ProcessCDR(1,14732585,1,1,2) [2025-03-21 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732585', 'tblTempUsageDetail_20' ) start [2025-03-21 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732585', 'tblTempUsageDetail_20' ) end [2025-03-21 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:21:22] Production.INFO: ==5629== Releasing lock... [2025-03-21 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:21:22] Production.INFO: 48 MB #Memory Used# [2025-03-21 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:22:06 [end_date_ymd] => 2025-03-21 20:22:06 [RateCDR] => 1 ) [2025-03-21 20: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-21 17:22:06' and `end` < '2025-03-21 20: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-21 20:22:18] Production.INFO: count ==2646 [2025-03-21 20:22:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:22:06 - End Time 2025-03-21 20:22:06 [2025-03-21 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732590', 'tblTempUsageDetail_20' ) start [2025-03-21 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732590', 'tblTempUsageDetail_20' ) end [2025-03-21 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732590', 'tblTempVendorCDR_20' ) start [2025-03-21 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732590', 'tblTempVendorCDR_20' ) end [2025-03-21 20:22:19] Production.INFO: ProcessCDR(1,14732590,1,1,2) [2025-03-21 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732590', 'tblTempUsageDetail_20' ) start [2025-03-21 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732590', 'tblTempUsageDetail_20' ) end [2025-03-21 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:22:23] Production.INFO: ==5707== Releasing lock... [2025-03-21 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:22:23] Production.INFO: 48.5 MB #Memory Used# [2025-03-21 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:23:05 [end_date_ymd] => 2025-03-21 20:23:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:23:05' and `end` < '2025-03-21 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-21 20:23:18] Production.INFO: count ==2644 [2025-03-21 20:23:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:23:05 - End Time 2025-03-21 20:23:05 [2025-03-21 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732595', 'tblTempUsageDetail_20' ) start [2025-03-21 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732595', 'tblTempUsageDetail_20' ) end [2025-03-21 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732595', 'tblTempVendorCDR_20' ) start [2025-03-21 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732595', 'tblTempVendorCDR_20' ) end [2025-03-21 20:23:18] Production.INFO: ProcessCDR(1,14732595,1,1,2) [2025-03-21 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732595', 'tblTempUsageDetail_20' ) start [2025-03-21 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732595', 'tblTempUsageDetail_20' ) end [2025-03-21 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:23:24] Production.INFO: ==5782== Releasing lock... [2025-03-21 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:23:24] Production.INFO: 48 MB #Memory Used# [2025-03-21 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:24:05 [end_date_ymd] => 2025-03-21 20:24:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:24:05' and `end` < '2025-03-21 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-21 20:24:18] Production.INFO: count ==2638 [2025-03-21 20:24:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:24:05 - End Time 2025-03-21 20:24:05 [2025-03-21 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732600', 'tblTempUsageDetail_20' ) start [2025-03-21 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732600', 'tblTempUsageDetail_20' ) end [2025-03-21 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732600', 'tblTempVendorCDR_20' ) start [2025-03-21 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732600', 'tblTempVendorCDR_20' ) end [2025-03-21 20:24:19] Production.INFO: ProcessCDR(1,14732600,1,1,2) [2025-03-21 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732600', 'tblTempUsageDetail_20' ) start [2025-03-21 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732600', 'tblTempUsageDetail_20' ) end [2025-03-21 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:24:22] Production.INFO: ==5853== Releasing lock... [2025-03-21 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:24:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-21 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:25:05 [end_date_ymd] => 2025-03-21 20:25:05 [RateCDR] => 1 ) [2025-03-21 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 17:25:05' and `end` < '2025-03-21 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 20:25:17] Production.INFO: count ==2633 [2025-03-21 20:25:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:25:05 - End Time 2025-03-21 20:25:05 [2025-03-21 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732605', 'tblTempUsageDetail_20' ) start [2025-03-21 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732605', 'tblTempUsageDetail_20' ) end [2025-03-21 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732605', 'tblTempVendorCDR_20' ) start [2025-03-21 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732605', 'tblTempVendorCDR_20' ) end [2025-03-21 20:25:18] Production.INFO: ProcessCDR(1,14732605,1,1,2) [2025-03-21 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732605', 'tblTempUsageDetail_20' ) start [2025-03-21 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732605', 'tblTempUsageDetail_20' ) end [2025-03-21 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:25:21] Production.INFO: ==5925== Releasing lock... [2025-03-21 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:25:21] Production.INFO: 48 MB #Memory Used# [2025-03-21 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:26:06 [end_date_ymd] => 2025-03-21 20:26:06 [RateCDR] => 1 ) [2025-03-21 20: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-21 17:26:06' and `end` < '2025-03-21 20: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-21 20:26:18] Production.INFO: count ==2614 [2025-03-21 20:26:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:26:06 - End Time 2025-03-21 20:26:06 [2025-03-21 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732610', 'tblTempUsageDetail_20' ) start [2025-03-21 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732610', 'tblTempUsageDetail_20' ) end [2025-03-21 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732610', 'tblTempVendorCDR_20' ) start [2025-03-21 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732610', 'tblTempVendorCDR_20' ) end [2025-03-21 20:26:19] Production.INFO: ProcessCDR(1,14732610,1,1,2) [2025-03-21 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732610', 'tblTempUsageDetail_20' ) start [2025-03-21 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732610', 'tblTempUsageDetail_20' ) end [2025-03-21 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:26:22] Production.INFO: ==5999== Releasing lock... [2025-03-21 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:26:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-21 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:27:05 [end_date_ymd] => 2025-03-21 20:27:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:27:05' and `end` < '2025-03-21 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-21 20:27:17] Production.INFO: count ==2603 [2025-03-21 20:27:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:27:05 - End Time 2025-03-21 20:27:05 [2025-03-21 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732615', 'tblTempUsageDetail_20' ) start [2025-03-21 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732615', 'tblTempUsageDetail_20' ) end [2025-03-21 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732615', 'tblTempVendorCDR_20' ) start [2025-03-21 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732615', 'tblTempVendorCDR_20' ) end [2025-03-21 20:27:18] Production.INFO: ProcessCDR(1,14732615,1,1,2) [2025-03-21 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732615', 'tblTempUsageDetail_20' ) start [2025-03-21 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732615', 'tblTempUsageDetail_20' ) end [2025-03-21 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:27:21] Production.INFO: ==6074== Releasing lock... [2025-03-21 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:27:21] Production.INFO: 47.5 MB #Memory Used# [2025-03-21 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:28:05 [end_date_ymd] => 2025-03-21 20:28:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:28:05' and `end` < '2025-03-21 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-21 20:28:18] Production.INFO: count ==2597 [2025-03-21 20:28:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:28:05 - End Time 2025-03-21 20:28:05 [2025-03-21 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732620', 'tblTempUsageDetail_20' ) start [2025-03-21 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732620', 'tblTempUsageDetail_20' ) end [2025-03-21 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732620', 'tblTempVendorCDR_20' ) start [2025-03-21 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732620', 'tblTempVendorCDR_20' ) end [2025-03-21 20:28:19] Production.INFO: ProcessCDR(1,14732620,1,1,2) [2025-03-21 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732620', 'tblTempUsageDetail_20' ) start [2025-03-21 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732620', 'tblTempUsageDetail_20' ) end [2025-03-21 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:28:22] Production.INFO: ==6151== Releasing lock... [2025-03-21 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:28:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-21 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:29:05 [end_date_ymd] => 2025-03-21 20:29:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:29:05' and `end` < '2025-03-21 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-21 20:29:17] Production.INFO: count ==2594 [2025-03-21 20:29:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:29:05 - End Time 2025-03-21 20:29:05 [2025-03-21 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732625', 'tblTempUsageDetail_20' ) start [2025-03-21 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732625', 'tblTempUsageDetail_20' ) end [2025-03-21 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732625', 'tblTempVendorCDR_20' ) start [2025-03-21 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732625', 'tblTempVendorCDR_20' ) end [2025-03-21 20:29:18] Production.INFO: ProcessCDR(1,14732625,1,1,2) [2025-03-21 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732625', 'tblTempUsageDetail_20' ) start [2025-03-21 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732625', 'tblTempUsageDetail_20' ) end [2025-03-21 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:29:21] Production.INFO: ==6226== Releasing lock... [2025-03-21 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:29:21] Production.INFO: 47.5 MB #Memory Used# [2025-03-21 20:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:30:06 [end_date_ymd] => 2025-03-21 20:30:06 [RateCDR] => 1 ) [2025-03-21 20: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-21 17:30:06' and `end` < '2025-03-21 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 20:30:19] Production.INFO: count ==2594 [2025-03-21 20:30:20] Production.ERROR: pbx CDR StartTime 2025-03-21 17:30:06 - End Time 2025-03-21 20:30:06 [2025-03-21 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732631', 'tblTempUsageDetail_20' ) start [2025-03-21 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732631', 'tblTempUsageDetail_20' ) end [2025-03-21 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732631', 'tblTempVendorCDR_20' ) start [2025-03-21 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732631', 'tblTempVendorCDR_20' ) end [2025-03-21 20:30:20] Production.INFO: ProcessCDR(1,14732631,1,1,2) [2025-03-21 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732631', 'tblTempUsageDetail_20' ) start [2025-03-21 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732631', 'tblTempUsageDetail_20' ) end [2025-03-21 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:30:24] Production.INFO: ==6341== Releasing lock... [2025-03-21 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:30:24] Production.INFO: 47.5 MB #Memory Used# [2025-03-21 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:31:05 [end_date_ymd] => 2025-03-21 20:31:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:31:05' and `end` < '2025-03-21 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-21 20:31:18] Production.INFO: count ==2536 [2025-03-21 20:31:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:31:05 - End Time 2025-03-21 20:31:05 [2025-03-21 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732636', 'tblTempUsageDetail_20' ) start [2025-03-21 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732636', 'tblTempUsageDetail_20' ) end [2025-03-21 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732636', 'tblTempVendorCDR_20' ) start [2025-03-21 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732636', 'tblTempVendorCDR_20' ) end [2025-03-21 20:31:18] Production.INFO: ProcessCDR(1,14732636,1,1,2) [2025-03-21 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732636', 'tblTempUsageDetail_20' ) start [2025-03-21 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732636', 'tblTempUsageDetail_20' ) end [2025-03-21 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:31:22] Production.INFO: ==6416== Releasing lock... [2025-03-21 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:31:22] Production.INFO: 47 MB #Memory Used# [2025-03-21 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:32:06 [end_date_ymd] => 2025-03-21 20:32:06 [RateCDR] => 1 ) [2025-03-21 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-21 17:32:06' and `end` < '2025-03-21 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-21 20:32:18] Production.INFO: count ==2532 [2025-03-21 20:32:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:32:06 - End Time 2025-03-21 20:32:06 [2025-03-21 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732641', 'tblTempUsageDetail_20' ) start [2025-03-21 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732641', 'tblTempUsageDetail_20' ) end [2025-03-21 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732641', 'tblTempVendorCDR_20' ) start [2025-03-21 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732641', 'tblTempVendorCDR_20' ) end [2025-03-21 20:32:19] Production.INFO: ProcessCDR(1,14732641,1,1,2) [2025-03-21 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732641', 'tblTempUsageDetail_20' ) start [2025-03-21 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732641', 'tblTempUsageDetail_20' ) end [2025-03-21 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:32:22] Production.INFO: ==6492== Releasing lock... [2025-03-21 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:32:22] Production.INFO: 47 MB #Memory Used# [2025-03-21 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:33:05 [end_date_ymd] => 2025-03-21 20:33:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:33:05' and `end` < '2025-03-21 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-21 20:33:17] Production.INFO: count ==2539 [2025-03-21 20:33:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:33:05 - End Time 2025-03-21 20:33:05 [2025-03-21 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732646', 'tblTempUsageDetail_20' ) start [2025-03-21 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732646', 'tblTempUsageDetail_20' ) end [2025-03-21 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732646', 'tblTempVendorCDR_20' ) start [2025-03-21 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732646', 'tblTempVendorCDR_20' ) end [2025-03-21 20:33:18] Production.INFO: ProcessCDR(1,14732646,1,1,2) [2025-03-21 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732646', 'tblTempUsageDetail_20' ) start [2025-03-21 20:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732646', 'tblTempUsageDetail_20' ) end [2025-03-21 20:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:33:21] Production.INFO: ==6565== Releasing lock... [2025-03-21 20:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:33:21] Production.INFO: 47 MB #Memory Used# [2025-03-21 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:34:05 [end_date_ymd] => 2025-03-21 20:34:05 [RateCDR] => 1 ) [2025-03-21 20:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 17:34:05' and `end` < '2025-03-21 20:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 20:34:18] Production.INFO: count ==2540 [2025-03-21 20:34:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:34:05 - End Time 2025-03-21 20:34:05 [2025-03-21 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732651', 'tblTempUsageDetail_20' ) start [2025-03-21 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732651', 'tblTempUsageDetail_20' ) end [2025-03-21 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732651', 'tblTempVendorCDR_20' ) start [2025-03-21 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732651', 'tblTempVendorCDR_20' ) end [2025-03-21 20:34:19] Production.INFO: ProcessCDR(1,14732651,1,1,2) [2025-03-21 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732651', 'tblTempUsageDetail_20' ) start [2025-03-21 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732651', 'tblTempUsageDetail_20' ) end [2025-03-21 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:34:22] Production.INFO: ==6636== Releasing lock... [2025-03-21 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:34:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:35:06 [end_date_ymd] => 2025-03-21 20:35:06 [RateCDR] => 1 ) [2025-03-21 20:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 17:35:06' and `end` < '2025-03-21 20:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 20:35:18] Production.INFO: count ==2523 [2025-03-21 20:35:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:35:06 - End Time 2025-03-21 20:35:06 [2025-03-21 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732656', 'tblTempUsageDetail_20' ) start [2025-03-21 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732656', 'tblTempUsageDetail_20' ) end [2025-03-21 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732656', 'tblTempVendorCDR_20' ) start [2025-03-21 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732656', 'tblTempVendorCDR_20' ) end [2025-03-21 20:35:19] Production.INFO: ProcessCDR(1,14732656,1,1,2) [2025-03-21 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732656', 'tblTempUsageDetail_20' ) start [2025-03-21 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732656', 'tblTempUsageDetail_20' ) end [2025-03-21 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:35:24] Production.INFO: ==6710== Releasing lock... [2025-03-21 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:35:24] Production.INFO: 47 MB #Memory Used# [2025-03-21 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:36:05 [end_date_ymd] => 2025-03-21 20:36:05 [RateCDR] => 1 ) [2025-03-21 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 17:36:05' and `end` < '2025-03-21 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 20:36:18] Production.INFO: count ==2540 [2025-03-21 20:36:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:36:05 - End Time 2025-03-21 20:36:05 [2025-03-21 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732661', 'tblTempUsageDetail_20' ) start [2025-03-21 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732661', 'tblTempUsageDetail_20' ) end [2025-03-21 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732661', 'tblTempVendorCDR_20' ) start [2025-03-21 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732661', 'tblTempVendorCDR_20' ) end [2025-03-21 20:36:19] Production.INFO: ProcessCDR(1,14732661,1,1,2) [2025-03-21 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732661', 'tblTempUsageDetail_20' ) start [2025-03-21 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732661', 'tblTempUsageDetail_20' ) end [2025-03-21 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:36:23] Production.INFO: ==6784== Releasing lock... [2025-03-21 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:36:23] Production.INFO: 47 MB #Memory Used# [2025-03-21 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:37:06 [end_date_ymd] => 2025-03-21 20:37:06 [RateCDR] => 1 ) [2025-03-21 20: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-21 17:37:06' and `end` < '2025-03-21 20: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-21 20:37:18] Production.INFO: count ==2527 [2025-03-21 20:37:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:37:06 - End Time 2025-03-21 20:37:06 [2025-03-21 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732666', 'tblTempUsageDetail_20' ) start [2025-03-21 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732666', 'tblTempUsageDetail_20' ) end [2025-03-21 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732666', 'tblTempVendorCDR_20' ) start [2025-03-21 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732666', 'tblTempVendorCDR_20' ) end [2025-03-21 20:37:19] Production.INFO: ProcessCDR(1,14732666,1,1,2) [2025-03-21 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732666', 'tblTempUsageDetail_20' ) start [2025-03-21 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732666', 'tblTempUsageDetail_20' ) end [2025-03-21 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:37:22] Production.INFO: ==6856== Releasing lock... [2025-03-21 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:37:22] Production.INFO: 47 MB #Memory Used# [2025-03-21 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:38:05 [end_date_ymd] => 2025-03-21 20:38:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:38:05' and `end` < '2025-03-21 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-21 20:38:17] Production.INFO: count ==2525 [2025-03-21 20:38:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:38:05 - End Time 2025-03-21 20:38:05 [2025-03-21 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732671', 'tblTempUsageDetail_20' ) start [2025-03-21 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732671', 'tblTempUsageDetail_20' ) end [2025-03-21 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732671', 'tblTempVendorCDR_20' ) start [2025-03-21 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732671', 'tblTempVendorCDR_20' ) end [2025-03-21 20:38:18] Production.INFO: ProcessCDR(1,14732671,1,1,2) [2025-03-21 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732671', 'tblTempUsageDetail_20' ) start [2025-03-21 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732671', 'tblTempUsageDetail_20' ) end [2025-03-21 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:38:23] Production.INFO: ==6932== Releasing lock... [2025-03-21 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:38:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:39:05 [end_date_ymd] => 2025-03-21 20:39:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:39:05' and `end` < '2025-03-21 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-21 20:39:18] Production.INFO: count ==2519 [2025-03-21 20:39:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:39:05 - End Time 2025-03-21 20:39:05 [2025-03-21 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732676', 'tblTempUsageDetail_20' ) start [2025-03-21 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732676', 'tblTempUsageDetail_20' ) end [2025-03-21 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732676', 'tblTempVendorCDR_20' ) start [2025-03-21 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732676', 'tblTempVendorCDR_20' ) end [2025-03-21 20:39:18] Production.INFO: ProcessCDR(1,14732676,1,1,2) [2025-03-21 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732676', 'tblTempUsageDetail_20' ) start [2025-03-21 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732676', 'tblTempUsageDetail_20' ) end [2025-03-21 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:39:22] Production.INFO: ==7012== Releasing lock... [2025-03-21 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:39:22] Production.INFO: 47 MB #Memory Used# [2025-03-21 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:40:06 [end_date_ymd] => 2025-03-21 20:40:06 [RateCDR] => 1 ) [2025-03-21 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-21 17:40:06' and `end` < '2025-03-21 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-21 20:40:18] Production.INFO: count ==2524 [2025-03-21 20:40:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:40:06 - End Time 2025-03-21 20:40:06 [2025-03-21 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732682', 'tblTempUsageDetail_20' ) start [2025-03-21 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732682', 'tblTempUsageDetail_20' ) end [2025-03-21 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732682', 'tblTempVendorCDR_20' ) start [2025-03-21 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732682', 'tblTempVendorCDR_20' ) end [2025-03-21 20:40:19] Production.INFO: ProcessCDR(1,14732682,1,1,2) [2025-03-21 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732682', 'tblTempUsageDetail_20' ) start [2025-03-21 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732682', 'tblTempUsageDetail_20' ) end [2025-03-21 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:40:23] Production.INFO: ==7083== Releasing lock... [2025-03-21 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:40:23] Production.INFO: 47 MB #Memory Used# [2025-03-21 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:41:05 [end_date_ymd] => 2025-03-21 20:41:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:41:05' and `end` < '2025-03-21 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-21 20:41:18] Production.INFO: count ==2506 [2025-03-21 20:41:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:41:05 - End Time 2025-03-21 20:41:05 [2025-03-21 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732687', 'tblTempUsageDetail_20' ) start [2025-03-21 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732687', 'tblTempUsageDetail_20' ) end [2025-03-21 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732687', 'tblTempVendorCDR_20' ) start [2025-03-21 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732687', 'tblTempVendorCDR_20' ) end [2025-03-21 20:41:19] Production.INFO: ProcessCDR(1,14732687,1,1,2) [2025-03-21 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732687', 'tblTempUsageDetail_20' ) start [2025-03-21 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732687', 'tblTempUsageDetail_20' ) end [2025-03-21 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:41:23] Production.INFO: ==7169== Releasing lock... [2025-03-21 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:41:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:42:05 [end_date_ymd] => 2025-03-21 20:42:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:42:05' and `end` < '2025-03-21 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-21 20:42:18] Production.INFO: count ==2493 [2025-03-21 20:42:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:42:05 - End Time 2025-03-21 20:42:05 [2025-03-21 20:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732692', 'tblTempUsageDetail_20' ) start [2025-03-21 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732692', 'tblTempUsageDetail_20' ) end [2025-03-21 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732692', 'tblTempVendorCDR_20' ) start [2025-03-21 20:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732692', 'tblTempVendorCDR_20' ) end [2025-03-21 20:42:18] Production.INFO: ProcessCDR(1,14732692,1,1,2) [2025-03-21 20:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732692', 'tblTempUsageDetail_20' ) start [2025-03-21 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732692', 'tblTempUsageDetail_20' ) end [2025-03-21 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:42:22] Production.INFO: ==7244== Releasing lock... [2025-03-21 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:42:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:43:05 [end_date_ymd] => 2025-03-21 20:43:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:43:05' and `end` < '2025-03-21 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-21 20:43:18] Production.INFO: count ==2481 [2025-03-21 20:43:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:43:05 - End Time 2025-03-21 20:43:05 [2025-03-21 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732697', 'tblTempUsageDetail_20' ) start [2025-03-21 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732697', 'tblTempUsageDetail_20' ) end [2025-03-21 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732697', 'tblTempVendorCDR_20' ) start [2025-03-21 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732697', 'tblTempVendorCDR_20' ) end [2025-03-21 20:43:18] Production.INFO: ProcessCDR(1,14732697,1,1,2) [2025-03-21 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732697', 'tblTempUsageDetail_20' ) start [2025-03-21 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732697', 'tblTempUsageDetail_20' ) end [2025-03-21 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:43:22] Production.INFO: ==7315== Releasing lock... [2025-03-21 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:43:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:44:05 [end_date_ymd] => 2025-03-21 20:44:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:44:05' and `end` < '2025-03-21 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-21 20:44:17] Production.INFO: count ==2479 [2025-03-21 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:44:05 - End Time 2025-03-21 20:44:05 [2025-03-21 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732702', 'tblTempUsageDetail_20' ) start [2025-03-21 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732702', 'tblTempUsageDetail_20' ) end [2025-03-21 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732702', 'tblTempVendorCDR_20' ) start [2025-03-21 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732702', 'tblTempVendorCDR_20' ) end [2025-03-21 20:44:18] Production.INFO: ProcessCDR(1,14732702,1,1,2) [2025-03-21 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732702', 'tblTempUsageDetail_20' ) start [2025-03-21 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732702', 'tblTempUsageDetail_20' ) end [2025-03-21 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:44:21] Production.INFO: ==7388== Releasing lock... [2025-03-21 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:44:21] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:45:05 [end_date_ymd] => 2025-03-21 20:45:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:45:05' and `end` < '2025-03-21 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-21 20:45:17] Production.INFO: count ==2479 [2025-03-21 20:45:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:45:05 - End Time 2025-03-21 20:45:05 [2025-03-21 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732707', 'tblTempUsageDetail_20' ) start [2025-03-21 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732707', 'tblTempUsageDetail_20' ) end [2025-03-21 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732707', 'tblTempVendorCDR_20' ) start [2025-03-21 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732707', 'tblTempVendorCDR_20' ) end [2025-03-21 20:45:18] Production.INFO: ProcessCDR(1,14732707,1,1,2) [2025-03-21 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732707', 'tblTempUsageDetail_20' ) start [2025-03-21 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732707', 'tblTempUsageDetail_20' ) end [2025-03-21 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:45:23] Production.INFO: ==7502== Releasing lock... [2025-03-21 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:45:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:46:06 [end_date_ymd] => 2025-03-21 20:46:06 [RateCDR] => 1 ) [2025-03-21 20: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-21 17:46:06' and `end` < '2025-03-21 20: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-21 20:46:18] Production.INFO: count ==2478 [2025-03-21 20:46:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:46:06 - End Time 2025-03-21 20:46:06 [2025-03-21 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732712', 'tblTempUsageDetail_20' ) start [2025-03-21 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732712', 'tblTempUsageDetail_20' ) end [2025-03-21 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732712', 'tblTempVendorCDR_20' ) start [2025-03-21 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732712', 'tblTempVendorCDR_20' ) end [2025-03-21 20:46:19] Production.INFO: ProcessCDR(1,14732712,1,1,2) [2025-03-21 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732712', 'tblTempUsageDetail_20' ) start [2025-03-21 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732712', 'tblTempUsageDetail_20' ) end [2025-03-21 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:46:22] Production.INFO: ==7576== Releasing lock... [2025-03-21 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:46:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:47:06 [end_date_ymd] => 2025-03-21 20:47:06 [RateCDR] => 1 ) [2025-03-21 20:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 17:47:06' and `end` < '2025-03-21 20:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 20:47:18] Production.INFO: count ==2471 [2025-03-21 20:47:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:47:06 - End Time 2025-03-21 20:47:06 [2025-03-21 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732717', 'tblTempUsageDetail_20' ) start [2025-03-21 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732717', 'tblTempUsageDetail_20' ) end [2025-03-21 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732717', 'tblTempVendorCDR_20' ) start [2025-03-21 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732717', 'tblTempVendorCDR_20' ) end [2025-03-21 20:47:19] Production.INFO: ProcessCDR(1,14732717,1,1,2) [2025-03-21 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732717', 'tblTempUsageDetail_20' ) start [2025-03-21 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732717', 'tblTempUsageDetail_20' ) end [2025-03-21 20:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:47:24] Production.INFO: ==7646== Releasing lock... [2025-03-21 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:47:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:48:05 [end_date_ymd] => 2025-03-21 20:48:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:48:05' and `end` < '2025-03-21 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-21 20:48:18] Production.INFO: count ==2467 [2025-03-21 20:48:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:48:05 - End Time 2025-03-21 20:48:05 [2025-03-21 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732722', 'tblTempUsageDetail_20' ) start [2025-03-21 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732722', 'tblTempUsageDetail_20' ) end [2025-03-21 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732722', 'tblTempVendorCDR_20' ) start [2025-03-21 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732722', 'tblTempVendorCDR_20' ) end [2025-03-21 20:48:19] Production.INFO: ProcessCDR(1,14732722,1,1,2) [2025-03-21 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732722', 'tblTempUsageDetail_20' ) start [2025-03-21 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732722', 'tblTempUsageDetail_20' ) end [2025-03-21 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:48:22] Production.INFO: ==7720== Releasing lock... [2025-03-21 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:48:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 20:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:49:06 [end_date_ymd] => 2025-03-21 20:49:06 [RateCDR] => 1 ) [2025-03-21 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-21 17:49:06' and `end` < '2025-03-21 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-21 20:49:19] Production.INFO: count ==2466 [2025-03-21 20:49:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:49:06 - End Time 2025-03-21 20:49:06 [2025-03-21 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732727', 'tblTempUsageDetail_20' ) start [2025-03-21 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732727', 'tblTempUsageDetail_20' ) end [2025-03-21 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732727', 'tblTempVendorCDR_20' ) start [2025-03-21 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732727', 'tblTempVendorCDR_20' ) end [2025-03-21 20:49:19] Production.INFO: ProcessCDR(1,14732727,1,1,2) [2025-03-21 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732727', 'tblTempUsageDetail_20' ) start [2025-03-21 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732727', 'tblTempUsageDetail_20' ) end [2025-03-21 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:49:24] Production.INFO: ==7795== Releasing lock... [2025-03-21 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:49:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:50:06 [end_date_ymd] => 2025-03-21 20:50:06 [RateCDR] => 1 ) [2025-03-21 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-21 17:50:06' and `end` < '2025-03-21 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-21 20:50:19] Production.INFO: count ==2467 [2025-03-21 20:50:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:50:06 - End Time 2025-03-21 20:50:06 [2025-03-21 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732733', 'tblTempUsageDetail_20' ) start [2025-03-21 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732733', 'tblTempUsageDetail_20' ) end [2025-03-21 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732733', 'tblTempVendorCDR_20' ) start [2025-03-21 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732733', 'tblTempVendorCDR_20' ) end [2025-03-21 20:50:19] Production.INFO: ProcessCDR(1,14732733,1,1,2) [2025-03-21 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732733', 'tblTempUsageDetail_20' ) start [2025-03-21 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732733', 'tblTempUsageDetail_20' ) end [2025-03-21 20:50:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:50:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:50:24] Production.INFO: ==7869== Releasing lock... [2025-03-21 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:50:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:51:05 [end_date_ymd] => 2025-03-21 20:51:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:51:05' and `end` < '2025-03-21 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-21 20:51:18] Production.INFO: count ==2440 [2025-03-21 20:51:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:51:05 - End Time 2025-03-21 20:51:05 [2025-03-21 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732738', 'tblTempUsageDetail_20' ) start [2025-03-21 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732738', 'tblTempUsageDetail_20' ) end [2025-03-21 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732738', 'tblTempVendorCDR_20' ) start [2025-03-21 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732738', 'tblTempVendorCDR_20' ) end [2025-03-21 20:51:19] Production.INFO: ProcessCDR(1,14732738,1,1,2) [2025-03-21 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732738', 'tblTempUsageDetail_20' ) start [2025-03-21 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732738', 'tblTempUsageDetail_20' ) end [2025-03-21 20:51:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:51:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:51:24] Production.INFO: ==7947== Releasing lock... [2025-03-21 20:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:51:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:52:05 [end_date_ymd] => 2025-03-21 20:52:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:52:05' and `end` < '2025-03-21 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-21 20:52:17] Production.INFO: count ==2442 [2025-03-21 20:52:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:52:05 - End Time 2025-03-21 20:52:05 [2025-03-21 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732743', 'tblTempUsageDetail_20' ) start [2025-03-21 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732743', 'tblTempUsageDetail_20' ) end [2025-03-21 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732743', 'tblTempVendorCDR_20' ) start [2025-03-21 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732743', 'tblTempVendorCDR_20' ) end [2025-03-21 20:52:18] Production.INFO: ProcessCDR(1,14732743,1,1,2) [2025-03-21 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732743', 'tblTempUsageDetail_20' ) start [2025-03-21 20:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732743', 'tblTempUsageDetail_20' ) end [2025-03-21 20:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:52:21] Production.INFO: ==8019== Releasing lock... [2025-03-21 20:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:52:21] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:53:06 [end_date_ymd] => 2025-03-21 20:53:06 [RateCDR] => 1 ) [2025-03-21 20: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-21 17:53:06' and `end` < '2025-03-21 20: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-21 20:53:18] Production.INFO: count ==2440 [2025-03-21 20:53:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:53:06 - End Time 2025-03-21 20:53:06 [2025-03-21 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732748', 'tblTempUsageDetail_20' ) start [2025-03-21 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732748', 'tblTempUsageDetail_20' ) end [2025-03-21 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732748', 'tblTempVendorCDR_20' ) start [2025-03-21 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732748', 'tblTempVendorCDR_20' ) end [2025-03-21 20:53:19] Production.INFO: ProcessCDR(1,14732748,1,1,2) [2025-03-21 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732748', 'tblTempUsageDetail_20' ) start [2025-03-21 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732748', 'tblTempUsageDetail_20' ) end [2025-03-21 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:53:24] Production.INFO: ==8090== Releasing lock... [2025-03-21 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:53:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:54:05 [end_date_ymd] => 2025-03-21 20:54:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:54:05' and `end` < '2025-03-21 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-21 20:54:18] Production.INFO: count ==2439 [2025-03-21 20:54:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:54:05 - End Time 2025-03-21 20:54:05 [2025-03-21 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732753', 'tblTempUsageDetail_20' ) start [2025-03-21 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732753', 'tblTempUsageDetail_20' ) end [2025-03-21 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732753', 'tblTempVendorCDR_20' ) start [2025-03-21 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732753', 'tblTempVendorCDR_20' ) end [2025-03-21 20:54:18] Production.INFO: ProcessCDR(1,14732753,1,1,2) [2025-03-21 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732753', 'tblTempUsageDetail_20' ) start [2025-03-21 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732753', 'tblTempUsageDetail_20' ) end [2025-03-21 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:54:22] Production.INFO: ==8167== Releasing lock... [2025-03-21 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:54:22] Production.INFO: 46 MB #Memory Used# [2025-03-21 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:55:05 [end_date_ymd] => 2025-03-21 20:55:05 [RateCDR] => 1 ) [2025-03-21 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 17:55:05' and `end` < '2025-03-21 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 20:55:18] Production.INFO: count ==2436 [2025-03-21 20:55:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:55:05 - End Time 2025-03-21 20:55:05 [2025-03-21 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732758', 'tblTempUsageDetail_20' ) start [2025-03-21 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732758', 'tblTempUsageDetail_20' ) end [2025-03-21 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732758', 'tblTempVendorCDR_20' ) start [2025-03-21 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732758', 'tblTempVendorCDR_20' ) end [2025-03-21 20:55:19] Production.INFO: ProcessCDR(1,14732758,1,1,2) [2025-03-21 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732758', 'tblTempUsageDetail_20' ) start [2025-03-21 20:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732758', 'tblTempUsageDetail_20' ) end [2025-03-21 20:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:55:24] Production.INFO: ==8243== Releasing lock... [2025-03-21 20:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:55:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:56:05 [end_date_ymd] => 2025-03-21 20:56:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:56:05' and `end` < '2025-03-21 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-21 20:56:17] Production.INFO: count ==2443 [2025-03-21 20:56:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:56:05 - End Time 2025-03-21 20:56:05 [2025-03-21 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732763', 'tblTempUsageDetail_20' ) start [2025-03-21 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732763', 'tblTempUsageDetail_20' ) end [2025-03-21 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732763', 'tblTempVendorCDR_20' ) start [2025-03-21 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732763', 'tblTempVendorCDR_20' ) end [2025-03-21 20:56:18] Production.INFO: ProcessCDR(1,14732763,1,1,2) [2025-03-21 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732763', 'tblTempUsageDetail_20' ) start [2025-03-21 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732763', 'tblTempUsageDetail_20' ) end [2025-03-21 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:56:23] Production.INFO: ==8316== Releasing lock... [2025-03-21 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:56:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:57:05 [end_date_ymd] => 2025-03-21 20:57:05 [RateCDR] => 1 ) [2025-03-21 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 17:57:05' and `end` < '2025-03-21 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 20:57:18] Production.INFO: count ==2454 [2025-03-21 20:57:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:57:05 - End Time 2025-03-21 20:57:05 [2025-03-21 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732768', 'tblTempUsageDetail_20' ) start [2025-03-21 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732768', 'tblTempUsageDetail_20' ) end [2025-03-21 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732768', 'tblTempVendorCDR_20' ) start [2025-03-21 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732768', 'tblTempVendorCDR_20' ) end [2025-03-21 20:57:19] Production.INFO: ProcessCDR(1,14732768,1,1,2) [2025-03-21 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732768', 'tblTempUsageDetail_20' ) start [2025-03-21 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732768', 'tblTempUsageDetail_20' ) end [2025-03-21 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:57:22] Production.INFO: ==8389== Releasing lock... [2025-03-21 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:57:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:58:05 [end_date_ymd] => 2025-03-21 20:58:05 [RateCDR] => 1 ) [2025-03-21 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-21 17:58:05' and `end` < '2025-03-21 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-21 20:58:17] Production.INFO: count ==2458 [2025-03-21 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-21 17:58:05 - End Time 2025-03-21 20:58:05 [2025-03-21 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732773', 'tblTempUsageDetail_20' ) start [2025-03-21 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732773', 'tblTempUsageDetail_20' ) end [2025-03-21 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732773', 'tblTempVendorCDR_20' ) start [2025-03-21 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732773', 'tblTempVendorCDR_20' ) end [2025-03-21 20:58:18] Production.INFO: ProcessCDR(1,14732773,1,1,2) [2025-03-21 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732773', 'tblTempUsageDetail_20' ) start [2025-03-21 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732773', 'tblTempUsageDetail_20' ) end [2025-03-21 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:58:23] Production.INFO: ==8468== Releasing lock... [2025-03-21 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:58:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 17:59:06 [end_date_ymd] => 2025-03-21 20:59:06 [RateCDR] => 1 ) [2025-03-21 20: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-21 17:59:06' and `end` < '2025-03-21 20: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-21 20:59:18] Production.INFO: count ==2488 [2025-03-21 20:59:19] Production.ERROR: pbx CDR StartTime 2025-03-21 17:59:06 - End Time 2025-03-21 20:59:06 [2025-03-21 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732778', 'tblTempUsageDetail_20' ) start [2025-03-21 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732778', 'tblTempUsageDetail_20' ) end [2025-03-21 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732778', 'tblTempVendorCDR_20' ) start [2025-03-21 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732778', 'tblTempVendorCDR_20' ) end [2025-03-21 20:59:19] Production.INFO: ProcessCDR(1,14732778,1,1,2) [2025-03-21 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 20:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732778', 'tblTempUsageDetail_20' ) start [2025-03-21 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732778', 'tblTempUsageDetail_20' ) end [2025-03-21 20:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 20:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 20:59:24] Production.INFO: ==8539== Releasing lock... [2025-03-21 20:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 20:59:24] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:00:06 [end_date_ymd] => 2025-03-21 21:00:06 [RateCDR] => 1 ) [2025-03-21 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-21 18:00:06' and `end` < '2025-03-21 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-21 21:00:19] Production.INFO: count ==2488 [2025-03-21 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:00:06 - End Time 2025-03-21 21:00:06 [2025-03-21 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732783', 'tblTempUsageDetail_20' ) start [2025-03-21 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732783', 'tblTempUsageDetail_20' ) end [2025-03-21 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732783', 'tblTempVendorCDR_20' ) start [2025-03-21 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732783', 'tblTempVendorCDR_20' ) end [2025-03-21 21:00:19] Production.INFO: ProcessCDR(1,14732783,1,1,2) [2025-03-21 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732783', 'tblTempUsageDetail_20' ) start [2025-03-21 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732783', 'tblTempUsageDetail_20' ) end [2025-03-21 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:00:23] Production.INFO: ==8615== Releasing lock... [2025-03-21 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:00:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:01:05 [end_date_ymd] => 2025-03-21 21:01:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:01:05' and `end` < '2025-03-21 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-21 21:01:18] Production.INFO: count ==2494 [2025-03-21 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:01:05 - End Time 2025-03-21 21:01:05 [2025-03-21 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732789', 'tblTempUsageDetail_20' ) start [2025-03-21 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732789', 'tblTempUsageDetail_20' ) end [2025-03-21 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732789', 'tblTempVendorCDR_20' ) start [2025-03-21 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732789', 'tblTempVendorCDR_20' ) end [2025-03-21 21:01:18] Production.INFO: ProcessCDR(1,14732789,1,1,2) [2025-03-21 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732789', 'tblTempUsageDetail_20' ) start [2025-03-21 21:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732789', 'tblTempUsageDetail_20' ) end [2025-03-21 21:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:01:23] Production.INFO: ==8747== Releasing lock... [2025-03-21 21:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:01:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:02:05 [end_date_ymd] => 2025-03-21 21:02:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:02:05' and `end` < '2025-03-21 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-21 21:02:17] Production.INFO: count ==2498 [2025-03-21 21:02:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:02:05 - End Time 2025-03-21 21:02:05 [2025-03-21 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732794', 'tblTempUsageDetail_20' ) start [2025-03-21 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732794', 'tblTempUsageDetail_20' ) end [2025-03-21 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732794', 'tblTempVendorCDR_20' ) start [2025-03-21 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732794', 'tblTempVendorCDR_20' ) end [2025-03-21 21:02:18] Production.INFO: ProcessCDR(1,14732794,1,1,2) [2025-03-21 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732794', 'tblTempUsageDetail_20' ) start [2025-03-21 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732794', 'tblTempUsageDetail_20' ) end [2025-03-21 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:02:21] Production.INFO: ==8821== Releasing lock... [2025-03-21 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:02:21] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 21:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:03:06 [end_date_ymd] => 2025-03-21 21:03:06 [RateCDR] => 1 ) [2025-03-21 21: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-21 18:03:06' and `end` < '2025-03-21 21: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-21 21:03:18] Production.INFO: count ==2486 [2025-03-21 21:03:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:03:06 - End Time 2025-03-21 21:03:06 [2025-03-21 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732799', 'tblTempUsageDetail_20' ) start [2025-03-21 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732799', 'tblTempUsageDetail_20' ) end [2025-03-21 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732799', 'tblTempVendorCDR_20' ) start [2025-03-21 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732799', 'tblTempVendorCDR_20' ) end [2025-03-21 21:03:19] Production.INFO: ProcessCDR(1,14732799,1,1,2) [2025-03-21 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732799', 'tblTempUsageDetail_20' ) start [2025-03-21 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732799', 'tblTempUsageDetail_20' ) end [2025-03-21 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:03:22] Production.INFO: ==8901== Releasing lock... [2025-03-21 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:03:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 21:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:04:06 [end_date_ymd] => 2025-03-21 21:04:06 [RateCDR] => 1 ) [2025-03-21 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-21 18:04:06' and `end` < '2025-03-21 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-21 21:04:18] Production.INFO: count ==2477 [2025-03-21 21:04:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:04:06 - End Time 2025-03-21 21:04:06 [2025-03-21 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732804', 'tblTempUsageDetail_20' ) start [2025-03-21 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732804', 'tblTempUsageDetail_20' ) end [2025-03-21 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732804', 'tblTempVendorCDR_20' ) start [2025-03-21 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732804', 'tblTempVendorCDR_20' ) end [2025-03-21 21:04:19] Production.INFO: ProcessCDR(1,14732804,1,1,2) [2025-03-21 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732804', 'tblTempUsageDetail_20' ) start [2025-03-21 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732804', 'tblTempUsageDetail_20' ) end [2025-03-21 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:04:22] Production.INFO: ==8978== Releasing lock... [2025-03-21 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:04:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:05:05 [end_date_ymd] => 2025-03-21 21:05:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:05:05' and `end` < '2025-03-21 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-21 21:05:17] Production.INFO: count ==2468 [2025-03-21 21:05:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:05:05 - End Time 2025-03-21 21:05:05 [2025-03-21 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732809', 'tblTempUsageDetail_20' ) start [2025-03-21 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732809', 'tblTempUsageDetail_20' ) end [2025-03-21 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732809', 'tblTempVendorCDR_20' ) start [2025-03-21 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732809', 'tblTempVendorCDR_20' ) end [2025-03-21 21:05:18] Production.INFO: ProcessCDR(1,14732809,1,1,2) [2025-03-21 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732809', 'tblTempUsageDetail_20' ) start [2025-03-21 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732809', 'tblTempUsageDetail_20' ) end [2025-03-21 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:05:21] Production.INFO: ==9050== Releasing lock... [2025-03-21 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:05:21] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:06:05 [end_date_ymd] => 2025-03-21 21:06:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:06:05' and `end` < '2025-03-21 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-21 21:06:18] Production.INFO: count ==2470 [2025-03-21 21:06:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:06:05 - End Time 2025-03-21 21:06:05 [2025-03-21 21:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732814', 'tblTempUsageDetail_20' ) start [2025-03-21 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732814', 'tblTempUsageDetail_20' ) end [2025-03-21 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732814', 'tblTempVendorCDR_20' ) start [2025-03-21 21:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732814', 'tblTempVendorCDR_20' ) end [2025-03-21 21:06:18] Production.INFO: ProcessCDR(1,14732814,1,1,2) [2025-03-21 21:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732814', 'tblTempUsageDetail_20' ) start [2025-03-21 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732814', 'tblTempUsageDetail_20' ) end [2025-03-21 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:06:22] Production.INFO: ==9121== Releasing lock... [2025-03-21 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:06:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:07:05 [end_date_ymd] => 2025-03-21 21:07:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:07:05' and `end` < '2025-03-21 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-21 21:07:17] Production.INFO: count ==2460 [2025-03-21 21:07:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:07:05 - End Time 2025-03-21 21:07:05 [2025-03-21 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732819', 'tblTempUsageDetail_20' ) start [2025-03-21 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732819', 'tblTempUsageDetail_20' ) end [2025-03-21 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732819', 'tblTempVendorCDR_20' ) start [2025-03-21 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732819', 'tblTempVendorCDR_20' ) end [2025-03-21 21:07:18] Production.INFO: ProcessCDR(1,14732819,1,1,2) [2025-03-21 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732819', 'tblTempUsageDetail_20' ) start [2025-03-21 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732819', 'tblTempUsageDetail_20' ) end [2025-03-21 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:07:23] Production.INFO: ==9197== Releasing lock... [2025-03-21 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:07:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:08:05 [end_date_ymd] => 2025-03-21 21:08:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:08:05' and `end` < '2025-03-21 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-21 21:08:18] Production.INFO: count ==2452 [2025-03-21 21:08:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:08:05 - End Time 2025-03-21 21:08:05 [2025-03-21 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732824', 'tblTempUsageDetail_20' ) start [2025-03-21 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732824', 'tblTempUsageDetail_20' ) end [2025-03-21 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732824', 'tblTempVendorCDR_20' ) start [2025-03-21 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732824', 'tblTempVendorCDR_20' ) end [2025-03-21 21:08:19] Production.INFO: ProcessCDR(1,14732824,1,1,2) [2025-03-21 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732824', 'tblTempUsageDetail_20' ) start [2025-03-21 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732824', 'tblTempUsageDetail_20' ) end [2025-03-21 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:08:22] Production.INFO: ==9279== Releasing lock... [2025-03-21 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:08:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:09:05 [end_date_ymd] => 2025-03-21 21:09:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:09:05' and `end` < '2025-03-21 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-21 21:09:18] Production.INFO: count ==2442 [2025-03-21 21:09:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:09:05 - End Time 2025-03-21 21:09:05 [2025-03-21 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732829', 'tblTempUsageDetail_20' ) start [2025-03-21 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732829', 'tblTempUsageDetail_20' ) end [2025-03-21 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732829', 'tblTempVendorCDR_20' ) start [2025-03-21 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732829', 'tblTempVendorCDR_20' ) end [2025-03-21 21:09:18] Production.INFO: ProcessCDR(1,14732829,1,1,2) [2025-03-21 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732829', 'tblTempUsageDetail_20' ) start [2025-03-21 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732829', 'tblTempUsageDetail_20' ) end [2025-03-21 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:09:22] Production.INFO: ==9350== Releasing lock... [2025-03-21 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:09:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:10:06 [end_date_ymd] => 2025-03-21 21:10:06 [RateCDR] => 1 ) [2025-03-21 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-21 18:10:06' and `end` < '2025-03-21 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-21 21:10:18] Production.INFO: count ==2440 [2025-03-21 21:10:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:10:06 - End Time 2025-03-21 21:10:06 [2025-03-21 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732835', 'tblTempUsageDetail_20' ) start [2025-03-21 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732835', 'tblTempUsageDetail_20' ) end [2025-03-21 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732835', 'tblTempVendorCDR_20' ) start [2025-03-21 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732835', 'tblTempVendorCDR_20' ) end [2025-03-21 21:10:19] Production.INFO: ProcessCDR(1,14732835,1,1,2) [2025-03-21 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732835', 'tblTempUsageDetail_20' ) start [2025-03-21 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732835', 'tblTempUsageDetail_20' ) end [2025-03-21 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:10:22] Production.INFO: ==9425== Releasing lock... [2025-03-21 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:10:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:11:05 [end_date_ymd] => 2025-03-21 21:11:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:11:05' and `end` < '2025-03-21 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-21 21:11:17] Production.INFO: count ==2419 [2025-03-21 21:11:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:11:05 - End Time 2025-03-21 21:11:05 [2025-03-21 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732840', 'tblTempUsageDetail_20' ) start [2025-03-21 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732840', 'tblTempUsageDetail_20' ) end [2025-03-21 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732840', 'tblTempVendorCDR_20' ) start [2025-03-21 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732840', 'tblTempVendorCDR_20' ) end [2025-03-21 21:11:18] Production.INFO: ProcessCDR(1,14732840,1,1,2) [2025-03-21 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732840', 'tblTempUsageDetail_20' ) start [2025-03-21 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732840', 'tblTempUsageDetail_20' ) end [2025-03-21 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:11:22] Production.INFO: ==9502== Releasing lock... [2025-03-21 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:11:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:12:05 [end_date_ymd] => 2025-03-21 21:12:05 [RateCDR] => 1 ) [2025-03-21 21: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-21 18:12:05' and `end` < '2025-03-21 21: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-21 21:12:18] Production.INFO: count ==2405 [2025-03-21 21:12:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:12:05 - End Time 2025-03-21 21:12:05 [2025-03-21 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732845', 'tblTempUsageDetail_20' ) start [2025-03-21 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732845', 'tblTempUsageDetail_20' ) end [2025-03-21 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732845', 'tblTempVendorCDR_20' ) start [2025-03-21 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732845', 'tblTempVendorCDR_20' ) end [2025-03-21 21:12:18] Production.INFO: ProcessCDR(1,14732845,1,1,2) [2025-03-21 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732845', 'tblTempUsageDetail_20' ) start [2025-03-21 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732845', 'tblTempUsageDetail_20' ) end [2025-03-21 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:12:22] Production.INFO: ==9574== Releasing lock... [2025-03-21 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:12:22] Production.INFO: 46 MB #Memory Used# [2025-03-21 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:13:06 [end_date_ymd] => 2025-03-21 21:13:06 [RateCDR] => 1 ) [2025-03-21 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-21 18:13:06' and `end` < '2025-03-21 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-21 21:13:18] Production.INFO: count ==2402 [2025-03-21 21:13:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:13:06 - End Time 2025-03-21 21:13:06 [2025-03-21 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732850', 'tblTempUsageDetail_20' ) start [2025-03-21 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732850', 'tblTempUsageDetail_20' ) end [2025-03-21 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732850', 'tblTempVendorCDR_20' ) start [2025-03-21 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732850', 'tblTempVendorCDR_20' ) end [2025-03-21 21:13:19] Production.INFO: ProcessCDR(1,14732850,1,1,2) [2025-03-21 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732850', 'tblTempUsageDetail_20' ) start [2025-03-21 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732850', 'tblTempUsageDetail_20' ) end [2025-03-21 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:13:22] Production.INFO: ==9650== Releasing lock... [2025-03-21 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:13:22] Production.INFO: 46 MB #Memory Used# [2025-03-21 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:14:05 [end_date_ymd] => 2025-03-21 21:14:05 [RateCDR] => 1 ) [2025-03-21 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 18:14:05' and `end` < '2025-03-21 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 21:14:18] Production.INFO: count ==2551 [2025-03-21 21:14:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:14:05 - End Time 2025-03-21 21:14:05 [2025-03-21 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732855', 'tblTempUsageDetail_20' ) start [2025-03-21 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732855', 'tblTempUsageDetail_20' ) end [2025-03-21 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732855', 'tblTempVendorCDR_20' ) start [2025-03-21 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732855', 'tblTempVendorCDR_20' ) end [2025-03-21 21:14:18] Production.INFO: ProcessCDR(1,14732855,1,1,2) [2025-03-21 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732855', 'tblTempUsageDetail_20' ) start [2025-03-21 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732855', 'tblTempUsageDetail_20' ) end [2025-03-21 21:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:14:24] Production.INFO: ==9725== Releasing lock... [2025-03-21 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:14:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:15:05 [end_date_ymd] => 2025-03-21 21:15:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:15:05' and `end` < '2025-03-21 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-21 21:15:18] Production.INFO: count ==2558 [2025-03-21 21:15:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:15:05 - End Time 2025-03-21 21:15:05 [2025-03-21 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732860', 'tblTempUsageDetail_20' ) start [2025-03-21 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732860', 'tblTempUsageDetail_20' ) end [2025-03-21 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732860', 'tblTempVendorCDR_20' ) start [2025-03-21 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732860', 'tblTempVendorCDR_20' ) end [2025-03-21 21:15:18] Production.INFO: ProcessCDR(1,14732860,1,1,2) [2025-03-21 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732860', 'tblTempUsageDetail_20' ) start [2025-03-21 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732860', 'tblTempUsageDetail_20' ) end [2025-03-21 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:15:23] Production.INFO: ==9799== Releasing lock... [2025-03-21 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:15:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:16:05 [end_date_ymd] => 2025-03-21 21:16:05 [RateCDR] => 1 ) [2025-03-21 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 18:16:05' and `end` < '2025-03-21 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 21:16:18] Production.INFO: count ==2559 [2025-03-21 21:16:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:16:05 - End Time 2025-03-21 21:16:05 [2025-03-21 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732865', 'tblTempUsageDetail_20' ) start [2025-03-21 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732865', 'tblTempUsageDetail_20' ) end [2025-03-21 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732865', 'tblTempVendorCDR_20' ) start [2025-03-21 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732865', 'tblTempVendorCDR_20' ) end [2025-03-21 21:16:19] Production.INFO: ProcessCDR(1,14732865,1,1,2) [2025-03-21 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732865', 'tblTempUsageDetail_20' ) start [2025-03-21 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732865', 'tblTempUsageDetail_20' ) end [2025-03-21 21:16:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:16:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:16:24] Production.INFO: ==9908== Releasing lock... [2025-03-21 21:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:16:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:17:05 [end_date_ymd] => 2025-03-21 21:17:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:17:05' and `end` < '2025-03-21 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-21 21:17:18] Production.INFO: count ==2558 [2025-03-21 21:17:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:17:05 - End Time 2025-03-21 21:17:05 [2025-03-21 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732870', 'tblTempUsageDetail_20' ) start [2025-03-21 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732870', 'tblTempUsageDetail_20' ) end [2025-03-21 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732870', 'tblTempVendorCDR_20' ) start [2025-03-21 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732870', 'tblTempVendorCDR_20' ) end [2025-03-21 21:17:18] Production.INFO: ProcessCDR(1,14732870,1,1,2) [2025-03-21 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732870', 'tblTempUsageDetail_20' ) start [2025-03-21 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732870', 'tblTempUsageDetail_20' ) end [2025-03-21 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:17:22] Production.INFO: ==9985== Releasing lock... [2025-03-21 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:17:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:18:05 [end_date_ymd] => 2025-03-21 21:18:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:18:05' and `end` < '2025-03-21 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-21 21:18:17] Production.INFO: count ==2553 [2025-03-21 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:18:05 - End Time 2025-03-21 21:18:05 [2025-03-21 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732875', 'tblTempUsageDetail_20' ) start [2025-03-21 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732875', 'tblTempUsageDetail_20' ) end [2025-03-21 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732875', 'tblTempVendorCDR_20' ) start [2025-03-21 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732875', 'tblTempVendorCDR_20' ) end [2025-03-21 21:18:18] Production.INFO: ProcessCDR(1,14732875,1,1,2) [2025-03-21 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732875', 'tblTempUsageDetail_20' ) start [2025-03-21 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732875', 'tblTempUsageDetail_20' ) end [2025-03-21 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:18:21] Production.INFO: ==10068== Releasing lock... [2025-03-21 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:18:21] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:19:05 [end_date_ymd] => 2025-03-21 21:19:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:19:05' and `end` < '2025-03-21 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-21 21:19:18] Production.INFO: count ==2548 [2025-03-21 21:19:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:19:05 - End Time 2025-03-21 21:19:05 [2025-03-21 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732880', 'tblTempUsageDetail_20' ) start [2025-03-21 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732880', 'tblTempUsageDetail_20' ) end [2025-03-21 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732880', 'tblTempVendorCDR_20' ) start [2025-03-21 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732880', 'tblTempVendorCDR_20' ) end [2025-03-21 21:19:18] Production.INFO: ProcessCDR(1,14732880,1,1,2) [2025-03-21 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732880', 'tblTempUsageDetail_20' ) start [2025-03-21 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732880', 'tblTempUsageDetail_20' ) end [2025-03-21 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:19:22] Production.INFO: ==10141== Releasing lock... [2025-03-21 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:19:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:20:05 [end_date_ymd] => 2025-03-21 21:20:05 [RateCDR] => 1 ) [2025-03-21 21:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 18:20:05' and `end` < '2025-03-21 21:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 21:20:18] Production.INFO: count ==2549 [2025-03-21 21:20:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:20:05 - End Time 2025-03-21 21:20:05 [2025-03-21 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732886', 'tblTempUsageDetail_20' ) start [2025-03-21 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732886', 'tblTempUsageDetail_20' ) end [2025-03-21 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732886', 'tblTempVendorCDR_20' ) start [2025-03-21 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732886', 'tblTempVendorCDR_20' ) end [2025-03-21 21:20:19] Production.INFO: ProcessCDR(1,14732886,1,1,2) [2025-03-21 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732886', 'tblTempUsageDetail_20' ) start [2025-03-21 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732886', 'tblTempUsageDetail_20' ) end [2025-03-21 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:20:23] Production.INFO: ==10220== Releasing lock... [2025-03-21 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:20:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:21:05 [end_date_ymd] => 2025-03-21 21:21:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:21:05' and `end` < '2025-03-21 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-21 21:21:18] Production.INFO: count ==2552 [2025-03-21 21:21:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:21:05 - End Time 2025-03-21 21:21:05 [2025-03-21 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732891', 'tblTempUsageDetail_20' ) start [2025-03-21 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732891', 'tblTempUsageDetail_20' ) end [2025-03-21 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732891', 'tblTempVendorCDR_20' ) start [2025-03-21 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732891', 'tblTempVendorCDR_20' ) end [2025-03-21 21:21:19] Production.INFO: ProcessCDR(1,14732891,1,1,2) [2025-03-21 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732891', 'tblTempUsageDetail_20' ) start [2025-03-21 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732891', 'tblTempUsageDetail_20' ) end [2025-03-21 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:21:23] Production.INFO: ==10301== Releasing lock... [2025-03-21 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:21:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:22:06 [end_date_ymd] => 2025-03-21 21:22:06 [RateCDR] => 1 ) [2025-03-21 21: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-21 18:22:06' and `end` < '2025-03-21 21: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-21 21:22:18] Production.INFO: count ==2557 [2025-03-21 21:22:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:22:06 - End Time 2025-03-21 21:22:06 [2025-03-21 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732896', 'tblTempUsageDetail_20' ) start [2025-03-21 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732896', 'tblTempUsageDetail_20' ) end [2025-03-21 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732896', 'tblTempVendorCDR_20' ) start [2025-03-21 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732896', 'tblTempVendorCDR_20' ) end [2025-03-21 21:22:19] Production.INFO: ProcessCDR(1,14732896,1,1,2) [2025-03-21 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732896', 'tblTempUsageDetail_20' ) start [2025-03-21 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732896', 'tblTempUsageDetail_20' ) end [2025-03-21 21:22:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:22:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:22:24] Production.INFO: ==10372== Releasing lock... [2025-03-21 21:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:22:24] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:23:05 [end_date_ymd] => 2025-03-21 21:23:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:23:05' and `end` < '2025-03-21 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-21 21:23:18] Production.INFO: count ==2556 [2025-03-21 21:23:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:23:05 - End Time 2025-03-21 21:23:05 [2025-03-21 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732901', 'tblTempUsageDetail_20' ) start [2025-03-21 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732901', 'tblTempUsageDetail_20' ) end [2025-03-21 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732901', 'tblTempVendorCDR_20' ) start [2025-03-21 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732901', 'tblTempVendorCDR_20' ) end [2025-03-21 21:23:19] Production.INFO: ProcessCDR(1,14732901,1,1,2) [2025-03-21 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732901', 'tblTempUsageDetail_20' ) start [2025-03-21 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732901', 'tblTempUsageDetail_20' ) end [2025-03-21 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:23:23] Production.INFO: ==10445== Releasing lock... [2025-03-21 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:23:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:24:06 [end_date_ymd] => 2025-03-21 21:24:06 [RateCDR] => 1 ) [2025-03-21 21: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-21 18:24:06' and `end` < '2025-03-21 21: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-21 21:24:18] Production.INFO: count ==2555 [2025-03-21 21:24:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:24:06 - End Time 2025-03-21 21:24:06 [2025-03-21 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732906', 'tblTempUsageDetail_20' ) start [2025-03-21 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732906', 'tblTempUsageDetail_20' ) end [2025-03-21 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732906', 'tblTempVendorCDR_20' ) start [2025-03-21 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732906', 'tblTempVendorCDR_20' ) end [2025-03-21 21:24:19] Production.INFO: ProcessCDR(1,14732906,1,1,2) [2025-03-21 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732906', 'tblTempUsageDetail_20' ) start [2025-03-21 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732906', 'tblTempUsageDetail_20' ) end [2025-03-21 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:24:23] Production.INFO: ==10517== Releasing lock... [2025-03-21 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:24:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:25:05 [end_date_ymd] => 2025-03-21 21:25:05 [RateCDR] => 1 ) [2025-03-21 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 18:25:05' and `end` < '2025-03-21 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 21:25:17] Production.INFO: count ==2554 [2025-03-21 21:25:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:25:05 - End Time 2025-03-21 21:25:05 [2025-03-21 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732911', 'tblTempUsageDetail_20' ) start [2025-03-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732911', 'tblTempUsageDetail_20' ) end [2025-03-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732911', 'tblTempVendorCDR_20' ) start [2025-03-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732911', 'tblTempVendorCDR_20' ) end [2025-03-21 21:25:18] Production.INFO: ProcessCDR(1,14732911,1,1,2) [2025-03-21 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732911', 'tblTempUsageDetail_20' ) start [2025-03-21 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732911', 'tblTempUsageDetail_20' ) end [2025-03-21 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:25:21] Production.INFO: ==10589== Releasing lock... [2025-03-21 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:25:21] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:26:06 [end_date_ymd] => 2025-03-21 21:26:06 [RateCDR] => 1 ) [2025-03-21 21: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-21 18:26:06' and `end` < '2025-03-21 21: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-21 21:26:18] Production.INFO: count ==2553 [2025-03-21 21:26:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:26:06 - End Time 2025-03-21 21:26:06 [2025-03-21 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732916', 'tblTempUsageDetail_20' ) start [2025-03-21 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732916', 'tblTempUsageDetail_20' ) end [2025-03-21 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732916', 'tblTempVendorCDR_20' ) start [2025-03-21 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732916', 'tblTempVendorCDR_20' ) end [2025-03-21 21:26:19] Production.INFO: ProcessCDR(1,14732916,1,1,2) [2025-03-21 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732916', 'tblTempUsageDetail_20' ) start [2025-03-21 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732916', 'tblTempUsageDetail_20' ) end [2025-03-21 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:26:23] Production.INFO: ==10666== Releasing lock... [2025-03-21 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:26:23] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:27:06 [end_date_ymd] => 2025-03-21 21:27:06 [RateCDR] => 1 ) [2025-03-21 21: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-21 18:27:06' and `end` < '2025-03-21 21: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-21 21:27:18] Production.INFO: count ==2552 [2025-03-21 21:27:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:27:06 - End Time 2025-03-21 21:27:06 [2025-03-21 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732921', 'tblTempUsageDetail_20' ) start [2025-03-21 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732921', 'tblTempUsageDetail_20' ) end [2025-03-21 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732921', 'tblTempVendorCDR_20' ) start [2025-03-21 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732921', 'tblTempVendorCDR_20' ) end [2025-03-21 21:27:19] Production.INFO: ProcessCDR(1,14732921,1,1,2) [2025-03-21 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732921', 'tblTempUsageDetail_20' ) start [2025-03-21 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732921', 'tblTempUsageDetail_20' ) end [2025-03-21 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:27:22] Production.INFO: ==10739== Releasing lock... [2025-03-21 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:27:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-21 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:28:05 [end_date_ymd] => 2025-03-21 21:28:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:28:05' and `end` < '2025-03-21 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-21 21:28:18] Production.INFO: count ==2542 [2025-03-21 21:28:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:28:05 - End Time 2025-03-21 21:28:05 [2025-03-21 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732926', 'tblTempUsageDetail_20' ) start [2025-03-21 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732926', 'tblTempUsageDetail_20' ) end [2025-03-21 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732926', 'tblTempVendorCDR_20' ) start [2025-03-21 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732926', 'tblTempVendorCDR_20' ) end [2025-03-21 21:28:19] Production.INFO: ProcessCDR(1,14732926,1,1,2) [2025-03-21 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732926', 'tblTempUsageDetail_20' ) start [2025-03-21 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732926', 'tblTempUsageDetail_20' ) end [2025-03-21 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:28:22] Production.INFO: ==10811== Releasing lock... [2025-03-21 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:28:22] Production.INFO: 47 MB #Memory Used# [2025-03-21 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:29:05 [end_date_ymd] => 2025-03-21 21:29:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:29:05' and `end` < '2025-03-21 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-21 21:29:18] Production.INFO: count ==2508 [2025-03-21 21:29:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:29:05 - End Time 2025-03-21 21:29:05 [2025-03-21 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732931', 'tblTempUsageDetail_20' ) start [2025-03-21 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732931', 'tblTempUsageDetail_20' ) end [2025-03-21 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732931', 'tblTempVendorCDR_20' ) start [2025-03-21 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732931', 'tblTempVendorCDR_20' ) end [2025-03-21 21:29:19] Production.INFO: ProcessCDR(1,14732931,1,1,2) [2025-03-21 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732931', 'tblTempUsageDetail_20' ) start [2025-03-21 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732931', 'tblTempUsageDetail_20' ) end [2025-03-21 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:29:22] Production.INFO: ==10882== Releasing lock... [2025-03-21 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:29:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:30:06 [end_date_ymd] => 2025-03-21 21:30:06 [RateCDR] => 1 ) [2025-03-21 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-21 18:30:06' and `end` < '2025-03-21 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-21 21:30:19] Production.INFO: count ==2508 [2025-03-21 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:30:06 - End Time 2025-03-21 21:30:06 [2025-03-21 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732936', 'tblTempUsageDetail_20' ) start [2025-03-21 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732936', 'tblTempUsageDetail_20' ) end [2025-03-21 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732936', 'tblTempVendorCDR_20' ) start [2025-03-21 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732936', 'tblTempVendorCDR_20' ) end [2025-03-21 21:30:19] Production.INFO: ProcessCDR(1,14732936,1,1,2) [2025-03-21 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732936', 'tblTempUsageDetail_20' ) start [2025-03-21 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732936', 'tblTempUsageDetail_20' ) end [2025-03-21 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:30:23] Production.INFO: ==10958== Releasing lock... [2025-03-21 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:30:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:31:05 [end_date_ymd] => 2025-03-21 21:31:05 [RateCDR] => 1 ) [2025-03-21 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 18:31:05' and `end` < '2025-03-21 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 21:31:17] Production.INFO: count ==2494 [2025-03-21 21:31:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:31:05 - End Time 2025-03-21 21:31:05 [2025-03-21 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732942', 'tblTempUsageDetail_20' ) start [2025-03-21 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732942', 'tblTempUsageDetail_20' ) end [2025-03-21 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732942', 'tblTempVendorCDR_20' ) start [2025-03-21 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732942', 'tblTempVendorCDR_20' ) end [2025-03-21 21:31:18] Production.INFO: ProcessCDR(1,14732942,1,1,2) [2025-03-21 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732942', 'tblTempUsageDetail_20' ) start [2025-03-21 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732942', 'tblTempUsageDetail_20' ) end [2025-03-21 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:31:21] Production.INFO: ==11037== Releasing lock... [2025-03-21 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:31:21] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 21:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:32:06 [end_date_ymd] => 2025-03-21 21:32:06 [RateCDR] => 1 ) [2025-03-21 21: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-21 18:32:06' and `end` < '2025-03-21 21: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-21 21:32:18] Production.INFO: count ==2483 [2025-03-21 21:32:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:32:06 - End Time 2025-03-21 21:32:06 [2025-03-21 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732947', 'tblTempUsageDetail_20' ) start [2025-03-21 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732947', 'tblTempUsageDetail_20' ) end [2025-03-21 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732947', 'tblTempVendorCDR_20' ) start [2025-03-21 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732947', 'tblTempVendorCDR_20' ) end [2025-03-21 21:32:19] Production.INFO: ProcessCDR(1,14732947,1,1,2) [2025-03-21 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732947', 'tblTempUsageDetail_20' ) start [2025-03-21 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732947', 'tblTempUsageDetail_20' ) end [2025-03-21 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:32:23] Production.INFO: ==11146== Releasing lock... [2025-03-21 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:32:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:33:05 [end_date_ymd] => 2025-03-21 21:33:05 [RateCDR] => 1 ) [2025-03-21 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 18:33:05' and `end` < '2025-03-21 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 21:33:17] Production.INFO: count ==2484 [2025-03-21 21:33:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:33:05 - End Time 2025-03-21 21:33:05 [2025-03-21 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732952', 'tblTempUsageDetail_20' ) start [2025-03-21 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732952', 'tblTempUsageDetail_20' ) end [2025-03-21 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732952', 'tblTempVendorCDR_20' ) start [2025-03-21 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732952', 'tblTempVendorCDR_20' ) end [2025-03-21 21:33:18] Production.INFO: ProcessCDR(1,14732952,1,1,2) [2025-03-21 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732952', 'tblTempUsageDetail_20' ) start [2025-03-21 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732952', 'tblTempUsageDetail_20' ) end [2025-03-21 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:33:22] Production.INFO: ==11224== Releasing lock... [2025-03-21 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:33:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:34:05 [end_date_ymd] => 2025-03-21 21:34:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:34:05' and `end` < '2025-03-21 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-21 21:34:18] Production.INFO: count ==2477 [2025-03-21 21:34:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:34:05 - End Time 2025-03-21 21:34:05 [2025-03-21 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732957', 'tblTempUsageDetail_20' ) start [2025-03-21 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732957', 'tblTempUsageDetail_20' ) end [2025-03-21 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732957', 'tblTempVendorCDR_20' ) start [2025-03-21 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732957', 'tblTempVendorCDR_20' ) end [2025-03-21 21:34:18] Production.INFO: ProcessCDR(1,14732957,1,1,2) [2025-03-21 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732957', 'tblTempUsageDetail_20' ) start [2025-03-21 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732957', 'tblTempUsageDetail_20' ) end [2025-03-21 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:34:22] Production.INFO: ==11302== Releasing lock... [2025-03-21 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:34:22] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:35:05 [end_date_ymd] => 2025-03-21 21:35:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:35:05' and `end` < '2025-03-21 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-21 21:35:17] Production.INFO: count ==2475 [2025-03-21 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:35:05 - End Time 2025-03-21 21:35:05 [2025-03-21 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732962', 'tblTempUsageDetail_20' ) start [2025-03-21 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732962', 'tblTempUsageDetail_20' ) end [2025-03-21 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732962', 'tblTempVendorCDR_20' ) start [2025-03-21 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732962', 'tblTempVendorCDR_20' ) end [2025-03-21 21:35:18] Production.INFO: ProcessCDR(1,14732962,1,1,2) [2025-03-21 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732962', 'tblTempUsageDetail_20' ) start [2025-03-21 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732962', 'tblTempUsageDetail_20' ) end [2025-03-21 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:35:23] Production.INFO: ==11372== Releasing lock... [2025-03-21 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:35:23] Production.INFO: 46.75 MB #Memory Used# [2025-03-21 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:36:05 [end_date_ymd] => 2025-03-21 21:36:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:36:05' and `end` < '2025-03-21 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-21 21:36:18] Production.INFO: count ==2450 [2025-03-21 21:36:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:36:05 - End Time 2025-03-21 21:36:05 [2025-03-21 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732967', 'tblTempUsageDetail_20' ) start [2025-03-21 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732967', 'tblTempUsageDetail_20' ) end [2025-03-21 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732967', 'tblTempVendorCDR_20' ) start [2025-03-21 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732967', 'tblTempVendorCDR_20' ) end [2025-03-21 21:36:18] Production.INFO: ProcessCDR(1,14732967,1,1,2) [2025-03-21 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732967', 'tblTempUsageDetail_20' ) start [2025-03-21 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732967', 'tblTempUsageDetail_20' ) end [2025-03-21 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:36:23] Production.INFO: ==11448== Releasing lock... [2025-03-21 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:36:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:37:05 [end_date_ymd] => 2025-03-21 21:37:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:37:05' and `end` < '2025-03-21 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-21 21:37:17] Production.INFO: count ==2437 [2025-03-21 21:37:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:37:05 - End Time 2025-03-21 21:37:05 [2025-03-21 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732972', 'tblTempUsageDetail_20' ) start [2025-03-21 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732972', 'tblTempUsageDetail_20' ) end [2025-03-21 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732972', 'tblTempVendorCDR_20' ) start [2025-03-21 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732972', 'tblTempVendorCDR_20' ) end [2025-03-21 21:37:18] Production.INFO: ProcessCDR(1,14732972,1,1,2) [2025-03-21 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732972', 'tblTempUsageDetail_20' ) start [2025-03-21 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732972', 'tblTempUsageDetail_20' ) end [2025-03-21 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:37:23] Production.INFO: ==11529== Releasing lock... [2025-03-21 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:37:23] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:38:05 [end_date_ymd] => 2025-03-21 21:38:05 [RateCDR] => 1 ) [2025-03-21 21: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-21 18:38:05' and `end` < '2025-03-21 21: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-21 21:38:18] Production.INFO: count ==2445 [2025-03-21 21:38:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:38:05 - End Time 2025-03-21 21:38:05 [2025-03-21 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732977', 'tblTempUsageDetail_20' ) start [2025-03-21 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732977', 'tblTempUsageDetail_20' ) end [2025-03-21 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732977', 'tblTempVendorCDR_20' ) start [2025-03-21 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732977', 'tblTempVendorCDR_20' ) end [2025-03-21 21:38:18] Production.INFO: ProcessCDR(1,14732977,1,1,2) [2025-03-21 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732977', 'tblTempUsageDetail_20' ) start [2025-03-21 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732977', 'tblTempUsageDetail_20' ) end [2025-03-21 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:38:23] Production.INFO: ==11601== Releasing lock... [2025-03-21 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:38:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:39:05 [end_date_ymd] => 2025-03-21 21:39:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:39:05' and `end` < '2025-03-21 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-21 21:39:17] Production.INFO: count ==2443 [2025-03-21 21:39:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:39:05 - End Time 2025-03-21 21:39:05 [2025-03-21 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732982', 'tblTempUsageDetail_20' ) start [2025-03-21 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732982', 'tblTempUsageDetail_20' ) end [2025-03-21 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732982', 'tblTempVendorCDR_20' ) start [2025-03-21 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732982', 'tblTempVendorCDR_20' ) end [2025-03-21 21:39:18] Production.INFO: ProcessCDR(1,14732982,1,1,2) [2025-03-21 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732982', 'tblTempUsageDetail_20' ) start [2025-03-21 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732982', 'tblTempUsageDetail_20' ) end [2025-03-21 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:39:21] Production.INFO: ==11676== Releasing lock... [2025-03-21 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:39:21] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:40:06 [end_date_ymd] => 2025-03-21 21:40:06 [RateCDR] => 1 ) [2025-03-21 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-21 18:40:06' and `end` < '2025-03-21 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-21 21:40:18] Production.INFO: count ==2445 [2025-03-21 21:40:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:40:06 - End Time 2025-03-21 21:40:06 [2025-03-21 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732987', 'tblTempUsageDetail_20' ) start [2025-03-21 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732987', 'tblTempUsageDetail_20' ) end [2025-03-21 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732987', 'tblTempVendorCDR_20' ) start [2025-03-21 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732987', 'tblTempVendorCDR_20' ) end [2025-03-21 21:40:19] Production.INFO: ProcessCDR(1,14732987,1,1,2) [2025-03-21 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732987', 'tblTempUsageDetail_20' ) start [2025-03-21 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732987', 'tblTempUsageDetail_20' ) end [2025-03-21 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:40:22] Production.INFO: ==11752== Releasing lock... [2025-03-21 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:40:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:41:05 [end_date_ymd] => 2025-03-21 21:41:05 [RateCDR] => 1 ) [2025-03-21 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 18:41:05' and `end` < '2025-03-21 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 21:41:17] Production.INFO: count ==2414 [2025-03-21 21:41:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:41:05 - End Time 2025-03-21 21:41:05 [2025-03-21 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732993', 'tblTempUsageDetail_20' ) start [2025-03-21 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732993', 'tblTempUsageDetail_20' ) end [2025-03-21 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732993', 'tblTempVendorCDR_20' ) start [2025-03-21 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732993', 'tblTempVendorCDR_20' ) end [2025-03-21 21:41:18] Production.INFO: ProcessCDR(1,14732993,1,1,2) [2025-03-21 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732993', 'tblTempUsageDetail_20' ) start [2025-03-21 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732993', 'tblTempUsageDetail_20' ) end [2025-03-21 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:41:21] Production.INFO: ==11826== Releasing lock... [2025-03-21 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:41:21] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:42:06 [end_date_ymd] => 2025-03-21 21:42:06 [RateCDR] => 1 ) [2025-03-21 21: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-21 18:42:06' and `end` < '2025-03-21 21: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-21 21:42:18] Production.INFO: count ==2415 [2025-03-21 21:42:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:42:06 - End Time 2025-03-21 21:42:06 [2025-03-21 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732998', 'tblTempUsageDetail_20' ) start [2025-03-21 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14732998', 'tblTempUsageDetail_20' ) end [2025-03-21 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732998', 'tblTempVendorCDR_20' ) start [2025-03-21 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14732998', 'tblTempVendorCDR_20' ) end [2025-03-21 21:42:19] Production.INFO: ProcessCDR(1,14732998,1,1,2) [2025-03-21 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14732998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14732998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14732998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14732998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732998', 'tblTempUsageDetail_20' ) start [2025-03-21 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14732998', 'tblTempUsageDetail_20' ) end [2025-03-21 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:42:22] Production.INFO: ==11902== Releasing lock... [2025-03-21 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:42:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-21 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:43:06 [end_date_ymd] => 2025-03-21 21:43:06 [RateCDR] => 1 ) [2025-03-21 21: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-21 18:43:06' and `end` < '2025-03-21 21: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-21 21:43:18] Production.INFO: count ==2414 [2025-03-21 21:43:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:43:06 - End Time 2025-03-21 21:43:06 [2025-03-21 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733003', 'tblTempUsageDetail_20' ) start [2025-03-21 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733003', 'tblTempUsageDetail_20' ) end [2025-03-21 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733003', 'tblTempVendorCDR_20' ) start [2025-03-21 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733003', 'tblTempVendorCDR_20' ) end [2025-03-21 21:43:19] Production.INFO: ProcessCDR(1,14733003,1,1,2) [2025-03-21 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733003', 'tblTempUsageDetail_20' ) start [2025-03-21 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733003', 'tblTempUsageDetail_20' ) end [2025-03-21 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:43:22] Production.INFO: ==11976== Releasing lock... [2025-03-21 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:43:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:44:05 [end_date_ymd] => 2025-03-21 21:44:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:44:05' and `end` < '2025-03-21 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-21 21:44:18] Production.INFO: count ==2415 [2025-03-21 21:44:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:44:05 - End Time 2025-03-21 21:44:05 [2025-03-21 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733008', 'tblTempUsageDetail_20' ) start [2025-03-21 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733008', 'tblTempUsageDetail_20' ) end [2025-03-21 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733008', 'tblTempVendorCDR_20' ) start [2025-03-21 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733008', 'tblTempVendorCDR_20' ) end [2025-03-21 21:44:19] Production.INFO: ProcessCDR(1,14733008,1,1,2) [2025-03-21 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733008', 'tblTempUsageDetail_20' ) start [2025-03-21 21:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733008', 'tblTempUsageDetail_20' ) end [2025-03-21 21:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:44:24] Production.INFO: ==12051== Releasing lock... [2025-03-21 21:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:44:24] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:45:05 [end_date_ymd] => 2025-03-21 21:45:05 [RateCDR] => 1 ) [2025-03-21 21:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 18:45:05' and `end` < '2025-03-21 21:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 21:45:18] Production.INFO: count ==2414 [2025-03-21 21:45:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:45:05 - End Time 2025-03-21 21:45:05 [2025-03-21 21:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733013', 'tblTempUsageDetail_20' ) start [2025-03-21 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733013', 'tblTempUsageDetail_20' ) end [2025-03-21 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733013', 'tblTempVendorCDR_20' ) start [2025-03-21 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733013', 'tblTempVendorCDR_20' ) end [2025-03-21 21:45:19] Production.INFO: ProcessCDR(1,14733013,1,1,2) [2025-03-21 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733013', 'tblTempUsageDetail_20' ) start [2025-03-21 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733013', 'tblTempUsageDetail_20' ) end [2025-03-21 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:45:22] Production.INFO: ==12126== Releasing lock... [2025-03-21 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:45:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:46:05 [end_date_ymd] => 2025-03-21 21:46:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:46:05' and `end` < '2025-03-21 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-21 21:46:18] Production.INFO: count ==2415 [2025-03-21 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:46:05 - End Time 2025-03-21 21:46:05 [2025-03-21 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733018', 'tblTempUsageDetail_20' ) start [2025-03-21 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733018', 'tblTempUsageDetail_20' ) end [2025-03-21 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733018', 'tblTempVendorCDR_20' ) start [2025-03-21 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733018', 'tblTempVendorCDR_20' ) end [2025-03-21 21:46:19] Production.INFO: ProcessCDR(1,14733018,1,1,2) [2025-03-21 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733018', 'tblTempUsageDetail_20' ) start [2025-03-21 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733018', 'tblTempUsageDetail_20' ) end [2025-03-21 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:46:22] Production.INFO: ==12198== Releasing lock... [2025-03-21 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:46:22] Production.INFO: 46.25 MB #Memory Used# [2025-03-21 21:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:47:06 [end_date_ymd] => 2025-03-21 21:47:06 [RateCDR] => 1 ) [2025-03-21 21: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-21 18:47:06' and `end` < '2025-03-21 21: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-21 21:47:18] Production.INFO: count ==2385 [2025-03-21 21:47:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:47:06 - End Time 2025-03-21 21:47:06 [2025-03-21 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733023', 'tblTempUsageDetail_20' ) start [2025-03-21 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733023', 'tblTempUsageDetail_20' ) end [2025-03-21 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733023', 'tblTempVendorCDR_20' ) start [2025-03-21 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733023', 'tblTempVendorCDR_20' ) end [2025-03-21 21:47:19] Production.INFO: ProcessCDR(1,14733023,1,1,2) [2025-03-21 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733023', 'tblTempUsageDetail_20' ) start [2025-03-21 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733023', 'tblTempUsageDetail_20' ) end [2025-03-21 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:47:22] Production.INFO: ==12315== Releasing lock... [2025-03-21 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:47:22] Production.INFO: 46 MB #Memory Used# [2025-03-21 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:48:05 [end_date_ymd] => 2025-03-21 21:48:05 [RateCDR] => 1 ) [2025-03-21 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 18:48:05' and `end` < '2025-03-21 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 21:48:18] Production.INFO: count ==2377 [2025-03-21 21:48:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:48:05 - End Time 2025-03-21 21:48:05 [2025-03-21 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733028', 'tblTempUsageDetail_20' ) start [2025-03-21 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733028', 'tblTempUsageDetail_20' ) end [2025-03-21 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733028', 'tblTempVendorCDR_20' ) start [2025-03-21 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733028', 'tblTempVendorCDR_20' ) end [2025-03-21 21:48:19] Production.INFO: ProcessCDR(1,14733028,1,1,2) [2025-03-21 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733028', 'tblTempUsageDetail_20' ) start [2025-03-21 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733028', 'tblTempUsageDetail_20' ) end [2025-03-21 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:48:22] Production.INFO: ==12389== Releasing lock... [2025-03-21 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:48:22] Production.INFO: 46 MB #Memory Used# [2025-03-21 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:49:05 [end_date_ymd] => 2025-03-21 21:49:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:49:05' and `end` < '2025-03-21 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-21 21:49:17] Production.INFO: count ==2375 [2025-03-21 21:49:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:49:05 - End Time 2025-03-21 21:49:05 [2025-03-21 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733033', 'tblTempUsageDetail_20' ) start [2025-03-21 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733033', 'tblTempUsageDetail_20' ) end [2025-03-21 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733033', 'tblTempVendorCDR_20' ) start [2025-03-21 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733033', 'tblTempVendorCDR_20' ) end [2025-03-21 21:49:18] Production.INFO: ProcessCDR(1,14733033,1,1,2) [2025-03-21 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733033', 'tblTempUsageDetail_20' ) start [2025-03-21 21:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733033', 'tblTempUsageDetail_20' ) end [2025-03-21 21:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:49:22] Production.INFO: ==12460== Releasing lock... [2025-03-21 21:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:49:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-21 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:50:06 [end_date_ymd] => 2025-03-21 21:50:06 [RateCDR] => 1 ) [2025-03-21 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-21 18:50:06' and `end` < '2025-03-21 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-21 21:50:18] Production.INFO: count ==2368 [2025-03-21 21:50:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:50:06 - End Time 2025-03-21 21:50:06 [2025-03-21 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733039', 'tblTempUsageDetail_20' ) start [2025-03-21 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733039', 'tblTempUsageDetail_20' ) end [2025-03-21 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733039', 'tblTempVendorCDR_20' ) start [2025-03-21 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733039', 'tblTempVendorCDR_20' ) end [2025-03-21 21:50:19] Production.INFO: ProcessCDR(1,14733039,1,1,2) [2025-03-21 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733039', 'tblTempUsageDetail_20' ) start [2025-03-21 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733039', 'tblTempUsageDetail_20' ) end [2025-03-21 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:50:22] Production.INFO: ==12537== Releasing lock... [2025-03-21 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:50:22] Production.INFO: 45.75 MB #Memory Used# [2025-03-21 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:51:05 [end_date_ymd] => 2025-03-21 21:51:05 [RateCDR] => 1 ) [2025-03-21 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 18:51:05' and `end` < '2025-03-21 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 21:51:17] Production.INFO: count ==2321 [2025-03-21 21:51:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:51:05 - End Time 2025-03-21 21:51:05 [2025-03-21 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733044', 'tblTempUsageDetail_20' ) start [2025-03-21 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733044', 'tblTempUsageDetail_20' ) end [2025-03-21 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733044', 'tblTempVendorCDR_20' ) start [2025-03-21 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733044', 'tblTempVendorCDR_20' ) end [2025-03-21 21:51:18] Production.INFO: ProcessCDR(1,14733044,1,1,2) [2025-03-21 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733044', 'tblTempUsageDetail_20' ) start [2025-03-21 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733044', 'tblTempUsageDetail_20' ) end [2025-03-21 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:51:22] Production.INFO: ==12609== Releasing lock... [2025-03-21 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:51:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-21 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:52:05 [end_date_ymd] => 2025-03-21 21:52:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:52:05' and `end` < '2025-03-21 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-21 21:52:18] Production.INFO: count ==2324 [2025-03-21 21:52:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:52:05 - End Time 2025-03-21 21:52:05 [2025-03-21 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733049', 'tblTempUsageDetail_20' ) start [2025-03-21 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733049', 'tblTempUsageDetail_20' ) end [2025-03-21 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733049', 'tblTempVendorCDR_20' ) start [2025-03-21 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733049', 'tblTempVendorCDR_20' ) end [2025-03-21 21:52:19] Production.INFO: ProcessCDR(1,14733049,1,1,2) [2025-03-21 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733049', 'tblTempUsageDetail_20' ) start [2025-03-21 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733049', 'tblTempUsageDetail_20' ) end [2025-03-21 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:52:22] Production.INFO: ==12691== Releasing lock... [2025-03-21 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:52:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-21 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:53:06 [end_date_ymd] => 2025-03-21 21:53:06 [RateCDR] => 1 ) [2025-03-21 21: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-21 18:53:06' and `end` < '2025-03-21 21: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-21 21:53:18] Production.INFO: count ==2321 [2025-03-21 21:53:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:53:06 - End Time 2025-03-21 21:53:06 [2025-03-21 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733054', 'tblTempUsageDetail_20' ) start [2025-03-21 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733054', 'tblTempUsageDetail_20' ) end [2025-03-21 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733054', 'tblTempVendorCDR_20' ) start [2025-03-21 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733054', 'tblTempVendorCDR_20' ) end [2025-03-21 21:53:19] Production.INFO: ProcessCDR(1,14733054,1,1,2) [2025-03-21 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733054', 'tblTempUsageDetail_20' ) start [2025-03-21 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733054', 'tblTempUsageDetail_20' ) end [2025-03-21 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:53:22] Production.INFO: ==12771== Releasing lock... [2025-03-21 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:53:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-21 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:54:05 [end_date_ymd] => 2025-03-21 21:54:05 [RateCDR] => 1 ) [2025-03-21 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 18:54:05' and `end` < '2025-03-21 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 21:54:18] Production.INFO: count ==2330 [2025-03-21 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:54:05 - End Time 2025-03-21 21:54:05 [2025-03-21 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733059', 'tblTempUsageDetail_20' ) start [2025-03-21 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733059', 'tblTempUsageDetail_20' ) end [2025-03-21 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733059', 'tblTempVendorCDR_20' ) start [2025-03-21 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733059', 'tblTempVendorCDR_20' ) end [2025-03-21 21:54:19] Production.INFO: ProcessCDR(1,14733059,1,1,2) [2025-03-21 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733059', 'tblTempUsageDetail_20' ) start [2025-03-21 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733059', 'tblTempUsageDetail_20' ) end [2025-03-21 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:54:23] Production.INFO: ==12842== Releasing lock... [2025-03-21 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:54:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-21 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:55:05 [end_date_ymd] => 2025-03-21 21:55:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:55:05' and `end` < '2025-03-21 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-21 21:55:17] Production.INFO: count ==2339 [2025-03-21 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:55:05 - End Time 2025-03-21 21:55:05 [2025-03-21 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733064', 'tblTempUsageDetail_20' ) start [2025-03-21 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733064', 'tblTempUsageDetail_20' ) end [2025-03-21 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733064', 'tblTempVendorCDR_20' ) start [2025-03-21 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733064', 'tblTempVendorCDR_20' ) end [2025-03-21 21:55:18] Production.INFO: ProcessCDR(1,14733064,1,1,2) [2025-03-21 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733064', 'tblTempUsageDetail_20' ) start [2025-03-21 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733064', 'tblTempUsageDetail_20' ) end [2025-03-21 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:55:21] Production.INFO: ==12915== Releasing lock... [2025-03-21 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:55:21] Production.INFO: 45.25 MB #Memory Used# [2025-03-21 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:56:06 [end_date_ymd] => 2025-03-21 21:56:06 [RateCDR] => 1 ) [2025-03-21 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-21 18:56:06' and `end` < '2025-03-21 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-21 21:56:18] Production.INFO: count ==2323 [2025-03-21 21:56:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:56:06 - End Time 2025-03-21 21:56:06 [2025-03-21 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733069', 'tblTempUsageDetail_20' ) start [2025-03-21 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733069', 'tblTempUsageDetail_20' ) end [2025-03-21 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733069', 'tblTempVendorCDR_20' ) start [2025-03-21 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733069', 'tblTempVendorCDR_20' ) end [2025-03-21 21:56:19] Production.INFO: ProcessCDR(1,14733069,1,1,2) [2025-03-21 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733069', 'tblTempUsageDetail_20' ) start [2025-03-21 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733069', 'tblTempUsageDetail_20' ) end [2025-03-21 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:56:22] Production.INFO: ==12994== Releasing lock... [2025-03-21 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:56:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-21 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:57:06 [end_date_ymd] => 2025-03-21 21:57:06 [RateCDR] => 1 ) [2025-03-21 21: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-21 18:57:06' and `end` < '2025-03-21 21: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-21 21:57:18] Production.INFO: count ==2318 [2025-03-21 21:57:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:57:06 - End Time 2025-03-21 21:57:06 [2025-03-21 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733074', 'tblTempUsageDetail_20' ) start [2025-03-21 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733074', 'tblTempUsageDetail_20' ) end [2025-03-21 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733074', 'tblTempVendorCDR_20' ) start [2025-03-21 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733074', 'tblTempVendorCDR_20' ) end [2025-03-21 21:57:19] Production.INFO: ProcessCDR(1,14733074,1,1,2) [2025-03-21 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733074', 'tblTempUsageDetail_20' ) start [2025-03-21 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733074', 'tblTempUsageDetail_20' ) end [2025-03-21 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:57:22] Production.INFO: ==13066== Releasing lock... [2025-03-21 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:57:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-21 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:58:05 [end_date_ymd] => 2025-03-21 21:58:05 [RateCDR] => 1 ) [2025-03-21 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-21 18:58:05' and `end` < '2025-03-21 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-21 21:58:18] Production.INFO: count ==2311 [2025-03-21 21:58:18] Production.ERROR: pbx CDR StartTime 2025-03-21 18:58:05 - End Time 2025-03-21 21:58:05 [2025-03-21 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733079', 'tblTempUsageDetail_20' ) start [2025-03-21 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733079', 'tblTempUsageDetail_20' ) end [2025-03-21 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733079', 'tblTempVendorCDR_20' ) start [2025-03-21 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733079', 'tblTempVendorCDR_20' ) end [2025-03-21 21:58:18] Production.INFO: ProcessCDR(1,14733079,1,1,2) [2025-03-21 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733079', 'tblTempUsageDetail_20' ) start [2025-03-21 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733079', 'tblTempUsageDetail_20' ) end [2025-03-21 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:58:22] Production.INFO: ==13139== Releasing lock... [2025-03-21 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:58:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-21 21:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 18:59:06 [end_date_ymd] => 2025-03-21 21:59:06 [RateCDR] => 1 ) [2025-03-21 21: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-21 18:59:06' and `end` < '2025-03-21 21: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-21 21:59:18] Production.INFO: count ==2316 [2025-03-21 21:59:19] Production.ERROR: pbx CDR StartTime 2025-03-21 18:59:06 - End Time 2025-03-21 21:59:06 [2025-03-21 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733084', 'tblTempUsageDetail_20' ) start [2025-03-21 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733084', 'tblTempUsageDetail_20' ) end [2025-03-21 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733084', 'tblTempVendorCDR_20' ) start [2025-03-21 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733084', 'tblTempVendorCDR_20' ) end [2025-03-21 21:59:19] Production.INFO: ProcessCDR(1,14733084,1,1,2) [2025-03-21 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733084', 'tblTempUsageDetail_20' ) start [2025-03-21 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733084', 'tblTempUsageDetail_20' ) end [2025-03-21 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 21:59:22] Production.INFO: ==13214== Releasing lock... [2025-03-21 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 21:59:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-21 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:00:06 [end_date_ymd] => 2025-03-21 22:00:06 [RateCDR] => 1 ) [2025-03-21 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 19:00:06' and `end` < '2025-03-21 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 22:00:18] Production.INFO: count ==2301 [2025-03-21 22:00:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:00:06 - End Time 2025-03-21 22:00:06 [2025-03-21 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733089', 'tblTempUsageDetail_20' ) start [2025-03-21 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733089', 'tblTempUsageDetail_20' ) end [2025-03-21 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733089', 'tblTempVendorCDR_20' ) start [2025-03-21 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733089', 'tblTempVendorCDR_20' ) end [2025-03-21 22:00:19] Production.INFO: ProcessCDR(1,14733089,1,1,2) [2025-03-21 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733089', 'tblTempUsageDetail_20' ) start [2025-03-21 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733089', 'tblTempUsageDetail_20' ) end [2025-03-21 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:00:22] Production.INFO: ==13295== Releasing lock... [2025-03-21 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:00:22] Production.INFO: 45.25 MB #Memory Used# [2025-03-21 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:01:06 [end_date_ymd] => 2025-03-21 22:01:06 [RateCDR] => 1 ) [2025-03-21 22: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-21 19:01:06' and `end` < '2025-03-21 22: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-21 22:01:18] Production.INFO: count ==2238 [2025-03-21 22:01:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:01:06 - End Time 2025-03-21 22:01:06 [2025-03-21 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733095', 'tblTempUsageDetail_20' ) start [2025-03-21 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733095', 'tblTempUsageDetail_20' ) end [2025-03-21 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733095', 'tblTempVendorCDR_20' ) start [2025-03-21 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733095', 'tblTempVendorCDR_20' ) end [2025-03-21 22:01:19] Production.INFO: ProcessCDR(1,14733095,1,1,2) [2025-03-21 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733095', 'tblTempUsageDetail_20' ) start [2025-03-21 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733095', 'tblTempUsageDetail_20' ) end [2025-03-21 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:01:22] Production.INFO: ==13381== Releasing lock... [2025-03-21 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:01:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-21 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:02:05 [end_date_ymd] => 2025-03-21 22:02:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:02:05' and `end` < '2025-03-21 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-21 22:02:18] Production.INFO: count ==2235 [2025-03-21 22:02:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:02:05 - End Time 2025-03-21 22:02:05 [2025-03-21 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733100', 'tblTempUsageDetail_20' ) start [2025-03-21 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733100', 'tblTempUsageDetail_20' ) end [2025-03-21 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733100', 'tblTempVendorCDR_20' ) start [2025-03-21 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733100', 'tblTempVendorCDR_20' ) end [2025-03-21 22:02:18] Production.INFO: ProcessCDR(1,14733100,1,1,2) [2025-03-21 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733100', 'tblTempUsageDetail_20' ) start [2025-03-21 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733100', 'tblTempUsageDetail_20' ) end [2025-03-21 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:02:22] Production.INFO: ==13456== Releasing lock... [2025-03-21 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:02:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-21 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:03:05 [end_date_ymd] => 2025-03-21 22:03:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:03:05' and `end` < '2025-03-21 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-21 22:03:17] Production.INFO: count ==2233 [2025-03-21 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:03:05 - End Time 2025-03-21 22:03:05 [2025-03-21 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733105', 'tblTempUsageDetail_20' ) start [2025-03-21 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733105', 'tblTempUsageDetail_20' ) end [2025-03-21 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733105', 'tblTempVendorCDR_20' ) start [2025-03-21 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733105', 'tblTempVendorCDR_20' ) end [2025-03-21 22:03:18] Production.INFO: ProcessCDR(1,14733105,1,1,2) [2025-03-21 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733105', 'tblTempUsageDetail_20' ) start [2025-03-21 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733105', 'tblTempUsageDetail_20' ) end [2025-03-21 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:03:22] Production.INFO: ==13568== Releasing lock... [2025-03-21 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:03:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-21 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:04:05 [end_date_ymd] => 2025-03-21 22:04:05 [RateCDR] => 1 ) [2025-03-21 22: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-21 19:04:05' and `end` < '2025-03-21 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-21 22:04:17] Production.INFO: count ==2231 [2025-03-21 22:04:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:04:05 - End Time 2025-03-21 22:04:05 [2025-03-21 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733110', 'tblTempUsageDetail_20' ) start [2025-03-21 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733110', 'tblTempUsageDetail_20' ) end [2025-03-21 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733110', 'tblTempVendorCDR_20' ) start [2025-03-21 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733110', 'tblTempVendorCDR_20' ) end [2025-03-21 22:04:18] Production.INFO: ProcessCDR(1,14733110,1,1,2) [2025-03-21 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733110', 'tblTempUsageDetail_20' ) start [2025-03-21 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733110', 'tblTempUsageDetail_20' ) end [2025-03-21 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:04:21] Production.INFO: ==13639== Releasing lock... [2025-03-21 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:04:21] Production.INFO: 44.75 MB #Memory Used# [2025-03-21 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:05:05 [end_date_ymd] => 2025-03-21 22:05:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:05:05' and `end` < '2025-03-21 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-21 22:05:18] Production.INFO: count ==2226 [2025-03-21 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:05:05 - End Time 2025-03-21 22:05:05 [2025-03-21 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733115', 'tblTempUsageDetail_20' ) start [2025-03-21 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733115', 'tblTempUsageDetail_20' ) end [2025-03-21 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733115', 'tblTempVendorCDR_20' ) start [2025-03-21 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733115', 'tblTempVendorCDR_20' ) end [2025-03-21 22:05:18] Production.INFO: ProcessCDR(1,14733115,1,1,2) [2025-03-21 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733115', 'tblTempUsageDetail_20' ) start [2025-03-21 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733115', 'tblTempUsageDetail_20' ) end [2025-03-21 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:05:22] Production.INFO: ==13711== Releasing lock... [2025-03-21 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:05:22] Production.INFO: 45 MB #Memory Used# [2025-03-21 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:06:05 [end_date_ymd] => 2025-03-21 22:06:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:06:05' and `end` < '2025-03-21 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-21 22:06:18] Production.INFO: count ==2221 [2025-03-21 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:06:05 - End Time 2025-03-21 22:06:05 [2025-03-21 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733120', 'tblTempUsageDetail_20' ) start [2025-03-21 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733120', 'tblTempUsageDetail_20' ) end [2025-03-21 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733120', 'tblTempVendorCDR_20' ) start [2025-03-21 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733120', 'tblTempVendorCDR_20' ) end [2025-03-21 22:06:18] Production.INFO: ProcessCDR(1,14733120,1,1,2) [2025-03-21 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733120', 'tblTempUsageDetail_20' ) start [2025-03-21 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733120', 'tblTempUsageDetail_20' ) end [2025-03-21 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:06:22] Production.INFO: ==13783== Releasing lock... [2025-03-21 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:06:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-21 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:07:06 [end_date_ymd] => 2025-03-21 22:07:06 [RateCDR] => 1 ) [2025-03-21 22: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-21 19:07:06' and `end` < '2025-03-21 22: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-21 22:07:18] Production.INFO: count ==2210 [2025-03-21 22:07:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:07:06 - End Time 2025-03-21 22:07:06 [2025-03-21 22:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733125', 'tblTempUsageDetail_20' ) start [2025-03-21 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733125', 'tblTempUsageDetail_20' ) end [2025-03-21 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733125', 'tblTempVendorCDR_20' ) start [2025-03-21 22:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733125', 'tblTempVendorCDR_20' ) end [2025-03-21 22:07:19] Production.INFO: ProcessCDR(1,14733125,1,1,2) [2025-03-21 22:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733125', 'tblTempUsageDetail_20' ) start [2025-03-21 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733125', 'tblTempUsageDetail_20' ) end [2025-03-21 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:07:22] Production.INFO: ==13855== Releasing lock... [2025-03-21 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:07:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-21 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:08:05 [end_date_ymd] => 2025-03-21 22:08:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:08:05' and `end` < '2025-03-21 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-21 22:08:17] Production.INFO: count ==2209 [2025-03-21 22:08:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:08:05 - End Time 2025-03-21 22:08:05 [2025-03-21 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733130', 'tblTempUsageDetail_20' ) start [2025-03-21 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733130', 'tblTempUsageDetail_20' ) end [2025-03-21 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733130', 'tblTempVendorCDR_20' ) start [2025-03-21 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733130', 'tblTempVendorCDR_20' ) end [2025-03-21 22:08:18] Production.INFO: ProcessCDR(1,14733130,1,1,2) [2025-03-21 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733130', 'tblTempUsageDetail_20' ) start [2025-03-21 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733130', 'tblTempUsageDetail_20' ) end [2025-03-21 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:08:21] Production.INFO: ==13930== Releasing lock... [2025-03-21 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:08:21] Production.INFO: 44.75 MB #Memory Used# [2025-03-21 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:09:05 [end_date_ymd] => 2025-03-21 22:09:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:09:05' and `end` < '2025-03-21 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-21 22:09:17] Production.INFO: count ==2209 [2025-03-21 22:09:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:09:05 - End Time 2025-03-21 22:09:05 [2025-03-21 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733135', 'tblTempUsageDetail_20' ) start [2025-03-21 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733135', 'tblTempUsageDetail_20' ) end [2025-03-21 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733135', 'tblTempVendorCDR_20' ) start [2025-03-21 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733135', 'tblTempVendorCDR_20' ) end [2025-03-21 22:09:18] Production.INFO: ProcessCDR(1,14733135,1,1,2) [2025-03-21 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733135', 'tblTempUsageDetail_20' ) start [2025-03-21 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733135', 'tblTempUsageDetail_20' ) end [2025-03-21 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:09:21] Production.INFO: ==14003== Releasing lock... [2025-03-21 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:09:21] Production.INFO: 44.5 MB #Memory Used# [2025-03-21 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:10:06 [end_date_ymd] => 2025-03-21 22:10:06 [RateCDR] => 1 ) [2025-03-21 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-21 19:10:06' and `end` < '2025-03-21 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-21 22:10:19] Production.INFO: count ==2211 [2025-03-21 22:10:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:10:06 - End Time 2025-03-21 22:10:06 [2025-03-21 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733141', 'tblTempUsageDetail_20' ) start [2025-03-21 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733141', 'tblTempUsageDetail_20' ) end [2025-03-21 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733141', 'tblTempVendorCDR_20' ) start [2025-03-21 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733141', 'tblTempVendorCDR_20' ) end [2025-03-21 22:10:19] Production.INFO: ProcessCDR(1,14733141,1,1,2) [2025-03-21 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733141', 'tblTempUsageDetail_20' ) start [2025-03-21 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733141', 'tblTempUsageDetail_20' ) end [2025-03-21 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:10:23] Production.INFO: ==14080== Releasing lock... [2025-03-21 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:10:23] Production.INFO: 44.5 MB #Memory Used# [2025-03-21 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:11:05 [end_date_ymd] => 2025-03-21 22:11:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:11:05' and `end` < '2025-03-21 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-21 22:11:18] Production.INFO: count ==2147 [2025-03-21 22:11:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:11:05 - End Time 2025-03-21 22:11:05 [2025-03-21 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733146', 'tblTempUsageDetail_20' ) start [2025-03-21 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733146', 'tblTempUsageDetail_20' ) end [2025-03-21 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733146', 'tblTempVendorCDR_20' ) start [2025-03-21 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733146', 'tblTempVendorCDR_20' ) end [2025-03-21 22:11:19] Production.INFO: ProcessCDR(1,14733146,1,1,2) [2025-03-21 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733146', 'tblTempUsageDetail_20' ) start [2025-03-21 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733146', 'tblTempUsageDetail_20' ) end [2025-03-21 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:11:22] Production.INFO: ==14155== Releasing lock... [2025-03-21 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:11:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-21 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:12:06 [end_date_ymd] => 2025-03-21 22:12:06 [RateCDR] => 1 ) [2025-03-21 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-21 19:12:06' and `end` < '2025-03-21 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-21 22:12:18] Production.INFO: count ==2149 [2025-03-21 22:12:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:12:06 - End Time 2025-03-21 22:12:06 [2025-03-21 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733151', 'tblTempUsageDetail_20' ) start [2025-03-21 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733151', 'tblTempUsageDetail_20' ) end [2025-03-21 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733151', 'tblTempVendorCDR_20' ) start [2025-03-21 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733151', 'tblTempVendorCDR_20' ) end [2025-03-21 22:12:19] Production.INFO: ProcessCDR(1,14733151,1,1,2) [2025-03-21 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733151', 'tblTempUsageDetail_20' ) start [2025-03-21 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733151', 'tblTempUsageDetail_20' ) end [2025-03-21 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:12:22] Production.INFO: ==14229== Releasing lock... [2025-03-21 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:12:22] Production.INFO: 44.25 MB #Memory Used# [2025-03-21 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:13:05 [end_date_ymd] => 2025-03-21 22:13:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:13:05' and `end` < '2025-03-21 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-21 22:13:17] Production.INFO: count ==2143 [2025-03-21 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:13:05 - End Time 2025-03-21 22:13:05 [2025-03-21 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733156', 'tblTempUsageDetail_20' ) start [2025-03-21 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733156', 'tblTempUsageDetail_20' ) end [2025-03-21 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733156', 'tblTempVendorCDR_20' ) start [2025-03-21 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733156', 'tblTempVendorCDR_20' ) end [2025-03-21 22:13:18] Production.INFO: ProcessCDR(1,14733156,1,1,2) [2025-03-21 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733156', 'tblTempUsageDetail_20' ) start [2025-03-21 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733156', 'tblTempUsageDetail_20' ) end [2025-03-21 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:13:21] Production.INFO: ==14303== Releasing lock... [2025-03-21 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:13:21] Production.INFO: 44.25 MB #Memory Used# [2025-03-21 22:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:14:06 [end_date_ymd] => 2025-03-21 22:14:06 [RateCDR] => 1 ) [2025-03-21 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-21 19:14:06' and `end` < '2025-03-21 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-21 22:14:18] Production.INFO: count ==2141 [2025-03-21 22:14:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:14:06 - End Time 2025-03-21 22:14:06 [2025-03-21 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733161', 'tblTempUsageDetail_20' ) start [2025-03-21 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733161', 'tblTempUsageDetail_20' ) end [2025-03-21 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733161', 'tblTempVendorCDR_20' ) start [2025-03-21 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733161', 'tblTempVendorCDR_20' ) end [2025-03-21 22:14:19] Production.INFO: ProcessCDR(1,14733161,1,1,2) [2025-03-21 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733161', 'tblTempUsageDetail_20' ) start [2025-03-21 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733161', 'tblTempUsageDetail_20' ) end [2025-03-21 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:14:22] Production.INFO: ==14379== Releasing lock... [2025-03-21 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:14:22] Production.INFO: 44 MB #Memory Used# [2025-03-21 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:15:05 [end_date_ymd] => 2025-03-21 22:15:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:15:05' and `end` < '2025-03-21 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-21 22:15:18] Production.INFO: count ==2129 [2025-03-21 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:15:05 - End Time 2025-03-21 22:15:05 [2025-03-21 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733166', 'tblTempUsageDetail_20' ) start [2025-03-21 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733166', 'tblTempUsageDetail_20' ) end [2025-03-21 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733166', 'tblTempVendorCDR_20' ) start [2025-03-21 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733166', 'tblTempVendorCDR_20' ) end [2025-03-21 22:15:18] Production.INFO: ProcessCDR(1,14733166,1,1,2) [2025-03-21 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733166', 'tblTempUsageDetail_20' ) start [2025-03-21 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733166', 'tblTempUsageDetail_20' ) end [2025-03-21 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:15:22] Production.INFO: ==14457== Releasing lock... [2025-03-21 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:15:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-21 22:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:16:06 [end_date_ymd] => 2025-03-21 22:16:06 [RateCDR] => 1 ) [2025-03-21 22: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-21 19:16:06' and `end` < '2025-03-21 22: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-21 22:16:18] Production.INFO: count ==2116 [2025-03-21 22:16:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:16:06 - End Time 2025-03-21 22:16:06 [2025-03-21 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733171', 'tblTempUsageDetail_20' ) start [2025-03-21 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733171', 'tblTempUsageDetail_20' ) end [2025-03-21 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733171', 'tblTempVendorCDR_20' ) start [2025-03-21 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733171', 'tblTempVendorCDR_20' ) end [2025-03-21 22:16:19] Production.INFO: ProcessCDR(1,14733171,1,1,2) [2025-03-21 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733171', 'tblTempUsageDetail_20' ) start [2025-03-21 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733171', 'tblTempUsageDetail_20' ) end [2025-03-21 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:16:22] Production.INFO: ==14530== Releasing lock... [2025-03-21 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:16:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-21 22:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:17:04 [end_date_ymd] => 2025-03-21 22:17:04 [RateCDR] => 1 ) [2025-03-21 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-21 19:17:04' and `end` < '2025-03-21 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-21 22:17:17] Production.INFO: count ==2112 [2025-03-21 22:17:17] Production.ERROR: pbx CDR StartTime 2025-03-21 19:17:04 - End Time 2025-03-21 22:17:04 [2025-03-21 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733176', 'tblTempUsageDetail_20' ) start [2025-03-21 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733176', 'tblTempUsageDetail_20' ) end [2025-03-21 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733176', 'tblTempVendorCDR_20' ) start [2025-03-21 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733176', 'tblTempVendorCDR_20' ) end [2025-03-21 22:17:17] Production.INFO: ProcessCDR(1,14733176,1,1,2) [2025-03-21 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733176', 'tblTempUsageDetail_20' ) start [2025-03-21 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733176', 'tblTempUsageDetail_20' ) end [2025-03-21 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:17:21] Production.INFO: ==14599== Releasing lock... [2025-03-21 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:17:21] Production.INFO: 43.5 MB #Memory Used# [2025-03-21 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:18:05 [end_date_ymd] => 2025-03-21 22:18:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:18:05' and `end` < '2025-03-21 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-21 22:18:18] Production.INFO: count ==2109 [2025-03-21 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:18:05 - End Time 2025-03-21 22:18:05 [2025-03-21 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733181', 'tblTempUsageDetail_20' ) start [2025-03-21 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733181', 'tblTempUsageDetail_20' ) end [2025-03-21 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733181', 'tblTempVendorCDR_20' ) start [2025-03-21 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733181', 'tblTempVendorCDR_20' ) end [2025-03-21 22:18:18] Production.INFO: ProcessCDR(1,14733181,1,1,2) [2025-03-21 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733181', 'tblTempUsageDetail_20' ) start [2025-03-21 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733181', 'tblTempUsageDetail_20' ) end [2025-03-21 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:18:22] Production.INFO: ==14716== Releasing lock... [2025-03-21 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:18:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-21 22:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:19:04 [end_date_ymd] => 2025-03-21 22:19:04 [RateCDR] => 1 ) [2025-03-21 22:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 19:19:04' and `end` < '2025-03-21 22:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 22:19:17] Production.INFO: count ==2099 [2025-03-21 22:19:17] Production.ERROR: pbx CDR StartTime 2025-03-21 19:19:04 - End Time 2025-03-21 22:19:04 [2025-03-21 22:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733186', 'tblTempUsageDetail_20' ) start [2025-03-21 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733186', 'tblTempUsageDetail_20' ) end [2025-03-21 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733186', 'tblTempVendorCDR_20' ) start [2025-03-21 22:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733186', 'tblTempVendorCDR_20' ) end [2025-03-21 22:19:17] Production.INFO: ProcessCDR(1,14733186,1,1,2) [2025-03-21 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733186', 'tblTempUsageDetail_20' ) start [2025-03-21 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733186', 'tblTempUsageDetail_20' ) end [2025-03-21 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:19:21] Production.INFO: ==14791== Releasing lock... [2025-03-21 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:19:21] Production.INFO: 43.5 MB #Memory Used# [2025-03-21 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:20:05 [end_date_ymd] => 2025-03-21 22:20:05 [RateCDR] => 1 ) [2025-03-21 22:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 19:20:05' and `end` < '2025-03-21 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 22:20:18] Production.INFO: count ==2091 [2025-03-21 22:20:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:20:05 - End Time 2025-03-21 22:20:05 [2025-03-21 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733192', 'tblTempUsageDetail_20' ) start [2025-03-21 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733192', 'tblTempUsageDetail_20' ) end [2025-03-21 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733192', 'tblTempVendorCDR_20' ) start [2025-03-21 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733192', 'tblTempVendorCDR_20' ) end [2025-03-21 22:20:19] Production.INFO: ProcessCDR(1,14733192,1,1,2) [2025-03-21 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733192', 'tblTempUsageDetail_20' ) start [2025-03-21 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733192', 'tblTempUsageDetail_20' ) end [2025-03-21 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:20:22] Production.INFO: ==14863== Releasing lock... [2025-03-21 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:20:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-21 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:21:04 [end_date_ymd] => 2025-03-21 22:21:04 [RateCDR] => 1 ) [2025-03-21 22:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 19:21:04' and `end` < '2025-03-21 22:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 22:21:17] Production.INFO: count ==2008 [2025-03-21 22:21:17] Production.ERROR: pbx CDR StartTime 2025-03-21 19:21:04 - End Time 2025-03-21 22:21:04 [2025-03-21 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733197', 'tblTempUsageDetail_20' ) start [2025-03-21 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733197', 'tblTempUsageDetail_20' ) end [2025-03-21 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733197', 'tblTempVendorCDR_20' ) start [2025-03-21 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733197', 'tblTempVendorCDR_20' ) end [2025-03-21 22:21:17] Production.INFO: ProcessCDR(1,14733197,1,1,2) [2025-03-21 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733197', 'tblTempUsageDetail_20' ) start [2025-03-21 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733197', 'tblTempUsageDetail_20' ) end [2025-03-21 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:21:21] Production.INFO: ==14936== Releasing lock... [2025-03-21 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:21:21] Production.INFO: 43 MB #Memory Used# [2025-03-21 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:22:05 [end_date_ymd] => 2025-03-21 22:22:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:22:05' and `end` < '2025-03-21 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-21 22:22:18] Production.INFO: count ==2008 [2025-03-21 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:22:05 - End Time 2025-03-21 22:22:05 [2025-03-21 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733202', 'tblTempUsageDetail_20' ) start [2025-03-21 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733202', 'tblTempUsageDetail_20' ) end [2025-03-21 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733202', 'tblTempVendorCDR_20' ) start [2025-03-21 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733202', 'tblTempVendorCDR_20' ) end [2025-03-21 22:22:18] Production.INFO: ProcessCDR(1,14733202,1,1,2) [2025-03-21 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733202', 'tblTempUsageDetail_20' ) start [2025-03-21 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733202', 'tblTempUsageDetail_20' ) end [2025-03-21 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:22:22] Production.INFO: ==15010== Releasing lock... [2025-03-21 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:22:22] Production.INFO: 43 MB #Memory Used# [2025-03-21 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:23:06 [end_date_ymd] => 2025-03-21 22:23:06 [RateCDR] => 1 ) [2025-03-21 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-21 19:23:06' and `end` < '2025-03-21 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-21 22:23:18] Production.INFO: count ==2002 [2025-03-21 22:23:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:23:06 - End Time 2025-03-21 22:23:06 [2025-03-21 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733207', 'tblTempUsageDetail_20' ) start [2025-03-21 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733207', 'tblTempUsageDetail_20' ) end [2025-03-21 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733207', 'tblTempVendorCDR_20' ) start [2025-03-21 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733207', 'tblTempVendorCDR_20' ) end [2025-03-21 22:23:19] Production.INFO: ProcessCDR(1,14733207,1,1,2) [2025-03-21 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733207', 'tblTempUsageDetail_20' ) start [2025-03-21 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733207', 'tblTempUsageDetail_20' ) end [2025-03-21 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:23:22] Production.INFO: ==15084== Releasing lock... [2025-03-21 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:23:22] Production.INFO: 43 MB #Memory Used# [2025-03-21 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:24:05 [end_date_ymd] => 2025-03-21 22:24:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:24:05' and `end` < '2025-03-21 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-21 22:24:17] Production.INFO: count ==1999 [2025-03-21 22:24:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:24:05 - End Time 2025-03-21 22:24:05 [2025-03-21 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733212', 'tblTempUsageDetail_20' ) start [2025-03-21 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733212', 'tblTempUsageDetail_20' ) end [2025-03-21 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733212', 'tblTempVendorCDR_20' ) start [2025-03-21 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733212', 'tblTempVendorCDR_20' ) end [2025-03-21 22:24:18] Production.INFO: ProcessCDR(1,14733212,1,1,2) [2025-03-21 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733212', 'tblTempUsageDetail_20' ) start [2025-03-21 22:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733212', 'tblTempUsageDetail_20' ) end [2025-03-21 22:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:24:23] Production.INFO: ==15155== Releasing lock... [2025-03-21 22:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:24:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-21 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:25:05 [end_date_ymd] => 2025-03-21 22:25:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:25:05' and `end` < '2025-03-21 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-21 22:25:18] Production.INFO: count ==1998 [2025-03-21 22:25:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:25:05 - End Time 2025-03-21 22:25:05 [2025-03-21 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733217', 'tblTempUsageDetail_20' ) start [2025-03-21 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733217', 'tblTempUsageDetail_20' ) end [2025-03-21 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733217', 'tblTempVendorCDR_20' ) start [2025-03-21 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733217', 'tblTempVendorCDR_20' ) end [2025-03-21 22:25:19] Production.INFO: ProcessCDR(1,14733217,1,1,2) [2025-03-21 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733217', 'tblTempUsageDetail_20' ) start [2025-03-21 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733217', 'tblTempUsageDetail_20' ) end [2025-03-21 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:25:22] Production.INFO: ==15230== Releasing lock... [2025-03-21 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:25:22] Production.INFO: 43 MB #Memory Used# [2025-03-21 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:26:05 [end_date_ymd] => 2025-03-21 22:26:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:26:05' and `end` < '2025-03-21 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-21 22:26:18] Production.INFO: count ==2002 [2025-03-21 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:26:05 - End Time 2025-03-21 22:26:05 [2025-03-21 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733222', 'tblTempUsageDetail_20' ) start [2025-03-21 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733222', 'tblTempUsageDetail_20' ) end [2025-03-21 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733222', 'tblTempVendorCDR_20' ) start [2025-03-21 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733222', 'tblTempVendorCDR_20' ) end [2025-03-21 22:26:18] Production.INFO: ProcessCDR(1,14733222,1,1,2) [2025-03-21 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733222', 'tblTempUsageDetail_20' ) start [2025-03-21 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733222', 'tblTempUsageDetail_20' ) end [2025-03-21 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:26:22] Production.INFO: ==15303== Releasing lock... [2025-03-21 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:26:22] Production.INFO: 43 MB #Memory Used# [2025-03-21 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:27:05 [end_date_ymd] => 2025-03-21 22:27:05 [RateCDR] => 1 ) [2025-03-21 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 19:27:05' and `end` < '2025-03-21 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 22:27:18] Production.INFO: count ==1999 [2025-03-21 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:27:05 - End Time 2025-03-21 22:27:05 [2025-03-21 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733227', 'tblTempUsageDetail_20' ) start [2025-03-21 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733227', 'tblTempUsageDetail_20' ) end [2025-03-21 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733227', 'tblTempVendorCDR_20' ) start [2025-03-21 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733227', 'tblTempVendorCDR_20' ) end [2025-03-21 22:27:18] Production.INFO: ProcessCDR(1,14733227,1,1,2) [2025-03-21 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733227', 'tblTempUsageDetail_20' ) start [2025-03-21 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733227', 'tblTempUsageDetail_20' ) end [2025-03-21 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:27:22] Production.INFO: ==15379== Releasing lock... [2025-03-21 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:27:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-21 22:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:28:06 [end_date_ymd] => 2025-03-21 22:28:06 [RateCDR] => 1 ) [2025-03-21 22:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 19:28:06' and `end` < '2025-03-21 22:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 22:28:18] Production.INFO: count ==1999 [2025-03-21 22:28:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:28:06 - End Time 2025-03-21 22:28:06 [2025-03-21 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733232', 'tblTempUsageDetail_20' ) start [2025-03-21 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733232', 'tblTempUsageDetail_20' ) end [2025-03-21 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733232', 'tblTempVendorCDR_20' ) start [2025-03-21 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733232', 'tblTempVendorCDR_20' ) end [2025-03-21 22:28:19] Production.INFO: ProcessCDR(1,14733232,1,1,2) [2025-03-21 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733232', 'tblTempUsageDetail_20' ) start [2025-03-21 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733232', 'tblTempUsageDetail_20' ) end [2025-03-21 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:28:23] Production.INFO: ==15455== Releasing lock... [2025-03-21 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:28:23] Production.INFO: 43 MB #Memory Used# [2025-03-21 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:29:06 [end_date_ymd] => 2025-03-21 22:29:06 [RateCDR] => 1 ) [2025-03-21 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-21 19:29:06' and `end` < '2025-03-21 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-21 22:29:18] Production.INFO: count ==1993 [2025-03-21 22:29:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:29:06 - End Time 2025-03-21 22:29:06 [2025-03-21 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733237', 'tblTempUsageDetail_20' ) start [2025-03-21 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733237', 'tblTempUsageDetail_20' ) end [2025-03-21 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733237', 'tblTempVendorCDR_20' ) start [2025-03-21 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733237', 'tblTempVendorCDR_20' ) end [2025-03-21 22:29:19] Production.INFO: ProcessCDR(1,14733237,1,1,2) [2025-03-21 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733237', 'tblTempUsageDetail_20' ) start [2025-03-21 22:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733237', 'tblTempUsageDetail_20' ) end [2025-03-21 22:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:29:24] Production.INFO: ==15547== Releasing lock... [2025-03-21 22:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:29:24] Production.INFO: 43 MB #Memory Used# [2025-03-21 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:30:06 [end_date_ymd] => 2025-03-21 22:30:06 [RateCDR] => 1 ) [2025-03-21 22:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 19:30:06' and `end` < '2025-03-21 22:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 22:30:19] Production.INFO: count ==1983 [2025-03-21 22:30:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:30:06 - End Time 2025-03-21 22:30:06 [2025-03-21 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733243', 'tblTempUsageDetail_20' ) start [2025-03-21 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733243', 'tblTempUsageDetail_20' ) end [2025-03-21 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733243', 'tblTempVendorCDR_20' ) start [2025-03-21 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733243', 'tblTempVendorCDR_20' ) end [2025-03-21 22:30:19] Production.INFO: ProcessCDR(1,14733243,1,1,2) [2025-03-21 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733243', 'tblTempUsageDetail_20' ) start [2025-03-21 22:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733243', 'tblTempUsageDetail_20' ) end [2025-03-21 22:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:30:25] Production.INFO: ==15637== Releasing lock... [2025-03-21 22:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:30:25] Production.INFO: 43 MB #Memory Used# [2025-03-21 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:31:05 [end_date_ymd] => 2025-03-21 22:31:05 [RateCDR] => 1 ) [2025-03-21 22: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-21 19:31:05' and `end` < '2025-03-21 22: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-21 22:31:18] Production.INFO: count ==1900 [2025-03-21 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:31:05 - End Time 2025-03-21 22:31:05 [2025-03-21 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733248', 'tblTempUsageDetail_20' ) start [2025-03-21 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733248', 'tblTempUsageDetail_20' ) end [2025-03-21 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733248', 'tblTempVendorCDR_20' ) start [2025-03-21 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733248', 'tblTempVendorCDR_20' ) end [2025-03-21 22:31:18] Production.INFO: ProcessCDR(1,14733248,1,1,2) [2025-03-21 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733248', 'tblTempUsageDetail_20' ) start [2025-03-21 22:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733248', 'tblTempUsageDetail_20' ) end [2025-03-21 22:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:31:22] Production.INFO: ==15727== Releasing lock... [2025-03-21 22:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:31:22] Production.INFO: 42 MB #Memory Used# [2025-03-21 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:32:05 [end_date_ymd] => 2025-03-21 22:32:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:32:05' and `end` < '2025-03-21 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-21 22:32:18] Production.INFO: count ==1884 [2025-03-21 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:32:05 - End Time 2025-03-21 22:32:05 [2025-03-21 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733253', 'tblTempUsageDetail_20' ) start [2025-03-21 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733253', 'tblTempUsageDetail_20' ) end [2025-03-21 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733253', 'tblTempVendorCDR_20' ) start [2025-03-21 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733253', 'tblTempVendorCDR_20' ) end [2025-03-21 22:32:18] Production.INFO: ProcessCDR(1,14733253,1,1,2) [2025-03-21 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733253', 'tblTempUsageDetail_20' ) start [2025-03-21 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733253', 'tblTempUsageDetail_20' ) end [2025-03-21 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:32:22] Production.INFO: ==15816== Releasing lock... [2025-03-21 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:32:22] Production.INFO: 42 MB #Memory Used# [2025-03-21 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:33:06 [end_date_ymd] => 2025-03-21 22:33:06 [RateCDR] => 1 ) [2025-03-21 22: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-21 19:33:06' and `end` < '2025-03-21 22: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-21 22:33:18] Production.INFO: count ==1871 [2025-03-21 22:33:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:33:06 - End Time 2025-03-21 22:33:06 [2025-03-21 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733258', 'tblTempUsageDetail_20' ) start [2025-03-21 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733258', 'tblTempUsageDetail_20' ) end [2025-03-21 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733258', 'tblTempVendorCDR_20' ) start [2025-03-21 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733258', 'tblTempVendorCDR_20' ) end [2025-03-21 22:33:19] Production.INFO: ProcessCDR(1,14733258,1,1,2) [2025-03-21 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733258', 'tblTempUsageDetail_20' ) start [2025-03-21 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733258', 'tblTempUsageDetail_20' ) end [2025-03-21 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:33:22] Production.INFO: ==15900== Releasing lock... [2025-03-21 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:33:22] Production.INFO: 42 MB #Memory Used# [2025-03-21 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:34:05 [end_date_ymd] => 2025-03-21 22:34:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:34:05' and `end` < '2025-03-21 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-21 22:34:17] Production.INFO: count ==1865 [2025-03-21 22:34:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:34:05 - End Time 2025-03-21 22:34:05 [2025-03-21 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733263', 'tblTempUsageDetail_20' ) start [2025-03-21 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733263', 'tblTempUsageDetail_20' ) end [2025-03-21 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733263', 'tblTempVendorCDR_20' ) start [2025-03-21 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733263', 'tblTempVendorCDR_20' ) end [2025-03-21 22:34:18] Production.INFO: ProcessCDR(1,14733263,1,1,2) [2025-03-21 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733263', 'tblTempUsageDetail_20' ) start [2025-03-21 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733263', 'tblTempUsageDetail_20' ) end [2025-03-21 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:34:21] Production.INFO: ==16029== Releasing lock... [2025-03-21 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:34:21] Production.INFO: 42.25 MB #Memory Used# [2025-03-21 22:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:35:06 [end_date_ymd] => 2025-03-21 22:35:06 [RateCDR] => 1 ) [2025-03-21 22: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-21 19:35:06' and `end` < '2025-03-21 22: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-21 22:35:18] Production.INFO: count ==1853 [2025-03-21 22:35:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:35:06 - End Time 2025-03-21 22:35:06 [2025-03-21 22:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733268', 'tblTempUsageDetail_20' ) start [2025-03-21 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733268', 'tblTempUsageDetail_20' ) end [2025-03-21 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733268', 'tblTempVendorCDR_20' ) start [2025-03-21 22:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733268', 'tblTempVendorCDR_20' ) end [2025-03-21 22:35:19] Production.INFO: ProcessCDR(1,14733268,1,1,2) [2025-03-21 22:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733268', 'tblTempUsageDetail_20' ) start [2025-03-21 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733268', 'tblTempUsageDetail_20' ) end [2025-03-21 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:35:22] Production.INFO: ==16124== Releasing lock... [2025-03-21 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:35:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-21 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:36:05 [end_date_ymd] => 2025-03-21 22:36:05 [RateCDR] => 1 ) [2025-03-21 22:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 19:36:05' and `end` < '2025-03-21 22:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 22:36:17] Production.INFO: count ==1846 [2025-03-21 22:36:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:36:05 - End Time 2025-03-21 22:36:05 [2025-03-21 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733273', 'tblTempUsageDetail_20' ) start [2025-03-21 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733273', 'tblTempUsageDetail_20' ) end [2025-03-21 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733273', 'tblTempVendorCDR_20' ) start [2025-03-21 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733273', 'tblTempVendorCDR_20' ) end [2025-03-21 22:36:18] Production.INFO: ProcessCDR(1,14733273,1,1,2) [2025-03-21 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733273', 'tblTempUsageDetail_20' ) start [2025-03-21 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733273', 'tblTempUsageDetail_20' ) end [2025-03-21 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:36:21] Production.INFO: ==16210== Releasing lock... [2025-03-21 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:36:21] Production.INFO: 41.75 MB #Memory Used# [2025-03-21 22:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:37:06 [end_date_ymd] => 2025-03-21 22:37:06 [RateCDR] => 1 ) [2025-03-21 22: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-21 19:37:06' and `end` < '2025-03-21 22: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-21 22:37:18] Production.INFO: count ==1849 [2025-03-21 22:37:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:37:06 - End Time 2025-03-21 22:37:06 [2025-03-21 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733278', 'tblTempUsageDetail_20' ) start [2025-03-21 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733278', 'tblTempUsageDetail_20' ) end [2025-03-21 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733278', 'tblTempVendorCDR_20' ) start [2025-03-21 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733278', 'tblTempVendorCDR_20' ) end [2025-03-21 22:37:18] Production.INFO: ProcessCDR(1,14733278,1,1,2) [2025-03-21 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733278', 'tblTempUsageDetail_20' ) start [2025-03-21 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733278', 'tblTempUsageDetail_20' ) end [2025-03-21 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:37:22] Production.INFO: ==16296== Releasing lock... [2025-03-21 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:37:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-21 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:38:06 [end_date_ymd] => 2025-03-21 22:38:06 [RateCDR] => 1 ) [2025-03-21 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-21 19:38:06' and `end` < '2025-03-21 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-21 22:38:18] Production.INFO: count ==1851 [2025-03-21 22:38:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:38:06 - End Time 2025-03-21 22:38:06 [2025-03-21 22:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733283', 'tblTempUsageDetail_20' ) start [2025-03-21 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733283', 'tblTempUsageDetail_20' ) end [2025-03-21 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733283', 'tblTempVendorCDR_20' ) start [2025-03-21 22:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733283', 'tblTempVendorCDR_20' ) end [2025-03-21 22:38:19] Production.INFO: ProcessCDR(1,14733283,1,1,2) [2025-03-21 22:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733283', 'tblTempUsageDetail_20' ) start [2025-03-21 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733283', 'tblTempUsageDetail_20' ) end [2025-03-21 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:38:22] Production.INFO: ==16386== Releasing lock... [2025-03-21 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:38:22] Production.INFO: 42 MB #Memory Used# [2025-03-21 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:39:05 [end_date_ymd] => 2025-03-21 22:39:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:39:05' and `end` < '2025-03-21 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-21 22:39:17] Production.INFO: count ==1847 [2025-03-21 22:39:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:39:05 - End Time 2025-03-21 22:39:05 [2025-03-21 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733288', 'tblTempUsageDetail_20' ) start [2025-03-21 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733288', 'tblTempUsageDetail_20' ) end [2025-03-21 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733288', 'tblTempVendorCDR_20' ) start [2025-03-21 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733288', 'tblTempVendorCDR_20' ) end [2025-03-21 22:39:18] Production.INFO: ProcessCDR(1,14733288,1,1,2) [2025-03-21 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733288', 'tblTempUsageDetail_20' ) start [2025-03-21 22:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733288', 'tblTempUsageDetail_20' ) end [2025-03-21 22:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:39:22] Production.INFO: ==16477== Releasing lock... [2025-03-21 22:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:39:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-21 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:40:06 [end_date_ymd] => 2025-03-21 22:40:06 [RateCDR] => 1 ) [2025-03-21 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-21 19:40:06' and `end` < '2025-03-21 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-21 22:40:18] Production.INFO: count ==1850 [2025-03-21 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:40:06 - End Time 2025-03-21 22:40:06 [2025-03-21 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733294', 'tblTempUsageDetail_20' ) start [2025-03-21 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733294', 'tblTempUsageDetail_20' ) end [2025-03-21 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733294', 'tblTempVendorCDR_20' ) start [2025-03-21 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733294', 'tblTempVendorCDR_20' ) end [2025-03-21 22:40:19] Production.INFO: ProcessCDR(1,14733294,1,1,2) [2025-03-21 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733294', 'tblTempUsageDetail_20' ) start [2025-03-21 22:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733294', 'tblTempUsageDetail_20' ) end [2025-03-21 22:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:40:24] Production.INFO: ==16576== Releasing lock... [2025-03-21 22:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:40:24] Production.INFO: 42 MB #Memory Used# [2025-03-21 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:41:05 [end_date_ymd] => 2025-03-21 22:41:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:41:05' and `end` < '2025-03-21 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-21 22:41:18] Production.INFO: count ==1797 [2025-03-21 22:41:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:41:05 - End Time 2025-03-21 22:41:05 [2025-03-21 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733299', 'tblTempUsageDetail_20' ) start [2025-03-21 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733299', 'tblTempUsageDetail_20' ) end [2025-03-21 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733299', 'tblTempVendorCDR_20' ) start [2025-03-21 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733299', 'tblTempVendorCDR_20' ) end [2025-03-21 22:41:18] Production.INFO: ProcessCDR(1,14733299,1,1,2) [2025-03-21 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733299', 'tblTempUsageDetail_20' ) start [2025-03-21 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733299', 'tblTempUsageDetail_20' ) end [2025-03-21 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:41:22] Production.INFO: ==16676== Releasing lock... [2025-03-21 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:41:22] Production.INFO: 41.75 MB #Memory Used# [2025-03-21 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:42:05 [end_date_ymd] => 2025-03-21 22:42:05 [RateCDR] => 1 ) [2025-03-21 22: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-21 19:42:05' and `end` < '2025-03-21 22: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-21 22:42:18] Production.INFO: count ==1787 [2025-03-21 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:42:05 - End Time 2025-03-21 22:42:05 [2025-03-21 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733304', 'tblTempUsageDetail_20' ) start [2025-03-21 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733304', 'tblTempUsageDetail_20' ) end [2025-03-21 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733304', 'tblTempVendorCDR_20' ) start [2025-03-21 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733304', 'tblTempVendorCDR_20' ) end [2025-03-21 22:42:18] Production.INFO: ProcessCDR(1,14733304,1,1,2) [2025-03-21 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733304', 'tblTempUsageDetail_20' ) start [2025-03-21 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733304', 'tblTempUsageDetail_20' ) end [2025-03-21 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:42:22] Production.INFO: ==16764== Releasing lock... [2025-03-21 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:42:22] Production.INFO: 42 MB #Memory Used# [2025-03-21 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:43:05 [end_date_ymd] => 2025-03-21 22:43:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:43:05' and `end` < '2025-03-21 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-21 22:43:18] Production.INFO: count ==1779 [2025-03-21 22:43:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:43:05 - End Time 2025-03-21 22:43:05 [2025-03-21 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733309', 'tblTempUsageDetail_20' ) start [2025-03-21 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733309', 'tblTempUsageDetail_20' ) end [2025-03-21 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733309', 'tblTempVendorCDR_20' ) start [2025-03-21 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733309', 'tblTempVendorCDR_20' ) end [2025-03-21 22:43:18] Production.INFO: ProcessCDR(1,14733309,1,1,2) [2025-03-21 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733309', 'tblTempUsageDetail_20' ) start [2025-03-21 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733309', 'tblTempUsageDetail_20' ) end [2025-03-21 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:43:22] Production.INFO: ==16851== Releasing lock... [2025-03-21 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:43:22] Production.INFO: 41 MB #Memory Used# [2025-03-21 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:44:06 [end_date_ymd] => 2025-03-21 22:44:06 [RateCDR] => 1 ) [2025-03-21 22:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 19:44:06' and `end` < '2025-03-21 22:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 22:44:18] Production.INFO: count ==1774 [2025-03-21 22:44:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:44:06 - End Time 2025-03-21 22:44:06 [2025-03-21 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733314', 'tblTempUsageDetail_20' ) start [2025-03-21 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733314', 'tblTempUsageDetail_20' ) end [2025-03-21 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733314', 'tblTempVendorCDR_20' ) start [2025-03-21 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733314', 'tblTempVendorCDR_20' ) end [2025-03-21 22:44:19] Production.INFO: ProcessCDR(1,14733314,1,1,2) [2025-03-21 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733314', 'tblTempUsageDetail_20' ) start [2025-03-21 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733314', 'tblTempUsageDetail_20' ) end [2025-03-21 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:44:23] Production.INFO: ==16939== Releasing lock... [2025-03-21 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:44:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-21 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:45:05 [end_date_ymd] => 2025-03-21 22:45:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:45:05' and `end` < '2025-03-21 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-21 22:45:17] Production.INFO: count ==1777 [2025-03-21 22:45:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:45:05 - End Time 2025-03-21 22:45:05 [2025-03-21 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733319', 'tblTempUsageDetail_20' ) start [2025-03-21 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733319', 'tblTempUsageDetail_20' ) end [2025-03-21 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733319', 'tblTempVendorCDR_20' ) start [2025-03-21 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733319', 'tblTempVendorCDR_20' ) end [2025-03-21 22:45:18] Production.INFO: ProcessCDR(1,14733319,1,1,2) [2025-03-21 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733319', 'tblTempUsageDetail_20' ) start [2025-03-21 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733319', 'tblTempUsageDetail_20' ) end [2025-03-21 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:45:22] Production.INFO: ==17031== Releasing lock... [2025-03-21 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:45:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-21 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:46:05 [end_date_ymd] => 2025-03-21 22:46:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:46:05' and `end` < '2025-03-21 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-21 22:46:18] Production.INFO: count ==1779 [2025-03-21 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:46:05 - End Time 2025-03-21 22:46:05 [2025-03-21 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733324', 'tblTempUsageDetail_20' ) start [2025-03-21 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733324', 'tblTempUsageDetail_20' ) end [2025-03-21 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733324', 'tblTempVendorCDR_20' ) start [2025-03-21 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733324', 'tblTempVendorCDR_20' ) end [2025-03-21 22:46:18] Production.INFO: ProcessCDR(1,14733324,1,1,2) [2025-03-21 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733324', 'tblTempUsageDetail_20' ) start [2025-03-21 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733324', 'tblTempUsageDetail_20' ) end [2025-03-21 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:46:22] Production.INFO: ==17117== Releasing lock... [2025-03-21 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:46:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-21 22:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:47:06 [end_date_ymd] => 2025-03-21 22:47:06 [RateCDR] => 1 ) [2025-03-21 22: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-21 19:47:06' and `end` < '2025-03-21 22: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-21 22:47:18] Production.INFO: count ==1771 [2025-03-21 22:47:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:47:06 - End Time 2025-03-21 22:47:06 [2025-03-21 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733329', 'tblTempUsageDetail_20' ) start [2025-03-21 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733329', 'tblTempUsageDetail_20' ) end [2025-03-21 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733329', 'tblTempVendorCDR_20' ) start [2025-03-21 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733329', 'tblTempVendorCDR_20' ) end [2025-03-21 22:47:18] Production.INFO: ProcessCDR(1,14733329,1,1,2) [2025-03-21 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733329', 'tblTempUsageDetail_20' ) start [2025-03-21 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733329', 'tblTempUsageDetail_20' ) end [2025-03-21 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:47:22] Production.INFO: ==17205== Releasing lock... [2025-03-21 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:47:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-21 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:48:06 [end_date_ymd] => 2025-03-21 22:48:06 [RateCDR] => 1 ) [2025-03-21 22:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 19:48:06' and `end` < '2025-03-21 22:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 22:48:18] Production.INFO: count ==1775 [2025-03-21 22:48:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:48:06 - End Time 2025-03-21 22:48:06 [2025-03-21 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733334', 'tblTempUsageDetail_20' ) start [2025-03-21 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733334', 'tblTempUsageDetail_20' ) end [2025-03-21 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733334', 'tblTempVendorCDR_20' ) start [2025-03-21 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733334', 'tblTempVendorCDR_20' ) end [2025-03-21 22:48:19] Production.INFO: ProcessCDR(1,14733334,1,1,2) [2025-03-21 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733334', 'tblTempUsageDetail_20' ) start [2025-03-21 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733334', 'tblTempUsageDetail_20' ) end [2025-03-21 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:48:22] Production.INFO: ==17294== Releasing lock... [2025-03-21 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:48:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-21 22:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:49:06 [end_date_ymd] => 2025-03-21 22:49:06 [RateCDR] => 1 ) [2025-03-21 22: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-21 19:49:06' and `end` < '2025-03-21 22: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-21 22:49:18] Production.INFO: count ==1777 [2025-03-21 22:49:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:49:06 - End Time 2025-03-21 22:49:06 [2025-03-21 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733339', 'tblTempUsageDetail_20' ) start [2025-03-21 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733339', 'tblTempUsageDetail_20' ) end [2025-03-21 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733339', 'tblTempVendorCDR_20' ) start [2025-03-21 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733339', 'tblTempVendorCDR_20' ) end [2025-03-21 22:49:18] Production.INFO: ProcessCDR(1,14733339,1,1,2) [2025-03-21 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733339', 'tblTempUsageDetail_20' ) start [2025-03-21 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733339', 'tblTempUsageDetail_20' ) end [2025-03-21 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:49:22] Production.INFO: ==17423== Releasing lock... [2025-03-21 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:49:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-21 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:50:06 [end_date_ymd] => 2025-03-21 22:50:06 [RateCDR] => 1 ) [2025-03-21 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-21 19:50:06' and `end` < '2025-03-21 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-21 22:50:19] Production.INFO: count ==1779 [2025-03-21 22:50:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:50:06 - End Time 2025-03-21 22:50:06 [2025-03-21 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733345', 'tblTempUsageDetail_20' ) start [2025-03-21 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733345', 'tblTempUsageDetail_20' ) end [2025-03-21 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733345', 'tblTempVendorCDR_20' ) start [2025-03-21 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733345', 'tblTempVendorCDR_20' ) end [2025-03-21 22:50:19] Production.INFO: ProcessCDR(1,14733345,1,1,2) [2025-03-21 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733345', 'tblTempUsageDetail_20' ) start [2025-03-21 22:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733345', 'tblTempUsageDetail_20' ) end [2025-03-21 22:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:50:23] Production.INFO: ==17518== Releasing lock... [2025-03-21 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:50:23] Production.INFO: 41 MB #Memory Used# [2025-03-21 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:51:05 [end_date_ymd] => 2025-03-21 22:51:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:51:05' and `end` < '2025-03-21 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-21 22:51:17] Production.INFO: count ==1781 [2025-03-21 22:51:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:51:05 - End Time 2025-03-21 22:51:05 [2025-03-21 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733350', 'tblTempUsageDetail_20' ) start [2025-03-21 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733350', 'tblTempUsageDetail_20' ) end [2025-03-21 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733350', 'tblTempVendorCDR_20' ) start [2025-03-21 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733350', 'tblTempVendorCDR_20' ) end [2025-03-21 22:51:18] Production.INFO: ProcessCDR(1,14733350,1,1,2) [2025-03-21 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733350', 'tblTempUsageDetail_20' ) start [2025-03-21 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733350', 'tblTempUsageDetail_20' ) end [2025-03-21 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:51:22] Production.INFO: ==17611== Releasing lock... [2025-03-21 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:51:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-21 22:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:52:06 [end_date_ymd] => 2025-03-21 22:52:06 [RateCDR] => 1 ) [2025-03-21 22: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-21 19:52:06' and `end` < '2025-03-21 22: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-21 22:52:18] Production.INFO: count ==1785 [2025-03-21 22:52:19] Production.ERROR: pbx CDR StartTime 2025-03-21 19:52:06 - End Time 2025-03-21 22:52:06 [2025-03-21 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733355', 'tblTempUsageDetail_20' ) start [2025-03-21 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733355', 'tblTempUsageDetail_20' ) end [2025-03-21 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733355', 'tblTempVendorCDR_20' ) start [2025-03-21 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733355', 'tblTempVendorCDR_20' ) end [2025-03-21 22:52:19] Production.INFO: ProcessCDR(1,14733355,1,1,2) [2025-03-21 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733355', 'tblTempUsageDetail_20' ) start [2025-03-21 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733355', 'tblTempUsageDetail_20' ) end [2025-03-21 22:52:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:52:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:52:23] Production.INFO: ==17715== Releasing lock... [2025-03-21 22:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:52:23] Production.INFO: 41.25 MB #Memory Used# [2025-03-21 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:53:05 [end_date_ymd] => 2025-03-21 22:53:05 [RateCDR] => 1 ) [2025-03-21 22: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-21 19:53:05' and `end` < '2025-03-21 22: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-21 22:53:18] Production.INFO: count ==1780 [2025-03-21 22:53:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:53:05 - End Time 2025-03-21 22:53:05 [2025-03-21 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733360', 'tblTempUsageDetail_20' ) start [2025-03-21 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733360', 'tblTempUsageDetail_20' ) end [2025-03-21 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733360', 'tblTempVendorCDR_20' ) start [2025-03-21 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733360', 'tblTempVendorCDR_20' ) end [2025-03-21 22:53:18] Production.INFO: ProcessCDR(1,14733360,1,1,2) [2025-03-21 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733360', 'tblTempUsageDetail_20' ) start [2025-03-21 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733360', 'tblTempUsageDetail_20' ) end [2025-03-21 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:53:22] Production.INFO: ==17834== Releasing lock... [2025-03-21 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:53:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-21 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:54:05 [end_date_ymd] => 2025-03-21 22:54:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:54:05' and `end` < '2025-03-21 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-21 22:54:18] Production.INFO: count ==1779 [2025-03-21 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:54:05 - End Time 2025-03-21 22:54:05 [2025-03-21 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733365', 'tblTempUsageDetail_20' ) start [2025-03-21 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733365', 'tblTempUsageDetail_20' ) end [2025-03-21 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733365', 'tblTempVendorCDR_20' ) start [2025-03-21 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733365', 'tblTempVendorCDR_20' ) end [2025-03-21 22:54:18] Production.INFO: ProcessCDR(1,14733365,1,1,2) [2025-03-21 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733365', 'tblTempUsageDetail_20' ) start [2025-03-21 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733365', 'tblTempUsageDetail_20' ) end [2025-03-21 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:54:22] Production.INFO: ==17952== Releasing lock... [2025-03-21 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:54:22] Production.INFO: 41 MB #Memory Used# [2025-03-21 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:55:05 [end_date_ymd] => 2025-03-21 22:55:05 [RateCDR] => 1 ) [2025-03-21 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 19:55:05' and `end` < '2025-03-21 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 22:55:17] Production.INFO: count ==1779 [2025-03-21 22:55:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:55:05 - End Time 2025-03-21 22:55:05 [2025-03-21 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733370', 'tblTempUsageDetail_20' ) start [2025-03-21 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733370', 'tblTempUsageDetail_20' ) end [2025-03-21 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733370', 'tblTempVendorCDR_20' ) start [2025-03-21 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733370', 'tblTempVendorCDR_20' ) end [2025-03-21 22:55:18] Production.INFO: ProcessCDR(1,14733370,1,1,2) [2025-03-21 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733370', 'tblTempUsageDetail_20' ) start [2025-03-21 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733370', 'tblTempUsageDetail_20' ) end [2025-03-21 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:55:21] Production.INFO: ==18067== Releasing lock... [2025-03-21 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:55:21] Production.INFO: 41 MB #Memory Used# [2025-03-21 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:56:05 [end_date_ymd] => 2025-03-21 22:56:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:56:05' and `end` < '2025-03-21 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-21 22:56:18] Production.INFO: count ==1778 [2025-03-21 22:56:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:56:05 - End Time 2025-03-21 22:56:05 [2025-03-21 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733375', 'tblTempUsageDetail_20' ) start [2025-03-21 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733375', 'tblTempUsageDetail_20' ) end [2025-03-21 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733375', 'tblTempVendorCDR_20' ) start [2025-03-21 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733375', 'tblTempVendorCDR_20' ) end [2025-03-21 22:56:18] Production.INFO: ProcessCDR(1,14733375,1,1,2) [2025-03-21 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733375', 'tblTempUsageDetail_20' ) start [2025-03-21 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733375', 'tblTempUsageDetail_20' ) end [2025-03-21 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:56:22] Production.INFO: ==18185== Releasing lock... [2025-03-21 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:56:22] Production.INFO: 41 MB #Memory Used# [2025-03-21 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:57:05 [end_date_ymd] => 2025-03-21 22:57:05 [RateCDR] => 1 ) [2025-03-21 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 19:57:05' and `end` < '2025-03-21 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 22:57:17] Production.INFO: count ==1776 [2025-03-21 22:57:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:57:05 - End Time 2025-03-21 22:57:05 [2025-03-21 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733380', 'tblTempUsageDetail_20' ) start [2025-03-21 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733380', 'tblTempUsageDetail_20' ) end [2025-03-21 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733380', 'tblTempVendorCDR_20' ) start [2025-03-21 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733380', 'tblTempVendorCDR_20' ) end [2025-03-21 22:57:18] Production.INFO: ProcessCDR(1,14733380,1,1,2) [2025-03-21 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733380', 'tblTempUsageDetail_20' ) start [2025-03-21 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733380', 'tblTempUsageDetail_20' ) end [2025-03-21 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:57:21] Production.INFO: ==18303== Releasing lock... [2025-03-21 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:57:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-21 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:58:05 [end_date_ymd] => 2025-03-21 22:58:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:58:05' and `end` < '2025-03-21 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-21 22:58:18] Production.INFO: count ==1774 [2025-03-21 22:58:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:58:05 - End Time 2025-03-21 22:58:05 [2025-03-21 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733385', 'tblTempUsageDetail_20' ) start [2025-03-21 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733385', 'tblTempUsageDetail_20' ) end [2025-03-21 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733385', 'tblTempVendorCDR_20' ) start [2025-03-21 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733385', 'tblTempVendorCDR_20' ) end [2025-03-21 22:58:18] Production.INFO: ProcessCDR(1,14733385,1,1,2) [2025-03-21 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733385', 'tblTempUsageDetail_20' ) start [2025-03-21 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733385', 'tblTempUsageDetail_20' ) end [2025-03-21 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:58:22] Production.INFO: ==18420== Releasing lock... [2025-03-21 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:58:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-21 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 19:59:05 [end_date_ymd] => 2025-03-21 22:59:05 [RateCDR] => 1 ) [2025-03-21 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-21 19:59:05' and `end` < '2025-03-21 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-21 22:59:18] Production.INFO: count ==1770 [2025-03-21 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-21 19:59:05 - End Time 2025-03-21 22:59:05 [2025-03-21 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733390', 'tblTempUsageDetail_20' ) start [2025-03-21 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733390', 'tblTempUsageDetail_20' ) end [2025-03-21 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733390', 'tblTempVendorCDR_20' ) start [2025-03-21 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733390', 'tblTempVendorCDR_20' ) end [2025-03-21 22:59:18] Production.INFO: ProcessCDR(1,14733390,1,1,2) [2025-03-21 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733390', 'tblTempUsageDetail_20' ) start [2025-03-21 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733390', 'tblTempUsageDetail_20' ) end [2025-03-21 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 22:59:21] Production.INFO: ==18534== Releasing lock... [2025-03-21 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 22:59:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-21 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:00:07 [end_date_ymd] => 2025-03-21 23:00:07 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:00:07' and `end` < '2025-03-21 23: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-21 23:00:19] Production.INFO: count ==1762 [2025-03-21 23:00:20] Production.ERROR: pbx CDR StartTime 2025-03-21 20:00:07 - End Time 2025-03-21 23:00:07 [2025-03-21 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733396', 'tblTempUsageDetail_20' ) start [2025-03-21 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733396', 'tblTempUsageDetail_20' ) end [2025-03-21 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733396', 'tblTempVendorCDR_20' ) start [2025-03-21 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733396', 'tblTempVendorCDR_20' ) end [2025-03-21 23:00:20] Production.INFO: ProcessCDR(1,14733396,1,1,2) [2025-03-21 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733396', 'tblTempUsageDetail_20' ) start [2025-03-21 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733396', 'tblTempUsageDetail_20' ) end [2025-03-21 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:00:23] Production.INFO: ==18656== Releasing lock... [2025-03-21 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:00:23] Production.INFO: 41 MB #Memory Used# [2025-03-21 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:01:05 [end_date_ymd] => 2025-03-21 23:01:05 [RateCDR] => 1 ) [2025-03-21 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 20:01:05' and `end` < '2025-03-21 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 23:01:17] Production.INFO: count ==1674 [2025-03-21 23:01:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:01:05 - End Time 2025-03-21 23:01:05 [2025-03-21 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733401', 'tblTempUsageDetail_20' ) start [2025-03-21 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733401', 'tblTempUsageDetail_20' ) end [2025-03-21 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733401', 'tblTempVendorCDR_20' ) start [2025-03-21 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733401', 'tblTempVendorCDR_20' ) end [2025-03-21 23:01:18] Production.INFO: ProcessCDR(1,14733401,1,1,2) [2025-03-21 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733401', 'tblTempUsageDetail_20' ) start [2025-03-21 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733401', 'tblTempUsageDetail_20' ) end [2025-03-21 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:01:21] Production.INFO: ==18866== Releasing lock... [2025-03-21 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:01:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-21 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:02:06 [end_date_ymd] => 2025-03-21 23:02:06 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:02:06' and `end` < '2025-03-21 23: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-21 23:02:18] Production.INFO: count ==1672 [2025-03-21 23:02:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:02:06 - End Time 2025-03-21 23:02:06 [2025-03-21 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733406', 'tblTempUsageDetail_20' ) start [2025-03-21 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733406', 'tblTempUsageDetail_20' ) end [2025-03-21 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733406', 'tblTempVendorCDR_20' ) start [2025-03-21 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733406', 'tblTempVendorCDR_20' ) end [2025-03-21 23:02:18] Production.INFO: ProcessCDR(1,14733406,1,1,2) [2025-03-21 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733406', 'tblTempUsageDetail_20' ) start [2025-03-21 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733406', 'tblTempUsageDetail_20' ) end [2025-03-21 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:02:22] Production.INFO: ==18982== Releasing lock... [2025-03-21 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:02:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-21 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:03:05 [end_date_ymd] => 2025-03-21 23:03:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:03:05' and `end` < '2025-03-21 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-21 23:03:18] Production.INFO: count ==1665 [2025-03-21 23:03:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:03:05 - End Time 2025-03-21 23:03:05 [2025-03-21 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733411', 'tblTempUsageDetail_20' ) start [2025-03-21 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733411', 'tblTempUsageDetail_20' ) end [2025-03-21 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733411', 'tblTempVendorCDR_20' ) start [2025-03-21 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733411', 'tblTempVendorCDR_20' ) end [2025-03-21 23:03:18] Production.INFO: ProcessCDR(1,14733411,1,1,2) [2025-03-21 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733411', 'tblTempUsageDetail_20' ) start [2025-03-21 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733411', 'tblTempUsageDetail_20' ) end [2025-03-21 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:03:22] Production.INFO: ==19098== Releasing lock... [2025-03-21 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:03:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-21 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:04:05 [end_date_ymd] => 2025-03-21 23:04:05 [RateCDR] => 1 ) [2025-03-21 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 20:04:05' and `end` < '2025-03-21 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 23:04:18] Production.INFO: count ==1658 [2025-03-21 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:04:05 - End Time 2025-03-21 23:04:05 [2025-03-21 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733416', 'tblTempUsageDetail_20' ) start [2025-03-21 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733416', 'tblTempUsageDetail_20' ) end [2025-03-21 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733416', 'tblTempVendorCDR_20' ) start [2025-03-21 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733416', 'tblTempVendorCDR_20' ) end [2025-03-21 23:04:18] Production.INFO: ProcessCDR(1,14733416,1,1,2) [2025-03-21 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733416', 'tblTempUsageDetail_20' ) start [2025-03-21 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733416', 'tblTempUsageDetail_20' ) end [2025-03-21 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:04:22] Production.INFO: ==19258== Releasing lock... [2025-03-21 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:04:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-21 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:05:05 [end_date_ymd] => 2025-03-21 23:05:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:05:05' and `end` < '2025-03-21 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-21 23:05:17] Production.INFO: count ==1658 [2025-03-21 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:05:05 - End Time 2025-03-21 23:05:05 [2025-03-21 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733421', 'tblTempUsageDetail_20' ) start [2025-03-21 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733421', 'tblTempUsageDetail_20' ) end [2025-03-21 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733421', 'tblTempVendorCDR_20' ) start [2025-03-21 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733421', 'tblTempVendorCDR_20' ) end [2025-03-21 23:05:18] Production.INFO: ProcessCDR(1,14733421,1,1,2) [2025-03-21 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733421', 'tblTempUsageDetail_20' ) start [2025-03-21 23:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733421', 'tblTempUsageDetail_20' ) end [2025-03-21 23:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:05:23] Production.INFO: ==19460== Releasing lock... [2025-03-21 23:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:05:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-21 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:06:05 [end_date_ymd] => 2025-03-21 23:06:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:06:05' and `end` < '2025-03-21 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-21 23:06:18] Production.INFO: count ==1658 [2025-03-21 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:06:05 - End Time 2025-03-21 23:06:05 [2025-03-21 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733426', 'tblTempUsageDetail_20' ) start [2025-03-21 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733426', 'tblTempUsageDetail_20' ) end [2025-03-21 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733426', 'tblTempVendorCDR_20' ) start [2025-03-21 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733426', 'tblTempVendorCDR_20' ) end [2025-03-21 23:06:18] Production.INFO: ProcessCDR(1,14733426,1,1,2) [2025-03-21 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733426', 'tblTempUsageDetail_20' ) start [2025-03-21 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733426', 'tblTempUsageDetail_20' ) end [2025-03-21 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:06:22] Production.INFO: ==19579== Releasing lock... [2025-03-21 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:06:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-21 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:07:05 [end_date_ymd] => 2025-03-21 23:07:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:07:05' and `end` < '2025-03-21 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-21 23:07:17] Production.INFO: count ==1651 [2025-03-21 23:07:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:07:05 - End Time 2025-03-21 23:07:05 [2025-03-21 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733431', 'tblTempUsageDetail_20' ) start [2025-03-21 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733431', 'tblTempUsageDetail_20' ) end [2025-03-21 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733431', 'tblTempVendorCDR_20' ) start [2025-03-21 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733431', 'tblTempVendorCDR_20' ) end [2025-03-21 23:07:18] Production.INFO: ProcessCDR(1,14733431,1,1,2) [2025-03-21 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733431', 'tblTempUsageDetail_20' ) start [2025-03-21 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733431', 'tblTempUsageDetail_20' ) end [2025-03-21 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:07:21] Production.INFO: ==19696== Releasing lock... [2025-03-21 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:07:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-21 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:08:05 [end_date_ymd] => 2025-03-21 23:08:05 [RateCDR] => 1 ) [2025-03-21 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 20:08:05' and `end` < '2025-03-21 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 23:08:18] Production.INFO: count ==1652 [2025-03-21 23:08:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:08:05 - End Time 2025-03-21 23:08:05 [2025-03-21 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733436', 'tblTempUsageDetail_20' ) start [2025-03-21 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733436', 'tblTempUsageDetail_20' ) end [2025-03-21 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733436', 'tblTempVendorCDR_20' ) start [2025-03-21 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733436', 'tblTempVendorCDR_20' ) end [2025-03-21 23:08:18] Production.INFO: ProcessCDR(1,14733436,1,1,2) [2025-03-21 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733436', 'tblTempUsageDetail_20' ) start [2025-03-21 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733436', 'tblTempUsageDetail_20' ) end [2025-03-21 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:08:22] Production.INFO: ==19894== Releasing lock... [2025-03-21 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:08:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-21 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:09:06 [end_date_ymd] => 2025-03-21 23:09:06 [RateCDR] => 1 ) [2025-03-21 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-21 20:09:06' and `end` < '2025-03-21 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-21 23:09:18] Production.INFO: count ==1651 [2025-03-21 23:09:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:09:06 - End Time 2025-03-21 23:09:06 [2025-03-21 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733441', 'tblTempUsageDetail_20' ) start [2025-03-21 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733441', 'tblTempUsageDetail_20' ) end [2025-03-21 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733441', 'tblTempVendorCDR_20' ) start [2025-03-21 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733441', 'tblTempVendorCDR_20' ) end [2025-03-21 23:09:19] Production.INFO: ProcessCDR(1,14733441,1,1,2) [2025-03-21 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733441', 'tblTempUsageDetail_20' ) start [2025-03-21 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733441', 'tblTempUsageDetail_20' ) end [2025-03-21 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:09:22] Production.INFO: ==20010== Releasing lock... [2025-03-21 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:09:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-21 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:10:05 [end_date_ymd] => 2025-03-21 23:10:05 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:10:05' and `end` < '2025-03-21 23: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-21 23:10:18] Production.INFO: count ==1649 [2025-03-21 23:10:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:10:05 - End Time 2025-03-21 23:10:05 [2025-03-21 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733446', 'tblTempUsageDetail_20' ) start [2025-03-21 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733446', 'tblTempUsageDetail_20' ) end [2025-03-21 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733446', 'tblTempVendorCDR_20' ) start [2025-03-21 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733446', 'tblTempVendorCDR_20' ) end [2025-03-21 23:10:18] Production.INFO: ProcessCDR(1,14733446,1,1,2) [2025-03-21 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733446', 'tblTempUsageDetail_20' ) start [2025-03-21 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733446', 'tblTempUsageDetail_20' ) end [2025-03-21 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:10:22] Production.INFO: ==20104== Releasing lock... [2025-03-21 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:10:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-21 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:11:06 [end_date_ymd] => 2025-03-21 23:11:06 [RateCDR] => 1 ) [2025-03-21 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-21 20:11:06' and `end` < '2025-03-21 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-21 23:11:18] Production.INFO: count ==1636 [2025-03-21 23:11:19] Production.ERROR: pbx CDR StartTime 2025-03-21 20:11:06 - End Time 2025-03-21 23:11:06 [2025-03-21 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733452', 'tblTempUsageDetail_20' ) start [2025-03-21 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733452', 'tblTempUsageDetail_20' ) end [2025-03-21 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733452', 'tblTempVendorCDR_20' ) start [2025-03-21 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733452', 'tblTempVendorCDR_20' ) end [2025-03-21 23:11:19] Production.INFO: ProcessCDR(1,14733452,1,1,2) [2025-03-21 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733452', 'tblTempUsageDetail_20' ) start [2025-03-21 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733452', 'tblTempUsageDetail_20' ) end [2025-03-21 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:11:22] Production.INFO: ==20196== Releasing lock... [2025-03-21 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:11:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-21 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:12:05 [end_date_ymd] => 2025-03-21 23:12:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:12:05' and `end` < '2025-03-21 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-21 23:12:17] Production.INFO: count ==1637 [2025-03-21 23:12:17] Production.ERROR: pbx CDR StartTime 2025-03-21 20:12:05 - End Time 2025-03-21 23:12:05 [2025-03-21 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733457', 'tblTempUsageDetail_20' ) start [2025-03-21 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733457', 'tblTempUsageDetail_20' ) end [2025-03-21 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733457', 'tblTempVendorCDR_20' ) start [2025-03-21 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733457', 'tblTempVendorCDR_20' ) end [2025-03-21 23:12:18] Production.INFO: ProcessCDR(1,14733457,1,1,2) [2025-03-21 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733457', 'tblTempUsageDetail_20' ) start [2025-03-21 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733457', 'tblTempUsageDetail_20' ) end [2025-03-21 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:12:21] Production.INFO: ==20360== Releasing lock... [2025-03-21 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:12:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-21 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:13:05 [end_date_ymd] => 2025-03-21 23:13:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:13:05' and `end` < '2025-03-21 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-21 23:13:18] Production.INFO: count ==1635 [2025-03-21 23:13:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:13:05 - End Time 2025-03-21 23:13:05 [2025-03-21 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733462', 'tblTempUsageDetail_20' ) start [2025-03-21 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733462', 'tblTempUsageDetail_20' ) end [2025-03-21 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733462', 'tblTempVendorCDR_20' ) start [2025-03-21 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733462', 'tblTempVendorCDR_20' ) end [2025-03-21 23:13:18] Production.INFO: ProcessCDR(1,14733462,1,1,2) [2025-03-21 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733462', 'tblTempUsageDetail_20' ) start [2025-03-21 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733462', 'tblTempUsageDetail_20' ) end [2025-03-21 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:13:22] Production.INFO: ==20452== Releasing lock... [2025-03-21 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:13:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-21 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:14:05 [end_date_ymd] => 2025-03-21 23:14:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:14:05' and `end` < '2025-03-21 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-21 23:14:17] Production.INFO: count ==1633 [2025-03-21 23:14:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:14:05 - End Time 2025-03-21 23:14:05 [2025-03-21 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733467', 'tblTempUsageDetail_20' ) start [2025-03-21 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733467', 'tblTempUsageDetail_20' ) end [2025-03-21 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733467', 'tblTempVendorCDR_20' ) start [2025-03-21 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733467', 'tblTempVendorCDR_20' ) end [2025-03-21 23:14:18] Production.INFO: ProcessCDR(1,14733467,1,1,2) [2025-03-21 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733467', 'tblTempUsageDetail_20' ) start [2025-03-21 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733467', 'tblTempUsageDetail_20' ) end [2025-03-21 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:14:21] Production.INFO: ==20546== Releasing lock... [2025-03-21 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:14:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-21 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:15:05 [end_date_ymd] => 2025-03-21 23:15:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:15:05' and `end` < '2025-03-21 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-21 23:15:18] Production.INFO: count ==1630 [2025-03-21 23:15:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:15:05 - End Time 2025-03-21 23:15:05 [2025-03-21 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733472', 'tblTempUsageDetail_20' ) start [2025-03-21 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733472', 'tblTempUsageDetail_20' ) end [2025-03-21 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733472', 'tblTempVendorCDR_20' ) start [2025-03-21 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733472', 'tblTempVendorCDR_20' ) end [2025-03-21 23:15:18] Production.INFO: ProcessCDR(1,14733472,1,1,2) [2025-03-21 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733472', 'tblTempUsageDetail_20' ) start [2025-03-21 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733472', 'tblTempUsageDetail_20' ) end [2025-03-21 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:15:22] Production.INFO: ==20711== Releasing lock... [2025-03-21 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:15:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-21 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:16:05 [end_date_ymd] => 2025-03-21 23:16:05 [RateCDR] => 1 ) [2025-03-21 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 20:16:05' and `end` < '2025-03-21 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 23:16:17] Production.INFO: count ==1630 [2025-03-21 23:16:17] Production.ERROR: pbx CDR StartTime 2025-03-21 20:16:05 - End Time 2025-03-21 23:16:05 [2025-03-21 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733477', 'tblTempUsageDetail_20' ) start [2025-03-21 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733477', 'tblTempUsageDetail_20' ) end [2025-03-21 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733477', 'tblTempVendorCDR_20' ) start [2025-03-21 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733477', 'tblTempVendorCDR_20' ) end [2025-03-21 23:16:18] Production.INFO: ProcessCDR(1,14733477,1,1,2) [2025-03-21 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733477', 'tblTempUsageDetail_20' ) start [2025-03-21 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733477', 'tblTempUsageDetail_20' ) end [2025-03-21 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:16:21] Production.INFO: ==20800== Releasing lock... [2025-03-21 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:16:21] Production.INFO: 40.25 MB #Memory Used# [2025-03-21 23:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:17:06 [end_date_ymd] => 2025-03-21 23:17:06 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:17:06' and `end` < '2025-03-21 23: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-21 23:17:18] Production.INFO: count ==1624 [2025-03-21 23:17:19] Production.ERROR: pbx CDR StartTime 2025-03-21 20:17:06 - End Time 2025-03-21 23:17:06 [2025-03-21 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733482', 'tblTempUsageDetail_20' ) start [2025-03-21 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733482', 'tblTempUsageDetail_20' ) end [2025-03-21 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733482', 'tblTempVendorCDR_20' ) start [2025-03-21 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733482', 'tblTempVendorCDR_20' ) end [2025-03-21 23:17:19] Production.INFO: ProcessCDR(1,14733482,1,1,2) [2025-03-21 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733482', 'tblTempUsageDetail_20' ) start [2025-03-21 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733482', 'tblTempUsageDetail_20' ) end [2025-03-21 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:17:22] Production.INFO: ==20889== Releasing lock... [2025-03-21 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:17:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-21 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:18:06 [end_date_ymd] => 2025-03-21 23:18:06 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:18:06' and `end` < '2025-03-21 23: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-21 23:18:18] Production.INFO: count ==1624 [2025-03-21 23:18:19] Production.ERROR: pbx CDR StartTime 2025-03-21 20:18:06 - End Time 2025-03-21 23:18:06 [2025-03-21 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733487', 'tblTempUsageDetail_20' ) start [2025-03-21 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733487', 'tblTempUsageDetail_20' ) end [2025-03-21 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733487', 'tblTempVendorCDR_20' ) start [2025-03-21 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733487', 'tblTempVendorCDR_20' ) end [2025-03-21 23:18:19] Production.INFO: ProcessCDR(1,14733487,1,1,2) [2025-03-21 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733487', 'tblTempUsageDetail_20' ) start [2025-03-21 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733487', 'tblTempUsageDetail_20' ) end [2025-03-21 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:18:22] Production.INFO: ==20982== Releasing lock... [2025-03-21 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:18:22] Production.INFO: 40.25 MB #Memory Used# [2025-03-21 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:19:05 [end_date_ymd] => 2025-03-21 23:19:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:19:05' and `end` < '2025-03-21 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-21 23:19:17] Production.INFO: count ==1606 [2025-03-21 23:19:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:19:05 - End Time 2025-03-21 23:19:05 [2025-03-21 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733492', 'tblTempUsageDetail_20' ) start [2025-03-21 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733492', 'tblTempUsageDetail_20' ) end [2025-03-21 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733492', 'tblTempVendorCDR_20' ) start [2025-03-21 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733492', 'tblTempVendorCDR_20' ) end [2025-03-21 23:19:18] Production.INFO: ProcessCDR(1,14733492,1,1,2) [2025-03-21 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733492', 'tblTempUsageDetail_20' ) start [2025-03-21 23:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733492', 'tblTempUsageDetail_20' ) end [2025-03-21 23:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:19:23] Production.INFO: ==21072== Releasing lock... [2025-03-21 23:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:19:23] Production.INFO: 39.75 MB #Memory Used# [2025-03-21 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:20:06 [end_date_ymd] => 2025-03-21 23:20:06 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:20:06' and `end` < '2025-03-21 23: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-21 23:20:18] Production.INFO: count ==1604 [2025-03-21 23:20:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:20:06 - End Time 2025-03-21 23:20:06 [2025-03-21 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733498', 'tblTempUsageDetail_20' ) start [2025-03-21 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733498', 'tblTempUsageDetail_20' ) end [2025-03-21 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733498', 'tblTempVendorCDR_20' ) start [2025-03-21 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733498', 'tblTempVendorCDR_20' ) end [2025-03-21 23:20:18] Production.INFO: ProcessCDR(1,14733498,1,1,2) [2025-03-21 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733498', 'tblTempUsageDetail_20' ) start [2025-03-21 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733498', 'tblTempUsageDetail_20' ) end [2025-03-21 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:20:22] Production.INFO: ==21205== Releasing lock... [2025-03-21 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:20:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-21 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:21:05 [end_date_ymd] => 2025-03-21 23:21:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:21:05' and `end` < '2025-03-21 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-21 23:21:17] Production.INFO: count ==1589 [2025-03-21 23:21:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:21:05 - End Time 2025-03-21 23:21:05 [2025-03-21 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733503', 'tblTempUsageDetail_20' ) start [2025-03-21 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733503', 'tblTempUsageDetail_20' ) end [2025-03-21 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733503', 'tblTempVendorCDR_20' ) start [2025-03-21 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733503', 'tblTempVendorCDR_20' ) end [2025-03-21 23:21:18] Production.INFO: ProcessCDR(1,14733503,1,1,2) [2025-03-21 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733503', 'tblTempUsageDetail_20' ) start [2025-03-21 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733503', 'tblTempUsageDetail_20' ) end [2025-03-21 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:21:21] Production.INFO: ==21297== Releasing lock... [2025-03-21 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:21:21] Production.INFO: 40 MB #Memory Used# [2025-03-21 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:22:05 [end_date_ymd] => 2025-03-21 23:22:05 [RateCDR] => 1 ) [2025-03-21 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 20:22:05' and `end` < '2025-03-21 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 23:22:18] Production.INFO: count ==1585 [2025-03-21 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:22:05 - End Time 2025-03-21 23:22:05 [2025-03-21 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733508', 'tblTempUsageDetail_20' ) start [2025-03-21 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733508', 'tblTempUsageDetail_20' ) end [2025-03-21 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733508', 'tblTempVendorCDR_20' ) start [2025-03-21 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733508', 'tblTempVendorCDR_20' ) end [2025-03-21 23:22:18] Production.INFO: ProcessCDR(1,14733508,1,1,2) [2025-03-21 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733508', 'tblTempUsageDetail_20' ) start [2025-03-21 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733508', 'tblTempUsageDetail_20' ) end [2025-03-21 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:22:22] Production.INFO: ==21383== Releasing lock... [2025-03-21 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:22:22] Production.INFO: 40 MB #Memory Used# [2025-03-21 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:23:05 [end_date_ymd] => 2025-03-21 23:23:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:23:05' and `end` < '2025-03-21 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-21 23:23:17] Production.INFO: count ==1575 [2025-03-21 23:23:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:23:05 - End Time 2025-03-21 23:23:05 [2025-03-21 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733513', 'tblTempUsageDetail_20' ) start [2025-03-21 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733513', 'tblTempUsageDetail_20' ) end [2025-03-21 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733513', 'tblTempVendorCDR_20' ) start [2025-03-21 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733513', 'tblTempVendorCDR_20' ) end [2025-03-21 23:23:18] Production.INFO: ProcessCDR(1,14733513,1,1,2) [2025-03-21 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733513', 'tblTempUsageDetail_20' ) start [2025-03-21 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733513', 'tblTempUsageDetail_20' ) end [2025-03-21 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:23:21] Production.INFO: ==21471== Releasing lock... [2025-03-21 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:23:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-21 23:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:24:06 [end_date_ymd] => 2025-03-21 23:24:06 [RateCDR] => 1 ) [2025-03-21 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-21 20:24:06' and `end` < '2025-03-21 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-21 23:24:18] Production.INFO: count ==1575 [2025-03-21 23:24:19] Production.ERROR: pbx CDR StartTime 2025-03-21 20:24:06 - End Time 2025-03-21 23:24:06 [2025-03-21 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733518', 'tblTempUsageDetail_20' ) start [2025-03-21 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733518', 'tblTempUsageDetail_20' ) end [2025-03-21 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733518', 'tblTempVendorCDR_20' ) start [2025-03-21 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733518', 'tblTempVendorCDR_20' ) end [2025-03-21 23:24:19] Production.INFO: ProcessCDR(1,14733518,1,1,2) [2025-03-21 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733518', 'tblTempUsageDetail_20' ) start [2025-03-21 23:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733518', 'tblTempUsageDetail_20' ) end [2025-03-21 23:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:24:24] Production.INFO: ==21561== Releasing lock... [2025-03-21 23:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:24:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-21 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:25:05 [end_date_ymd] => 2025-03-21 23:25:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:25:05' and `end` < '2025-03-21 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-21 23:25:18] Production.INFO: count ==1575 [2025-03-21 23:25:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:25:05 - End Time 2025-03-21 23:25:05 [2025-03-21 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733523', 'tblTempUsageDetail_20' ) start [2025-03-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733523', 'tblTempUsageDetail_20' ) end [2025-03-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733523', 'tblTempVendorCDR_20' ) start [2025-03-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733523', 'tblTempVendorCDR_20' ) end [2025-03-21 23:25:18] Production.INFO: ProcessCDR(1,14733523,1,1,2) [2025-03-21 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733523', 'tblTempUsageDetail_20' ) start [2025-03-21 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733523', 'tblTempUsageDetail_20' ) end [2025-03-21 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:25:22] Production.INFO: ==21646== Releasing lock... [2025-03-21 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:25:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-21 23:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:26:06 [end_date_ymd] => 2025-03-21 23:26:06 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:26:06' and `end` < '2025-03-21 23: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-21 23:26:18] Production.INFO: count ==1573 [2025-03-21 23:26:19] Production.ERROR: pbx CDR StartTime 2025-03-21 20:26:06 - End Time 2025-03-21 23:26:06 [2025-03-21 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733528', 'tblTempUsageDetail_20' ) start [2025-03-21 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733528', 'tblTempUsageDetail_20' ) end [2025-03-21 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733528', 'tblTempVendorCDR_20' ) start [2025-03-21 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733528', 'tblTempVendorCDR_20' ) end [2025-03-21 23:26:19] Production.INFO: ProcessCDR(1,14733528,1,1,2) [2025-03-21 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733528', 'tblTempUsageDetail_20' ) start [2025-03-21 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733528', 'tblTempUsageDetail_20' ) end [2025-03-21 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:26:22] Production.INFO: ==21739== Releasing lock... [2025-03-21 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:26:22] Production.INFO: 40 MB #Memory Used# [2025-03-21 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:27:05 [end_date_ymd] => 2025-03-21 23:27:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:27:05' and `end` < '2025-03-21 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-21 23:27:17] Production.INFO: count ==1567 [2025-03-21 23:27:17] Production.ERROR: pbx CDR StartTime 2025-03-21 20:27:05 - End Time 2025-03-21 23:27:05 [2025-03-21 23:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733533', 'tblTempUsageDetail_20' ) start [2025-03-21 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733533', 'tblTempUsageDetail_20' ) end [2025-03-21 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733533', 'tblTempVendorCDR_20' ) start [2025-03-21 23:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733533', 'tblTempVendorCDR_20' ) end [2025-03-21 23:27:17] Production.INFO: ProcessCDR(1,14733533,1,1,2) [2025-03-21 23:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733533', 'tblTempUsageDetail_20' ) start [2025-03-21 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733533', 'tblTempUsageDetail_20' ) end [2025-03-21 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:27:21] Production.INFO: ==21828== Releasing lock... [2025-03-21 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:27:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-21 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:28:05 [end_date_ymd] => 2025-03-21 23:28:05 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:28:05' and `end` < '2025-03-21 23: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-21 23:28:18] Production.INFO: count ==1568 [2025-03-21 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:28:05 - End Time 2025-03-21 23:28:05 [2025-03-21 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733538', 'tblTempUsageDetail_20' ) start [2025-03-21 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733538', 'tblTempUsageDetail_20' ) end [2025-03-21 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733538', 'tblTempVendorCDR_20' ) start [2025-03-21 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733538', 'tblTempVendorCDR_20' ) end [2025-03-21 23:28:18] Production.INFO: ProcessCDR(1,14733538,1,1,2) [2025-03-21 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733538', 'tblTempUsageDetail_20' ) start [2025-03-21 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733538', 'tblTempUsageDetail_20' ) end [2025-03-21 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:28:22] Production.INFO: ==21920== Releasing lock... [2025-03-21 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:28:22] Production.INFO: 39.75 MB #Memory Used# [2025-03-21 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:29:05 [end_date_ymd] => 2025-03-21 23:29:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:29:05' and `end` < '2025-03-21 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-21 23:29:18] Production.INFO: count ==1565 [2025-03-21 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:29:05 - End Time 2025-03-21 23:29:05 [2025-03-21 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733543', 'tblTempUsageDetail_20' ) start [2025-03-21 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733543', 'tblTempUsageDetail_20' ) end [2025-03-21 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733543', 'tblTempVendorCDR_20' ) start [2025-03-21 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733543', 'tblTempVendorCDR_20' ) end [2025-03-21 23:29:18] Production.INFO: ProcessCDR(1,14733543,1,1,2) [2025-03-21 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733543', 'tblTempUsageDetail_20' ) start [2025-03-21 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733543', 'tblTempUsageDetail_20' ) end [2025-03-21 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:29:21] Production.INFO: ==22016== Releasing lock... [2025-03-21 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:29:21] Production.INFO: 39.75 MB #Memory Used# [2025-03-21 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:30:06 [end_date_ymd] => 2025-03-21 23:30:06 [RateCDR] => 1 ) [2025-03-21 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-21 20:30:06' and `end` < '2025-03-21 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-21 23:30:19] Production.INFO: count ==1560 [2025-03-21 23:30:19] Production.ERROR: pbx CDR StartTime 2025-03-21 20:30:06 - End Time 2025-03-21 23:30:06 [2025-03-21 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733549', 'tblTempUsageDetail_20' ) start [2025-03-21 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733549', 'tblTempUsageDetail_20' ) end [2025-03-21 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733549', 'tblTempVendorCDR_20' ) start [2025-03-21 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733549', 'tblTempVendorCDR_20' ) end [2025-03-21 23:30:19] Production.INFO: ProcessCDR(1,14733549,1,1,2) [2025-03-21 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733549', 'tblTempUsageDetail_20' ) start [2025-03-21 23:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733549', 'tblTempUsageDetail_20' ) end [2025-03-21 23:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:30:24] Production.INFO: ==22113== Releasing lock... [2025-03-21 23:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:30:24] Production.INFO: 39.5 MB #Memory Used# [2025-03-21 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:31:05 [end_date_ymd] => 2025-03-21 23:31:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:31:05' and `end` < '2025-03-21 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-21 23:31:17] Production.INFO: count ==1533 [2025-03-21 23:31:17] Production.ERROR: pbx CDR StartTime 2025-03-21 20:31:05 - End Time 2025-03-21 23:31:05 [2025-03-21 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733554', 'tblTempUsageDetail_20' ) start [2025-03-21 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733554', 'tblTempUsageDetail_20' ) end [2025-03-21 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733554', 'tblTempVendorCDR_20' ) start [2025-03-21 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733554', 'tblTempVendorCDR_20' ) end [2025-03-21 23:31:17] Production.INFO: ProcessCDR(1,14733554,1,1,2) [2025-03-21 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733554', 'tblTempUsageDetail_20' ) start [2025-03-21 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733554', 'tblTempUsageDetail_20' ) end [2025-03-21 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:31:21] Production.INFO: ==22202== Releasing lock... [2025-03-21 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:31:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-21 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:32:06 [end_date_ymd] => 2025-03-21 23:32:06 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:32:06' and `end` < '2025-03-21 23: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-21 23:32:18] Production.INFO: count ==1528 [2025-03-21 23:32:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:32:06 - End Time 2025-03-21 23:32:06 [2025-03-21 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733559', 'tblTempUsageDetail_20' ) start [2025-03-21 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733559', 'tblTempUsageDetail_20' ) end [2025-03-21 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733559', 'tblTempVendorCDR_20' ) start [2025-03-21 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733559', 'tblTempVendorCDR_20' ) end [2025-03-21 23:32:18] Production.INFO: ProcessCDR(1,14733559,1,1,2) [2025-03-21 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733559', 'tblTempUsageDetail_20' ) start [2025-03-21 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733559', 'tblTempUsageDetail_20' ) end [2025-03-21 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:32:22] Production.INFO: ==22302== Releasing lock... [2025-03-21 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:32:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-21 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:33:05 [end_date_ymd] => 2025-03-21 23:33:05 [RateCDR] => 1 ) [2025-03-21 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 20:33:05' and `end` < '2025-03-21 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 23:33:17] Production.INFO: count ==1521 [2025-03-21 23:33:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:33:05 - End Time 2025-03-21 23:33:05 [2025-03-21 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733564', 'tblTempUsageDetail_20' ) start [2025-03-21 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733564', 'tblTempUsageDetail_20' ) end [2025-03-21 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733564', 'tblTempVendorCDR_20' ) start [2025-03-21 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733564', 'tblTempVendorCDR_20' ) end [2025-03-21 23:33:18] Production.INFO: ProcessCDR(1,14733564,1,1,2) [2025-03-21 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733564', 'tblTempUsageDetail_20' ) start [2025-03-21 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733564', 'tblTempUsageDetail_20' ) end [2025-03-21 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:33:22] Production.INFO: ==22406== Releasing lock... [2025-03-21 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:33:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-21 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:34:06 [end_date_ymd] => 2025-03-21 23:34:06 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:34:06' and `end` < '2025-03-21 23: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-21 23:34:18] Production.INFO: count ==1508 [2025-03-21 23:34:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:34:06 - End Time 2025-03-21 23:34:06 [2025-03-21 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733569', 'tblTempUsageDetail_20' ) start [2025-03-21 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733569', 'tblTempUsageDetail_20' ) end [2025-03-21 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733569', 'tblTempVendorCDR_20' ) start [2025-03-21 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733569', 'tblTempVendorCDR_20' ) end [2025-03-21 23:34:18] Production.INFO: ProcessCDR(1,14733569,1,1,2) [2025-03-21 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733569', 'tblTempUsageDetail_20' ) start [2025-03-21 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733569', 'tblTempUsageDetail_20' ) end [2025-03-21 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:34:22] Production.INFO: ==22509== Releasing lock... [2025-03-21 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:34:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-21 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:35:05 [end_date_ymd] => 2025-03-21 23:35:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:35:05' and `end` < '2025-03-21 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-21 23:35:17] Production.INFO: count ==1499 [2025-03-21 23:35:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:35:05 - End Time 2025-03-21 23:35:05 [2025-03-21 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733574', 'tblTempUsageDetail_20' ) start [2025-03-21 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733574', 'tblTempUsageDetail_20' ) end [2025-03-21 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733574', 'tblTempVendorCDR_20' ) start [2025-03-21 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733574', 'tblTempVendorCDR_20' ) end [2025-03-21 23:35:18] Production.INFO: ProcessCDR(1,14733574,1,1,2) [2025-03-21 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733574', 'tblTempUsageDetail_20' ) start [2025-03-21 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733574', 'tblTempUsageDetail_20' ) end [2025-03-21 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:35:21] Production.INFO: ==22648== Releasing lock... [2025-03-21 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:35:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-21 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:36:05 [end_date_ymd] => 2025-03-21 23:36:05 [RateCDR] => 1 ) [2025-03-21 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 20:36:05' and `end` < '2025-03-21 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 23:36:18] Production.INFO: count ==1489 [2025-03-21 23:36:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:36:05 - End Time 2025-03-21 23:36:05 [2025-03-21 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733579', 'tblTempUsageDetail_20' ) start [2025-03-21 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733579', 'tblTempUsageDetail_20' ) end [2025-03-21 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733579', 'tblTempVendorCDR_20' ) start [2025-03-21 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733579', 'tblTempVendorCDR_20' ) end [2025-03-21 23:36:18] Production.INFO: ProcessCDR(1,14733579,1,1,2) [2025-03-21 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733579', 'tblTempUsageDetail_20' ) start [2025-03-21 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733579', 'tblTempUsageDetail_20' ) end [2025-03-21 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:36:23] Production.INFO: ==22748== Releasing lock... [2025-03-21 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:36:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-21 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:37:04 [end_date_ymd] => 2025-03-21 23:37:04 [RateCDR] => 1 ) [2025-03-21 23:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 20:37:04' and `end` < '2025-03-21 23:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 23:37:17] Production.INFO: count ==1488 [2025-03-21 23:37:17] Production.ERROR: pbx CDR StartTime 2025-03-21 20:37:04 - End Time 2025-03-21 23:37:04 [2025-03-21 23:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733584', 'tblTempUsageDetail_20' ) start [2025-03-21 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733584', 'tblTempUsageDetail_20' ) end [2025-03-21 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733584', 'tblTempVendorCDR_20' ) start [2025-03-21 23:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733584', 'tblTempVendorCDR_20' ) end [2025-03-21 23:37:17] Production.INFO: ProcessCDR(1,14733584,1,1,2) [2025-03-21 23:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733584', 'tblTempUsageDetail_20' ) start [2025-03-21 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733584', 'tblTempUsageDetail_20' ) end [2025-03-21 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:37:21] Production.INFO: ==22866== Releasing lock... [2025-03-21 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:37:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-21 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:38:05 [end_date_ymd] => 2025-03-21 23:38:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:38:05' and `end` < '2025-03-21 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-21 23:38:17] Production.INFO: count ==1486 [2025-03-21 23:38:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:38:05 - End Time 2025-03-21 23:38:05 [2025-03-21 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733589', 'tblTempUsageDetail_20' ) start [2025-03-21 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733589', 'tblTempUsageDetail_20' ) end [2025-03-21 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733589', 'tblTempVendorCDR_20' ) start [2025-03-21 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733589', 'tblTempVendorCDR_20' ) end [2025-03-21 23:38:18] Production.INFO: ProcessCDR(1,14733589,1,1,2) [2025-03-21 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733589', 'tblTempUsageDetail_20' ) start [2025-03-21 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733589', 'tblTempUsageDetail_20' ) end [2025-03-21 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:38:21] Production.INFO: ==23005== Releasing lock... [2025-03-21 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:38:21] Production.INFO: 39 MB #Memory Used# [2025-03-21 23:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:39:06 [end_date_ymd] => 2025-03-21 23:39:06 [RateCDR] => 1 ) [2025-03-21 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-21 20:39:06' and `end` < '2025-03-21 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-21 23:39:18] Production.INFO: count ==1483 [2025-03-21 23:39:19] Production.ERROR: pbx CDR StartTime 2025-03-21 20:39:06 - End Time 2025-03-21 23:39:06 [2025-03-21 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733594', 'tblTempUsageDetail_20' ) start [2025-03-21 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733594', 'tblTempUsageDetail_20' ) end [2025-03-21 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733594', 'tblTempVendorCDR_20' ) start [2025-03-21 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733594', 'tblTempVendorCDR_20' ) end [2025-03-21 23:39:19] Production.INFO: ProcessCDR(1,14733594,1,1,2) [2025-03-21 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733594', 'tblTempUsageDetail_20' ) start [2025-03-21 23:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733594', 'tblTempUsageDetail_20' ) end [2025-03-21 23:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:39:24] Production.INFO: ==23137== Releasing lock... [2025-03-21 23:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:39:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-21 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:40:05 [end_date_ymd] => 2025-03-21 23:40:05 [RateCDR] => 1 ) [2025-03-21 23:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 20:40:05' and `end` < '2025-03-21 23:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 23:40:18] Production.INFO: count ==1481 [2025-03-21 23:40:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:40:05 - End Time 2025-03-21 23:40:05 [2025-03-21 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733599', 'tblTempUsageDetail_20' ) start [2025-03-21 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733599', 'tblTempUsageDetail_20' ) end [2025-03-21 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733599', 'tblTempVendorCDR_20' ) start [2025-03-21 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733599', 'tblTempVendorCDR_20' ) end [2025-03-21 23:40:18] Production.INFO: ProcessCDR(1,14733599,1,1,2) [2025-03-21 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733599', 'tblTempUsageDetail_20' ) start [2025-03-21 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733599', 'tblTempUsageDetail_20' ) end [2025-03-21 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:40:22] Production.INFO: ==23254== Releasing lock... [2025-03-21 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:40:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-21 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:41:05 [end_date_ymd] => 2025-03-21 23:41:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:41:05' and `end` < '2025-03-21 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-21 23:41:18] Production.INFO: count ==1456 [2025-03-21 23:41:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:41:05 - End Time 2025-03-21 23:41:05 [2025-03-21 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733605', 'tblTempUsageDetail_20' ) start [2025-03-21 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733605', 'tblTempUsageDetail_20' ) end [2025-03-21 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733605', 'tblTempVendorCDR_20' ) start [2025-03-21 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733605', 'tblTempVendorCDR_20' ) end [2025-03-21 23:41:18] Production.INFO: ProcessCDR(1,14733605,1,1,2) [2025-03-21 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733605', 'tblTempUsageDetail_20' ) start [2025-03-21 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733605', 'tblTempUsageDetail_20' ) end [2025-03-21 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:41:21] Production.INFO: ==23366== Releasing lock... [2025-03-21 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:41:21] Production.INFO: 39 MB #Memory Used# [2025-03-21 23:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:42:04 [end_date_ymd] => 2025-03-21 23:42:04 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:42:04' and `end` < '2025-03-21 23: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-21 23:42:17] Production.INFO: count ==1456 [2025-03-21 23:42:17] Production.ERROR: pbx CDR StartTime 2025-03-21 20:42:04 - End Time 2025-03-21 23:42:04 [2025-03-21 23:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733610', 'tblTempUsageDetail_20' ) start [2025-03-21 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733610', 'tblTempUsageDetail_20' ) end [2025-03-21 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733610', 'tblTempVendorCDR_20' ) start [2025-03-21 23:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733610', 'tblTempVendorCDR_20' ) end [2025-03-21 23:42:17] Production.INFO: ProcessCDR(1,14733610,1,1,2) [2025-03-21 23:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733610', 'tblTempUsageDetail_20' ) start [2025-03-21 23:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733610', 'tblTempUsageDetail_20' ) end [2025-03-21 23:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:42:20] Production.INFO: ==23463== Releasing lock... [2025-03-21 23:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:42:20] Production.INFO: 39 MB #Memory Used# [2025-03-21 23:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:43:06 [end_date_ymd] => 2025-03-21 23:43:06 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:43:06' and `end` < '2025-03-21 23: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-21 23:43:18] Production.INFO: count ==1455 [2025-03-21 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:43:06 - End Time 2025-03-21 23:43:06 [2025-03-21 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733615', 'tblTempUsageDetail_20' ) start [2025-03-21 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733615', 'tblTempUsageDetail_20' ) end [2025-03-21 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733615', 'tblTempVendorCDR_20' ) start [2025-03-21 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733615', 'tblTempVendorCDR_20' ) end [2025-03-21 23:43:18] Production.INFO: ProcessCDR(1,14733615,1,1,2) [2025-03-21 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733615', 'tblTempUsageDetail_20' ) start [2025-03-21 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733615', 'tblTempUsageDetail_20' ) end [2025-03-21 23:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:43:23] Production.INFO: ==23566== Releasing lock... [2025-03-21 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:43:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-21 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:44:05 [end_date_ymd] => 2025-03-21 23:44:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:44:05' and `end` < '2025-03-21 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-21 23:44:18] Production.INFO: count ==1454 [2025-03-21 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:44:05 - End Time 2025-03-21 23:44:05 [2025-03-21 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733620', 'tblTempUsageDetail_20' ) start [2025-03-21 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733620', 'tblTempUsageDetail_20' ) end [2025-03-21 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733620', 'tblTempVendorCDR_20' ) start [2025-03-21 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733620', 'tblTempVendorCDR_20' ) end [2025-03-21 23:44:18] Production.INFO: ProcessCDR(1,14733620,1,1,2) [2025-03-21 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733620', 'tblTempUsageDetail_20' ) start [2025-03-21 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733620', 'tblTempUsageDetail_20' ) end [2025-03-21 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:44:21] Production.INFO: ==23660== Releasing lock... [2025-03-21 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:44:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-21 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:45:05 [end_date_ymd] => 2025-03-21 23:45:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:45:05' and `end` < '2025-03-21 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-21 23:45:17] Production.INFO: count ==1454 [2025-03-21 23:45:17] Production.ERROR: pbx CDR StartTime 2025-03-21 20:45:05 - End Time 2025-03-21 23:45:05 [2025-03-21 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733625', 'tblTempUsageDetail_20' ) start [2025-03-21 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733625', 'tblTempUsageDetail_20' ) end [2025-03-21 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733625', 'tblTempVendorCDR_20' ) start [2025-03-21 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733625', 'tblTempVendorCDR_20' ) end [2025-03-21 23:45:17] Production.INFO: ProcessCDR(1,14733625,1,1,2) [2025-03-21 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733625', 'tblTempUsageDetail_20' ) start [2025-03-21 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733625', 'tblTempUsageDetail_20' ) end [2025-03-21 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:45:21] Production.INFO: ==23760== Releasing lock... [2025-03-21 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:45:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-21 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:46:05 [end_date_ymd] => 2025-03-21 23:46:05 [RateCDR] => 1 ) [2025-03-21 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 20:46:05' and `end` < '2025-03-21 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-21 23:46:17] Production.INFO: count ==1457 [2025-03-21 23:46:17] Production.ERROR: pbx CDR StartTime 2025-03-21 20:46:05 - End Time 2025-03-21 23:46:05 [2025-03-21 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733630', 'tblTempUsageDetail_20' ) start [2025-03-21 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733630', 'tblTempUsageDetail_20' ) end [2025-03-21 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733630', 'tblTempVendorCDR_20' ) start [2025-03-21 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733630', 'tblTempVendorCDR_20' ) end [2025-03-21 23:46:17] Production.INFO: ProcessCDR(1,14733630,1,1,2) [2025-03-21 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733630', 'tblTempUsageDetail_20' ) start [2025-03-21 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733630', 'tblTempUsageDetail_20' ) end [2025-03-21 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:46:22] Production.INFO: ==23868== Releasing lock... [2025-03-21 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:46:22] Production.INFO: 39 MB #Memory Used# [2025-03-21 23:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:47:06 [end_date_ymd] => 2025-03-21 23:47:06 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:47:06' and `end` < '2025-03-21 23: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-21 23:47:18] Production.INFO: count ==1452 [2025-03-21 23:47:19] Production.ERROR: pbx CDR StartTime 2025-03-21 20:47:06 - End Time 2025-03-21 23:47:06 [2025-03-21 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733635', 'tblTempUsageDetail_20' ) start [2025-03-21 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733635', 'tblTempUsageDetail_20' ) end [2025-03-21 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733635', 'tblTempVendorCDR_20' ) start [2025-03-21 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733635', 'tblTempVendorCDR_20' ) end [2025-03-21 23:47:19] Production.INFO: ProcessCDR(1,14733635,1,1,2) [2025-03-21 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733635', 'tblTempUsageDetail_20' ) start [2025-03-21 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733635', 'tblTempUsageDetail_20' ) end [2025-03-21 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:47:22] Production.INFO: ==23964== Releasing lock... [2025-03-21 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:47:22] Production.INFO: 39 MB #Memory Used# [2025-03-21 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:48:05 [end_date_ymd] => 2025-03-21 23:48:05 [RateCDR] => 1 ) [2025-03-21 23:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-21 20:48:05' and `end` < '2025-03-21 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-21 23:48:17] Production.INFO: count ==1450 [2025-03-21 23:48:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:48:05 - End Time 2025-03-21 23:48:05 [2025-03-21 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733640', 'tblTempUsageDetail_20' ) start [2025-03-21 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733640', 'tblTempUsageDetail_20' ) end [2025-03-21 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733640', 'tblTempVendorCDR_20' ) start [2025-03-21 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733640', 'tblTempVendorCDR_20' ) end [2025-03-21 23:48:18] Production.INFO: ProcessCDR(1,14733640,1,1,2) [2025-03-21 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733640', 'tblTempUsageDetail_20' ) start [2025-03-21 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733640', 'tblTempUsageDetail_20' ) end [2025-03-21 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:48:21] Production.INFO: ==24055== Releasing lock... [2025-03-21 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:48:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-21 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:49:05 [end_date_ymd] => 2025-03-21 23:49:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:49:05' and `end` < '2025-03-21 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-21 23:49:18] Production.INFO: count ==1443 [2025-03-21 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:49:05 - End Time 2025-03-21 23:49:05 [2025-03-21 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733645', 'tblTempUsageDetail_20' ) start [2025-03-21 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733645', 'tblTempUsageDetail_20' ) end [2025-03-21 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733645', 'tblTempVendorCDR_20' ) start [2025-03-21 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733645', 'tblTempVendorCDR_20' ) end [2025-03-21 23:49:18] Production.INFO: ProcessCDR(1,14733645,1,1,2) [2025-03-21 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733645', 'tblTempUsageDetail_20' ) start [2025-03-21 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733645', 'tblTempUsageDetail_20' ) end [2025-03-21 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:49:21] Production.INFO: ==24152== Releasing lock... [2025-03-21 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:49:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-21 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:50:05 [end_date_ymd] => 2025-03-21 23:50:05 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:50:05' and `end` < '2025-03-21 23: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-21 23:50:17] Production.INFO: count ==1436 [2025-03-21 23:50:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:50:05 - End Time 2025-03-21 23:50:05 [2025-03-21 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733651', 'tblTempUsageDetail_20' ) start [2025-03-21 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733651', 'tblTempUsageDetail_20' ) end [2025-03-21 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733651', 'tblTempVendorCDR_20' ) start [2025-03-21 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733651', 'tblTempVendorCDR_20' ) end [2025-03-21 23:50:18] Production.INFO: ProcessCDR(1,14733651,1,1,2) [2025-03-21 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733651', 'tblTempUsageDetail_20' ) start [2025-03-21 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733651', 'tblTempUsageDetail_20' ) end [2025-03-21 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:50:21] Production.INFO: ==24253== Releasing lock... [2025-03-21 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:50:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-21 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:51:05 [end_date_ymd] => 2025-03-21 23:51:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:51:05' and `end` < '2025-03-21 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-21 23:51:17] Production.INFO: count ==1401 [2025-03-21 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:51:05 - End Time 2025-03-21 23:51:05 [2025-03-21 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733656', 'tblTempUsageDetail_20' ) start [2025-03-21 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733656', 'tblTempUsageDetail_20' ) end [2025-03-21 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733656', 'tblTempVendorCDR_20' ) start [2025-03-21 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733656', 'tblTempVendorCDR_20' ) end [2025-03-21 23:51:18] Production.INFO: ProcessCDR(1,14733656,1,1,2) [2025-03-21 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733656', 'tblTempUsageDetail_20' ) start [2025-03-21 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733656', 'tblTempUsageDetail_20' ) end [2025-03-21 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:51:21] Production.INFO: ==24393== Releasing lock... [2025-03-21 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:51:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-21 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:52:05 [end_date_ymd] => 2025-03-21 23:52:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:52:05' and `end` < '2025-03-21 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-21 23:52:18] Production.INFO: count ==1404 [2025-03-21 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:52:05 - End Time 2025-03-21 23:52:05 [2025-03-21 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733661', 'tblTempUsageDetail_20' ) start [2025-03-21 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733661', 'tblTempUsageDetail_20' ) end [2025-03-21 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733661', 'tblTempVendorCDR_20' ) start [2025-03-21 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733661', 'tblTempVendorCDR_20' ) end [2025-03-21 23:52:18] Production.INFO: ProcessCDR(1,14733661,1,1,2) [2025-03-21 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733661', 'tblTempUsageDetail_20' ) start [2025-03-21 23:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733661', 'tblTempUsageDetail_20' ) end [2025-03-21 23:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:52:22] Production.INFO: ==24500== Releasing lock... [2025-03-21 23:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:52:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-21 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:53:05 [end_date_ymd] => 2025-03-21 23:53:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:53:05' and `end` < '2025-03-21 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-21 23:53:18] Production.INFO: count ==1403 [2025-03-21 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:53:05 - End Time 2025-03-21 23:53:05 [2025-03-21 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733666', 'tblTempUsageDetail_20' ) start [2025-03-21 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733666', 'tblTempUsageDetail_20' ) end [2025-03-21 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733666', 'tblTempVendorCDR_20' ) start [2025-03-21 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733666', 'tblTempVendorCDR_20' ) end [2025-03-21 23:53:18] Production.INFO: ProcessCDR(1,14733666,1,1,2) [2025-03-21 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733666', 'tblTempUsageDetail_20' ) start [2025-03-21 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733666', 'tblTempUsageDetail_20' ) end [2025-03-21 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:53:21] Production.INFO: ==24607== Releasing lock... [2025-03-21 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:53:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-21 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:54:05 [end_date_ymd] => 2025-03-21 23:54:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:54:05' and `end` < '2025-03-21 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-21 23:54:18] Production.INFO: count ==1398 [2025-03-21 23:54:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:54:05 - End Time 2025-03-21 23:54:05 [2025-03-21 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733671', 'tblTempUsageDetail_20' ) start [2025-03-21 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733671', 'tblTempUsageDetail_20' ) end [2025-03-21 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733671', 'tblTempVendorCDR_20' ) start [2025-03-21 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733671', 'tblTempVendorCDR_20' ) end [2025-03-21 23:54:18] Production.INFO: ProcessCDR(1,14733671,1,1,2) [2025-03-21 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733671', 'tblTempUsageDetail_20' ) start [2025-03-21 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733671', 'tblTempUsageDetail_20' ) end [2025-03-21 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:54:21] Production.INFO: ==24709== Releasing lock... [2025-03-21 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:54:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-21 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:55:05 [end_date_ymd] => 2025-03-21 23:55:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:55:05' and `end` < '2025-03-21 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-21 23:55:17] Production.INFO: count ==1383 [2025-03-21 23:55:17] Production.ERROR: pbx CDR StartTime 2025-03-21 20:55:05 - End Time 2025-03-21 23:55:05 [2025-03-21 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733676', 'tblTempUsageDetail_20' ) start [2025-03-21 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733676', 'tblTempUsageDetail_20' ) end [2025-03-21 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733676', 'tblTempVendorCDR_20' ) start [2025-03-21 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733676', 'tblTempVendorCDR_20' ) end [2025-03-21 23:55:17] Production.INFO: ProcessCDR(1,14733676,1,1,2) [2025-03-21 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733676', 'tblTempUsageDetail_20' ) start [2025-03-21 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733676', 'tblTempUsageDetail_20' ) end [2025-03-21 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:55:21] Production.INFO: ==24812== Releasing lock... [2025-03-21 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:55:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-21 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:56:06 [end_date_ymd] => 2025-03-21 23:56:06 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:56:06' and `end` < '2025-03-21 23: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-21 23:56:18] Production.INFO: count ==1372 [2025-03-21 23:56:19] Production.ERROR: pbx CDR StartTime 2025-03-21 20:56:06 - End Time 2025-03-21 23:56:06 [2025-03-21 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733681', 'tblTempUsageDetail_20' ) start [2025-03-21 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733681', 'tblTempUsageDetail_20' ) end [2025-03-21 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733681', 'tblTempVendorCDR_20' ) start [2025-03-21 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733681', 'tblTempVendorCDR_20' ) end [2025-03-21 23:56:19] Production.INFO: ProcessCDR(1,14733681,1,1,2) [2025-03-21 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733681', 'tblTempUsageDetail_20' ) start [2025-03-21 23:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733681', 'tblTempUsageDetail_20' ) end [2025-03-21 23:56:24] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:56:24] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:56:24] Production.INFO: ==24923== Releasing lock... [2025-03-21 23:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:56:24] Production.INFO: 38 MB #Memory Used# [2025-03-21 23:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:57:06 [end_date_ymd] => 2025-03-21 23:57:06 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:57:06' and `end` < '2025-03-21 23: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-21 23:57:18] Production.INFO: count ==1362 [2025-03-21 23:57:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:57:06 - End Time 2025-03-21 23:57:06 [2025-03-21 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733686', 'tblTempUsageDetail_20' ) start [2025-03-21 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733686', 'tblTempUsageDetail_20' ) end [2025-03-21 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733686', 'tblTempVendorCDR_20' ) start [2025-03-21 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733686', 'tblTempVendorCDR_20' ) end [2025-03-21 23:57:18] Production.INFO: ProcessCDR(1,14733686,1,1,2) [2025-03-21 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733686', 'tblTempUsageDetail_20' ) start [2025-03-21 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733686', 'tblTempUsageDetail_20' ) end [2025-03-21 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:57:22] Production.INFO: ==25024== Releasing lock... [2025-03-21 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:57:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-21 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:58:05 [end_date_ymd] => 2025-03-21 23:58:05 [RateCDR] => 1 ) [2025-03-21 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-21 20:58:05' and `end` < '2025-03-21 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-21 23:58:18] Production.INFO: count ==1351 [2025-03-21 23:58:18] Production.ERROR: pbx CDR StartTime 2025-03-21 20:58:05 - End Time 2025-03-21 23:58:05 [2025-03-21 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733691', 'tblTempUsageDetail_20' ) start [2025-03-21 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733691', 'tblTempUsageDetail_20' ) end [2025-03-21 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733691', 'tblTempVendorCDR_20' ) start [2025-03-21 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733691', 'tblTempVendorCDR_20' ) end [2025-03-21 23:58:18] Production.INFO: ProcessCDR(1,14733691,1,1,2) [2025-03-21 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733691', 'tblTempUsageDetail_20' ) start [2025-03-21 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733691', 'tblTempUsageDetail_20' ) end [2025-03-21 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:58:21] Production.INFO: ==25132== Releasing lock... [2025-03-21 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:58:21] Production.INFO: 38 MB #Memory Used# [2025-03-21 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-21 20:59:04 [end_date_ymd] => 2025-03-21 23:59:04 [RateCDR] => 1 ) [2025-03-21 23: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-21 20:59:04' and `end` < '2025-03-21 23: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-21 23:59:17] Production.INFO: count ==1342 [2025-03-21 23:59:17] Production.ERROR: pbx CDR StartTime 2025-03-21 20:59:04 - End Time 2025-03-21 23:59:04 [2025-03-21 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-21 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733696', 'tblTempUsageDetail_20' ) start [2025-03-21 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14733696', 'tblTempUsageDetail_20' ) end [2025-03-21 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733696', 'tblTempVendorCDR_20' ) start [2025-03-21 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14733696', 'tblTempVendorCDR_20' ) end [2025-03-21 23:59:17] Production.INFO: ProcessCDR(1,14733696,1,1,2) [2025-03-21 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14733696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14733696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-21 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14733696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14733696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-21 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733696', 'tblTempUsageDetail_20' ) start [2025-03-21 23:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14733696', 'tblTempUsageDetail_20' ) end [2025-03-21 23:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-21 23:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-21 23:59:20] Production.INFO: ==25239== Releasing lock... [2025-03-21 23:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-21 23:59:20] Production.INFO: 38 MB #Memory Used#